studiograph 1.3.20 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/server/index.js +1 -1
  2. package/dist/server/index.js.map +1 -1
  3. package/dist/server/routes/auth-api.d.ts +1 -1
  4. package/dist/server/routes/auth-api.js +2 -1
  5. package/dist/server/routes/auth-api.js.map +1 -1
  6. package/dist/server/routes/insights-api.d.ts +7 -0
  7. package/dist/server/routes/insights-api.js +47 -0
  8. package/dist/server/routes/insights-api.js.map +1 -0
  9. package/dist/services/insights.d.ts +31 -0
  10. package/dist/services/insights.js +174 -0
  11. package/dist/services/insights.js.map +1 -0
  12. package/dist/web/_app/immutable/assets/{AppShell.DVyh4lcT.css → AppShell.DFQamTEo.css} +1 -1
  13. package/dist/web/_app/immutable/chunks/{BXo5rIdU.js → 2BuoqS97.js} +2 -2
  14. package/dist/web/_app/immutable/chunks/{wnPynj2h.js → 5Q3iZDZU.js} +1 -1
  15. package/dist/web/_app/immutable/chunks/{CGoS23Dn.js → BJlvZ6_w.js} +1 -1
  16. package/dist/web/_app/immutable/chunks/{DP5Y1V5j.js → BODLxJgV.js} +1 -1
  17. package/dist/web/_app/immutable/chunks/{DbczE2vm.js → BONf5_Rr.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{1YZNbPuF.js → BYMNYbod.js} +1 -1
  19. package/dist/web/_app/immutable/chunks/{DZnk0U6X.js → Bl-KiNAn.js} +1 -1
  20. package/dist/web/_app/immutable/chunks/{DJumtN6X.js → C6O5NX2h.js} +2 -2
  21. package/dist/web/_app/immutable/chunks/{DDuM5_bq.js → CBPCy2wh.js} +1 -1
  22. package/dist/web/_app/immutable/chunks/CTpBBS5W.js +2 -0
  23. package/dist/web/_app/immutable/chunks/{Cd2AAfar.js → CbWA7IDo.js} +1 -1
  24. package/dist/web/_app/immutable/chunks/{BWbpPmKt.js → D2e_f7WK.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/{DZ7uBozP.js → D7wFh3Y6.js} +23 -23
  26. package/dist/web/_app/immutable/chunks/{BBKhbmnU.js → Da6P0VJZ.js} +1 -1
  27. package/dist/web/_app/immutable/chunks/{SzjCv9g2.js → DbMgkTYM.js} +1 -1
  28. package/dist/web/_app/immutable/chunks/DkBrGIdc.js +1 -0
  29. package/dist/web/_app/immutable/chunks/VncLXI-e.js +1 -0
  30. package/dist/web/_app/immutable/chunks/kW-E0CmU.js +1 -0
  31. package/dist/web/_app/immutable/chunks/uZSxhCI4.js +1 -0
  32. package/dist/web/_app/immutable/entry/app.CaQFD8Sp.js +2 -0
  33. package/dist/web/_app/immutable/entry/start.DXYjdKxA.js +1 -0
  34. package/dist/web/_app/immutable/nodes/0.BFYFTPQZ.js +10 -0
  35. package/dist/web/_app/immutable/nodes/{1.Bc1MepEl.js → 1.DSUtECoD.js} +1 -1
  36. package/dist/web/_app/immutable/nodes/{2.Dr5HuxKS.js → 2.FUuVOvKB.js} +1 -1
  37. package/dist/web/_app/immutable/nodes/3.CgL6-2JW.js +11 -0
  38. package/dist/web/_app/immutable/nodes/4.D4dn7z-O.js +4 -0
  39. package/dist/web/_app/immutable/nodes/5.B_Ktfrhu.js +2 -0
  40. package/dist/web/_app/immutable/nodes/6.OeYr_YON.js +1 -0
  41. package/dist/web/_app/immutable/nodes/7.VbcWnkhD.js +2 -0
  42. package/dist/web/_app/immutable/nodes/8.rD4JJv28.js +1 -0
  43. package/dist/web/_app/version.json +1 -1
  44. package/dist/web/index.html +10 -10
  45. package/package.json +1 -1
  46. package/dist/web/_app/immutable/chunks/BAoPZe8v.js +0 -1
  47. package/dist/web/_app/immutable/chunks/C5Jg9_3k.js +0 -1
  48. package/dist/web/_app/immutable/chunks/CkwRiDze.js +0 -1
  49. package/dist/web/_app/immutable/chunks/VEgGCdut.js +0 -2
  50. package/dist/web/_app/immutable/entry/app.CYqJAlgF.js +0 -2
  51. package/dist/web/_app/immutable/entry/start.B54V0Wim.js +0 -1
  52. package/dist/web/_app/immutable/nodes/0.Co4P2A7g.js +0 -10
  53. package/dist/web/_app/immutable/nodes/3.BsRqdsFZ.js +0 -11
  54. package/dist/web/_app/immutable/nodes/4.DMp14d8b.js +0 -4
  55. package/dist/web/_app/immutable/nodes/5.DG8tGegE.js +0 -2
  56. package/dist/web/_app/immutable/nodes/6.C_Uuh3Y1.js +0 -1
  57. package/dist/web/_app/immutable/nodes/7.D6ZnjxHd.js +0 -2
  58. package/dist/web/_app/immutable/nodes/8.CXi6tI0R.js +0 -1
@@ -1,2 +1,2 @@
1
- import{aE as ie,g as K,a3 as oe,ak as Q,L as le,aF as q,a4 as N,o as l,h as _,ab as m,aG as U,f as ue,z as $,a2 as fe,aH as z,Z as y,e as R,aI as x,Y as C,a0 as ce,aJ as G,aK as de,aL as X,aM as he,aN as _e,am as M,aO as O,aP as J,aQ as pe,aR as ee,G as te,an as ve,X as F,k as S,n as ge,D as me,aS as D,A as ye,E as be,aT as Ee,aU as Te,aV as we,S as Ne,aW as Re,aX as Se,q as A,aY as Ae,aZ as De,a_ as Le,a$ as ke,b0 as Me,b1 as Oe,C as B,b2 as P,F as Ie,i as xe,b3 as V,j as L,b4 as Ce,ay as Fe,b5 as Pe,at as Ve,p as We,au as Ye,b6 as He,b as $e}from"./Cd2AAfar.js";function Be(t){let e=0,r=Q(0),s;return()=>{ie()&&(K(r),oe(()=>(e===0&&(s=le(()=>t(()=>q(r)))),e+=1,()=>{N(()=>{e-=1,e===0&&(s?.(),s=void 0,q(r))})})))}}var je=ye|be;function qe(t,e,r,s){new Ue(t,e,r,s)}class Ue{parent;is_pending=!1;transform_error;#t;#v=_?l:null;#s;#u;#e;#a=null;#r=null;#n=null;#i=null;#f=0;#l=0;#c=!1;#d=new Set;#h=new Set;#o=null;#y=Be(()=>(this.#o=Q(this.#f),()=>{this.#o=null}));constructor(e,r,s,a){this.#t=e,this.#s=r,this.#u=n=>{var i=m;i.b=this,i.f|=U,s(n)},this.parent=m.b,this.transform_error=a??this.parent?.transform_error??(n=>n),this.#e=ue(()=>{if(_){const n=this.#v;$();const i=n.data===fe;if(n.data.startsWith(z)){const o=JSON.parse(n.data.slice(z.length));this.#E(o)}else i?this.#T():this.#b()}else this.#g()},je),_&&(this.#t=l)}#b(){try{this.#a=y(()=>this.#u(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#s.failed;r&&(this.#n=y(()=>{r(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#s.pending;e&&(this.is_pending=!0,this.#r=y(()=>e(this.#t)),N(()=>{var r=this.#i=document.createDocumentFragment(),s=R();r.append(s),this.#a=this.#p(()=>(x.ensure(),y(()=>this.#u(s)))),this.#l===0&&(this.#t.before(r),this.#i=null,C(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#f=0,this.#a=y(()=>{this.#u(this.#t)}),this.#l>0){var e=this.#i=document.createDocumentFragment();ce(this.#a,e);const r=this.#s.pending;this.#r=y(()=>r(this.#t))}else this.#_()}catch(r){this.error(r)}}#_(){this.is_pending=!1;for(const e of this.#d)G(e,de),X(e);for(const e of this.#h)G(e,he),X(e);this.#d.clear(),this.#h.clear()}defer_effect(e){_e(e,this.#d,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#p(e){var r=m,s=ee,a=te;M(this.#e),O(this.#e),J(this.#e.ctx);try{return e()}catch(n){return pe(n),null}finally{M(r),O(s),J(a)}}#m(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(e);return}this.#l+=e,this.#l===0&&(this.#_(),this.#r&&C(this.#r,()=>{this.#r=null}),this.#i&&(this.#t.before(this.#i),this.#i=null))}update_pending_count(e){this.#m(e),this.#f+=e,!(!this.#o||this.#c)&&(this.#c=!0,N(()=>{this.#c=!1,this.#o&&ve(this.#o,this.#f)}))}get_effect_pending(){return this.#y(),K(this.#o)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(!r&&!s)throw e;this.#a&&(F(this.#a),this.#a=null),this.#r&&(F(this.#r),this.#r=null),this.#n&&(F(this.#n),this.#n=null),_&&(S(this.#v),ge(),S(me()));var a=!1,n=!1;const i=()=>{if(a){Te();return}a=!0,n&&Ee(),this.#n!==null&&C(this.#n,()=>{this.#n=null}),this.#p(()=>{x.ensure(),this.#g()})},f=o=>{try{n=!0,r?.(o,i),n=!1}catch(u){D(u,this.#e&&this.#e.parent)}s&&(this.#n=this.#p(()=>{x.ensure();try{return y(()=>{var u=m;u.b=this,u.f|=U,s(this.#t,()=>o,()=>i)})}catch(u){return D(u,this.#e.parent),null}}))};N(()=>{var o;try{o=this.transform_error(e)}catch(u){D(u,this.#e&&this.#e.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(f,u=>D(u,this.#e&&this.#e.parent)):f(o)})}}function st(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ze=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function at(t){return ze.includes(t)}const Ge={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function it(t){return t=t.toLowerCase(),Ge[t]??t}const Xe=["touchstart","touchmove"];function Je(t){return Xe.includes(t)}const Ze=["textarea","script","style","title"];function ot(t){return Ze.includes(t)}const w=Symbol("events"),re=new Set,W=new Set;function ne(t,e,r,s={}){function a(n){if(s.capture||Y.call(e,n),!n.cancelBubble)return we(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?N(()=>{e.addEventListener(t,a,s)}):e.addEventListener(t,a,s),a}function lt(t,e,r,s={}){var a=ne(e,t,r,s);return()=>{t.removeEventListener(e,a,s)}}function ut(t,e,r,s,a){var n={capture:s,passive:a},i=ne(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Re(()=>{e.removeEventListener(t,i,n)})}function ft(t,e,r){(e[w]??={})[t]=r}function ct(t){for(var e=0;e<t.length;e++)re.add(t[e]);for(var r of W)r(t)}let Z=null;function Y(t){var e=this,r=e.ownerDocument,s=t.type,a=t.composedPath?.()||[],n=a[0]||t.target;Z=t;var i=0,f=Z===t&&t[w];if(f){var o=a.indexOf(f);if(o!==-1&&(e===document||e===window)){t[w]=e;return}var u=a.indexOf(e);if(u===-1)return;o<=u&&(i=o)}if(n=a[i]||t.target,n!==e){Ne(t,"currentTarget",{configurable:!0,get(){return n||r}});var b=ee,T=m;O(null),M(null);try{for(var g,d=[];n!==null;){var c=n.assignedSlot||n.parentNode||n.host||null;try{var h=n[w]?.[s];h!=null&&(!n.disabled||t.target===n)&&h.call(n,t)}catch(p){g?d.push(p):g=p}if(t.cancelBubble||c===e||c===null)break;n=c}if(g){for(let p of d)queueMicrotask(()=>{throw p});throw g}}finally{t[w]=e,delete t.currentTarget,O(b),M(T)}}}const Ke=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Qe(t){return Ke?.createHTML(t)??t}function se(t){var e=Se("template");return e.innerHTML=Qe(t.replaceAll("<!>","<!---->")),e.content}function v(t,e){var r=m;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function dt(t,e){var r=(e&De)!==0,s=(e&Le)!==0,a,n=!t.startsWith("<!>");return()=>{if(_)return v(l,null),l;a===void 0&&(a=se(n?t:"<!>"+t),r||(a=A(a)));var i=s||Ae?document.importNode(a,!0):a.cloneNode(!0);if(r){var f=A(i),o=i.lastChild;v(f,o)}else v(i,i);return i}}function et(t,e,r="svg"){var s=!t.startsWith("<!>"),a=`<${r}>${s?t:"<!>"+t}</${r}>`,n;return()=>{if(_)return v(l,null),l;if(!n){var i=se(a),f=A(i);n=A(f)}var o=n.cloneNode(!0);return v(o,o),o}}function ht(t,e){return et(t,e,"svg")}function _t(t=""){if(!_){var e=R(t+"");return v(e,e),e}var r=l;return r.nodeType!==ke?(r.before(r=R()),S(r)):Me(r),v(r,r),r}function pt(){if(_)return v(l,null),l;var t=document.createDocumentFragment(),e=document.createComment(""),r=R();return t.append(e,r),v(e,r),t}function vt(t,e){if(_){var r=m;((r.f&Oe)===0||r.nodes.end===null)&&(r.nodes.end=l),$();return}t!==null&&t.before(e)}function gt(){if(_&&l&&l.nodeType===B&&l.textContent?.startsWith("$")){const t=l.textContent.substring(1);return $(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function mt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=`${r}`)}function tt(t,e){return ae(t,e)}function yt(t,e){P(),e.intro=e.intro??!1;const r=e.target,s=_,a=l;try{for(var n=A(r);n&&(n.nodeType!==B||n.data!==Ie);)n=xe(n);if(!n)throw V;L(!0),S(n);const i=ae(t,{...e,anchor:n});return L(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw i;return i!==V&&console.warn("Failed to hydrate: ",i),e.recover===!1&&Ce(),P(),Fe(r),L(!1),tt(t,e)}finally{L(s),S(a)}}const k=new Map;function ae(t,{target:e,anchor:r,props:s={},events:a,context:n,intro:i=!0,transformError:f}){P();var o=void 0,u=Pe(()=>{var b=r??e.appendChild(R());qe(b,{pending:()=>{}},d=>{We({});var c=te;if(n&&(c.c=n),a&&(s.$$events=a),_&&v(d,null),o=t(d,s)||{},_&&(m.nodes.end=l,l===null||l.nodeType!==B||l.data!==Ye))throw He(),V;$e()},f);var T=new Set,g=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!T.has(h)){T.add(h);var p=Je(h);for(const I of[e,document]){var E=k.get(I);E===void 0&&(E=new Map,k.set(I,E));var j=E.get(h);j===void 0?(I.addEventListener(h,Y,{passive:p}),E.set(h,1)):E.set(h,j+1)}}}};return g(Ve(re)),W.add(g),()=>{for(var d of T)for(const p of[e,document]){var c=k.get(p),h=c.get(d);--h==0?(p.removeEventListener(d,Y),c.delete(d),c.size===0&&k.delete(p)):c.set(d,h)}W.delete(g),b!==r&&b.parentNode?.removeChild(b)}});return H.set(o,u),o}let H=new WeakMap;function bt(t,e){const r=H.get(t);return r?(H.delete(t),r(e)):Promise.resolve()}const rt="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(rt);export{vt as a,dt as b,pt as c,ft as d,ut as e,ht as f,ct as g,yt as h,st as i,ne as j,at as k,Be as l,tt as m,it as n,lt as o,v as p,ot as q,gt as r,mt as s,_t as t,bt as u};
1
+ import{aE as ie,g as K,a4 as oe,ak as Q,L as le,aF as U,a5 as N,o as l,h as _,ab as m,aG as q,f as ue,z as $,a3 as fe,aH as z,_ as y,e as R,aI as x,Z as C,a1 as ce,aJ as G,aK as de,aL as X,aM as he,aN as _e,am as M,aO as O,aP as J,aQ as pe,aR as ee,G as te,an as ve,Y as F,k as A,n as ge,D as me,aS as D,A as ye,E as be,aT as Ee,aU as Te,aV as we,U as Ne,aW as Re,aX as Ae,q as S,aY as Se,aZ as De,a_ as Le,a$ as ke,b0 as Me,b1 as Oe,C as B,b2 as P,F as Ie,i as xe,b3 as V,j as L,b4 as Ce,ay as Fe,b5 as Pe,at as Ve,p as We,au as Ye,b6 as He,b as $e}from"./CbWA7IDo.js";function Be(t){let e=0,r=Q(0),s;return()=>{ie()&&(K(r),oe(()=>(e===0&&(s=le(()=>t(()=>U(r)))),e+=1,()=>{N(()=>{e-=1,e===0&&(s?.(),s=void 0,U(r))})})))}}var je=ye|be;function Ue(t,e,r,s){new qe(t,e,r,s)}class qe{parent;is_pending=!1;transform_error;#t;#v=_?l:null;#s;#u;#e;#a=null;#r=null;#n=null;#i=null;#f=0;#l=0;#c=!1;#d=new Set;#h=new Set;#o=null;#y=Be(()=>(this.#o=Q(this.#f),()=>{this.#o=null}));constructor(e,r,s,a){this.#t=e,this.#s=r,this.#u=n=>{var i=m;i.b=this,i.f|=q,s(n)},this.parent=m.b,this.transform_error=a??this.parent?.transform_error??(n=>n),this.#e=ue(()=>{if(_){const n=this.#v;$();const i=n.data===fe;if(n.data.startsWith(z)){const o=JSON.parse(n.data.slice(z.length));this.#E(o)}else i?this.#T():this.#b()}else this.#g()},je),_&&(this.#t=l)}#b(){try{this.#a=y(()=>this.#u(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#s.failed;r&&(this.#n=y(()=>{r(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#s.pending;e&&(this.is_pending=!0,this.#r=y(()=>e(this.#t)),N(()=>{var r=this.#i=document.createDocumentFragment(),s=R();r.append(s),this.#a=this.#p(()=>(x.ensure(),y(()=>this.#u(s)))),this.#l===0&&(this.#t.before(r),this.#i=null,C(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#f=0,this.#a=y(()=>{this.#u(this.#t)}),this.#l>0){var e=this.#i=document.createDocumentFragment();ce(this.#a,e);const r=this.#s.pending;this.#r=y(()=>r(this.#t))}else this.#_()}catch(r){this.error(r)}}#_(){this.is_pending=!1;for(const e of this.#d)G(e,de),X(e);for(const e of this.#h)G(e,he),X(e);this.#d.clear(),this.#h.clear()}defer_effect(e){_e(e,this.#d,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#p(e){var r=m,s=ee,a=te;M(this.#e),O(this.#e),J(this.#e.ctx);try{return e()}catch(n){return pe(n),null}finally{M(r),O(s),J(a)}}#m(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(e);return}this.#l+=e,this.#l===0&&(this.#_(),this.#r&&C(this.#r,()=>{this.#r=null}),this.#i&&(this.#t.before(this.#i),this.#i=null))}update_pending_count(e){this.#m(e),this.#f+=e,!(!this.#o||this.#c)&&(this.#c=!0,N(()=>{this.#c=!1,this.#o&&ve(this.#o,this.#f)}))}get_effect_pending(){return this.#y(),K(this.#o)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(!r&&!s)throw e;this.#a&&(F(this.#a),this.#a=null),this.#r&&(F(this.#r),this.#r=null),this.#n&&(F(this.#n),this.#n=null),_&&(A(this.#v),ge(),A(me()));var a=!1,n=!1;const i=()=>{if(a){Te();return}a=!0,n&&Ee(),this.#n!==null&&C(this.#n,()=>{this.#n=null}),this.#p(()=>{x.ensure(),this.#g()})},f=o=>{try{n=!0,r?.(o,i),n=!1}catch(u){D(u,this.#e&&this.#e.parent)}s&&(this.#n=this.#p(()=>{x.ensure();try{return y(()=>{var u=m;u.b=this,u.f|=q,s(this.#t,()=>o,()=>i)})}catch(u){return D(u,this.#e.parent),null}}))};N(()=>{var o;try{o=this.transform_error(e)}catch(u){D(u,this.#e&&this.#e.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(f,u=>D(u,this.#e&&this.#e.parent)):f(o)})}}function st(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ze=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function at(t){return ze.includes(t)}const Ge={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function it(t){return t=t.toLowerCase(),Ge[t]??t}const Xe=["touchstart","touchmove"];function Je(t){return Xe.includes(t)}const Ze=["textarea","script","style","title"];function ot(t){return Ze.includes(t)}const w=Symbol("events"),re=new Set,W=new Set;function ne(t,e,r,s={}){function a(n){if(s.capture||Y.call(e,n),!n.cancelBubble)return we(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?N(()=>{e.addEventListener(t,a,s)}):e.addEventListener(t,a,s),a}function lt(t,e,r,s={}){var a=ne(e,t,r,s);return()=>{t.removeEventListener(e,a,s)}}function ut(t,e,r,s,a){var n={capture:s,passive:a},i=ne(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Re(()=>{e.removeEventListener(t,i,n)})}function ft(t,e,r){(e[w]??={})[t]=r}function ct(t){for(var e=0;e<t.length;e++)re.add(t[e]);for(var r of W)r(t)}let Z=null;function Y(t){var e=this,r=e.ownerDocument,s=t.type,a=t.composedPath?.()||[],n=a[0]||t.target;Z=t;var i=0,f=Z===t&&t[w];if(f){var o=a.indexOf(f);if(o!==-1&&(e===document||e===window)){t[w]=e;return}var u=a.indexOf(e);if(u===-1)return;o<=u&&(i=o)}if(n=a[i]||t.target,n!==e){Ne(t,"currentTarget",{configurable:!0,get(){return n||r}});var b=ee,T=m;O(null),M(null);try{for(var g,d=[];n!==null;){var c=n.assignedSlot||n.parentNode||n.host||null;try{var h=n[w]?.[s];h!=null&&(!n.disabled||t.target===n)&&h.call(n,t)}catch(p){g?d.push(p):g=p}if(t.cancelBubble||c===e||c===null)break;n=c}if(g){for(let p of d)queueMicrotask(()=>{throw p});throw g}}finally{t[w]=e,delete t.currentTarget,O(b),M(T)}}}const Ke=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Qe(t){return Ke?.createHTML(t)??t}function se(t){var e=Ae("template");return e.innerHTML=Qe(t.replaceAll("<!>","<!---->")),e.content}function v(t,e){var r=m;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function dt(t,e){var r=(e&De)!==0,s=(e&Le)!==0,a,n=!t.startsWith("<!>");return()=>{if(_)return v(l,null),l;a===void 0&&(a=se(n?t:"<!>"+t),r||(a=S(a)));var i=s||Se?document.importNode(a,!0):a.cloneNode(!0);if(r){var f=S(i),o=i.lastChild;v(f,o)}else v(i,i);return i}}function et(t,e,r="svg"){var s=!t.startsWith("<!>"),a=`<${r}>${s?t:"<!>"+t}</${r}>`,n;return()=>{if(_)return v(l,null),l;if(!n){var i=se(a),f=S(i);n=S(f)}var o=n.cloneNode(!0);return v(o,o),o}}function ht(t,e){return et(t,e,"svg")}function _t(t=""){if(!_){var e=R(t+"");return v(e,e),e}var r=l;return r.nodeType!==ke?(r.before(r=R()),A(r)):Me(r),v(r,r),r}function pt(){if(_)return v(l,null),l;var t=document.createDocumentFragment(),e=document.createComment(""),r=R();return t.append(e,r),v(e,r),t}function vt(t,e){if(_){var r=m;((r.f&Oe)===0||r.nodes.end===null)&&(r.nodes.end=l),$();return}t!==null&&t.before(e)}function gt(){if(_&&l&&l.nodeType===B&&l.textContent?.startsWith("$")){const t=l.textContent.substring(1);return $(),t}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function mt(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=`${r}`)}function tt(t,e){return ae(t,e)}function yt(t,e){P(),e.intro=e.intro??!1;const r=e.target,s=_,a=l;try{for(var n=S(r);n&&(n.nodeType!==B||n.data!==Ie);)n=xe(n);if(!n)throw V;L(!0),A(n);const i=ae(t,{...e,anchor:n});return L(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(f=>f.startsWith("https://svelte.dev/e/")))throw i;return i!==V&&console.warn("Failed to hydrate: ",i),e.recover===!1&&Ce(),P(),Fe(r),L(!1),tt(t,e)}finally{L(s),A(a)}}const k=new Map;function ae(t,{target:e,anchor:r,props:s={},events:a,context:n,intro:i=!0,transformError:f}){P();var o=void 0,u=Pe(()=>{var b=r??e.appendChild(R());Ue(b,{pending:()=>{}},d=>{We({});var c=te;if(n&&(c.c=n),a&&(s.$$events=a),_&&v(d,null),o=t(d,s)||{},_&&(m.nodes.end=l,l===null||l.nodeType!==B||l.data!==Ye))throw He(),V;$e()},f);var T=new Set,g=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!T.has(h)){T.add(h);var p=Je(h);for(const I of[e,document]){var E=k.get(I);E===void 0&&(E=new Map,k.set(I,E));var j=E.get(h);j===void 0?(I.addEventListener(h,Y,{passive:p}),E.set(h,1)):E.set(h,j+1)}}}};return g(Ve(re)),W.add(g),()=>{for(var d of T)for(const p of[e,document]){var c=k.get(p),h=c.get(d);--h==0?(p.removeEventListener(d,Y),c.delete(d),c.size===0&&k.delete(p)):c.set(d,h)}W.delete(g),b!==r&&b.parentNode?.removeChild(b)}});return H.set(o,u),o}let H=new WeakMap;function bt(t,e){const r=H.get(t);return r?(H.delete(t),r(e)):Promise.resolve()}const rt="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(rt);export{vt as a,dt as b,pt as c,ft as d,ut as e,ht as f,ct as g,yt as h,st as i,ne as j,at as k,Be as l,tt as m,it as n,lt as o,v as p,ot as q,gt as r,mt as s,_t as t,bt as u};
@@ -1 +1 @@
1
- import{a as p,s as $,f as h}from"./DJumtN6X.js";import{i as M}from"./BWbpPmKt.js";import{p as I,l as c,a as P,g as i,c as m,n as Z,r as _,b as k,m as u,s as g,d as n,t as B}from"./Cd2AAfar.js";import{l as v,p as b,i as C}from"./BBKhbmnU.js";import{a as N}from"./VEgGCdut.js";var R=h("<title> </title>"),V=h('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"></path></svg>');function F(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);I(t,!1);const a=u(),d=u();let f=b(t,"size",8,16),s=b(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{g(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{g(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),P(),M();var r=V();N(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...w}));var y=m(r);{var z=l=>{var o=R(),A=m(o,!0);_(o),B(()=>$(A,s())),p(l,o)};C(y,l=>{s()&&l(z)})}Z(),_(r),p(x,r),k()}export{F as I};
1
+ import{a as p,s as $,f as h}from"./C6O5NX2h.js";import{i as M}from"./D2e_f7WK.js";import{p as I,l as c,a as P,g as i,c as m,n as Z,r as _,b as k,m as u,s as g,d as n,t as B}from"./CbWA7IDo.js";import{l as v,p as b,i as C}from"./Da6P0VJZ.js";import{a as N}from"./CTpBBS5W.js";var R=h("<title> </title>"),V=h('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"></path></svg>');function F(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);I(t,!1);const a=u(),d=u();let f=b(t,"size",8,16),s=b(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{g(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{g(d,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),P(),M();var r=V();N(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...i(d),...w}));var y=m(r);{var z=l=>{var o=R(),A=m(o,!0);_(o),B(()=>$(A,s())),p(l,o)};C(y,l=>{s()&&l(z)})}Z(),_(r),p(x,r),k()}export{F as I};
@@ -0,0 +1,2 @@
1
+ import{f as fe,A as ne,b7 as Q,Y as H,_ as m,P as x,h as y,as as oe,b8 as le,b9 as ce,aW as de,ba as ve,bb as he,bc as be,g as O,bd as ge,be as pe,bf as C,j as D,bg as _e,bh as Ae,a5 as Se,bi as Te,bj as ye,y as M,s as d}from"./CbWA7IDo.js";import{B as Ee}from"./Da6P0VJZ.js";import{i as Ne,d as we,g as Oe,j as Pe,n as je,k as ke}from"./C6O5NX2h.js";function rt(e,r,...t){var a=new Ee(e);fe(()=>{const s=r()??null;a.ensure(s,s&&(u=>s(u,...t)))},ne)}function Ie(e,r){var t=void 0,a;Q(()=>{t!==(t=r())&&(a&&(H(a),a=null),t&&(a=m(()=>{x(()=>t(e))})))})}function ee(e){var r,t,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=ee(e[r]))&&(a&&(a+=" "),a+=t)}else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function Le(){for(var e,r,t=0,a="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=ee(e))&&(a&&(a+=" "),a+=r);return a}function Ce(e){return typeof e=="object"?Le(e):e??""}const K=[...`
2
+ \r\f \v\uFEFF`];function Me(e,r,t){var a=e==null?"":""+e;if(r&&(a=a?a+" "+r:r),t){for(var s of Object.keys(t))if(t[s])a=a?a+" "+s:s;else if(a.length)for(var u=s.length,n=0;(n=a.indexOf(s,n))>=0;){var l=n+u;(n===0||K.includes(a[n-1]))&&(l===a.length||K.includes(a[l]))?a=(n===0?"":a.substring(0,n))+a.substring(l+1):n=l}}return a===""?null:a}function W(e,r=!1){var t=r?" !important;":";",a="";for(var s of Object.keys(e)){var u=e[s];u!=null&&u!==""&&(a+=" "+s+": "+u+t)}return a}function G(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Re(e,r){if(r){var t="",a,s;if(Array.isArray(r)?(a=r[0],s=r[1]):a=r,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var u=!1,n=0,l=!1,h=[];a&&h.push(...Object.keys(a).map(G)),s&&h.push(...Object.keys(s).map(G));var c=0,p=-1;const N=e.length;for(var v=0;v<N;v++){var i=e[v];if(l?i==="/"&&e[v-1]==="*"&&(l=!1):u?u===i&&(u=!1):i==="/"&&e[v+1]==="*"?l=!0:i==='"'||i==="'"?u=i:i==="("?n++:i===")"&&n--,!l&&u===!1&&n===0){if(i===":"&&p===-1)p=v;else if(i===";"||v===N-1){if(p!==-1){var E=G(e.substring(c,p).trim());if(!h.includes(E)){i!==";"&&v++;var S=e.substring(c,v).trim();t+=" "+S+";"}}c=v+1,p=-1}}}}return a&&(t+=W(a)),s&&(t+=W(s,!0)),t=t.trim(),t===""?null:t}return e==null?null:String(e)}function Ue(e,r,t,a,s,u){var n=e.__className;if(y||n!==t||n===void 0){var l=Me(t,a,u);(!y||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):r?e.className=l:e.setAttribute("class",l)),e.__className=t}else if(u&&s!==u)for(var h in u){var c=!!u[h];(s==null||c!==!!s[h])&&e.classList.toggle(h,c)}return u}function B(e,r={},t,a){for(var s in t){var u=t[s];r[s]!==u&&(t[s]==null?e.style.removeProperty(s):e.style.setProperty(s,u,a))}}function $e(e,r,t,a){var s=e.__style;if(y||s!==r){var u=Re(r,a);(!y||u!==e.getAttribute("style"))&&(u==null?e.removeAttribute("style"):e.style.cssText=u),e.__style=r}else a&&(Array.isArray(a)?(B(e,t?.[0],a[0]),B(e,t?.[1],a[1],"important")):B(e,t,a));return a}function F(e,r,t=!1){if(e.multiple){if(r==null)return;if(!oe(r))return le();for(var a of e.options)a.selected=r.includes(q(a));return}for(a of e.options){var s=q(a);if(ce(s,r)){a.selected=!0;return}}(!t||r!==void 0)&&(e.selectedIndex=-1)}function Ge(e){var r=new MutationObserver(()=>{F(e,e.__value)});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),de(()=>{r.disconnect()})}function q(e){return"__value"in e?e.__value:e.value}const I=Symbol("class"),L=Symbol("style"),te=Symbol("is custom element"),re=Symbol("is html"),Be=C?"link":"LINK",He=C?"input":"INPUT",Fe=C?"option":"OPTION",Je=C?"select":"SELECT",Ve=C?"progress":"PROGRESS";function Ye(e){if(y){var r=!1,t=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var a=e.value;$(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var s=e.checked;$(e,"checked",null),e.checked=s}}};e.__on_r=t,Se(t),Te()}}function at(e,r){var t=J(e);t.value===(t.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==Ve)||(e.value=r??"")}function ze(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function $(e,r,t,a){var s=J(e);y&&(s[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Be)||s[r]!==(s[r]=t)&&(r==="loading"&&(e[ye]=t),t==null?e.removeAttribute(r):typeof t!="string"&&ae(e).includes(r)?e[r]=t:e.setAttribute(r,t))}function De(e,r,t,a,s=!1,u=!1){if(y&&s&&e.nodeName===He){var n=e,l=n.type==="checkbox"?"defaultChecked":"defaultValue";l in t||Ye(n)}var h=J(e),c=h[te],p=!h[re];let v=y&&c;v&&D(!1);var i=r||{},E=e.nodeName===Fe;for(var S in r)S in t||(t[S]=null);t.class?t.class=Ce(t.class):(a||t[I])&&(t.class=null),t[L]&&(t.style??=null);var N=ae(e);for(const f in t){let o=t[f];if(E&&f==="value"&&o==null){e.value=e.__value="",i[f]=o;continue}if(f==="class"){var k=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ue(e,k,o,a,r?.[I],t[I]),i[f]=o,i[I]=t[I];continue}if(f==="style"){$e(e,o,r?.[L],t[L]),i[f]=o,i[L]=t[L];continue}var _=i[f];if(!(o===_&&!(o===void 0&&e.hasAttribute(f)))){i[f]=o;var V=f[0]+f[1];if(V!=="$$")if(V==="on"){const A={},P="$$"+f;let g=f.slice(2);var Y=ke(g);if(Ne(g)&&(g=g.slice(0,-7),A.capture=!0),!Y&&_){if(o!=null)continue;e.removeEventListener(g,i[P],A),i[P]=null}if(Y)we(g,e,o),Oe([g]);else if(o!=null){let ue=function(ie){i[f].call(this,ie)};i[P]=Pe(g,e,ue,A)}}else if(f==="style")$(e,f,o);else if(f==="autofocus")_e(e,!!o);else if(!c&&(f==="__value"||f==="value"&&o!=null))e.value=e.__value=o;else if(f==="selected"&&E)ze(e,o);else{var b=f;p||(b=je(b));var z=b==="defaultValue"||b==="defaultChecked";if(o==null&&!c&&!z)if(h[f]=null,b==="value"||b==="checked"){let A=e;const P=r===void 0;if(b==="value"){let g=A.defaultValue;A.removeAttribute(b),A.defaultValue=g,A.value=A.__value=P?g:null}else{let g=A.defaultChecked;A.removeAttribute(b),A.defaultChecked=g,A.checked=P?g:!1}}else e.removeAttribute(f);else z||N.includes(b)&&(c||typeof o!="string")?(e[b]=o,b in h&&(h[b]=Ae)):typeof o!="function"&&$(e,b,o)}}}return v&&D(!0),i}function st(e,r,t=[],a=[],s=[],u,n=!1,l=!1){ve(s,t,a,h=>{var c=void 0,p={},v=e.nodeName===Je,i=!1;if(Q(()=>{var S=r(...h.map(O)),N=De(e,c,S,u,n,l);i&&v&&"value"in S&&F(e,S.value);for(let _ of Object.getOwnPropertySymbols(p))S[_]||H(p[_]);for(let _ of Object.getOwnPropertySymbols(S)){var k=S[_];_.description===ge&&(!c||k!==c[_])&&(p[_]&&H(p[_]),p[_]=m(()=>Ie(e,()=>k))),N[_]=k}c=N}),v){var E=e;x(()=>{F(E,c.value,!0),Ge(E)})}i=!0})}function J(e){return e.__attributes??={[te]:e.nodeName.includes("-"),[re]:e.namespaceURI===he}}var X=new Map;function ae(e){var r=e.getAttribute("is")||e.nodeName,t=X.get(r);if(t)return t;X.set(r,t=[]);for(var a,s=e,u=Element.prototype;u!==s;){a=pe(s);for(var n in a)a[n].set&&t.push(n);s=be(s)}return t}const Ke="";class se extends Error{constructor(r,t){super(t),this.status=r,this.name="ApiError"}}async function T(e,r){const t={...r?.headers};r?.body&&(t["Content-Type"]=t["Content-Type"]??"application/json");const a=await fetch(`${Ke}${e}`,{...r,headers:t});if(!a.ok){const s=await a.json().catch(()=>({error:a.statusText}));throw a.status===401&&typeof window<"u"&&!e.startsWith("/api/auth/")&&window.location.pathname!=="/login"&&(window.location.href="/login"),new se(a.status,s.error??a.statusText)}return a.json()}const ut=Object.freeze(Object.defineProperty({__proto__:null,ApiError:se,apiFetch:T},Symbol.toStringTag,{value:"Module"}));function We(){return T("/api/auth/status")}function qe(){return T("/api/auth/me")}function Xe(e,r){return T("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,password:r})})}function Ze(){return T("/api/auth/logout",{method:"POST"})}function Qe(e,r,t){return T("/api/auth/setup",{method:"POST",body:JSON.stringify({email:e,password:r,displayName:t})})}function it(){return T("/api/auth/users")}function ft(e,r,t,a){return T("/api/auth/users",{method:"POST",body:JSON.stringify({email:e,password:r,displayName:t,role:a})})}function nt(e){return T(`/api/auth/users/${e}`,{method:"DELETE"})}function ot(e,r){return T(`/api/auth/users/${e}/password`,{method:"PATCH",body:JSON.stringify({password:r})})}let j=M(null),R=M(!1),U=M(!1),w=M(!0),Z=M("");const me={get user(){return O(j)},get authEnabled(){return O(R)},get needsSetup(){return O(U)},get loading(){return O(w)},get workspaceName(){return O(Z)},async checkAuth(){d(w,!0);try{const e=await We();if(d(R,e.authEnabled,!0),d(U,e.userCount===0),e.workspaceName&&d(Z,e.workspaceName,!0),O(U))return d(w,!1),{authenticated:!1,authEnabled:!1,needsSetup:!0};if(!e.authEnabled)return d(w,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1};try{const{user:r}=await qe();return d(j,r,!0),d(w,!1),{authenticated:!0,authEnabled:!0,needsSetup:!1}}catch{return d(j,null),d(w,!1),{authenticated:!1,authEnabled:!0,needsSetup:!1}}}catch{return d(w,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1}}},async login(e,r){const{user:t}=await Xe(e,r);return d(j,t,!0),d(R,!0),t},async setup(e,r,t){const{user:a}=await Qe(e,r,t);return d(j,a,!0),d(R,!0),d(U,!1),a},async logout(){await Ze(),d(j,null)}},lt=Object.freeze(Object.defineProperty({__proto__:null,auth:me},Symbol.toStringTag,{value:"Module"}));export{L as S,st as a,me as b,T as c,rt as d,Ue as e,Le as f,at as g,$e as h,Ce as i,nt as j,ot as k,it as l,ft as m,ut as n,lt as o,Ye as r,$ as s};
@@ -1 +1 @@
1
- var Gt=Array.isArray,zt=Array.prototype.indexOf,le=Array.prototype.includes,Un=Array.from,Bn=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Kt=Object.getOwnPropertyDescriptors,$t=Object.prototype,Xt=Array.prototype,ut=Object.getPrototypeOf,tt=Object.isExtensible;function Gn(e){return typeof e=="function"}const Zt=()=>{};function zn(e){return e()}function Wt(e){for(var t=0;t<e.length;t++)e[t]()}function ct(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Kn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const m=2,fe=4,oe=8,He=1<<24,$=16,L=32,X=64,Jt=128,k=512,E=1024,T=2048,P=4096,F=8192,V=16384,ve=32768,Ae=65536,nt=1<<17,Qt=1<<18,de=1<<19,_t=1<<20,$n=1<<25,re=65536,Me=1<<21,qe=1<<22,U=1<<23,te=Symbol("$state"),Xn=Symbol("legacy props"),Zn=Symbol(""),W=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Jn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Qn=1,Oe=3,vt=8;function Ve(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function en(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function er(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function tn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function nn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function sn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function tr(){throw new Error("https://svelte.dev/e/hydration_failed")}function nr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function an(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const sr=1,ar=2,fr=4,ir=8,lr=16,or=1,ur=2,cr=4,_r=8,vr=16,dr=1,hr=2,on="[",un="[!",pr="[?",cn="]",Ue={},b=Symbol(),_n="http://www.w3.org/1999/xhtml",wr="http://www.w3.org/2000/svg",yr="http://www.w3.org/1998/Math/MathML",Er="@attach";function Be(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function br(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let G=!1;function gr(e){G=e}let S;function ue(e){if(e===null)throw Be(),Ue;return S=e}function Tr(){return ue(Z(S))}function Ar(e){if(G){if(Z(S)!==null)throw Be(),Ue;S=e}}function xr(e=1){if(G){for(var t=e,n=S;t--;)n=Z(n);S=n}}function Sr(e=!0){for(var t=0,n=S;;){if(n.nodeType===vt){var r=n.data;if(r===cn){if(t===0)return n;t-=1}else(r===on||r===un||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Rr(e){if(!e||e.nodeType!==vt)throw Be(),Ue;return e.data}function dt(e){return e===this.v}function vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ht(e){return!vn(e,this.v)}let be=!1;function Nr(){be=!0}let h=null;function xe(e){h=e}function Or(e){return ke().get(e)}function kr(e,t){return ke().set(e,t),t}function Dr(e){return ke().has(e)}function Cr(){return ke()}function Ir(e,t=!1,n){h={p:h,i:!1,c:null,e:null,s:e,x:null,l:be&&!t?{s:null,u:null,$:[]}:null}}function Mr(e){var t=h,n=t.e;if(n!==null){t.e=null;for(var r of n)Ct(r)}return e!==void 0&&(t.x=e),t.i=!0,h=t.p,e??{}}function me(){return!be||h!==null&&h.l===null}function ke(e){return h===null&&Ve(),h.c??=new Map(dn(h)||void 0)}function dn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let J=[];function pt(){var e=J;J=[],Wt(e)}function Pe(e){if(J.length===0&&!ye){var t=J;queueMicrotask(()=>{t===J&&pt()})}J.push(e)}function hn(){for(;J.length>0;)pt()}function pn(e){var t=d;if(t===null)return v.f|=U,e;if((t.f&ve)===0&&(t.f&fe)===0)throw e;Se(e,t)}function Se(e,t){for(;t!==null;){if((t.f&Jt)!==0){if((t.f&ve)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const wn=-7169;function y(e,t){e.f=e.f&wn|t}function Ge(e){(e.f&k)!==0||e.deps===null?y(e,E):y(e,P)}function wt(e){if(e!==null)for(const t of e)(t.f&m)===0||(t.f&re)===0||(t.f^=re,wt(t.deps))}function yn(e,t,n){(e.f&T)!==0?t.add(e):(e.f&P)!==0&&n.add(e),wt(e.deps),y(e,E)}const ge=new Set;let w=null,rt=null,I=null,A=[],De=null,ye=!1,ce=null;class ie{current=new Map;previous=new Map;#t=new Set;#s=new Set;#r=0;#a=0;#f=null;#i=new Set;#n=new Set;#e=new Map;is_fork=!1;#l=!1;#o(){return this.is_fork||this.#a>0}skip_effect(t){this.#e.has(t)||this.#e.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#e.get(t);if(n){this.#e.delete(t);for(var r of n.d)y(r,T),Y(r);for(r of n.m)y(r,P),Y(r)}}process(t){A=[],this.apply();var n=ce=[],r=[];for(const s of t)this.#u(s,n,r);if(ce=null,this.#o()){this.#c(r),this.#c(n);for(const[s,a]of this.#e)mt(s,a)}else{rt=this,w=null;for(const s of this.#t)s(this);this.#t.clear(),this.#r===0&&this.#_(),st(r),st(n),this.#i.clear(),this.#n.clear(),rt=null,this.#f?.resolve()}I=null}#u(t,n,r){t.f^=E;for(var s=t.first;s!==null;){var a=s.f,l=(a&(L|X))!==0,o=l&&(a&E)!==0,f=o||(a&F)!==0||this.#e.has(s);if(!f&&s.fn!==null){l?s.f^=E:(a&fe)!==0?n.push(s):he(s)&&((a&$)!==0&&this.#n.add(s),ae(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)yn(t[n],this.#i,this.#n)}capture(t,n){n!==b&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&U)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,I=null)}flush(){if(A.length>0)w=this,yt();else if(this.#r===0&&!this.is_fork){for(const t of this.#t)t(this);this.#t.clear(),this.#_(),this.#f?.resolve()}this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#_(){if(ge.size>1){this.previous.clear();var t=w,n=I,r=!0;for(const a of ge){if(a===this){r=!1;continue}const l=[];for(const[f,i]of this.current){if(a.current.has(f))if(r&&i!==a.current.get(f))a.current.set(f,i);else continue;l.push(f)}if(l.length===0)continue;const o=[...a.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var s=A;A=[];const f=new Set,i=new Map;for(const u of l)Et(u,o,f,i);if(A.length>0){w=a,a.apply();for(const u of A)a.#u(u,[],[]);a.deactivate()}A=s}}w=t,I=n}this.#e.clear(),ge.delete(this)}increment(t){this.#r+=1,t&&(this.#a+=1)}decrement(t){this.#r-=1,t&&(this.#a-=1),!this.#l&&(this.#l=!0,Pe(()=>{this.#l=!1,this.#o()?A.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#n.delete(t),y(t,T),Y(t);for(const t of this.#n)y(t,P),Y(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#f??=ct()).promise}static ensure(){if(w===null){const t=w=new ie;ge.add(w),ye||Pe(()=>{w===t&&t.flush()})}return w}apply(){}}function En(e){var t=ye;ye=!0;try{for(var n;;){if(hn(),A.length===0&&(w?.flush(),A.length===0))return De=null,n;yt()}}finally{ye=t}}function yt(){var e=null;try{for(var t=0;A.length>0;){var n=ie.ensure();if(t++>1e3){var r,s;bn()}n.process(A),B.clear()}}finally{A=[],De=null,ce=null}}function bn(){try{sn()}catch(e){Se(e,De)}}let j=null;function st(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|F))===0&&he(r)&&(j=new Set,ae(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Pt(r),j?.size>0)){B.clear();for(const s of j){if((s.f&(V|F))!==0)continue;const a=[s];let l=s.parent;for(;l!==null;)j.has(l)&&(j.delete(l),a.push(l)),l=l.parent;for(let o=a.length-1;o>=0;o--){const f=a[o];(f.f&(V|F))===0&&ae(f)}}j.clear()}}j=null}}function Et(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const a=s.f;(a&m)!==0?Et(s,t,n,r):(a&(qe|$))!==0&&(a&T)===0&&bt(s,t,r)&&(y(s,T),Y(s))}}function bt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(le.call(t,s))return!0;if((s.f&m)!==0&&bt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Y(e){var t=De=e,n=t.b;if(n?.is_pending&&(e.f&(fe|oe|He))!==0&&(e.f&ve)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(ce!==null&&t===d&&(e.f&oe)===0)return;if((r&(X|L))!==0){if((r&E)===0)return;t.f^=E}}A.push(t)}function mt(e,t){if(!((e.f&L)!==0&&(e.f&E)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&P)!==0&&t.m.push(e),y(e,E);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function gt(e,t,n,r){const s=me()?ze:Tn;var a=e.filter(c=>!c.settled);if(n.length===0&&a.length===0){r(t.map(s));return}var l=d,o=mn(),f=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(c=>c.promise)):null;function i(c){o();try{r(c)}catch(_){(l.f&V)===0&&Se(_,l)}Fe()}if(n.length===0){f.then(()=>i(t.map(s)));return}function u(){o(),Promise.all(n.map(c=>gn(c))).then(c=>i([...t.map(s),...c])).catch(c=>Se(c,l))}f?f.then(u):u()}function mn(){var e=d,t=v,n=h,r=w;return function(a=!0){_e(e),K(t),xe(n),a&&r?.activate()}}function Fe(e=!0){_e(null),K(null),xe(null),e&&w?.deactivate()}function Tt(){var e=d.b,t=w,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function ze(e){var t=m|T,n=v!==null&&(v.f&m)!==0?v:null;return d!==null&&(d.f|=de),{ctx:h,deps:null,effects:null,equals:dt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??d,ac:null}}function gn(e,t,n){d===null&&en();var s=void 0,a=$e(b),l=!v,o=new Map;return Pn(()=>{var f=ct();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Fe)}catch(_){f.reject(_),Fe()}var i=w;if(l){var u=Tt();o.get(i)?.reject(W),o.delete(i),o.set(i,f)}const c=(_,g=void 0)=>{if(i.activate(),g)g!==W&&(a.f|=U,je(a,g));else{(a.f&U)!==0&&(a.f^=U),je(a,_);for(const[p,C]of o){if(o.delete(p),p===i)break;C.reject(W)}}u&&u()};f.promise.then(c,_=>c(null,_||"unknown"))}),In(()=>{for(const f of o.values())f.reject(W)}),new Promise(f=>{function i(u){function c(){u===s?f(a):i(s)}u.then(c,c)}i(s)})}function Pr(e){const t=ze(e);return jt(t),t}function Tn(e){const t=ze(e);return t.equals=ht,t}function An(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function xn(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function Ke(e){var t,n=d;_e(xn(e));try{e.f&=~re,An(e),t=Vt(e)}finally{_e(n)}return t}function At(e){var t=Ke(e);if(!e.equals(t)&&(e.wv=Ht(),(!w?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,E);return}se||(I!==null?(Dt()||w?.is_fork)&&I.set(e,t):Ge(e))}function Sn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(W),t.teardown=Zt,t.ac=null,Ee(t,0),We(t))}function xt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ae(t)}let Le=new Set;const B=new Map;let St=!1;function $e(e,t){var n={f:0,v:e,reactions:null,equals:dt,rv:0,wv:0};return n}function H(e,t){const n=$e(e);return jt(n),n}function Fr(e,t=!1,n=!0){const r=$e(e);return t||(r.equals=ht),be&&n&&h!==null&&h.l!==null&&(h.l.s??=[]).push(r),r}function q(e,t,n=!1){v!==null&&(!M||(v.f&nt)!==0)&&me()&&(v.f&(m|$|qe|nt))!==0&&(D===null||!le.call(D,e))&&ln();let r=n?pe(t):t;return je(e,r)}function je(e,t){if(!e.equals(t)){var n=e.v;se?B.set(e,t):B.set(e,n),e.v=t;var r=ie.ensure();if(r.capture(e,n),(e.f&m)!==0){const s=e;(e.f&T)!==0&&Ke(s),Ge(s)}e.wv=Ht(),Rt(e,T),me()&&d!==null&&(d.f&E)!==0&&(d.f&(L|X))===0&&(O===null?Yn([e]):O.push(e)),!r.is_fork&&Le.size>0&&!St&&Rn()}return t}function Rn(){St=!1;for(const e of Le)(e.f&E)!==0&&y(e,P),he(e)&&ae(e);Le.clear()}function Lr(e,t=1){var n=ee(e),r=t===1?n++:n--;return q(e,n),r}function Ie(e){q(e,e.v+1)}function Rt(e,t){var n=e.reactions;if(n!==null)for(var r=me(),s=n.length,a=0;a<s;a++){var l=n[a],o=l.f;if(!(!r&&l===d)){var f=(o&T)===0;if(f&&y(l,t),(o&m)!==0){var i=l;I?.delete(i),(o&re)===0&&(o&k&&(l.f|=re),Rt(i,P))}else f&&((o&$)!==0&&j!==null&&j.add(l),Y(l))}}}function pe(e){if(typeof e!="object"||e===null||te in e)return e;const t=ut(e);if(t!==$t&&t!==Xt)return e;var n=new Map,r=Gt(e),s=H(0),a=ne,l=o=>{if(ne===a)return o();var f=v,i=ne;K(null),ot(a);var u=o();return K(f),ot(i),u};return r&&n.set("length",H(e.length)),new Proxy(e,{defineProperty(o,f,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&an();var u=n.get(f);return u===void 0?l(()=>{var c=H(i.value);return n.set(f,c),c}):q(u,i.value,!0),!0},deleteProperty(o,f){var i=n.get(f);if(i===void 0){if(f in o){const u=l(()=>H(b));n.set(f,u),Ie(s)}}else q(i,b),Ie(s);return!0},get(o,f,i){if(f===te)return e;var u=n.get(f),c=f in o;if(u===void 0&&(!c||we(o,f)?.writable)&&(u=l(()=>{var g=pe(c?o[f]:b),p=H(g);return p}),n.set(f,u)),u!==void 0){var _=ee(u);return _===b?void 0:_}return Reflect.get(o,f,i)},getOwnPropertyDescriptor(o,f){var i=Reflect.getOwnPropertyDescriptor(o,f);if(i&&"value"in i){var u=n.get(f);u&&(i.value=ee(u))}else if(i===void 0){var c=n.get(f),_=c?.v;if(c!==void 0&&_!==b)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return i},has(o,f){if(f===te)return!0;var i=n.get(f),u=i!==void 0&&i.v!==b||Reflect.has(o,f);if(i!==void 0||d!==null&&(!u||we(o,f)?.writable)){i===void 0&&(i=l(()=>{var _=u?pe(o[f]):b,g=H(_);return g}),n.set(f,i));var c=ee(i);if(c===b)return!1}return u},set(o,f,i,u){var c=n.get(f),_=f in o;if(r&&f==="length")for(var g=i;g<c.v;g+=1){var p=n.get(g+"");p!==void 0?q(p,b):g in o&&(p=l(()=>H(b)),n.set(g+"",p))}if(c===void 0)(!_||we(o,f)?.writable)&&(c=l(()=>H(void 0)),q(c,pe(i)),n.set(f,c));else{_=c.v!==b;var C=l(()=>pe(i));q(c,C)}var Qe=Reflect.getOwnPropertyDescriptor(o,f);if(Qe?.set&&Qe.set.call(u,i),!_){if(r&&typeof f=="string"){var et=n.get("length"),Ce=Number(f);Number.isInteger(Ce)&&Ce>=et.v&&q(et,Ce+1)}Ie(s)}return!0},ownKeys(o){ee(s);var f=Reflect.ownKeys(o).filter(c=>{var _=n.get(c);return _===void 0||_.v!==b});for(var[i,u]of n)u.v!==b&&!(i in o)&&f.push(i);return f},setPrototypeOf(){fn()}})}function at(e){try{if(e!==null&&typeof e=="object"&&te in e)return e[te]}catch{}return e}function jr(e,t){return Object.is(at(e),at(t))}var ft,Nn,On,Nt,Ot;function Yr(){if(ft===void 0){ft=window,Nn=document,On=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Nt=we(t,"firstChild").get,Ot=we(t,"nextSibling").get,tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tt(n)&&(n.__t=void 0)}}function Re(e=""){return document.createTextNode(e)}function Ne(e){return Nt.call(e)}function Z(e){return Ot.call(e)}function Hr(e,t){if(!G)return Ne(e);var n=Ne(S);if(n===null)n=S.appendChild(Re());else if(t&&n.nodeType!==Oe){var r=Re();return n?.before(r),ue(r),r}return t&&Xe(n),ue(n),n}function qr(e,t=!1){if(!G){var n=Ne(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(S?.nodeType!==Oe){var r=Re();return S?.before(r),ue(r),r}Xe(S)}return S}function Vr(e,t=1,n=!1){let r=G?S:e;for(var s;t--;)s=r,r=Z(r);if(!G)return r;if(n){if(r?.nodeType!==Oe){var a=Re();return r===null?s?.after(a):r.before(a),ue(a),a}Xe(r)}return ue(r),r}function kn(e){e.textContent=""}function Ur(){return!1}function Br(e,t,n){return document.createElementNS(t??_n,e,void 0)}function Xe(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Oe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Gr(e,t){if(t){const n=document.body;e.autofocus=!0,Pe(()=>{document.activeElement===n&&e.focus()})}}function zr(e){G&&Ne(e)!==null&&kn(e)}let it=!1;function Dn(){it||(it=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ze(e){var t=v,n=d;K(null),_e(null);try{return e()}finally{K(t),_e(n)}}function Kr(e,t,n,r=n){e.addEventListener(t,()=>Ze(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Dn()}function kt(e){d===null&&(v===null&&rn(),nn()),se&&tn()}function Cn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function N(e,t){var n=d;n!==null&&(n.f&F)!==0&&(e|=F);var r={ctx:h,deps:null,nodes:null,f:e|T|k,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&fe)!==0)ce!==null?ce.push(r):Y(r);else if(t!==null){try{ae(r)}catch(l){throw z(r),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&de)===0&&(s=s.first,(e&$)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae))}if(s!==null&&(s.parent=n,n!==null&&Cn(s,n),v!==null&&(v.f&m)!==0&&(e&X)===0)){var a=v;(a.effects??=[]).push(s)}return r}function Dt(){return v!==null&&!M}function In(e){const t=N(oe,null);return y(t,E),t.teardown=e,t}function Mn(e){kt();var t=d.f,n=!v&&(t&L)!==0&&(t&ve)===0;if(n){var r=h;(r.e??=[]).push(e)}else return Ct(e)}function Ct(e){return N(fe|_t,e)}function $r(e){return kt(),N(oe|_t,e)}function Xr(e){ie.ensure();const t=N(X|de,e);return()=>{z(t)}}function Zr(e){ie.ensure();const t=N(X|de,e);return(n={})=>new Promise(r=>{n.outro?jn(t,()=>{z(t),r(void 0)}):(z(t),r(void 0))})}function Wr(e){return N(fe,e)}function Jr(e,t){var n=h,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=It(()=>{e(),!r.ran&&(r.ran=!0,Je(t))})}function Qr(){var e=h;It(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&E)!==0&&n.deps!==null&&y(n,P),he(n)&&ae(n),t.ran=!1}})}function Pn(e){return N(qe|de,e)}function It(e,t=0){return N(oe|t,e)}function es(e,t=[],n=[],r=[]){gt(r,t,n,s=>{N(oe,()=>e(...s.map(ee)))})}function ts(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=Tt();gt(r,t,n,a=>{N(fe,()=>e(...a.map(ee))),s&&s()})}function ns(e,t=0){var n=N($|t,e);return n}function rs(e,t=0){var n=N(He|t,e);return n}function ss(e){return N(L|de,e)}function Mt(e){var t=e.teardown;if(t!==null){const n=se,r=v;lt(!0),K(null);try{t.call(null)}finally{lt(n),K(r)}}}function We(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Ze(()=>{s.abort(W)});var r=n.next;(n.f&X)!==0?n.parent=null:z(n,t),n=r}}function Fn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&z(t),t=n}}function z(e,t=!0){var n=!1;(t||(e.f&Qt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ln(e.nodes.start,e.nodes.end),n=!0),We(e,t&&!n),Ee(e,0),y(e,V);var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)a.stop();Mt(e);var s=e.parent;s!==null&&s.first!==null&&Pt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ln(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function Pt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function jn(e,t,n=!0){var r=[];Ft(e,r,!0);var s=()=>{n&&z(e),t&&t()},a=r.length;if(a>0){var l=()=>--a||s();for(var o of r)o.out(l)}else s()}function Ft(e,t,n){if((e.f&F)===0){e.f^=F;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var s=e.first;s!==null;){var a=s.next,l=(s.f&Ae)!==0||(s.f&L)!==0&&(e.f&$)!==0;Ft(s,t,l?n:!1),s=a}}}function as(e){Lt(e,!0)}function Lt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&E)===0&&(y(e,T),Y(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ae)!==0||(n.f&L)!==0;Lt(n,s?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(const l of a)(l.is_global||t)&&l.in()}}function fs(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Z(n);t.append(n),n=s}}let Te=!1,se=!1;function lt(e){se=e}let v=null,M=!1;function K(e){v=e}let d=null;function _e(e){d=e}let D=null;function jt(e){v!==null&&(D===null?D=[e]:D.push(e))}let x=null,R=0,O=null;function Yn(e){O=e}let Yt=1,Q=0,ne=Q;function ot(e){ne=e}function Ht(){return++Yt}function he(e){var t=e.f;if((t&T)!==0)return!0;if(t&m&&(e.f&=~re),(t&P)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var a=n[s];if(he(a)&&At(a),a.wv>e.wv)return!0}(t&k)!==0&&I===null&&y(e,E)}return!1}function qt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&le.call(D,e)))for(var s=0;s<r.length;s++){var a=r[s];(a.f&m)!==0?qt(a,t,!1):t===a&&(n?y(a,T):(a.f&E)!==0&&y(a,P),Y(a))}}function Vt(e){var t=x,n=R,r=O,s=v,a=D,l=h,o=M,f=ne,i=e.f;x=null,R=0,O=null,v=(i&(L|X))===0?e:null,D=null,xe(e.ctx),M=!1,ne=++Q,e.ac!==null&&(Ze(()=>{e.ac.abort(W)}),e.ac=null);try{e.f|=Me;var u=e.fn,c=u();e.f|=ve;var _=e.deps,g=w?.is_fork;if(x!==null){var p;if(g||Ee(e,R),_!==null&&R>0)for(_.length=R+x.length,p=0;p<x.length;p++)_[R+p]=x[p];else e.deps=_=x;if(Dt()&&(e.f&k)!==0)for(p=R;p<_.length;p++)(_[p].reactions??=[]).push(e)}else!g&&_!==null&&R<_.length&&(Ee(e,R),_.length=R);if(me()&&O!==null&&!M&&_!==null&&(e.f&(m|P|T))===0)for(p=0;p<O.length;p++)qt(O[p],e);if(s!==null&&s!==e){if(Q++,s.deps!==null)for(let C=0;C<n;C+=1)s.deps[C].rv=Q;if(t!==null)for(const C of t)C.rv=Q;O!==null&&(r===null?r=O:r.push(...O))}return(e.f&U)!==0&&(e.f^=U),c}catch(C){return pn(C)}finally{e.f^=Me,x=t,R=n,O=r,v=s,D=a,xe(l),M=o,ne=f}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=zt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&m)!==0&&(x===null||!le.call(x,t))){var a=t;(a.f&k)!==0&&(a.f^=k,a.f&=~re),Ge(a),Sn(a),Ee(a,0)}}function Ee(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function ae(e){var t=e.f;if((t&V)===0){y(e,E);var n=d,r=Te;d=e,Te=!0;try{(t&($|He))!==0?Fn(e):We(e),Mt(e);var s=Vt(e);e.teardown=typeof s=="function"?s:null,e.wv=Yt;var a}finally{Te=r,d=n}}}async function is(){await Promise.resolve(),En()}function ls(){return ie.ensure().settled()}function ee(e){var t=e.f,n=(t&m)!==0;if(v!==null&&!M){var r=d!==null&&(d.f&V)!==0;if(!r&&(D===null||!le.call(D,e))){var s=v.deps;if((v.f&Me)!==0)e.rv<Q&&(e.rv=Q,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[v]:le.call(a,v)||a.push(v)}}}if(se&&B.has(e))return B.get(e);if(n){var l=e;if(se){var o=l.v;return((l.f&E)===0&&l.reactions!==null||Bt(l))&&(o=Ke(l)),B.set(l,o),o}var f=(l.f&k)===0&&!M&&v!==null&&(Te||(v.f&k)!==0),i=(l.f&ve)===0;he(l)&&(f&&(l.f|=k),At(l)),f&&!i&&(xt(l),Ut(l))}if(I?.has(e))return I.get(e);if((e.f&U)!==0)throw e.v;return e.v}function Ut(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&k)===0&&(xt(t),Ut(t))}function Bt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(B.has(t)||(t.f&m)!==0&&Bt(t))return!0;return!1}function Je(e){var t=M;try{return M=!0,e()}finally{M=t}}function os(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(te in e)Ye(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&te in n&&Ye(n)}}}function Ye(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ye(e[r],t)}catch{}const n=ut(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Kt(n);for(let s in r){const a=r[s].get;if(a)try{a.call(e)}catch{}}}}}function qn(e){h===null&&Ve(),be&&h.l!==null?Vn(h).m.push(e):Mn(()=>{const t=Je(e);if(typeof t=="function")return t})}function us(e){h===null&&Ve(),qn(()=>()=>Je(e))}function Vn(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Nn as $,Ae as A,Rr as B,vt as C,Sr as D,de as E,on as F,h as G,Qt as H,$r as I,Wt as J,Mn as K,Je as L,zn as M,ze as N,Nr as O,Wr as P,Xn as Q,En as R,Bn as S,qn as T,is as U,Pr as V,as as W,z as X,jn as Y,ss as Z,w as _,Qr as a,Oe as a$,fs as a0,Ur as a1,un as a2,It as a3,Pe as a4,te as a5,we as a6,nr as a7,cr as a8,pe as a9,ir as aA,Kr as aB,rt as aC,Zt as aD,Dt as aE,Ie as aF,Jt as aG,pr as aH,ie as aI,y as aJ,T as aK,Y as aL,P as aM,yn as aN,K as aO,xe as aP,pn as aQ,v as aR,Se as aS,rr as aT,mr as aU,Ze as aV,In as aW,Br as aX,On as aY,dr as aZ,hr as a_,se as aa,d as ab,V as ac,_r as ad,be as ae,ur as af,or as ag,Tn as ah,Gn as ai,vr as aj,$e as ak,Lr as al,_e as am,je as an,er as ao,ar as ap,sr as aq,lr as ar,Gt as as,Un as at,cn as au,$n as av,F as aw,L as ax,kn as ay,fr as az,Mr as b,Xe as b0,ve as b1,Yr as b2,Ue as b3,tr as b4,Zr as b5,Be as b6,rs as b7,br as b8,jr as b9,ls as bA,gt as ba,_n as bb,ut as bc,Er as bd,Kt as be,Jn as bf,Gr as bg,b as bh,Dn as bi,Zn as bj,ft as bk,us as bl,Kn as bm,Dr as bn,kr as bo,Xr as bp,$t as bq,Qn as br,wr as bs,zr as bt,me as bu,Ln as bv,yr as bw,ne as bx,Cr as by,vn as bz,Hr as c,os as d,Re as e,ns as f,ee as g,G as h,Z as i,gr as j,ue as k,Jr as l,Fr as m,xr as n,S as o,Ir as p,Ne as q,Ar as r,q as s,es as t,qr as u,Vr as v,Or as w,ts as x,H as y,Tr as z};
1
+ var Gt=Array.isArray,zt=Array.prototype.indexOf,le=Array.prototype.includes,Un=Array.from,Bn=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Kt=Object.getOwnPropertyDescriptors,$t=Object.prototype,Xt=Array.prototype,ut=Object.getPrototypeOf,tt=Object.isExtensible;function Gn(e){return typeof e=="function"}const Zt=()=>{};function zn(e){return e()}function Wt(e){for(var t=0;t<e.length;t++)e[t]()}function ct(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Kn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const m=2,fe=4,oe=8,He=1<<24,$=16,L=32,X=64,Jt=128,k=512,E=1024,T=2048,P=4096,F=8192,V=16384,ve=32768,Ae=65536,nt=1<<17,Qt=1<<18,de=1<<19,_t=1<<20,$n=1<<25,re=65536,Me=1<<21,qe=1<<22,U=1<<23,te=Symbol("$state"),Xn=Symbol("legacy props"),Zn=Symbol(""),W=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Jn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Qn=1,Oe=3,vt=8;function Ve(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function en(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function er(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function tn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function nn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function sn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function tr(){throw new Error("https://svelte.dev/e/hydration_failed")}function nr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function an(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const sr=1,ar=2,fr=4,ir=8,lr=16,or=1,ur=2,cr=4,_r=8,vr=16,dr=1,hr=2,on="[",un="[!",pr="[?",cn="]",Ue={},b=Symbol(),_n="http://www.w3.org/1999/xhtml",wr="http://www.w3.org/2000/svg",yr="http://www.w3.org/1998/Math/MathML",Er="@attach";function Be(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function br(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let G=!1;function gr(e){G=e}let S;function ue(e){if(e===null)throw Be(),Ue;return S=e}function Tr(){return ue(Z(S))}function Ar(e){if(G){if(Z(S)!==null)throw Be(),Ue;S=e}}function xr(e=1){if(G){for(var t=e,n=S;t--;)n=Z(n);S=n}}function Sr(e=!0){for(var t=0,n=S;;){if(n.nodeType===vt){var r=n.data;if(r===cn){if(t===0)return n;t-=1}else(r===on||r===un||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Rr(e){if(!e||e.nodeType!==vt)throw Be(),Ue;return e.data}function dt(e){return e===this.v}function vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ht(e){return!vn(e,this.v)}let be=!1;function Nr(){be=!0}let h=null;function xe(e){h=e}function Or(e){return ke().get(e)}function kr(e,t){return ke().set(e,t),t}function Dr(e){return ke().has(e)}function Cr(){return ke()}function Ir(e,t=!1,n){h={p:h,i:!1,c:null,e:null,s:e,x:null,l:be&&!t?{s:null,u:null,$:[]}:null}}function Mr(e){var t=h,n=t.e;if(n!==null){t.e=null;for(var r of n)Ct(r)}return e!==void 0&&(t.x=e),t.i=!0,h=t.p,e??{}}function me(){return!be||h!==null&&h.l===null}function ke(e){return h===null&&Ve(),h.c??=new Map(dn(h)||void 0)}function dn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let J=[];function pt(){var e=J;J=[],Wt(e)}function Pe(e){if(J.length===0&&!ye){var t=J;queueMicrotask(()=>{t===J&&pt()})}J.push(e)}function hn(){for(;J.length>0;)pt()}function pn(e){var t=d;if(t===null)return v.f|=U,e;if((t.f&ve)===0&&(t.f&fe)===0)throw e;Se(e,t)}function Se(e,t){for(;t!==null;){if((t.f&Jt)!==0){if((t.f&ve)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const wn=-7169;function y(e,t){e.f=e.f&wn|t}function Ge(e){(e.f&k)!==0||e.deps===null?y(e,E):y(e,P)}function wt(e){if(e!==null)for(const t of e)(t.f&m)===0||(t.f&re)===0||(t.f^=re,wt(t.deps))}function yn(e,t,n){(e.f&T)!==0?t.add(e):(e.f&P)!==0&&n.add(e),wt(e.deps),y(e,E)}const ge=new Set;let w=null,rt=null,I=null,A=[],De=null,ye=!1,ce=null;class ie{current=new Map;previous=new Map;#t=new Set;#s=new Set;#r=0;#a=0;#f=null;#i=new Set;#n=new Set;#e=new Map;is_fork=!1;#l=!1;#o(){return this.is_fork||this.#a>0}skip_effect(t){this.#e.has(t)||this.#e.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#e.get(t);if(n){this.#e.delete(t);for(var r of n.d)y(r,T),Y(r);for(r of n.m)y(r,P),Y(r)}}process(t){A=[],this.apply();var n=ce=[],r=[];for(const s of t)this.#u(s,n,r);if(ce=null,this.#o()){this.#c(r),this.#c(n);for(const[s,a]of this.#e)mt(s,a)}else{rt=this,w=null;for(const s of this.#t)s(this);this.#t.clear(),this.#r===0&&this.#_(),st(r),st(n),this.#i.clear(),this.#n.clear(),rt=null,this.#f?.resolve()}I=null}#u(t,n,r){t.f^=E;for(var s=t.first;s!==null;){var a=s.f,l=(a&(L|X))!==0,o=l&&(a&E)!==0,f=o||(a&F)!==0||this.#e.has(s);if(!f&&s.fn!==null){l?s.f^=E:(a&fe)!==0?n.push(s):he(s)&&((a&$)!==0&&this.#n.add(s),ae(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)yn(t[n],this.#i,this.#n)}capture(t,n){n!==b&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&U)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,I=null)}flush(){if(A.length>0)w=this,yt();else if(this.#r===0&&!this.is_fork){for(const t of this.#t)t(this);this.#t.clear(),this.#_(),this.#f?.resolve()}this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#_(){if(ge.size>1){this.previous.clear();var t=w,n=I,r=!0;for(const a of ge){if(a===this){r=!1;continue}const l=[];for(const[f,i]of this.current){if(a.current.has(f))if(r&&i!==a.current.get(f))a.current.set(f,i);else continue;l.push(f)}if(l.length===0)continue;const o=[...a.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var s=A;A=[];const f=new Set,i=new Map;for(const u of l)Et(u,o,f,i);if(A.length>0){w=a,a.apply();for(const u of A)a.#u(u,[],[]);a.deactivate()}A=s}}w=t,I=n}this.#e.clear(),ge.delete(this)}increment(t){this.#r+=1,t&&(this.#a+=1)}decrement(t){this.#r-=1,t&&(this.#a-=1),!this.#l&&(this.#l=!0,Pe(()=>{this.#l=!1,this.#o()?A.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#n.delete(t),y(t,T),Y(t);for(const t of this.#n)y(t,P),Y(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#f??=ct()).promise}static ensure(){if(w===null){const t=w=new ie;ge.add(w),ye||Pe(()=>{w===t&&t.flush()})}return w}apply(){}}function En(e){var t=ye;ye=!0;try{for(var n;;){if(hn(),A.length===0&&(w?.flush(),A.length===0))return De=null,n;yt()}}finally{ye=t}}function yt(){var e=null;try{for(var t=0;A.length>0;){var n=ie.ensure();if(t++>1e3){var r,s;bn()}n.process(A),B.clear()}}finally{A=[],De=null,ce=null}}function bn(){try{sn()}catch(e){Se(e,De)}}let j=null;function st(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|F))===0&&he(r)&&(j=new Set,ae(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Pt(r),j?.size>0)){B.clear();for(const s of j){if((s.f&(V|F))!==0)continue;const a=[s];let l=s.parent;for(;l!==null;)j.has(l)&&(j.delete(l),a.push(l)),l=l.parent;for(let o=a.length-1;o>=0;o--){const f=a[o];(f.f&(V|F))===0&&ae(f)}}j.clear()}}j=null}}function Et(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const a=s.f;(a&m)!==0?Et(s,t,n,r):(a&(qe|$))!==0&&(a&T)===0&&bt(s,t,r)&&(y(s,T),Y(s))}}function bt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(le.call(t,s))return!0;if((s.f&m)!==0&&bt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Y(e){var t=De=e,n=t.b;if(n?.is_pending&&(e.f&(fe|oe|He))!==0&&(e.f&ve)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(ce!==null&&t===d&&(e.f&oe)===0)return;if((r&(X|L))!==0){if((r&E)===0)return;t.f^=E}}A.push(t)}function mt(e,t){if(!((e.f&L)!==0&&(e.f&E)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&P)!==0&&t.m.push(e),y(e,E);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function gt(e,t,n,r){const s=me()?ze:Tn;var a=e.filter(c=>!c.settled);if(n.length===0&&a.length===0){r(t.map(s));return}var l=d,o=mn(),f=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(c=>c.promise)):null;function i(c){o();try{r(c)}catch(_){(l.f&V)===0&&Se(_,l)}Fe()}if(n.length===0){f.then(()=>i(t.map(s)));return}function u(){o(),Promise.all(n.map(c=>gn(c))).then(c=>i([...t.map(s),...c])).catch(c=>Se(c,l))}f?f.then(u):u()}function mn(){var e=d,t=v,n=h,r=w;return function(a=!0){_e(e),K(t),xe(n),a&&r?.activate()}}function Fe(e=!0){_e(null),K(null),xe(null),e&&w?.deactivate()}function Tt(){var e=d.b,t=w,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function ze(e){var t=m|T,n=v!==null&&(v.f&m)!==0?v:null;return d!==null&&(d.f|=de),{ctx:h,deps:null,effects:null,equals:dt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??d,ac:null}}function gn(e,t,n){d===null&&en();var s=void 0,a=$e(b),l=!v,o=new Map;return Pn(()=>{var f=ct();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Fe)}catch(_){f.reject(_),Fe()}var i=w;if(l){var u=Tt();o.get(i)?.reject(W),o.delete(i),o.set(i,f)}const c=(_,g=void 0)=>{if(i.activate(),g)g!==W&&(a.f|=U,je(a,g));else{(a.f&U)!==0&&(a.f^=U),je(a,_);for(const[p,C]of o){if(o.delete(p),p===i)break;C.reject(W)}}u&&u()};f.promise.then(c,_=>c(null,_||"unknown"))}),In(()=>{for(const f of o.values())f.reject(W)}),new Promise(f=>{function i(u){function c(){u===s?f(a):i(s)}u.then(c,c)}i(s)})}function Pr(e){const t=ze(e);return jt(t),t}function Tn(e){const t=ze(e);return t.equals=ht,t}function An(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function xn(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function Ke(e){var t,n=d;_e(xn(e));try{e.f&=~re,An(e),t=Vt(e)}finally{_e(n)}return t}function At(e){var t=Ke(e);if(!e.equals(t)&&(e.wv=Ht(),(!w?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,E);return}se||(I!==null?(Dt()||w?.is_fork)&&I.set(e,t):Ge(e))}function Sn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(W),t.teardown=Zt,t.ac=null,Ee(t,0),We(t))}function xt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ae(t)}let Le=new Set;const B=new Map;let St=!1;function $e(e,t){var n={f:0,v:e,reactions:null,equals:dt,rv:0,wv:0};return n}function H(e,t){const n=$e(e);return jt(n),n}function Fr(e,t=!1,n=!0){const r=$e(e);return t||(r.equals=ht),be&&n&&h!==null&&h.l!==null&&(h.l.s??=[]).push(r),r}function q(e,t,n=!1){v!==null&&(!M||(v.f&nt)!==0)&&me()&&(v.f&(m|$|qe|nt))!==0&&(D===null||!le.call(D,e))&&ln();let r=n?pe(t):t;return je(e,r)}function je(e,t){if(!e.equals(t)){var n=e.v;se?B.set(e,t):B.set(e,n),e.v=t;var r=ie.ensure();if(r.capture(e,n),(e.f&m)!==0){const s=e;(e.f&T)!==0&&Ke(s),Ge(s)}e.wv=Ht(),Rt(e,T),me()&&d!==null&&(d.f&E)!==0&&(d.f&(L|X))===0&&(O===null?Yn([e]):O.push(e)),!r.is_fork&&Le.size>0&&!St&&Rn()}return t}function Rn(){St=!1;for(const e of Le)(e.f&E)!==0&&y(e,P),he(e)&&ae(e);Le.clear()}function Lr(e,t=1){var n=ee(e),r=t===1?n++:n--;return q(e,n),r}function Ie(e){q(e,e.v+1)}function Rt(e,t){var n=e.reactions;if(n!==null)for(var r=me(),s=n.length,a=0;a<s;a++){var l=n[a],o=l.f;if(!(!r&&l===d)){var f=(o&T)===0;if(f&&y(l,t),(o&m)!==0){var i=l;I?.delete(i),(o&re)===0&&(o&k&&(l.f|=re),Rt(i,P))}else f&&((o&$)!==0&&j!==null&&j.add(l),Y(l))}}}function pe(e){if(typeof e!="object"||e===null||te in e)return e;const t=ut(e);if(t!==$t&&t!==Xt)return e;var n=new Map,r=Gt(e),s=H(0),a=ne,l=o=>{if(ne===a)return o();var f=v,i=ne;K(null),ot(a);var u=o();return K(f),ot(i),u};return r&&n.set("length",H(e.length)),new Proxy(e,{defineProperty(o,f,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&an();var u=n.get(f);return u===void 0?l(()=>{var c=H(i.value);return n.set(f,c),c}):q(u,i.value,!0),!0},deleteProperty(o,f){var i=n.get(f);if(i===void 0){if(f in o){const u=l(()=>H(b));n.set(f,u),Ie(s)}}else q(i,b),Ie(s);return!0},get(o,f,i){if(f===te)return e;var u=n.get(f),c=f in o;if(u===void 0&&(!c||we(o,f)?.writable)&&(u=l(()=>{var g=pe(c?o[f]:b),p=H(g);return p}),n.set(f,u)),u!==void 0){var _=ee(u);return _===b?void 0:_}return Reflect.get(o,f,i)},getOwnPropertyDescriptor(o,f){var i=Reflect.getOwnPropertyDescriptor(o,f);if(i&&"value"in i){var u=n.get(f);u&&(i.value=ee(u))}else if(i===void 0){var c=n.get(f),_=c?.v;if(c!==void 0&&_!==b)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return i},has(o,f){if(f===te)return!0;var i=n.get(f),u=i!==void 0&&i.v!==b||Reflect.has(o,f);if(i!==void 0||d!==null&&(!u||we(o,f)?.writable)){i===void 0&&(i=l(()=>{var _=u?pe(o[f]):b,g=H(_);return g}),n.set(f,i));var c=ee(i);if(c===b)return!1}return u},set(o,f,i,u){var c=n.get(f),_=f in o;if(r&&f==="length")for(var g=i;g<c.v;g+=1){var p=n.get(g+"");p!==void 0?q(p,b):g in o&&(p=l(()=>H(b)),n.set(g+"",p))}if(c===void 0)(!_||we(o,f)?.writable)&&(c=l(()=>H(void 0)),q(c,pe(i)),n.set(f,c));else{_=c.v!==b;var C=l(()=>pe(i));q(c,C)}var Qe=Reflect.getOwnPropertyDescriptor(o,f);if(Qe?.set&&Qe.set.call(u,i),!_){if(r&&typeof f=="string"){var et=n.get("length"),Ce=Number(f);Number.isInteger(Ce)&&Ce>=et.v&&q(et,Ce+1)}Ie(s)}return!0},ownKeys(o){ee(s);var f=Reflect.ownKeys(o).filter(c=>{var _=n.get(c);return _===void 0||_.v!==b});for(var[i,u]of n)u.v!==b&&!(i in o)&&f.push(i);return f},setPrototypeOf(){fn()}})}function at(e){try{if(e!==null&&typeof e=="object"&&te in e)return e[te]}catch{}return e}function jr(e,t){return Object.is(at(e),at(t))}var ft,Nn,On,Nt,Ot;function Yr(){if(ft===void 0){ft=window,Nn=document,On=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Nt=we(t,"firstChild").get,Ot=we(t,"nextSibling").get,tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tt(n)&&(n.__t=void 0)}}function Re(e=""){return document.createTextNode(e)}function Ne(e){return Nt.call(e)}function Z(e){return Ot.call(e)}function Hr(e,t){if(!G)return Ne(e);var n=Ne(S);if(n===null)n=S.appendChild(Re());else if(t&&n.nodeType!==Oe){var r=Re();return n?.before(r),ue(r),r}return t&&Xe(n),ue(n),n}function qr(e,t=!1){if(!G){var n=Ne(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(S?.nodeType!==Oe){var r=Re();return S?.before(r),ue(r),r}Xe(S)}return S}function Vr(e,t=1,n=!1){let r=G?S:e;for(var s;t--;)s=r,r=Z(r);if(!G)return r;if(n){if(r?.nodeType!==Oe){var a=Re();return r===null?s?.after(a):r.before(a),ue(a),a}Xe(r)}return ue(r),r}function kn(e){e.textContent=""}function Ur(){return!1}function Br(e,t,n){return document.createElementNS(t??_n,e,void 0)}function Xe(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Oe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Gr(e,t){if(t){const n=document.body;e.autofocus=!0,Pe(()=>{document.activeElement===n&&e.focus()})}}function zr(e){G&&Ne(e)!==null&&kn(e)}let it=!1;function Dn(){it||(it=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ze(e){var t=v,n=d;K(null),_e(null);try{return e()}finally{K(t),_e(n)}}function Kr(e,t,n,r=n){e.addEventListener(t,()=>Ze(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Dn()}function kt(e){d===null&&(v===null&&rn(),nn()),se&&tn()}function Cn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function N(e,t){var n=d;n!==null&&(n.f&F)!==0&&(e|=F);var r={ctx:h,deps:null,nodes:null,f:e|T|k,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&fe)!==0)ce!==null?ce.push(r):Y(r);else if(t!==null){try{ae(r)}catch(l){throw z(r),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&de)===0&&(s=s.first,(e&$)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae))}if(s!==null&&(s.parent=n,n!==null&&Cn(s,n),v!==null&&(v.f&m)!==0&&(e&X)===0)){var a=v;(a.effects??=[]).push(s)}return r}function Dt(){return v!==null&&!M}function In(e){const t=N(oe,null);return y(t,E),t.teardown=e,t}function Mn(e){kt();var t=d.f,n=!v&&(t&L)!==0&&(t&ve)===0;if(n){var r=h;(r.e??=[]).push(e)}else return Ct(e)}function Ct(e){return N(fe|_t,e)}function $r(e){return kt(),N(oe|_t,e)}function Xr(e){ie.ensure();const t=N(X|de,e);return()=>{z(t)}}function Zr(e){ie.ensure();const t=N(X|de,e);return(n={})=>new Promise(r=>{n.outro?jn(t,()=>{z(t),r(void 0)}):(z(t),r(void 0))})}function Wr(e){return N(fe,e)}function Jr(e,t){var n=h,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=It(()=>{e(),!r.ran&&(r.ran=!0,Je(t))})}function Qr(){var e=h;It(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&E)!==0&&n.deps!==null&&y(n,P),he(n)&&ae(n),t.ran=!1}})}function Pn(e){return N(qe|de,e)}function It(e,t=0){return N(oe|t,e)}function es(e,t=[],n=[],r=[]){gt(r,t,n,s=>{N(oe,()=>e(...s.map(ee)))})}function ts(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=Tt();gt(r,t,n,a=>{N(fe,()=>e(...a.map(ee))),s&&s()})}function ns(e,t=0){var n=N($|t,e);return n}function rs(e,t=0){var n=N(He|t,e);return n}function ss(e){return N(L|de,e)}function Mt(e){var t=e.teardown;if(t!==null){const n=se,r=v;lt(!0),K(null);try{t.call(null)}finally{lt(n),K(r)}}}function We(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Ze(()=>{s.abort(W)});var r=n.next;(n.f&X)!==0?n.parent=null:z(n,t),n=r}}function Fn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&z(t),t=n}}function z(e,t=!0){var n=!1;(t||(e.f&Qt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ln(e.nodes.start,e.nodes.end),n=!0),We(e,t&&!n),Ee(e,0),y(e,V);var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)a.stop();Mt(e);var s=e.parent;s!==null&&s.first!==null&&Pt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ln(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function Pt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function jn(e,t,n=!0){var r=[];Ft(e,r,!0);var s=()=>{n&&z(e),t&&t()},a=r.length;if(a>0){var l=()=>--a||s();for(var o of r)o.out(l)}else s()}function Ft(e,t,n){if((e.f&F)===0){e.f^=F;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var s=e.first;s!==null;){var a=s.next,l=(s.f&Ae)!==0||(s.f&L)!==0&&(e.f&$)!==0;Ft(s,t,l?n:!1),s=a}}}function as(e){Lt(e,!0)}function Lt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&E)===0&&(y(e,T),Y(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ae)!==0||(n.f&L)!==0;Lt(n,s?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(const l of a)(l.is_global||t)&&l.in()}}function fs(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Z(n);t.append(n),n=s}}let Te=!1,se=!1;function lt(e){se=e}let v=null,M=!1;function K(e){v=e}let d=null;function _e(e){d=e}let D=null;function jt(e){v!==null&&(D===null?D=[e]:D.push(e))}let x=null,R=0,O=null;function Yn(e){O=e}let Yt=1,Q=0,ne=Q;function ot(e){ne=e}function Ht(){return++Yt}function he(e){var t=e.f;if((t&T)!==0)return!0;if(t&m&&(e.f&=~re),(t&P)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var a=n[s];if(he(a)&&At(a),a.wv>e.wv)return!0}(t&k)!==0&&I===null&&y(e,E)}return!1}function qt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&le.call(D,e)))for(var s=0;s<r.length;s++){var a=r[s];(a.f&m)!==0?qt(a,t,!1):t===a&&(n?y(a,T):(a.f&E)!==0&&y(a,P),Y(a))}}function Vt(e){var t=x,n=R,r=O,s=v,a=D,l=h,o=M,f=ne,i=e.f;x=null,R=0,O=null,v=(i&(L|X))===0?e:null,D=null,xe(e.ctx),M=!1,ne=++Q,e.ac!==null&&(Ze(()=>{e.ac.abort(W)}),e.ac=null);try{e.f|=Me;var u=e.fn,c=u();e.f|=ve;var _=e.deps,g=w?.is_fork;if(x!==null){var p;if(g||Ee(e,R),_!==null&&R>0)for(_.length=R+x.length,p=0;p<x.length;p++)_[R+p]=x[p];else e.deps=_=x;if(Dt()&&(e.f&k)!==0)for(p=R;p<_.length;p++)(_[p].reactions??=[]).push(e)}else!g&&_!==null&&R<_.length&&(Ee(e,R),_.length=R);if(me()&&O!==null&&!M&&_!==null&&(e.f&(m|P|T))===0)for(p=0;p<O.length;p++)qt(O[p],e);if(s!==null&&s!==e){if(Q++,s.deps!==null)for(let C=0;C<n;C+=1)s.deps[C].rv=Q;if(t!==null)for(const C of t)C.rv=Q;O!==null&&(r===null?r=O:r.push(...O))}return(e.f&U)!==0&&(e.f^=U),c}catch(C){return pn(C)}finally{e.f^=Me,x=t,R=n,O=r,v=s,D=a,xe(l),M=o,ne=f}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=zt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&m)!==0&&(x===null||!le.call(x,t))){var a=t;(a.f&k)!==0&&(a.f^=k,a.f&=~re),Ge(a),Sn(a),Ee(a,0)}}function Ee(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function ae(e){var t=e.f;if((t&V)===0){y(e,E);var n=d,r=Te;d=e,Te=!0;try{(t&($|He))!==0?Fn(e):We(e),Mt(e);var s=Vt(e);e.teardown=typeof s=="function"?s:null,e.wv=Yt;var a}finally{Te=r,d=n}}}async function is(){await Promise.resolve(),En()}function ls(){return ie.ensure().settled()}function ee(e){var t=e.f,n=(t&m)!==0;if(v!==null&&!M){var r=d!==null&&(d.f&V)!==0;if(!r&&(D===null||!le.call(D,e))){var s=v.deps;if((v.f&Me)!==0)e.rv<Q&&(e.rv=Q,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[v]:le.call(a,v)||a.push(v)}}}if(se&&B.has(e))return B.get(e);if(n){var l=e;if(se){var o=l.v;return((l.f&E)===0&&l.reactions!==null||Bt(l))&&(o=Ke(l)),B.set(l,o),o}var f=(l.f&k)===0&&!M&&v!==null&&(Te||(v.f&k)!==0),i=(l.f&ve)===0;he(l)&&(f&&(l.f|=k),At(l)),f&&!i&&(xt(l),Ut(l))}if(I?.has(e))return I.get(e);if((e.f&U)!==0)throw e.v;return e.v}function Ut(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&k)===0&&(xt(t),Ut(t))}function Bt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(B.has(t)||(t.f&m)!==0&&Bt(t))return!0;return!1}function Je(e){var t=M;try{return M=!0,e()}finally{M=t}}function os(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(te in e)Ye(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&te in n&&Ye(n)}}}function Ye(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ye(e[r],t)}catch{}const n=ut(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Kt(n);for(let s in r){const a=r[s].get;if(a)try{a.call(e)}catch{}}}}}function qn(e){h===null&&Ve(),be&&h.l!==null?Vn(h).m.push(e):Mn(()=>{const t=Je(e);if(typeof t=="function")return t})}function us(e){h===null&&Ve(),qn(()=>()=>Je(e))}function Vn(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Nn as $,Ae as A,Rr as B,vt as C,Sr as D,de as E,on as F,h as G,Qt as H,$r as I,Wt as J,Mn as K,Je as L,zn as M,ze as N,Nr as O,Wr as P,pe as Q,Or as R,Xn as S,En as T,Bn as U,qn as V,is as W,as as X,z as Y,jn as Z,ss as _,Qr as a,Oe as a$,w as a0,fs as a1,Ur as a2,un as a3,It as a4,Pe as a5,te as a6,we as a7,nr as a8,cr as a9,ir as aA,Kr as aB,rt as aC,Zt as aD,Dt as aE,Ie as aF,Jt as aG,pr as aH,ie as aI,y as aJ,T as aK,Y as aL,P as aM,yn as aN,K as aO,xe as aP,pn as aQ,v as aR,Se as aS,rr as aT,mr as aU,Ze as aV,In as aW,Br as aX,On as aY,dr as aZ,hr as a_,se as aa,d as ab,V as ac,_r as ad,be as ae,ur as af,or as ag,Tn as ah,Gn as ai,vr as aj,$e as ak,Lr as al,_e as am,je as an,er as ao,ar as ap,sr as aq,lr as ar,Gt as as,Un as at,cn as au,$n as av,F as aw,L as ax,kn as ay,fr as az,Mr as b,Xe as b0,ve as b1,Yr as b2,Ue as b3,tr as b4,Zr as b5,Be as b6,rs as b7,br as b8,jr as b9,ls as bA,gt as ba,_n as bb,ut as bc,Er as bd,Kt as be,Jn as bf,Gr as bg,b as bh,Dn as bi,Zn as bj,ft as bk,us as bl,Kn as bm,Dr as bn,kr as bo,Xr as bp,$t as bq,Qn as br,wr as bs,zr as bt,me as bu,Ln as bv,yr as bw,ne as bx,Cr as by,vn as bz,Hr as c,os as d,Re as e,ns as f,ee as g,G as h,Z as i,gr as j,ue as k,Jr as l,Fr as m,xr as n,S as o,Ir as p,Ne as q,Ar as r,q as s,es as t,qr as u,Vr as v,ts as w,Pr as x,H as y,Tr as z};
@@ -1 +1 @@
1
- import{G as d,I as g,J as c,K as i,L as m,M as b,g as p,d as v,N as h,O as k}from"./Cd2AAfar.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>v(s.s);if(n){let a=0,t={};const _=h(()=>{let l=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],l=!0);return l&&a++,a});f=()=>p(_)}e.b.length&&g(()=>{u(s,f),c(e.b)}),i(()=>{const a=m(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,f),c(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}k();export{x as i};
1
+ import{G as d,I as g,J as c,K as i,L as m,M as b,g as p,d as v,N as h,O as k}from"./CbWA7IDo.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>v(s.s);if(n){let a=0,t={};const _=h(()=>{let l=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],l=!0);return l&&a++,a});f=()=>p(_)}e.b.length&&g(()=>{u(s,f),c(e.b)}),i(()=>{const a=m(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&i(()=>{u(s,f),c(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}k();export{x as i};