tauri-plugin-devtools-app 2.1.4

Connect with the Devtools for Tauri application
1
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const y={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Ce(this.context.count)},getNextContextId(){return Ce(this.context.count++)}};function Ce(e){const t=String(e),n=t.length-1;return y.context.id+(n?String.fromCharCode(96+n):"")+t}function z(e){y.context=e}const $e=!1,rt=(e,t)=>e===t,se=Symbol("solid-proxy"),Ie=typeof Proxy=="function",st=Symbol("solid-track"),oe={equals:rt};let De=Ke;const M=1,ie=2,je={owned:null,cleanups:null,context:null,owner:null},fe={};var b=null;let de=null,ot=null,P=null,N=null,I=null,ae=0;function Y(e,t){const n=P,r=b,s=e.length===0,i=t===void 0?r:t,o=s?je:{owned:null,cleanups:null,context:i?i.context:null,owner:i},l=s?e:()=>e(()=>T(()=>Q(o)));b=o,P=null;try{return D(l,!0)}finally{P=n,b=r}}function k(e,t){t=t?Object.assign({},oe,t):oe;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=s=>(typeof s=="function"&&(s=s(n.value)),Ve(n,s));return[Be.bind(n),r]}function it(e,t,n){const r=ue(e,t,!0,M);q(r)}function U(e,t,n){const r=ue(e,t,!1,M);q(r)}function lt(e,t,n){De=mt;const r=ue(e,t,!1,M);r.user=!0,I?I.push(r):q(r)}function v(e,t,n){n=n?Object.assign({},oe,n):oe;const r=ue(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,q(r),Be.bind(r)}function ct(e){return e&&typeof e=="object"&&"then"in e}function at(e,t,n){let r,s,i;r=!0,s=e,i={};let o=null,l=fe,c=null,f=!1,u="initialValue"in i,a=typeof r=="function"&&v(r);const d=new Set,[p,h]=(i.storage||k)(i.initialValue),[g,A]=k(void 0),[E,R]=k(void 0,{equals:!1}),[S,x]=k(u?"ready":"unresolved");y.context&&(c=y.getNextContextId(),i.ssrLoadFrom==="initial"?l=i.initialValue:y.load&&y.has(c)&&(l=y.load(c)));function C(m,w,L,O){return o===m&&(o=null,O!==void 0&&(u=!0),(m===l||w===l)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(O,{value:w})),l=fe,G(w,L)),w}function G(m,w){D(()=>{w===void 0&&h(()=>m),x(w!==void 0?"errored":u?"ready":"unresolved"),A(w);for(const L of d.keys())L.decrement();d.clear()},!1)}function H(){const m=dt,w=p(),L=g();if(L!==void 0&&!o)throw L;return P&&P.user,w}function W(m=!0){if(m!==!1&&f)return;f=!1;const w=a?a():r;if(w==null||w===!1){C(o,T(p));return}let L;const O=l!==fe?l:T(()=>{try{return s(w,{value:p(),refetching:m})}catch($){L=$}});if(L!==void 0){C(o,void 0,ne(L),w);return}else if(!ct(O))return C(o,O,void 0,w),O;return o=O,"v"in O?(O.s===1?C(o,O.v,void 0,w):C(o,void 0,ne(O.v),w),O):(f=!0,queueMicrotask(()=>f=!1),D(()=>{x(u?"refreshing":"pending"),R()},!1),O.then($=>C(O,$,void 0,w),$=>C(O,void 0,ne($),w)))}Object.defineProperties(H,{state:{get:()=>S()},error:{get:()=>g()},loading:{get(){const m=S();return m==="pending"||m==="refreshing"}},latest:{get(){if(!u)return H();const m=g();if(m&&!o)throw m;return p()}}});let ee=b;return a?it(()=>(ee=b,W(!1))):W(!1),[H,{refetch:m=>Ee(ee,()=>W(m)),mutate:h}]}function T(e){if(P===null)return e();const t=P;P=null;try{return e()}finally{P=t}}function Me(e,t,n){const r=Array.isArray(e);let s;return i=>{let o;if(r){o=Array(e.length);for(let c=0;c<e.length;c++)o[c]=e[c]()}else o=e();const l=T(()=>t(o,s,i));return s=o,l}}function Tn(e){lt(()=>T(e))}function Ae(e){return b===null||(b.cleanups===null?b.cleanups=[e]:b.cleanups.push(e)),e}function Fe(){return b}function Ee(e,t){const n=b,r=P;b=e,P=null;try{return D(t,!0)}catch(s){Pe(s)}finally{b=n,P=r}}function ut(e){const t=P,n=b;return Promise.resolve().then(()=>{P=t,b=n;let r;return D(e,!1),P=b=null,r?r.done:void 0})}const[Nn,kn]=k(!1);function _e(e,t){const n=Symbol("context");return{id:n,Provider:pt(n),defaultValue:e}}function ft(e){let t;return b&&b.context&&(t=b.context[e.id])!==void 0?t:e.defaultValue}function Ue(e){const t=v(e),n=v(()=>me(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let dt;function Be(){if(this.sources&&this.state)if(this.state===M)q(this);else{const e=N;N=null,D(()=>ce(this),!1),N=e}if(P){const e=this.observers?this.observers.length:0;P.sources?(P.sources.push(this),P.sourceSlots.push(e)):(P.sources=[this],P.sourceSlots=[e]),this.observers?(this.observers.push(P),this.observerSlots.push(P.sources.length-1)):(this.observers=[P],this.observerSlots=[P.sources.length-1])}return this.value}function Ve(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&D(()=>{for(let s=0;s<e.observers.length;s+=1){const i=e.observers[s],o=de&&de.running;o&&de.disposed.has(i),(o?!i.tState:!i.state)&&(i.pure?N.push(i):I.push(i),i.observers&&qe(i)),o||(i.state=M)}if(N.length>1e6)throw N=[],new Error},!1)),t}function q(e){if(!e.fn)return;Q(e);const t=ae;ht(e,e.value,t)}function ht(e,t,n){let r;const s=b,i=P;P=b=e;try{r=e.fn(t)}catch(o){return e.pure&&(e.state=M,e.owned&&e.owned.forEach(Q),e.owned=null),e.updatedAt=n+1,Pe(o)}finally{P=i,b=s}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Ve(e,r):e.value=r,e.updatedAt=n)}function ue(e,t,n,r=M,s){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:b,context:b?b.context:null,pure:n};return b===null||b!==je&&(b.owned?b.owned.push(i):b.owned=[i]),i}function le(e){if(e.state===0)return;if(e.state===ie)return ce(e);if(e.suspense&&T(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ae);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===M)q(e);else if(e.state===ie){const r=N;N=null,D(()=>ce(e,t[0]),!1),N=r}}function D(e,t){if(N)return e();let n=!1;t||(N=[]),I?n=!0:I=[],ae++;try{const r=e();return gt(n),r}catch(r){n||(I=null),N=null,Pe(r)}}function gt(e){if(N&&(Ke(N),N=null),e)return;const t=I;I=null,t.length&&D(()=>De(t),!1)}function Ke(e){for(let t=0;t<e.length;t++)le(e[t])}function mt(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:le(r)}if(y.context){if(y.count){y.effects||(y.effects=[]),y.effects.push(...e.slice(0,n));return}z()}for(y.effects&&(y.done||!y.count)&&(e=[...y.effects,...e],n+=y.effects.length,delete y.effects),t=0;t<n;t++)le(e[t])}function ce(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const s=r.state;s===M?r!==t&&(!r.updatedAt||r.updatedAt<ae)&&le(r):s===ie&&ce(r,t)}}}function qe(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=ie,n.pure?N.push(n):I.push(n),n.observers&&qe(n))}}function Q(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),s=n.observers;if(s&&s.length){const i=s.pop(),o=n.observerSlots.pop();r<s.length&&(i.sourceSlots[o]=r,s[r]=i,n.observerSlots[r]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Q(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Q(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function ne(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Pe(e,t=b){throw ne(e)}function me(e){if(typeof e=="function"&&!e.length)return me(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=me(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function pt(e,t){return function(r){let s;return U(()=>s=T(()=>(b.context={...b.context,[e]:r.value},Ue(()=>r.children))),void 0),s}}const yt=Symbol("fallback");function Oe(e){for(let t=0;t<e.length;t++)e[t]()}function wt(e,t,n={}){let r=[],s=[],i=[],o=0,l=t.length>1?[]:null;return Ae(()=>Oe(i)),()=>{let c=e()||[],f=c.length,u,a;return c[st],T(()=>{let p,h,g,A,E,R,S,x,C;if(f===0)o!==0&&(Oe(i),i=[],r=[],s=[],o=0,l&&(l=[])),n.fallback&&(r=[yt],s[0]=Y(G=>(i[0]=G,n.fallback())),o=1);else if(o===0){for(s=new Array(f),a=0;a<f;a++)r[a]=c[a],s[a]=Y(d);o=f}else{for(g=new Array(f),A=new Array(f),l&&(E=new Array(f)),R=0,S=Math.min(o,f);R<S&&r[R]===c[R];R++);for(S=o-1,x=f-1;S>=R&&x>=R&&r[S]===c[x];S--,x--)g[x]=s[S],A[x]=i[S],l&&(E[x]=l[S]);for(p=new Map,h=new Array(x+1),a=x;a>=R;a--)C=c[a],u=p.get(C),h[a]=u===void 0?-1:u,p.set(C,a);for(u=R;u<=S;u++)C=r[u],a=p.get(C),a!==void 0&&a!==-1?(g[a]=s[u],A[a]=i[u],l&&(E[a]=l[u]),a=h[a],p.set(C,a)):i[u]();for(a=R;a<f;a++)a in g?(s[a]=g[a],i[a]=A[a],l&&(l[a]=E[a],l[a](a))):s[a]=Y(d);s=s.slice(0,o=f),r=c.slice(0)}return s});function d(p){if(i[a]=p,l){const[h,g]=k(a);return l[a]=g,t(c[a],h)}return t(c[a])}}}function j(e,t){return T(()=>e(t||{}))}function te(){return!0}const pe={get(e,t,n){return t===se?n:e.get(t)},has(e,t){return t===se?!0:e.has(t)},set:te,deleteProperty:te,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:te,deleteProperty:te}},ownKeys(e){return e.keys()}};function he(e){return(e=typeof e=="function"?e():e)?e:{}}function bt(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function $n(...e){let t=!1;for(let o=0;o<e.length;o++){const l=e[o];t=t||!!l&&se in l,e[o]=typeof l=="function"?(t=!0,v(l)):l}if(Ie&&t)return new Proxy({get(o){for(let l=e.length-1;l>=0;l--){const c=he(e[l])[o];if(c!==void 0)return c}},has(o){for(let l=e.length-1;l>=0;l--)if(o in he(e[l]))return!0;return!1},keys(){const o=[];for(let l=0;l<e.length;l++)o.push(...Object.keys(he(e[l])));return[...new Set(o)]}},pe);const n={},r=Object.create(null);for(let o=e.length-1;o>=0;o--){const l=e[o];if(!l)continue;const c=Object.getOwnPropertyNames(l);for(let f=c.length-1;f>=0;f--){const u=c[f];if(u==="__proto__"||u==="constructor")continue;const a=Object.getOwnPropertyDescriptor(l,u);if(!r[u])r[u]=a.get?{enumerable:!0,configurable:!0,get:bt.bind(n[u]=[a.get.bind(l)])}:a.value!==void 0?a:void 0;else{const d=n[u];d&&(a.get?d.push(a.get.bind(l)):a.value!==void 0&&d.push(()=>a.value))}}}const s={},i=Object.keys(r);for(let o=i.length-1;o>=0;o--){const l=i[o],c=r[l];c&&c.get?Object.defineProperty(s,l,c):s[l]=c?c.value:void 0}return s}function At(e,...t){const n=t.length;if(Ie&&se in e){const s=n>1?t.flat():t[0],i=t.map(o=>new Proxy({get(l){return o.includes(l)?e[l]:void 0},has(l){return o.includes(l)&&l in e},keys(){return o.filter(l=>l in e)}},pe));return i.push(new Proxy({get(o){return s.includes(o)?void 0:e[o]},has(o){return s.includes(o)?!1:o in e},keys(){return Object.keys(e).filter(o=>!s.includes(o))}},pe)),i}const r=[];for(let s=0;s<=n;s++)r[s]={};for(const s of Object.getOwnPropertyNames(e)){let i=n;for(let c=0;c<t.length;c++)if(t[c].includes(s)){i=c;break}const o=Object.getOwnPropertyDescriptor(e,s);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[i][s]=o.value:Object.defineProperty(r[i],s,o)}return r}function Et(e){let t,n;const r=s=>{const i=y.context;if(i){const[l,c]=k();y.count||(y.count=0),y.count++,(n||(n=e())).then(f=>{!y.done&&z(i),y.count--,c(()=>f.default),z()}),t=l}else if(!t){const[l]=at(()=>(n||(n=e())).then(c=>c.default));t=l}let o;return v(()=>(o=t())?T(()=>{if(!i||y.done)return o(s);const l=y.context;z(i);const c=o(s);return z(l),c}):"")};return r.preload=()=>n||((n=e()).then(s=>t=()=>s.default),n),r}const Pt=e=>`Stale read from <${e}>.`;function In(e){const t="fallback"in e&&{fallback:()=>e.fallback};return v(wt(()=>e.each,e.children,t||void 0))}function Ge(e){const t=e.keyed,n=v(()=>e.when,void 0,void 0),r=t?n:v(n,void 0,{equals:(s,i)=>!s==!i});return v(()=>{const s=r();if(s){const i=e.children;return typeof i=="function"&&i.length>0?T(()=>i(t?s:()=>{if(!T(r))throw Pt("Show");return n()})):i}return e.fallback},void 0,void 0)}const St=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],xt=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...St]),vt=new Set(["innerHTML","textContent","innerText","children"]),Ct=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Ot=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function Lt(e,t){const n=Ot[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Rt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Tt=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Nt={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},kt=e=>v(()=>e());function $t(e,t,n){let r=n.length,s=t.length,i=r,o=0,l=0,c=t[s-1].nextSibling,f=null;for(;o<s||l<i;){if(t[o]===n[l]){o++,l++;continue}for(;t[s-1]===n[i-1];)s--,i--;if(s===o){const u=i<r?l?n[l-1].nextSibling:n[i-l]:c;for(;l<i;)e.insertBefore(n[l++],u)}else if(i===l)for(;o<s;)(!f||!f.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[i-1]&&n[l]===t[s-1]){const u=t[--s].nextSibling;e.insertBefore(n[l++],t[o++].nextSibling),e.insertBefore(n[--i],u),t[s]=n[i]}else{if(!f){f=new Map;let a=l;for(;a<i;)f.set(n[a],a++)}const u=f.get(t[o]);if(u!=null)if(l<u&&u<i){let a=o,d=1,p;for(;++a<s&&a<i&&!((p=f.get(t[a]))==null||p!==u+d);)d++;if(d>u-l){const h=t[o];for(;l<u;)e.insertBefore(n[l++],h)}else e.replaceChild(n[l++],t[o++])}else o++;else t[o++].remove()}}}const Le="_$DX_DELEGATE";function It(e,t,n,r={}){let s;return Y(i=>{s=i,t===document?e():Kt(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{s(),t.textContent=""}}function Dn(e,t,n,r){let s;const i=()=>{const l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},o=()=>(s||(s=i())).cloneNode(!0);return o.cloneNode=o,o}function He(e,t=window.document){const n=t[Le]||(t[Le]=new Set);for(let r=0,s=e.length;r<s;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Wt))}}function ye(e,t,n){B(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Dt(e,t,n,r){B(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function jt(e,t,n){B(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function Mt(e,t){B(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ft(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const s=n[0];e.addEventListener(t,n[0]=i=>s.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function _t(e,t,n={}){const r=Object.keys(t||{}),s=Object.keys(n);let i,o;for(i=0,o=s.length;i<o;i++){const l=s[i];!l||l==="undefined"||t[l]||(Re(e,l,!1),delete n[l])}for(i=0,o=r.length;i<o;i++){const l=r[i],c=!!t[l];!l||l==="undefined"||n[l]===c||!c||(Re(e,l,!0),n[l]=c)}return n}function Ut(e,t,n){if(!t)return n?ye(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let s,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)s=t[i],s!==n[i]&&(r.setProperty(i,s),n[i]=s);return n}function Bt(e,t={},n,r){const s={};return U(()=>s.children=Z(e,t.children,s.children)),U(()=>typeof t.ref=="function"&&Vt(t.ref,e)),U(()=>qt(e,t,n,!0,s,!0)),s}function Vt(e,t,n){return T(()=>e(t,n))}function Kt(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Z(e,t,r,n);U(s=>Z(e,t(),s,n),r)}function qt(e,t,n,r,s={},i=!1){t||(t={});for(const o in s)if(!(o in t)){if(o==="children")continue;s[o]=Te(e,o,null,s[o],n,i,t)}for(const o in t){if(o==="children")continue;const l=t[o];s[o]=Te(e,o,l,s[o],n,i,t)}}function Gt(e){let t,n;return!B()||!(t=y.registry.get(n=Xt()))?e():(y.completed&&y.completed.add(t),y.registry.delete(n),t)}function B(e){return!!y.context&&!y.done&&(!e||e.isConnected)}function Ht(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Re(e,t,n){const r=t.trim().split(/\s+/);for(let s=0,i=r.length;s<i;s++)e.classList.toggle(r[s],n)}function Te(e,t,n,r,s,i,o){let l,c,f,u,a;if(t==="style")return Ut(e,n,r);if(t==="classList")return _t(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const d=t.slice(3);r&&e.removeEventListener(d,r,typeof r!="function"&&r),n&&e.addEventListener(d,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const d=t.slice(10);r&&e.removeEventListener(d,r,!0),n&&e.addEventListener(d,n,!0)}else if(t.slice(0,2)==="on"){const d=t.slice(2).toLowerCase(),p=Rt.has(d);if(!p&&r){const h=Array.isArray(r)?r[0]:r;e.removeEventListener(d,h)}(p||n)&&(Ft(e,d,n,p),p&&He([d]))}else if(t.slice(0,5)==="attr:")ye(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")jt(e,t.slice(5),n);else if((a=t.slice(0,5)==="prop:")||(f=vt.has(t))||!s&&((u=Lt(t,e.tagName))||(c=xt.has(t)))||(l=e.nodeName.includes("-")||"is"in o)){if(a)t=t.slice(5),c=!0;else if(B(e))return n;t==="class"||t==="className"?Mt(e,n):l&&!c&&!f?e[Ht(t)]=n:e[u||t]=n}else{const d=s&&t.indexOf(":")>-1&&Nt[t.split(":")[0]];d?Dt(e,d,t,n):ye(e,Ct[t]||t,n)}return n}function Wt(e){if(y.registry&&y.events&&y.events.find(([c,f])=>f===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,s=e.currentTarget,i=c=>Object.defineProperty(e,"target",{configurable:!0,value:c}),o=()=>{const c=t[n];if(c&&!t.disabled){const f=t[`${n}Data`];if(f!==void 0?c.call(t,f,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},l=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),y.registry&&!y.done&&(y.done=_$HY.done=!0),e.composedPath){const c=e.composedPath();i(c[0]);for(let f=0;f<c.length-2&&(t=c[f],!!o());f++){if(t._$host){t=t._$host,l();break}if(t.parentNode===s)break}}else l();i(r)}function Z(e,t,n,r,s){const i=B(e);if(i){!n&&(n=[...e.childNodes]);let c=[];for(let f=0;f<n.length;f++){const u=n[f];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():c.push(u)}n=c}for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(i||o==="number"&&(t=t.toString(),t===n))return n;if(l){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=K(e,n,r,c)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean"){if(i)return n;n=K(e,n,r)}else{if(o==="function")return U(()=>{let c=t();for(;typeof c=="function";)c=c();n=Z(e,c,n,r)}),()=>n;if(Array.isArray(t)){const c=[],f=n&&Array.isArray(n);if(we(c,t,n,s))return U(()=>n=Z(e,c,n,r,!0)),()=>n;if(i){if(!c.length)return n;if(r===void 0)return n=[...e.childNodes];let u=c[0];if(u.parentNode!==e)return n;const a=[u];for(;(u=u.nextSibling)!==r;)a.push(u);return n=a}if(c.length===0){if(n=K(e,n,r),l)return n}else f?n.length===0?Ne(e,c,r):$t(e,n,c):(n&&K(e),Ne(e,c));n=c}else if(t.nodeType){if(i&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=K(e,n,r,t);K(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function we(e,t,n,r){let s=!1;for(let i=0,o=t.length;i<o;i++){let l=t[i],c=n&&n[e.length],f;if(!(l==null||l===!0||l===!1))if((f=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))s=we(e,l,c)||s;else if(f==="function")if(r){for(;typeof l=="function";)l=l();s=we(e,Array.isArray(l)?l:[l],Array.isArray(c)?c:[c])||s}else e.push(l),s=!0;else{const u=String(l);c&&c.nodeType===3&&c.data===u?e.push(c):e.push(document.createTextNode(u))}}return s}function Ne(e,t,n=null){for(let r=0,s=t.length;r<s;r++)e.insertBefore(t[r],n)}function K(e,t,n,r){if(n===void 0)return e.textContent="";const s=r||document.createTextNode("");if(t.length){let i=!1;for(let o=t.length-1;o>=0;o--){const l=t[o];if(s!==l){const c=l.parentNode===e;!i&&!o?c?e.replaceChild(s,l):e.insertBefore(s,n):c&&l.remove()}else i=!0}}else e.insertBefore(s,n);return[s]}function Xt(){return y.getNextContextId()}const zt=!1,Yt="http://www.w3.org/2000/svg";function Jt(e,t=!1,n=void 0){return t?document.createElementNS(Yt,e):document.createElement(e,{is:n})}function Qt(e,t){const n=v(e);return v(()=>{const r=n();switch(typeof r){case"function":return T(()=>r(t));case"string":const s=Tt.has(r),i=y.context?Gt():Jt(r,s,T(()=>t.is));return Bt(i,t,s),i}})}function jn(e){const[,t]=At(e,["component"]);return Qt(()=>e.component,t)}const Zt="modulepreload",en=function(e){return"/"+e},ke={},tn=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(u=>Promise.resolve(u).then(a=>({status:"fulfilled",value:a}),a=>({status:"rejected",reason:a}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=c(n.map(f=>{if(f=en(f),f in ke)return;ke[f]=!0;const u=f.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${a}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Zt,u||(d.as="script"),d.crossOrigin="",d.href=f,l&&d.setAttribute("nonce",l),document.head.appendChild(d),u)return new Promise((p,h)=>{d.addEventListener("load",p),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${f}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return s.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})};function We(){let e=new Set;function t(s){return e.add(s),()=>e.delete(s)}let n=!1;function r(s,i){if(n)return!(n=!1);const o={to:s,options:i,defaultPrevented:!1,preventDefault:()=>o.defaultPrevented=!0};for(const l of e)l.listener({...o,from:l.location,retry:c=>{c&&(n=!0),l.navigate(s,{...i,resolve:!1})}});return!o.defaultPrevented}return{subscribe:t,confirm:r}}let be;function Se(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),be=window.history.state._depth}Se();function nn(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function rn(e,t){let n=!1;return()=>{const r=be;Se();const s=r==null?null:be-r;if(n){n=!1;return}s&&t(s)?(n=!0,window.history.go(-s)):e()}}const sn=/^(?:[a-z0-9]+:)?\/\//i,on=/^\/+|(\/)\/+$/g,Xe="http://sr";function J(e,t=!1){const n=e.replace(on,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function re(e,t,n){if(sn.test(t))return;const r=J(e),s=n&&J(n);let i="";return!s||t.startsWith("/")?i=r:s.toLowerCase().indexOf(r.toLowerCase())!==0?i=r+s:i=s,(i||"/")+J(t,!i)}function ln(e,t){return J(e).replace(/\/*(\*.*)?$/g,"")+J(t)}function ze(e){const t={};return e.searchParams.forEach((n,r)=>{t[r]=n}),t}function cn(e,t,n){const[r,s]=e.split("/*",2),i=r.split("/").filter(Boolean),o=i.length;return l=>{const c=l.split("/").filter(Boolean),f=c.length-o;if(f<0||f>0&&s===void 0&&!t)return null;const u={path:o?"":"/",params:{}},a=d=>n===void 0?void 0:n[d];for(let d=0;d<o;d++){const p=i[d],h=c[d],g=p[0]===":",A=g?p.slice(1):p;if(g&&ge(h,a(A)))u.params[A]=h;else if(g||!ge(h,p))return null;u.path+=`/${h}`}if(s){const d=f?c.slice(-f).join("/"):"";if(ge(d,a(s)))u.params[s]=d;else return null}return u}}function ge(e,t){const n=r=>r.localeCompare(e,void 0,{sensitivity:"base"})===0;return t===void 0?!0:typeof t=="string"?n(t):typeof t=="function"?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp?t.test(e):!1}function an(e){const[t,n]=e.pattern.split("/*",2),r=t.split("/").filter(Boolean);return r.reduce((s,i)=>s+(i.startsWith(":")?2:3),r.length-(n===void 0?0:1))}function Ye(e){const t=new Map,n=Fe();return new Proxy({},{get(r,s){return t.has(s)||Ee(n,()=>t.set(s,v(()=>e()[s]))),t.get(s)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())}})}function Je(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length);const s=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)s.push(n+=t[1]),r=r.slice(t[0].length);return Je(r).reduce((i,o)=>[...i,...s.map(l=>l+o)],[])}const un=100,fn=_e(),xe=_e();function dn(e,t=""){const{component:n,load:r,children:s,info:i}=e,o=!s||Array.isArray(s)&&!s.length,l={key:e,component:n,load:r,info:i};return Qe(e.path).reduce((c,f)=>{for(const u of Je(f)){const a=ln(t,u);let d=o?a:a.split("/*",1)[0];d=d.split("/").map(p=>p.startsWith(":")||p.startsWith("*")?p:encodeURIComponent(p)).join("/"),c.push({...l,originalPath:u,pattern:d,matcher:cn(d,!o,e.matchFilters)})}return c},[])}function hn(e,t=0){return{routes:e,score:an(e[e.length-1])*1e4-t,matcher(n){const r=[];for(let s=e.length-1;s>=0;s--){const i=e[s],o=i.matcher(n);if(!o)return null;r.unshift({...o,route:i})}return r}}}function Qe(e){return Array.isArray(e)?e:[e]}function Ze(e,t="",n=[],r=[]){const s=Qe(e);for(let i=0,o=s.length;i<o;i++){const l=s[i];if(l&&typeof l=="object"){l.hasOwnProperty("path")||(l.path="");const c=dn(l,t);for(const f of c){n.push(f);const u=Array.isArray(l.children)&&l.children.length===0;if(l.children&&!u)Ze(l.children,f.pattern,n,r);else{const a=hn([...n],r.length);r.push(a)}n.pop()}}}return n.length?r:r.sort((i,o)=>o.score-i.score)}function et(e,t){for(let n=0,r=e.length;n<r;n++){const s=e[n].matcher(t);if(s)return s}return[]}function gn(e,t){const n=new URL(Xe),r=v(c=>{const f=e();try{return new URL(f,n)}catch{return console.error(`Invalid path ${f}`),c}},n,{equals:(c,f)=>c.href===f.href}),s=v(()=>r().pathname),i=v(()=>r().search,!0),o=v(()=>r().hash),l=()=>"";return{get pathname(){return s()},get search(){return i()},get hash(){return o()},get state(){return t()},get key(){return l()},query:Ye(Me(i,()=>ze(r())))}}let _;function mn(e,t,n,r={}){const{signal:[s,i],utils:o={}}=e,l=o.parsePath||(m=>m),c=o.renderPath||(m=>m),f=o.beforeLeave||We(),u=re("",r.base||"");if(u===void 0)throw new Error(`${u} is not a valid base path`);u&&!s().value&&i({value:u,replace:!0,scroll:!1});const[a,d]=k(!1),p=async m=>{d(!0);try{await ut(m)}finally{d(!1)}},[h,g]=k(s().value),[A,E]=k(s().state),R=gn(h,A),S=[],x=k([]),C={pattern:u,params:{},path:()=>u,outlet:()=>null,resolvePath(m){return re(u,m)}};return U(()=>{const{value:m,state:w}=s();T(()=>{m!==h()&&p(()=>{_="native",g(m),E(w),x[1]([])}).then(()=>{_=void 0})})}),{base:C,location:R,isRouting:a,renderPath:c,parsePath:l,navigatorFactory:H,beforeLeave:f,preloadRoute:ee,singleFlight:r.singleFlight===void 0?!0:r.singleFlight,submissions:x};function G(m,w,L){T(()=>{if(typeof w=="number"){w&&(o.go?o.go(w):console.warn("Router integration does not support relative routing"));return}const{replace:O,resolve:$,scroll:V,state:X}={replace:!1,resolve:!0,scroll:!0,...L},F=$?m.resolvePath(w):re("",w);if(F===void 0)throw new Error(`Path '${w}' is not a routable path`);if(S.length>=un)throw new Error("Too many redirects");const ve=h();if((F!==ve||X!==A())&&!zt){if(f.confirm(F,L)){const nt=S.push({value:ve,replace:O,scroll:V,state:A()});p(()=>{_="navigate",g(F),E(X),x[1]([])}).then(()=>{S.length===nt&&(_=void 0,W({value:F,state:X}))})}}})}function H(m){return m=m||ft(xe)||C,(w,L)=>G(m,w,L)}function W(m){const w=S[0];w&&((m.value!==w.value||m.state!==w.state)&&i({...m,replace:w.replace,scroll:w.scroll}),S.length=0)}function ee(m,w){const L=et(n(),m.pathname),O=_;_="preload";for(let $ in L){const{route:V,params:X}=L[$];V.component&&V.component.preload&&V.component.preload();const{load:F}=V;w&&F&&Ee(t(),()=>F({params:X,location:{pathname:m.pathname,search:m.search,hash:m.hash,query:ze(m),state:null,key:""},intent:"preload"}))}_=O}}function pn(e,t,n,r,s){const{base:i,location:o}=e,{pattern:l,component:c,load:f}=r().route,u=v(()=>r().path);c&&c.preload&&c.preload();const a=f?f({params:s,location:o,intent:_||"initial"}):void 0;return{parent:t,pattern:l,path:u,params:s,outlet:()=>c?j(c,{params:s,location:o,data:a,get children(){return n()}}):n(),resolvePath(p){return re(i.path(),p,u())}}}const yn=e=>t=>{const{base:n}=t,r=Ue(()=>t.children),s=v(()=>Ze(t.root?{component:t.root,load:t.rootLoad,children:r()}:r(),t.base||""));let i;const o=mn(e,()=>i,s,{base:n,singleFlight:t.singleFlight});return e.create&&e.create(o),j(fn.Provider,{value:o,get children(){return[kt(()=>(i=Fe())&&null),j(wn,{routerState:o,get branches(){return s()}})]}})};function wn(e){const t=v(()=>et(e.branches,e.routerState.location.pathname)),n=Ye(()=>{const o=t(),l={};for(let c=0;c<o.length;c++)Object.assign(l,o[c].params);return l}),r=[];let s;const i=v(Me(t,(o,l,c)=>{let f=l&&o.length===l.length;const u=[];for(let a=0,d=o.length;a<d;a++){const p=l&&l[a],h=o[a];c&&p&&h.route.key===p.route.key?u[a]=c[a]:(f=!1,r[a]&&r[a](),Y(g=>{r[a]=g,u[a]=pn(e.routerState,u[a-1]||e.routerState.base,bn(()=>i()[a+1]),()=>t()[a],n)}))}return r.splice(o.length).forEach(a=>a()),c&&f?c:(s=u[0],u)}));return j(Ge,{get when(){return i()&&s},keyed:!0,children:o=>j(xe.Provider,{value:o,get children(){return o.outlet()}})})}const bn=e=>()=>j(Ge,{get when(){return e()},keyed:!0,children:t=>j(xe.Provider,{value:t,get children(){return t.outlet()}})});function An([e,t],n,r){return[e,r?s=>t(r(s)):t]}function En(e){if(e==="#")return null;try{return document.querySelector(e)}catch{return null}}function Pn(e){let t=!1;const n=s=>typeof s=="string"?{value:s}:s,r=An(k(n(e.get()),{equals:(s,i)=>s.value===i.value}),void 0,s=>(!t&&e.set(s),s));return e.init&&Ae(e.init((s=e.get())=>{t=!0,r[1](n(s)),t=!1})),yn({signal:r,create:e.create,utils:e.utils})}function Sn(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function xn(e,t){const n=En(`#${e}`);n?n.scrollIntoView():t&&window.scrollTo(0,0)}const vn=new Map;function Cn(e=!0,t=!1,n="/_server"){return r=>{const s=r.base.path(),i=r.navigatorFactory(r.base);let o={};function l(h){return h.namespaceURI==="http://www.w3.org/2000/svg"}function c(h){if(h.defaultPrevented||h.button!==0||h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)return;const g=h.composedPath().find(C=>C instanceof Node&&C.nodeName.toUpperCase()==="A");if(!g||t&&!g.hasAttribute("link"))return;const A=l(g),E=A?g.href.baseVal:g.href;if((A?g.target.baseVal:g.target)||!E&&!g.hasAttribute("state"))return;const S=(g.getAttribute("rel")||"").split(/\s+/);if(g.hasAttribute("download")||S&&S.includes("external"))return;const x=A?new URL(E,document.baseURI):new URL(E);if(!(x.origin!==window.location.origin||s&&x.pathname&&!x.pathname.toLowerCase().startsWith(s.toLowerCase())))return[g,x]}function f(h){const g=c(h);if(!g)return;const[A,E]=g,R=r.parsePath(E.pathname+E.search+E.hash),S=A.getAttribute("state");h.preventDefault(),i(R,{resolve:!1,replace:A.hasAttribute("replace"),scroll:!A.hasAttribute("noscroll"),state:S&&JSON.parse(S)})}function u(h){const g=c(h);if(!g)return;const[A,E]=g;o[E.pathname]||r.preloadRoute(E,A.getAttribute("preload")!=="false")}function a(h){const g=c(h);if(!g)return;const[A,E]=g;o[E.pathname]||(o[E.pathname]=setTimeout(()=>{r.preloadRoute(E,A.getAttribute("preload")!=="false"),delete o[E.pathname]},200))}function d(h){const g=c(h);if(!g)return;const[,A]=g;o[A.pathname]&&(clearTimeout(o[A.pathname]),delete o[A.pathname])}function p(h){let g=h.submitter&&h.submitter.hasAttribute("formaction")?h.submitter.getAttribute("formaction"):h.target.getAttribute("action");if(!g)return;if(!g.startsWith("https://action/")){const E=new URL(g,Xe);if(g=r.parsePath(E.pathname+E.search),!g.startsWith(n))return}if(h.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const A=vn.get(g);if(A){h.preventDefault();const E=new FormData(h.target);h.submitter&&h.submitter.name&&E.append(h.submitter.name,h.submitter.value),A.call(r,E)}}He(["click","submit"]),document.addEventListener("click",f),e&&(document.addEventListener("mouseover",a),document.addEventListener("mouseout",d),document.addEventListener("focusin",u),document.addEventListener("touchstart",u)),document.addEventListener("submit",p),Ae(()=>{document.removeEventListener("click",f),e&&(document.removeEventListener("mouseover",a),document.removeEventListener("mouseout",d),document.removeEventListener("focusin",u),document.removeEventListener("touchstart",u)),document.removeEventListener("submit",p)})}}function On(e){const t=()=>({value:window.location.pathname+window.location.search+window.location.hash,state:window.history.state}),n=We();return Pn({get:t,set({value:r,replace:s,scroll:i,state:o}){s?window.history.replaceState(nn(o),"",r):window.history.pushState(o,"",r),xn(window.location.hash.slice(1),i),Se()},init:r=>Sn(window,"popstate",rn(r,s=>{if(s&&s<0)return!n.confirm(s);{const i=t();return!n.confirm(i.value,{state:i.state})}})),create:Cn(e.preload,e.explicitLinks,e.actionBase),utils:{go:r=>window.history.go(r),beforeLeave:n}})(e)}const Ln=[{path:"/",component:Et(()=>tn(()=>import("./chunks/login.js"),[]))},{path:"*",component:()=>{throw new Error("404 - Not Found: The specified path was not found")}}];function Rn(){return j(On,{children:Ln})}const tt=document.getElementById("app");if(!tt)throw new Error("No #app element found in the DOM.");It(()=>j(Rn,{}),tt);export{se as $,jn as D,In as F,Ge as S,lt as a,j as b,k as c,Ue as d,v as e,kt as f,Ae as g,ye as h,Kt as i,U as j,Mt as k,$n as m,Tn as o,At as s,Dn as t};