import{$ as pe,m as _,c as T,a as be,s as X,b as p,D as A,d as ge,S as J,F as ye,e as P,f as B,t as S,o as fe,g as me,h as _e,i as y,j as Ce,k as ve}from"../index.js";function ee(n){var e,t,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(e=0;e<s;e++)n[e]&&(t=ee(n[e]))&&(i&&(i+=" "),i+=t)}else for(t in n)n[t]&&(i&&(i+=" "),i+=t);return i}function De(){for(var n,e,t=0,i="",s=arguments.length;t<s;t++)(n=arguments[t])&&(e=ee(n))&&(i&&(i+=" "),i+=e);return i}class xe{constructor(e,t){this.type="Logical",this.width=e,this.height=t}toPhysical(e){return new C(this.width*e,this.height*e)}}class C{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new xe(this.width/e,this.height/e)}}class Le{constructor(e,t){this.type="Logical",this.x=e,this.y=t}toPhysical(e){return new b(this.x*e,this.x*e)}}class b{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new Le(this.x/e,this.y/e)}}function Se(n,e,t,i){if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(n):i?i.value:e.get(n)}function Ae(n,e,t,i,s){if(typeof e=="function"?n!==e||!0:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(n,t),t}var x;function Pe(n,e=!1){return window.__TAURI_INTERNALS__.transformCallback(n,e)}async function r(n,e={},t){return window.__TAURI_INTERNALS__.invoke(n,e,t)}class Ee{get rid(){return Se(this,x,"f")}constructor(e){x.set(this,void 0),Ae(this,x,e)}async close(){return r("plugin:resources|close",{rid:this.rid})}}x=new WeakMap;var d;(function(n){n.WINDOW_RESIZED="tauri://resize",n.WINDOW_MOVED="tauri://move",n.WINDOW_CLOSE_REQUESTED="tauri://close-requested",n.WINDOW_DESTROYED="tauri://destroyed",n.WINDOW_FOCUS="tauri://focus",n.WINDOW_BLUR="tauri://blur",n.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",n.WINDOW_THEME_CHANGED="tauri://theme-changed",n.WINDOW_CREATED="tauri://window-created",n.WEBVIEW_CREATED="tauri://webview-created",n.DRAG_ENTER="tauri://drag-enter",n.DRAG_OVER="tauri://drag-over",n.DRAG_DROP="tauri://drag-drop",n.DRAG_LEAVE="tauri://drag-leave"})(d||(d={}));async function te(n,e){await r("plugin:event|unlisten",{event:n,eventId:e})}async function M(n,e,t){var i;const s=typeof(t==null?void 0:t.target)=="string"?{kind:"AnyLabel",label:t.target}:(i=t==null?void 0:t.target)!==null&&i!==void 0?i:{kind:"Any"};return r("plugin:event|listen",{event:n,target:s,handler:Pe(e)}).then(a=>async()=>te(n,a))}async function ne(n,e,t){return M(n,i=>{te(n,i.id),e(i)},t)}async function ie(n,e){await r("plugin:event|emit",{event:n,payload:e})}async function re(n,e,t){await r("plugin:event|emit_to",{target:typeof n=="string"?{kind:"AnyLabel",label:n}:n,event:e,payload:t})}class m extends Ee{constructor(e){super(e)}static async new(e,t,i){return r("plugin:image|new",{rgba:z(e),width:t,height:i}).then(s=>new m(s))}static async fromBytes(e){return r("plugin:image|from_bytes",{bytes:z(e)}).then(t=>new m(t))}static async fromPath(e){return r("plugin:image|from_path",{path:e}).then(t=>new m(t))}async rgba(){return r("plugin:image|rgba",{rid:this.rid}).then(e=>new Uint8Array(e))}async size(){return r("plugin:image|size",{rid:this.rid})}}function z(n){return n==null?null:typeof n=="string"?n:n instanceof m?n.rid:n}var I;(function(n){n[n.Critical=1]="Critical",n[n.Informational=2]="Informational"})(I||(I={}));class We{constructor(e){this._preventDefault=!1,this.event=e.event,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var V;(function(n){n.None="none",n.Normal="normal",n.Indeterminate="indeterminate",n.Paused="paused",n.Error="error"})(V||(V={}));function se(){return new k(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function E(){return r("plugin:window|get_all_windows").then(n=>n.map(e=>new k(e,{skip:!0})))}const W=["tauri://created","tauri://error"];class k{constructor(e,t={}){var i;this.label=e,this.listeners=Object.create(null),t!=null&&t.skip||r("plugin:window|create",{options:{...t,parent:typeof t.parent=="string"?t.parent:(i=t.parent)===null||i===void 0?void 0:i.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async s=>this.emit("tauri://error",s))}static async getByLabel(e){var t;return(t=(await E()).find(i=>i.label===e))!==null&&t!==void 0?t:null}static getCurrent(){return se()}static async getAll(){return E()}static async getFocusedWindow(){for(const e of await E())if(await e.isFocused())return e;return null}async listen(e,t){return this._handleTauriEvent(e,t)?()=>{const i=this.listeners[e];i.splice(i.indexOf(t),1)}:M(e,t,{target:{kind:"Window",label:this.label}})}async once(e,t){return this._handleTauriEvent(e,t)?()=>{const i=this.listeners[e];i.splice(i.indexOf(t),1)}:ne(e,t,{target:{kind:"Window",label:this.label}})}async emit(e,t){if(W.includes(e)){for(const i of this.listeners[e]||[])i({event:e,id:-1,payload:t});return}return ie(e,t)}async emitTo(e,t,i){if(W.includes(t)){for(const s of this.listeners[t]||[])s({event:t,id:-1,payload:i});return}return re(e,t,i)}_handleTauriEvent(e,t){return W.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}async scaleFactor(){return r("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return r("plugin:window|inner_position",{label:this.label}).then(({x:e,y:t})=>new b(e,t))}async outerPosition(){return r("plugin:window|outer_position",{label:this.label}).then(({x:e,y:t})=>new b(e,t))}async innerSize(){return r("plugin:window|inner_size",{label:this.label}).then(({width:e,height:t})=>new C(e,t))}async outerSize(){return r("plugin:window|outer_size",{label:this.label}).then(({width:e,height:t})=>new C(e,t))}async isFullscreen(){return r("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return r("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return r("plugin:window|is_maximized",{label:this.label})}async isFocused(){return r("plugin:window|is_focused",{label:this.label})}async isDecorated(){return r("plugin:window|is_decorated",{label:this.label})}async isResizable(){return r("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return r("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return r("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return r("plugin:window|is_closable",{label:this.label})}async isVisible(){return r("plugin:window|is_visible",{label:this.label})}async title(){return r("plugin:window|title",{label:this.label})}async theme(){return r("plugin:window|theme",{label:this.label})}async center(){return r("plugin:window|center",{label:this.label})}async requestUserAttention(e){let t=null;return e&&(e===I.Critical?t={type:"Critical"}:t={type:"Informational"}),r("plugin:window|request_user_attention",{label:this.label,value:t})}async setResizable(e){return r("plugin:window|set_resizable",{label:this.label,value:e})}async setEnabled(e){return r("plugin:window|set_enabled",{label:this.label,value:e})}async isEnabled(){return r("plugin:window|is_enabled",{label:this.label})}async setMaximizable(e){return r("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return r("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return r("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return r("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return r("plugin:window|maximize",{label:this.label})}async unmaximize(){return r("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return r("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return r("plugin:window|minimize",{label:this.label})}async unminimize(){return r("plugin:window|unminimize",{label:this.label})}async show(){return r("plugin:window|show",{label:this.label})}async hide(){return r("plugin:window|hide",{label:this.label})}async close(){return r("plugin:window|close",{label:this.label})}async destroy(){return r("plugin:window|destroy",{label:this.label})}async setDecorations(e){return r("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return r("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return r("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return r("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return r("plugin:window|set_always_on_top",{label:this.label,value:e})}async setAlwaysOnBottom(e){return r("plugin:window|set_always_on_bottom",{label:this.label,value:e})}async setContentProtected(e){return r("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");const t={};return t[`${e.type}`]={width:e.width,height:e.height},r("plugin:window|set_size",{label:this.label,value:t})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");let t=null;return e&&(t={},t[`${e.type}`]={width:e.width,height:e.height}),r("plugin:window|set_min_size",{label:this.label,value:t})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");let t=null;return e&&(t={},t[`${e.type}`]={width:e.width,height:e.height}),r("plugin:window|set_max_size",{label:this.label,value:t})}async setSizeConstraints(e){function t(i){return i?{Logical:i}:null}return r("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:t(e==null?void 0:e.minWidth),minHeight:t(e==null?void 0:e.minHeight),maxWidth:t(e==null?void 0:e.maxWidth),maxHeight:t(e==null?void 0:e.maxHeight)}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");const t={};return t[`${e.type}`]={x:e.x,y:e.y},r("plugin:window|set_position",{label:this.label,value:t})}async setFullscreen(e){return r("plugin:window|set_fullscreen",{label:this.label,value:e})}async setFocus(){return r("plugin:window|set_focus",{label:this.label})}async setIcon(e){return r("plugin:window|set_icon",{label:this.label,value:z(e)})}async setSkipTaskbar(e){return r("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return r("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return r("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return r("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");const t={};return t[`${e.type}`]={x:e.x,y:e.y},r("plugin:window|set_cursor_position",{label:this.label,value:t})}async setIgnoreCursorEvents(e){return r("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return r("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(e){return r("plugin:window|start_resize_dragging",{label:this.label,value:e})}async setProgressBar(e){return r("plugin:window|set_progress_bar",{label:this.label,value:e})}async setVisibleOnAllWorkspaces(e){return r("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:e})}async setTitleBarStyle(e){return r("plugin:window|set_title_bar_style",{label:this.label,value:e})}async setTheme(e){return r("plugin:window|set_theme",{label:this.label,value:e})}async onResized(e){return this.listen(d.WINDOW_RESIZED,t=>{t.payload=Ne(t.payload),e(t)})}async onMoved(e){return this.listen(d.WINDOW_MOVED,t=>{t.payload=v(t.payload),e(t)})}async onCloseRequested(e){return this.listen(d.WINDOW_CLOSE_REQUESTED,async t=>{const i=new We(t);await e(i),i.isPreventDefault()||await this.destroy()})}async onDragDropEvent(e){const t=await this.listen(d.DRAG_ENTER,l=>{e({...l,payload:{type:"enter",paths:l.payload.paths,position:v(l.payload.position)}})}),i=await this.listen(d.DRAG_OVER,l=>{e({...l,payload:{type:"over",position:v(l.payload.position)}})}),s=await this.listen(d.DRAG_DROP,l=>{e({...l,payload:{type:"drop",paths:l.payload.paths,position:v(l.payload.position)}})}),a=await this.listen(d.DRAG_LEAVE,l=>{e({...l,payload:{type:"leave"}})});return()=>{t(),s(),i(),a()}}async onFocusChanged(e){const t=await this.listen(d.WINDOW_FOCUS,s=>{e({...s,payload:!0})}),i=await this.listen(d.WINDOW_BLUR,s=>{e({...s,payload:!1})});return()=>{t(),i()}}async onScaleChanged(e){return this.listen(d.WINDOW_SCALE_FACTOR_CHANGED,e)}async onThemeChanged(e){return this.listen(d.WINDOW_THEME_CHANGED,e)}}var F;(function(n){n.AppearanceBased="appearanceBased",n.Light="light",n.Dark="dark",n.MediumLight="mediumLight",n.UltraDark="ultraDark",n.Titlebar="titlebar",n.Selection="selection",n.Menu="menu",n.Popover="popover",n.Sidebar="sidebar",n.HeaderView="headerView",n.Sheet="sheet",n.WindowBackground="windowBackground",n.HudWindow="hudWindow",n.FullScreenUI="fullScreenUI",n.Tooltip="tooltip",n.ContentBackground="contentBackground",n.UnderWindowBackground="underWindowBackground",n.UnderPageBackground="underPageBackground",n.Mica="mica",n.Blur="blur",n.Acrylic="acrylic",n.Tabbed="tabbed",n.TabbedDark="tabbedDark",n.TabbedLight="tabbedLight"})(F||(F={}));var G;(function(n){n.FollowsWindowActiveState="followsWindowActiveState",n.Active="active",n.Inactive="inactive"})(G||(G={}));function v(n){return new b(n.x,n.y)}function Ne(n){return new C(n.width,n.height)}function L(){return new le(se(),window.__TAURI_INTERNALS__.metadata.currentWebview.label,{skip:!0})}async function U(){return r("plugin:webview|get_all_webviews").then(n=>n.map(e=>new le(new k(e.windowLabel,{skip:!0}),e.label,{skip:!0})))}const N=["tauri://created","tauri://error"];class le{constructor(e,t,i){this.window=e,this.label=t,this.listeners=Object.create(null),i!=null&&i.skip||r("plugin:webview|create_webview",{windowLabel:e.label,label:t,options:i}).then(async()=>this.emit("tauri://created")).catch(async s=>this.emit("tauri://error",s))}static async getByLabel(e){var t;return(t=(await U()).find(i=>i.label===e))!==null&&t!==void 0?t:null}static getCurrent(){return L()}static async getAll(){return U()}async listen(e,t){return this._handleTauriEvent(e,t)?()=>{const i=this.listeners[e];i.splice(i.indexOf(t),1)}:M(e,t,{target:{kind:"Webview",label:this.label}})}async once(e,t){return this._handleTauriEvent(e,t)?()=>{const i=this.listeners[e];i.splice(i.indexOf(t),1)}:ne(e,t,{target:{kind:"Webview",label:this.label}})}async emit(e,t){if(N.includes(e)){for(const i of this.listeners[e]||[])i({event:e,id:-1,payload:t});return}return ie(e,t)}async emitTo(e,t,i){if(N.includes(t)){for(const s of this.listeners[t]||[])s({event:t,id:-1,payload:i});return}return re(e,t,i)}_handleTauriEvent(e,t){return N.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}async position(){return r("plugin:webview|webview_position",{label:this.label}).then(({x:e,y:t})=>new b(e,t))}async size(){return r("plugin:webview|webview_size",{label:this.label}).then(({width:e,height:t})=>new C(e,t))}async close(){return r("plugin:webview|close",{label:this.label})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");const t={};return t[`${e.type}`]={width:e.width,height:e.height},r("plugin:webview|set_webview_size",{label:this.label,value:t})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");const t={};return t[`${e.type}`]={x:e.x,y:e.y},r("plugin:webview|set_webview_position",{label:this.label,value:t})}async setFocus(){return r("plugin:webview|set_webview_focus",{label:this.label})}async hide(){return r("plugin:webview|webview_hide",{label:this.label})}async show(){return r("plugin:webview|webview_show",{label:this.label})}async setZoom(e){return r("plugin:webview|set_webview_zoom",{label:this.label,value:e})}async reparent(e){return r("plugin:webview|reparent",{label:this.label,window:typeof e=="string"?e:e.label})}async clearAllBrowsingData(){return r("plugin:webview|clear_all_browsing_data")}async onDragDropEvent(e){const t=await this.listen(d.DRAG_ENTER,l=>{e({...l,payload:{type:"enter",paths:l.payload.paths,position:R(l.payload.position)}})}),i=await this.listen(d.DRAG_OVER,l=>{e({...l,payload:{type:"over",position:R(l.payload.position)}})}),s=await this.listen(d.DRAG_DROP,l=>{e({...l,payload:{type:"drop",paths:l.payload.paths,position:R(l.payload.position)}})}),a=await this.listen(d.DRAG_LEAVE,l=>{e({...l,payload:{type:"leave"}})});return()=>{t(),s(),i(),a()}}}function R(n){return new b(n.x,n.y)}function ae(n){return(...e)=>{for(const t of n)t&&t(...e)}}function Re(n){return(...e)=>{for(let t=n.length-1;t>=0;t--){const i=n[t];i&&i(...e)}}}const $=n=>typeof n=="function"&&!n.length?n():n;function D(){return!0}const Oe={get(n,e,t){return e===pe?t:n.get(e)},has(n,e){return n.has(e)},set:D,deleteProperty:D,getOwnPropertyDescriptor(n,e){return{configurable:!0,enumerable:!0,get(){return n.get(e)},set:D,deleteProperty:D}},ownKeys(n){return n.keys()}},Te=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Z(n){const e={};let t;for(;t=Te.exec(n);)e[t[1]]=t[2];return e}function ze(n,e){if(typeof n=="string"){if(typeof e=="string")return`${n};${e}`;n=Z(n)}else typeof e=="string"&&(e=Z(e));return{...n,...e}}const O=(n,e,t)=>{let i;for(const s of n){const a=$(s)[e];i?a&&(i=t(i,a)):i=a}return i};function Ie(...n){var l;const e=Array.isArray(n[0]),t=e?n[0]:n;if(t.length===1)return t[0];const i=e&&((l=n[1])!=null&&l.reverseEventHandlers)?Re:ae,s={};for(const o of t){const u=$(o);for(const c in u)if(c[0]==="o"&&c[1]==="n"&&c[2]){const h=u[c],w=c.toLowerCase(),g=typeof h=="function"?h:Array.isArray(h)?h.length===1?h[0]:h[0].bind(void 0,h[1]):void 0;g?s[w]?s[w].push(g):s[w]=[g]:delete s[w]}}const a=_(...t);return new Proxy({get(o){if(typeof o!="string")return Reflect.get(a,o);if(o==="style")return O(t,"style",ze);if(o==="ref"){const u=[];for(const c of t){const h=$(c)[o];typeof h=="function"&&u.push(h)}return i(u)}if(o[0]==="o"&&o[1]==="n"&&o[2]){const u=s[o.toLowerCase()];return u?i(u):Reflect.get(a,o)}return o==="class"||o==="className"?O(t,o,(u,c)=>`${u} ${c}`):o==="classList"?O(t,o,(u,c)=>({...u,...c})):Reflect.get(a,o)},has(o){return Reflect.has(a,o)},keys(){return Object.keys(a)}},Oe)}function $e(...n){return ae(n)}function Me(n){return Array.isArray(n)}function ke(n){return Object.prototype.toString.call(n)==="[object String]"}function He(n,e){return _(n,e)}var f=new Map,j=new Set;function q(){if(typeof window>"u")return;const n=t=>{if(!t.target)return;let i=f.get(t.target);i||(i=new Set,f.set(t.target,i),t.target.addEventListener("transitioncancel",e)),i.add(t.propertyName)},e=t=>{if(!t.target)return;const i=f.get(t.target);if(i&&(i.delete(t.propertyName),i.size===0&&(t.target.removeEventListener("transitioncancel",e),f.delete(t.target)),f.size===0)){for(const s of j)s();j.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?q():document.addEventListener("DOMContentLoaded",q));function Be(n,e){const[t,i]=T(Y(e==null?void 0:e()));return be(()=>{var s;i(((s=n())==null?void 0:s.tagName.toLowerCase())||Y(e==null?void 0:e()))}),t}function Y(n){return ke(n)?n:void 0}function Ve(n){var s;const[e,t]=X(n,["asChild","as","children"]);if(!e.asChild)return p(A,_({get component(){return e.as}},t,{get children(){return e.children}}));const i=ge(()=>e.children);if(K(i())){const a=Q(t,((s=i())==null?void 0:s.props)??{});return p(A,a)}if(Me(i())){const a=i().find(K);if(a){const l=()=>p(ye,{get each(){return i()},children:u=>p(J,{when:u===a,fallback:u,get children(){return a.props.children}})}),o=Q(t,(a==null?void 0:a.props)??{});return p(A,_(o,{children:l}))}}throw new Error("[kobalte]: Component is expected to render `asChild` but no children `As` component was found.")}const Fe=Symbol("$$KobalteAsComponent");function K(n){return(n==null?void 0:n[Fe])===!0}function Q(n,e){return Ie([n,e],{reverseEventHandlers:!0})}const Ge=["button","color","file","image","reset","submit"];function Ue(n){const e=n.tagName.toLowerCase();return e==="button"?!0:e==="input"&&n.type?Ge.indexOf(n.type)!==-1:!1}function Ze(n){let e;const t=He({type:"button"},n),[i,s]=X(t,["ref","type","disabled"]),a=Be(()=>e,()=>"button"),l=P(()=>{const c=a();return c==null?!1:Ue({tagName:c,type:i.type})}),o=P(()=>a()==="input"),u=P(()=>a()==="a"&&(e==null?void 0:e.getAttribute("href"))!=null);return p(Ve,_({as:"button",ref(c){var h=$e(w=>e=w,i.ref);typeof h=="function"&&h(c)},get type(){return B(()=>!!(l()||o()))()?i.type:void 0},get role(){return!l()&&!u()?"button":void 0},get tabIndex(){return!l()&&!u()&&!i.disabled?0:void 0},get disabled(){return B(()=>!!(l()||o()))()?i.disabled:void 0},get"aria-disabled"(){return!l()&&!o()&&i.disabled?!0:void 0},get"data-disabled"(){return i.disabled?"":void 0}},s))}const je="/assets/nova.png";var qe=S('<div class="flex md:flex-row flex-col justify-center items-center md:gap-8"><span class=sr-only>CrabNebula DevTools for Tauri</span><svg width=385 class=max-w-full height=76 aria-hidden viewBox="0 0 745 176"fill=none xmlns=http://www.w3.org/2000/svg><path d="M149.997 141.316V37.7998H181.781C197.138 37.7998 210.017 42.7569 220.417 52.6712C230.818 62.5855 236.018 74.8811 236.018 89.5581C236.018 104.235 230.818 116.531 220.417 126.445C210.017 136.359 197.138 141.316 181.781 141.316H149.997ZM167.055 125.424H181.781C192.667 125.424 201.512 122.022 208.316 115.219C215.217 108.415 218.668 99.8612 218.668 89.5581C218.668 79.255 215.217 70.7016 208.316 63.8976C201.512 57.0937 192.667 53.6918 181.781 53.6918H167.055V125.424ZM285.844 142.774C274.764 142.774 265.627 139.227 258.434 132.131C251.339 125.036 247.791 115.948 247.791 104.867C247.791 94.0778 251.387 85.087 258.58 77.8943C265.773 70.6044 274.861 66.9594 285.844 66.9594C295.953 66.9594 304.312 70.167 310.922 76.5821C317.628 82.9972 320.982 91.8423 320.982 103.117C320.982 105.061 320.933 106.811 320.836 108.366H263.537C263.926 114.295 266.21 119.107 270.39 122.8C274.569 126.396 279.769 128.195 285.99 128.195C295.321 128.195 302.271 124.501 306.839 117.114L319.086 125.862C312.088 137.137 301.007 142.774 285.844 142.774ZM264.266 96.7022H304.798C303.923 91.6479 301.639 87.7113 297.945 84.8926C294.349 81.9766 290.121 80.5186 285.261 80.5186C280.207 80.5186 275.687 81.928 271.702 84.7468C267.814 87.5655 265.335 91.5507 264.266 96.7022ZM358.789 141.316L325.838 68.4174H343.626L365.787 119.592L388.094 68.4174H406.027L372.931 141.316H358.789ZM428.396 141.316V54.1292H398.362V37.7998H475.635V54.1292H445.454V141.316H428.396ZM536.074 131.84C528.784 139.129 519.744 142.774 508.955 142.774C498.166 142.774 489.078 139.129 481.691 131.84C474.401 124.452 470.756 115.462 470.756 104.867C470.756 94.2722 474.401 85.33 481.691 78.0401C489.078 70.653 498.166 66.9594 508.955 66.9594C519.744 66.9594 528.784 70.653 536.074 78.0401C543.461 85.33 547.154 94.2722 547.154 104.867C547.154 115.462 543.461 124.452 536.074 131.84ZM508.955 127.903C515.273 127.903 520.473 125.716 524.555 121.342C528.735 116.871 530.825 111.379 530.825 104.867C530.825 98.3546 528.735 92.9115 524.555 88.5375C520.473 84.0664 515.273 81.8308 508.955 81.8308C502.54 81.8308 497.243 84.0664 493.063 88.5375C488.981 92.9115 486.94 98.3546 486.94 104.867C486.94 111.379 488.981 116.871 493.063 121.342C497.243 125.716 502.54 127.903 508.955 127.903ZM623.353 131.84C616.063 139.129 607.024 142.774 596.235 142.774C585.446 142.774 576.357 139.129 568.97 131.84C561.68 124.452 558.036 115.462 558.036 104.867C558.036 94.2722 561.68 85.33 568.97 78.0401C576.357 70.653 585.446 66.9594 596.235 66.9594C607.024 66.9594 616.063 70.653 623.353 78.0401C630.74 85.33 634.434 94.2722 634.434 104.867C634.434 115.462 630.74 124.452 623.353 131.84ZM596.235 127.903C602.553 127.903 607.753 125.716 611.835 121.342C616.015 116.871 618.104 111.379 618.104 104.867C618.104 98.3546 616.015 92.9115 611.835 88.5375C607.753 84.0664 602.553 81.8308 596.235 81.8308C589.819 81.8308 584.522 84.0664 580.343 88.5375C576.26 92.9115 574.219 98.3546 574.219 104.867C574.219 111.379 576.26 116.871 580.343 121.342C584.522 125.716 589.819 127.903 596.235 127.903ZM650.564 141.316V31.9679H666.601V141.316H650.564ZM711.334 142.774C704.627 142.774 698.698 141.511 693.547 138.984C688.395 136.359 684.556 132.471 682.029 127.32L693.838 118.864C695.296 121.974 697.629 124.452 700.837 126.299C704.044 128.049 707.543 128.924 711.334 128.924C714.347 128.924 716.826 128.243 718.77 126.882C720.811 125.522 721.832 123.626 721.832 121.196C721.832 119.058 721.005 117.308 719.353 115.948C717.798 114.587 714.882 113.226 710.605 111.865L704.19 110.116C691.263 106.616 684.896 99.1808 685.091 87.8085C685.091 81.4906 687.569 76.4363 692.526 72.6455C697.483 68.8548 703.704 66.9594 711.188 66.9594C722.463 66.9594 730.677 71.0903 735.828 79.3522L724.748 87.8085C721.054 82.8514 716.437 80.3728 710.897 80.3728C708.272 80.3728 705.988 81.0046 704.044 82.2682C702.1 83.4346 701.128 85.087 701.128 87.2253C701.128 89.1693 701.76 90.8217 703.024 92.1825C704.287 93.5432 706.571 94.7582 709.876 95.8274L717.312 98.0144C724.116 100.056 729.219 102.826 732.621 106.325C736.023 109.727 737.724 114.344 737.724 120.176C737.724 127.077 735.245 132.569 730.288 136.651C725.331 140.733 719.013 142.774 711.334 142.774Z"fill=white></path><path fill-rule=evenodd clip-rule=evenodd d="M31.5454 160.552C14.1234 160.552 0 146.951 0 130.173C0 113.395 14.1234 99.7941 31.5454 99.7941C32.2375 99.7941 32.9243 99.8156 33.6053 99.8579C32.9178 99.8092 32.2252 99.7845 31.5281 99.7845C27.9357 99.7845 24.4834 100.363 21.2664 101.428C32.1771 96.6478 39.7629 86.0579 39.7629 73.7617C39.7629 72.6177 39.3641 70.3669 39.0652 68.6801C39.0107 68.3723 38.9595 68.0833 38.9146 67.8232C38.0611 65.0676 37.6027 62.1479 37.6027 59.1252C37.6027 42.3473 51.726 28.7461 69.148 28.7461C86.5701 28.7461 100.693 42.3473 100.693 59.1252C100.693 71.8798 92.5314 82.7986 80.9629 87.3018C71.7295 92.6438 60.8661 103.818 60.8661 114.865C60.8661 116.566 61.3103 119.244 61.6366 121.029C62.5813 123.915 63.0908 126.987 63.0908 130.173C63.0908 146.951 48.9674 160.552 31.5454 160.552ZM68.4987 73.9059C76.1189 73.9059 82.2963 67.7285 82.2963 60.1083C82.2963 52.4882 76.1189 46.3108 68.4987 46.3108C60.8786 46.3108 54.7012 52.4882 54.7012 60.1083C54.7012 67.7285 60.8786 73.9059 68.4987 73.9059Z"fill=#0E82A2></path><circle cx=87.0969 cy=112.902 r=13.5969 fill=#00CFB9>');function Ye(){return qe()}var Ke=S("<p class=italic>Last modified: 09.09.2026");function Qe(){return Ke()}var Xe=S(`<div><div class="flex flex-col items-center size-full smh:size-auto gap-4 smh:gap-8 mdh:gap-16 bg-[#002046] rounded-lg smh:m-2 sm:m-0 smh:px-8 sm:px-24 py-4 smh:py-8 mdh:py-16 text-white relative text-center"><img class="h-64 sm:h-48 absolute -bottom-40 sm:-bottom-20 sm:-right-20 pointer-events-none hidden smh:block"><div class="flex flex-col sm:items-center gap-6"><div class="flex gap-4"><h1 class="text-6xl font-sans font-bold smh:pb-6"></h1></div><h2 class="text-balance hidden smh:block">Tauri App Development Demystified.</h2></div><div class="max-w-xs text-sm">By signing up, you agree to CrabNebula's <a class=underline href=https://crabnebula.dev/terms-of-service/>terms of service</a>, <a class=underline href=https://crabnebula.dev/privacy-policy/>privacy policy</a>, and <a class=underline href=https://crabnebula.dev/cookie-policy/>cookie policy</a>.`),Je=S("<div>");function tt(){async function n(){await L().emit("login")}const[e,t]=T(null),[i,s]=T(null);return fe(async()=>{await L().emit("state-changed","loggingIn");const a=await L().listen("auth-error",l=>{s(l.payload.kind==="license-not-found"?"License not found":l.payload.error)});t(()=>a)}),me(()=>{e()!==null&&e()}),(()=>{var a=Xe(),l=a.firstChild,o=l.firstChild,u=o.nextSibling,c=u.firstChild,h=c.firstChild,w=u.nextSibling,g=w.firstChild,oe=g.nextSibling,ue=oe.nextSibling,ce=ue.nextSibling,de=ce.nextSibling,he=de.nextSibling;return he.nextSibling,_e(o,"src",je),y(h,p(Ye,{})),y(l,p(J,{get when(){return i()},children:we=>(()=>{var H=Je();return y(H,we),H})()}),w),y(l,p(Ze,{type:"button",class:"mx-3 border rounded-md p-1 inline-flex items-center justify-center hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500",onClick:n,children:"Sign in with Cloud"}),w),y(w,p(Qe,{}),null),Ce(()=>ve(a,De("grid place-items-center h-screen","bg-cn-950 bg-gradient-to-tr to-transparent via-transparent via-75% from-purple-800/20 overflow-x-hidden"))),a})()}export{tt as default};