@toa.io/extensions.introspection 1.0.0-alpha.332 → 1.0.0-alpha.333

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 (46) hide show
  1. package/package.json +5 -5
  2. package/ui/dist/_app/env.js +1 -1
  3. package/ui/dist/_app/immutable/chunks/BD1YlRW0.js +1 -0
  4. package/ui/dist/_app/immutable/chunks/BGFfxzkw.js +1 -0
  5. package/ui/dist/_app/immutable/chunks/BOAbibaf.js +6 -0
  6. package/ui/dist/_app/immutable/chunks/BUuXt4am.js +2 -0
  7. package/ui/dist/_app/immutable/chunks/B__jIxS9.js +1 -0
  8. package/ui/dist/_app/immutable/chunks/CLKsegBr.js +3 -0
  9. package/ui/dist/_app/immutable/chunks/CRzLMJPS.js +1 -0
  10. package/ui/dist/_app/immutable/chunks/D71VbAAP.js +2 -0
  11. package/ui/dist/_app/immutable/chunks/DEufyArO.js +6 -0
  12. package/ui/dist/_app/immutable/chunks/Dj16C-qO.js +1 -0
  13. package/ui/dist/_app/immutable/chunks/MxlBtjyK.js +1 -0
  14. package/ui/dist/_app/immutable/chunks/T6aDAu0j.js +1 -0
  15. package/ui/dist/_app/immutable/chunks/XKyaHtl9.js +1 -0
  16. package/ui/dist/_app/immutable/entry/app.DA9iv2wV.js +2 -0
  17. package/ui/dist/_app/immutable/entry/payload.DSmR2FwN.js +1 -0
  18. package/ui/dist/_app/immutable/entry/start.9DaaOudW.js +2 -0
  19. package/ui/dist/_app/immutable/nodes/0.NKaa8xm4.js +1 -0
  20. package/ui/dist/_app/immutable/nodes/1.B1TN5dxr.js +1 -0
  21. package/ui/dist/_app/immutable/nodes/2.4yW5OIys.js +8 -0
  22. package/ui/dist/_app/immutable/nodes/3.BvU_uyAh.js +1 -0
  23. package/ui/dist/_app/immutable/nodes/4.Cqv8RS9x.js +1 -0
  24. package/ui/dist/_app/immutable/nodes/5.BIAQYZF6.js +1 -0
  25. package/ui/dist/_app/version.json +1 -1
  26. package/ui/dist/index.html +18 -16
  27. package/ui/dist/_app/immutable/chunks/BKLS6E7N.js +0 -1
  28. package/ui/dist/_app/immutable/chunks/CBWKRJPw.js +0 -1
  29. package/ui/dist/_app/immutable/chunks/CReGULOR.js +0 -2
  30. package/ui/dist/_app/immutable/chunks/CjDdIwEP.js +0 -1
  31. package/ui/dist/_app/immutable/chunks/CvpzImRs.js +0 -6
  32. package/ui/dist/_app/immutable/chunks/DB6FDyN4.js +0 -1
  33. package/ui/dist/_app/immutable/chunks/Djzgvszh.js +0 -6
  34. package/ui/dist/_app/immutable/chunks/Dz3pFDN9.js +0 -3
  35. package/ui/dist/_app/immutable/chunks/QWn5Fu7g.js +0 -1
  36. package/ui/dist/_app/immutable/chunks/S1izXW26.js +0 -1
  37. package/ui/dist/_app/immutable/chunks/gDwfFIiF.js +0 -1
  38. package/ui/dist/_app/immutable/chunks/xihTtKlq.js +0 -1
  39. package/ui/dist/_app/immutable/entry/app.Sb72KUFn.js +0 -2
  40. package/ui/dist/_app/immutable/entry/start.q7yYuVLR.js +0 -1
  41. package/ui/dist/_app/immutable/nodes/0.v-sbbV7A.js +0 -1
  42. package/ui/dist/_app/immutable/nodes/1.azM-QPvN.js +0 -1
  43. package/ui/dist/_app/immutable/nodes/2.BllAis6e.js +0 -8
  44. package/ui/dist/_app/immutable/nodes/3.BIIuP24J.js +0 -1
  45. package/ui/dist/_app/immutable/nodes/4.x4jc9hZa.js +0 -1
  46. package/ui/dist/_app/immutable/nodes/5.BA7zeznN.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/extensions.introspection",
3
- "version": "1.0.0-alpha.332",
3
+ "version": "1.0.0-alpha.333",
4
4
  "type": "module",
5
5
  "description": "Toa Introspection",
6
6
  "author": "temich <tema.gurtovoy@gmail.com>",
@@ -27,10 +27,10 @@
27
27
  "!**/.env*"
28
28
  ],
29
29
  "dependencies": {
30
- "@toa.io/core": "1.0.0-alpha.332",
31
- "@toa.io/definitions": "1.0.0-alpha.332",
30
+ "@toa.io/core": "1.0.0-alpha.333",
31
+ "@toa.io/definitions": "1.0.0-alpha.333",
32
32
  "@toa.io/generic": "1.0.0-alpha.332",
33
- "@toa.io/norm": "1.0.0-alpha.332",
33
+ "@toa.io/norm": "1.0.0-alpha.333",
34
34
  "@toa.io/schemas": "1.0.0-alpha.332",
35
35
  "openspan": "1.0.0-alpha.330"
36
36
  },
@@ -40,5 +40,5 @@
40
40
  "prepack": "npm run build:ui",
41
41
  "features": "TSX_TSCONFIG_PATH=features/steps/tsconfig.json NODE_OPTIONS=--import=tsx cucumber-js --tags 'not @skip and not @shutdown' && TOA_INTROSPECTION_INTERVAL=3600 TSX_TSCONFIG_PATH=features/steps/tsconfig.json NODE_OPTIONS=--import=tsx cucumber-js --tags 'not @skip and @shutdown'"
42
42
  },
43
- "gitHead": "37dbdefd96c01df050ea0d46a647da7f2f9f93f2"
43
+ "gitHead": "ddb74b2f99026fae540a8a8e0a49c26cbd22886a"
44
44
  }
@@ -1 +1 @@
1
- export const env={}
1
+ export const env={PUBLIC_APPLE_CLIENT_ID:void 0,PUBLIC_GOOGLE_CLIENT_ID:void 0}
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,B as n,D as r,E as i,Et as a,G as o,I as s,L as c,M as l,N as u,P as d,R as f,S as p,St as m,Tt as h,V as g,Y as _,_ as v,_t as y,a as b,bt as x,c as S,d as C,dt as w,et as T,f as E,ft as D,g as ee,gt as O,h as te,ht as k,jt as A,l as j,lt as M,n as N,o as P,p as F,r as I,rt as L,t as R,tt as ne,vt as z,w as B,xt as V,y as re,yt as ie}from"./CLKsegBr.js";import{F as H,N as U,r as ae,t as oe}from"./BOAbibaf.js";import{$ as W,A as G,C as se,D as ce,G as le,H as ue,J as de,K as fe,O as pe,Q as K,T as me,V as he,W as ge,Y as _e,Z as q,_t as J,b as ve,c as ye,dt as be,et as xe,f as Se,g as Ce,ht as we,j as Te,k as Y,m as Ee,mt as De,nt as Oe,p as ke,pt as Ae,q as X,rt as je,st as Z,t as Me,tt as Q,u as Ne,w as Pe}from"./DEufyArO.js";function Fe(e){return e!==null&&!(e instanceof Error)}var Ie=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),Le=f(`<input/>`);function Re(e,t){a(t,!0);let n=R(t,`ref`,15,null),i=R(t,`value`,15),o=R(t,`files`,15),l=R(t,`data-slot`,3,`input`),u=N(t,Ie);var d=c(),f=O(d),p=e=>{var r=Le();F(r,e=>({"data-slot":l(),class:e,type:`file`,...u}),[()=>J(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,t.class)],void 0,void 0,void 0,!0),j(r,e=>n(e),()=>n()),C(r,o),E(r,i),s(e,r)},m=e=>{var r=Le();F(r,e=>({"data-slot":l(),class:e,type:t.type,...u}),[()=>J(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,t.class)],void 0,void 0,void 0,!0),j(r,e=>n(e),()=>n()),E(r,i),s(e,r)};r(f,e=>{t.type===`file`?e(p):e(m,-1)}),s(e,d),h()}var ze=new Set([`$$slots`,`$$events`,`$$legacy`]);function Be(e,t){let n=N(t,ze),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];H(e,I({name:`pause`},()=>n,{get iconNode(){return r}}))}function Ve(e,t){return setTimeout(t,e)}var He=1,Ue=9,We=11;function Ge(e){return Ae(e)&&e.nodeType===He&&typeof e.nodeName==`string`}function Ke(e){return Ae(e)&&e.nodeType===Ue}function qe(e){return Ae(e)&&e.constructor?.name===`VisualViewport`}function Je(e){return Ae(e)&&e.nodeType!==void 0}function Ye(e){return Je(e)&&e.nodeType===We&&`host`in e}function Xe(e,t){if(!e||!t||!Ge(e)||!Ge(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Ye(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ze(e){return Ke(e)?e:qe(e)?e.document:e?.ownerDocument??document}function Qe(e){return Ye(e)?Qe(e.host):Ke(e)?e.defaultView??window:Ge(e)?e.ownerDocument?.defaultView??window:window}function $e(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var et=class{element;#e=D(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return L(this.#e)}set root(e){M(this.#e,e)}constructor(e){this.element=typeof e==`function`?Z(e):e}getDocument=()=>Ze(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>$e(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)},tt=typeof document<`u`,nt=rt();function rt(){return tt&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function it(e){return e instanceof HTMLElement}function at(e){return e instanceof Element||e instanceof SVGElement}var ot=ge({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),$=new K(`Dialog.Root | AlertDialog.Root`),st=class e{static create(t){let n=$.getOr(null);return $.set(new e(t,n))}opts;#e=w(null);get triggerNode(){return L(this.#e)}set triggerNode(e){M(this.#e,e,!0)}#t=w(null);get contentNode(){return L(this.#t)}set contentNode(e){M(this.#t,e,!0)}#n=w(null);get overlayNode(){return L(this.#n)}set overlayNode(e){M(this.#n,e,!0)}#r=w(null);get descriptionNode(){return L(this.#r)}set descriptionNode(e){M(this.#r,e,!0)}#i=w(void 0);get contentId(){return L(this.#i)}set contentId(e){M(this.#i,e,!0)}#a=w(void 0);get titleId(){return L(this.#a)}set titleId(e){M(this.#a,e,!0)}#o=w(void 0);get triggerId(){return L(this.#o)}set triggerId(e){M(this.#o,e,!0)}#s=w(void 0);get descriptionId(){return L(this.#s)}set descriptionId(e){M(this.#s,e,!0)}#c=w(null);get cancelNode(){return L(this.#c)}set cancelNode(e){M(this.#c,e,!0)}#l=w(0);get nestedOpenCount(){return L(this.#l)}set nestedOpenCount(e){M(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Te({ref:Z(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Te({ref:Z(()=>this.overlayNode),open:this.opts.open,enabled:!0}),q(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),_e(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>ot.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=D(()=>({"data-state":le(this.opts.open.current)}));get sharedProps(){return L(this.#u)}set sharedProps(e){M(this.#u,e)}},ct=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.triggerNode=e,this.root.triggerId=e?.id}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleOpen())}#e=D(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":ue(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.getBitsAttr(`trigger`)]:``,onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){M(this.#e,e)}},lt=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=X(this.opts.ref),q.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=D(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){M(this.#e,e)}},ut=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=X(this.opts.ref,e=>{this.root.descriptionNode=e}),q.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=D(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){M(this.#e,e)}},dt=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=D(()=>({open:this.root.opts.open.current}));get snippetProps(){return L(this.#e)}set snippetProps(e){M(this.#e,e)}#t=D(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":he(this.root.nestedOpenCount>0),"data-nested":he(this.root.parent!==null),...fe(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return L(this.#t)}set props(e){M(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},ft=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.overlayNode=e)}#e=D(()=>({open:this.root.opts.open.current}));get snippetProps(){return L(this.#e)}set snippetProps(e){M(this.#e,e)}#t=D(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":he(this.root.nestedOpenCount>0),"data-nested":he(this.root.parent!==null),...fe(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return L(this.#t)}set props(e){M(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},pt=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.cancelNode=e),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=D(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`cancel`)]:``,onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,disabled:this.opts.disabled.current,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){M(this.#e,e)}};function mt(e,n){a(n,!0);let r=R(n,`open`,15,!1),i=R(n,`onOpenChange`,3,G),o=R(n,`onOpenChangeComplete`,3,G);st.create({variant:Z(()=>`alert-dialog`),open:Z(()=>r(),e=>{r(e),i()(e)}),onOpenChangeComplete:Z(()=>o())});var l=c(),u=O(l);t(u,()=>n.children??A),s(e,l),h()}var ht=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),gt=f(`<div><!></div>`);function _t(e,i){let o=n();a(i,!0);let l=R(i,`id`,19,()=>Y(o)),u=R(i,`ref`,15,null),d=R(i,`level`,3,2),f=N(i,ht),p=lt.create({id:Z(()=>l()),level:Z(()=>d()),ref:Z(()=>u(),e=>u(e))}),m=D(()=>Q(f,p.props));var g=c(),_=O(g),v=e=>{var n=c(),r=O(n);t(r,()=>i.child,()=>({props:L(m)})),s(e,n)},y=e=>{var n=gt();F(n,()=>({...L(m)}));var r=k(n);t(r,()=>i.children??A),V(n),s(e,n)};r(_,e=>{i.child?e(v):e(y,-1)}),s(e,g),h()}var vt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),yt=f(`<button><!></button>`);function bt(e,i){let o=n();a(i,!0);let l=R(i,`id`,19,()=>Y(o)),u=R(i,`ref`,15,null),d=R(i,`disabled`,3,!1),f=N(i,vt),p=pt.create({id:Z(()=>l()),ref:Z(()=>u(),e=>u(e)),disabled:Z(()=>!!d())}),m=D(()=>Q(f,p.props));var g=c(),_=O(g),v=e=>{var n=c(),r=O(n);t(r,()=>i.child,()=>({props:L(m)})),s(e,n)},y=e=>{var n=yt();F(n,()=>({...L(m)}));var r=k(n);t(r,()=>i.children??A),V(n),s(e,n)};r(_,e=>{i.child?e(v):e(y,-1)}),s(e,g),h()}function xt(e,n){var r=c(),a=O(r);i(a,()=>n.children,e=>{var r=c(),i=O(r);t(i,()=>n.children??A),s(e,r)}),s(e,r)}var St=new K(`BitsConfig`);function Ct(){let e=new wt(null,{});return St.getOr(e).opts}var wt=class{opts;constructor(e,t){let n=Tt(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function Tt(e,t){return n=>Z(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function Et(e,t){return n=>{let r=Ct();return Z(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var Dt=Et(e=>e.defaultPortalTo,`body`);function Ot(e,n){a(n,!0);let i=Dt(()=>n.to),o=m(),u=D(f);function f(){if(!tt||n.disabled)return null;let e=null;return e=typeof i.current==`string`?document.querySelector(i.current):i.current,e}let p;function g(){p&&=(d(p),null)}q([()=>L(u),()=>n.disabled],([e,t])=>{if(!e||t)g();else return p=l(xt,{target:e,props:{children:n.children},context:o}),()=>{g()}});var _=c(),v=O(_),y=e=>{var r=c(),i=O(r);t(i,()=>n.children??A),s(e,r)};r(v,e=>{n.disabled&&e(y)}),s(e,_),h()}var kt=class{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return o(e,this.eventName,e=>{t(e)},n)}};function At(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function jt(e,t){return e===t||e.contains(t)}function Mt(e){return e?.ownerDocument??document}function Nt(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var Pt=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],Ft=Pt.join(`,`),It=typeof Element>`u`,Lt=It?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Rt=!It&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},zt=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):zt(e.parentNode))},Bt=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},Vt=function(e,t,n){if(zt(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Ft));return t&&Lt.call(e,Ft)&&r.unshift(e),r=r.filter(n),r},Ht=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!zt(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Ht(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Lt.call(a,Ft)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!zt(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Ht(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},Ut=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},Wt=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Bt(e))&&!Ut(e)?0:e.tabIndex},Gt=function(e,t){var n=Wt(e);return n<0&&t&&!Ut(e)?0:n},Kt=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},qt=function(e){return e.tagName===`INPUT`},Jt=function(e){return qt(e)&&e.type===`hidden`},Yt=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Xt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Zt=function(e){if(!e.name)return!0;var t=e.form||Rt(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Xt(r,e.form);return!i||i===e},Qt=function(e){return qt(e)&&e.type===`radio`},$t=function(e){return Qt(e)&&!Zt(e)},en=function(e){var t=e&&Rt(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=Rt(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},tn=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},nn=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=Lt.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(Lt.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=Rt(e);if(s&&!s.shadowRoot&&r(s)===!0)return tn(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(en(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return tn(e);return!1},rn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return Lt.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},an=function(e,t){return!(t.disabled||Jt(t)||nn(t,e)||Yt(t)||rn(t))},on=function(e,t){return!($t(t)||Wt(t)<0||!an(e,t))},sn=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},cn=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Gt(a,i),s=i?cn(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Kt).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},ln=function(e,t){return t||={},cn(t.getShadowRoot?Ht([e],t.includeContainer,{filter:on.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:sn}):Vt(e,t.includeContainer,on.bind(null,t)))},un=function(e,t){return t||={},t.getShadowRoot?Ht([e],t.includeContainer,{filter:an.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Vt(e,t.includeContainer,an.bind(null,t))},dn=Pt.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),fn=function(e,t){if(t||={},!e)throw Error(`No node provided`);return Lt.call(e,dn)!==!1&&an(t,e)},pn=`data-context-menu-trigger`,mn=`data-context-menu-content`;new K(`Menu.Root`),new K(`Menu.Root | Menu.Sub`),new K(`Menu.Content`),new K(`Menu.Group | Menu.RadioGroup`),new K(`Menu.RadioGroup`),new K(`Menu.CheckboxGroup`),new kt(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),ge({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]}),globalThis.bitsDismissableLayers??=new Map;var hn=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=!1;#a=void 0;#o;#s=G;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#o=e.onFocusOutside,ne(()=>{this.#a=Mt(this.opts.ref.current)});let t=G,n=null,r=!1,i=()=>{n!=null&&(clearTimeout(n),n=null)},a=()=>{i(),this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),t()};q([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(this.opts.enabled.current&&this.opts.ref.current)return i(),n=Ve(1,()=>{n=null,!r&&this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#l())}),a}),_e(()=>{r=!0,i(),this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),t()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&de(()=>{this.opts.ref.current&&!this.#h(e.target)&&e.target&&!this.#i&&this.#o.current?.(e)})};#l(){return Oe(o(this.#a,`pointerdown`,Oe(this.#f,this.#m),{capture:!0}),o(this.#a,`pointerdown`,Oe(this.#p,this.#d)),o(this.#a,`focusin`,this.#c))}#u=e=>{let t=e;t.defaultPrevented&&(t=yn(e)),this.#e.current(e)};#d=At(e=>{if(!this.opts.ref.current){this.#s();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||vn(e,this.opts.ref.current);if(!this.#r||this.#_()||!t){this.#s();return}let n=e;n.defaultPrevented&&(n=yn(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`?this.#s():e.pointerType===`touch`?(this.#s(),this.#s=o(this.#a,`click`,this.#u,{once:!0})):this.#e.current(n)},10);#f=e=>{this.#n[e.type]=!0};#p=e=>{this.#n[e.type]=!1};#m=()=>{this.opts.ref.current&&(this.#r=_n(this.opts.ref.current))};#h=e=>this.opts.ref.current?jt(this.opts.ref.current,e):!1;#g=At(()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1},20);#_(){return Object.values(this.#n).some(Boolean)}#v=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#v,onblurcapture:this.#y}};function gn(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function _n(e){let t=[...globalThis.bitsDismissableLayers],n=gn(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function vn(e,t){let n=e.target;if(!at(n))return!1;let r=!!n.closest(`[${pn}]`),i=!!t.closest(`[${mn}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:Mt(n).documentElement.contains(n)&&!jt(t,n)&&Nt(e,t)}function yn(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function bn(e,n){a(n,!0);let r=R(n,`interactOutsideBehavior`,3,`close`),i=R(n,`onInteractOutside`,3,G),o=R(n,`onFocusOutside`,3,G),l=R(n,`isValidEvent`,3,()=>!1),u=hn.create({id:Z(()=>n.id),interactOutsideBehavior:Z(()=>r()),onInteractOutside:Z(()=>i()),enabled:Z(()=>n.enabled),onFocusOutside:Z(()=>o()),isValidEvent:Z(()=>l()),ref:n.ref});var d=c(),f=O(d);t(f,()=>n.children??A,()=>({props:u.props})),s(e,d),h()}globalThis.bitsEscapeLayers??=new Map;var xn=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new et(this.opts.ref);let t=G;q(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>o(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!Sn(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function Sn(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function Cn(e,n){a(n,!0);let r=R(n,`escapeKeydownBehavior`,3,`close`),i=R(n,`onEscapeKeydown`,3,G);xn.create({escapeKeydownBehavior:Z(()=>r()),onEscapeKeydown:Z(()=>i()),enabled:Z(()=>n.enabled),ref:n.ref});var o=c(),l=O(o);t(l,()=>n.children??A),s(e,o),h()}var wn=class e{static instance;#e=be([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},Tn=class e{#e=!1;#t=null;#n=wn.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;let e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#t.focus()})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(o(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=t.target;if(n){if(e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&fn(n))t.preventDefault(),n.focus();else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus()}}}},{capture:!0}),o(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus(),this.#n.setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?ln(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?un(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return q([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),_e(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function En(e,n){a(n,!0);let r=R(n,`enabled`,3,!1),i=R(n,`trapFocus`,3,!1),o=R(n,`loop`,3,!1),l=R(n,`onCloseAutoFocus`,3,G),u=R(n,`onOpenAutoFocus`,3,G),d=Tn.use({enabled:Z(()=>r()),trap:Z(()=>i()),loop:o(),onCloseAutoFocus:Z(()=>l()),onOpenAutoFocus:Z(()=>u()),ref:n.ref});var f=c(),p=O(f);t(p,()=>n.focusScope??A,()=>({props:d.props})),s(e,f),h()}var Dn=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var On=class e{static create(t){return new e(t)}opts;domContext;#e=G;#t=!1;#n=Dn;#r=Dn;constructor(e){this.opts=e,this.domContext=new et(e.ref);let t=G;q(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return Oe(o(this.domContext.getDocument(),`pointerdown`,this.#o),o(this.domContext.getDocument(),`pointerup`,je(this.#s,this.#a)))}#a=e=>{this.#r(e)};#o=e=>{if(!this.#t)return;let t=this.opts.ref.current,n=e.target;it(t)&&it(n)&&Mn(this)&&Xe(t,n)&&(this.#n(e),!e.defaultPrevented&&(this.#e=An(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=G}},kn=e=>e.style.userSelect||e.style.webkitUserSelect;function An(e,t){let n=kn(t),r=kn(e);return jn(t,`none`),jn(e,`text`),()=>{jn(t,n),jn(e,r)}}function jn(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Mn(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function Nn(e,n){a(n,!0);let r=R(n,`preventOverflowTextSelection`,3,!0),i=R(n,`onPointerDown`,3,G),o=R(n,`onPointerUp`,3,G);On.create({id:Z(()=>n.id),onPointerDown:Z(()=>i()),onPointerUp:Z(()=>o()),enabled:Z(()=>n.enabled&&r()),ref:n.ref});var l=c(),u=O(l);t(u,()=>n.children??A),s(e,l),h()}globalThis.bitsIdCounter??={current:0};function Pn(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var Fn=class{#e;#t=0;#n=w();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),M(this.#n,void 0),this.#r=void 0)}get(...t){return this.#t+=1,L(this.#n)===void 0&&(this.#r=e(()=>{M(this.#n,this.#e(...t),!0)})),ne(()=>()=>{this.#i()}),L(this.#n)}},In=new W,Ln=w(null),Rn=null,zn=null,Bn=!1,Vn=Z(()=>{for(let e of In.values())if(e)return!0;return!1}),Hn=null,Un=new Fn(()=>{function e(){document.body.setAttribute(`style`,L(Ln)??``),document.body.style.removeProperty(`--scrollbar-width`),nt&&Rn?.(),M(Ln,null)}function t(){zn!==null&&(window.clearTimeout(zn),zn=null)}function n(e,n){t(),Bn=!0,Hn=Date.now();let r=Hn,i=()=>{zn=null,Hn===r&&(Gn(In)?Bn=!1:(Bn=!1,n()))},a=e===null?24:e;zn=window.setTimeout(i,a)}function r(){L(Ln)===null&&In.size===0&&!Bn&&M(Ln,document.body.getAttribute(`style`),!0)}return q(()=>Vn.current,()=>{if(!Vn.current)return;r(),Bn=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,nt&&(Rn=o(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),de(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),_e(()=>()=>{Rn?.()}),{get lockMap(){return In},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),Wn=class{#e=Pn();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=Un.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Z(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),_e(()=>{if(this.#r.lockMap.delete(this.#e),Gn(this.#r.lockMap))return;let e=this.#n();this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle()})}))}};function Gn(e){for(let[t,n]of e)if(n)return!0;return!1}function Kn(e,t){a(t,!0);let n=R(t,`preventScroll`,3,!0),r=R(t,`restoreScrollDelay`,3,null);n()&&new Wn(n(),()=>r()),h()}var qn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`interactOutsideBehavior`,`onCloseAutoFocus`,`onEscapeKeydown`,`onOpenAutoFocus`,`onInteractOutside`,`preventScroll`,`trapFocus`,`restoreScrollDelay`]),Jn=f(`<!> <!>`,1),Yn=f(`<!> <div><!></div>`,1);function Xn(e,i){let o=n();a(i,!0);let l=R(i,`id`,19,()=>Y(o)),u=R(i,`ref`,15,null),d=R(i,`forceMount`,3,!1),f=R(i,`interactOutsideBehavior`,3,`ignore`),p=R(i,`onCloseAutoFocus`,3,G),m=R(i,`onEscapeKeydown`,3,G),g=R(i,`onOpenAutoFocus`,3,G),_=R(i,`onInteractOutside`,3,G),v=R(i,`preventScroll`,3,!0),y=R(i,`trapFocus`,3,!0),b=R(i,`restoreScrollDelay`,3,null),x=N(i,qn),S=dt.create({id:Z(()=>l()),ref:Z(()=>u(),e=>u(e))}),C=D(()=>Q(x,S.props));var w=c(),T=O(w),E=e=>{En(e,{get ref(){return S.opts.ref},loop:!0,get trapFocus(){return y()},get enabled(){return S.root.opts.open.current},get onCloseAutoFocus(){return p()},onOpenAutoFocus:e=>{g()(e),!e.defaultPrevented&&(e.preventDefault(),Ve(0,()=>S.opts.ref.current?.focus()))},focusScope:(e,n)=>{let a=()=>(n?.()).props;Cn(e,I(()=>L(C),{get enabled(){return S.root.opts.open.current},get ref(){return S.opts.ref},onEscapeKeydown:e=>{m()(e),!e.defaultPrevented&&S.root.handleClose()},children:(e,n)=>{bn(e,I(()=>L(C),{get ref(){return S.opts.ref},get enabled(){return S.root.opts.open.current},get interactOutsideBehavior(){return f()},onInteractOutside:e=>{_()(e),!e.defaultPrevented&&S.root.handleClose()},children:(e,n)=>{Nn(e,I(()=>L(C),{get ref(){return S.opts.ref},get enabled(){return S.root.opts.open.current},children:(e,n)=>{var o=c(),l=O(o),u=e=>{var n=Jn(),o=O(n),c=e=>{Kn(e,{get preventScroll(){return v()},get restoreScrollDelay(){return b()}})};r(o,e=>{S.root.opts.open.current&&e(c)});var l=z(o,2);{let e=D(()=>({props:Q(L(C),a()),...S.snippetProps}));t(l,()=>i.child,()=>L(e))}s(e,n)},d=e=>{var n=Yn(),r=O(n);Kn(r,{get preventScroll(){return v()}});var o=z(r,2);F(o,e=>({...e}),[()=>Q(L(C),a())]);var c=k(o);t(c,()=>i.children??A),V(o),s(e,n)};r(l,e=>{i.child?e(u):e(d,-1)}),s(e,o)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};r(T,e=>{(S.shouldRender||d())&&e(E)}),s(e,w),h()}var Zn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),Qn=f(`<div><!></div>`);function $n(e,i){let o=n();a(i,!0);let l=R(i,`id`,19,()=>Y(o)),u=R(i,`forceMount`,3,!1),d=R(i,`ref`,15,null),f=N(i,Zn),p=ft.create({id:Z(()=>l()),ref:Z(()=>d(),e=>d(e))}),m=D(()=>Q(f,p.props));var g=c(),_=O(g),v=e=>{var n=c(),a=O(n),o=e=>{var n=c(),r=O(n);{let e=D(()=>({props:Q(L(m)),...p.snippetProps}));t(r,()=>i.child,()=>L(e))}s(e,n)},l=e=>{var n=Qn();F(n,e=>({...e}),[()=>Q(L(m))]);var r=k(n);t(r,()=>i.children??A,()=>p.snippetProps),V(n),s(e,n)};r(a,e=>{i.child?e(o):e(l,-1)}),s(e,n)};r(_,e=>{(p.shouldRender||u())&&e(v)}),s(e,g),h()}var er=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),tr=f(`<button><!></button>`);function nr(e,i){let o=n();a(i,!0);let l=R(i,`id`,19,()=>Y(o)),u=R(i,`ref`,15,null),d=R(i,`disabled`,3,!1),f=N(i,er),p=ct.create({id:Z(()=>l()),ref:Z(()=>u(),e=>u(e)),disabled:Z(()=>!!d())}),m=D(()=>Q(f,p.props));var g=c(),_=O(g),v=e=>{var n=c(),r=O(n);t(r,()=>i.child,()=>({props:L(m)})),s(e,n)},y=e=>{var n=tr();F(n,()=>({...L(m)}));var r=k(n);t(r,()=>i.children??A),V(n),s(e,n)};r(_,e=>{i.child?e(v):e(y,-1)}),s(e,g),h()}var rr=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`]),ir=f(`<div><!></div>`);function ar(e,i){let o=n();a(i,!0);let l=R(i,`id`,19,()=>Y(o)),u=R(i,`ref`,15,null),d=N(i,rr),f=ut.create({id:Z(()=>l()),ref:Z(()=>u(),e=>u(e))}),p=D(()=>Q(d,f.props));var m=c(),g=O(m),_=e=>{var n=c(),r=O(n);t(r,()=>i.child,()=>({props:L(p)})),s(e,n)},v=e=>{var n=ir();F(n,()=>({...L(p)}));var r=k(n);t(r,()=>i.children??A),V(n),s(e,n)};r(g,e=>{i.child?e(_):e(v,-1)}),s(e,m),h()}var or=ge({component:`label`,parts:[`root`]}),sr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=D(()=>({id:this.opts.id.current,[or.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return L(this.#e)}set props(e){M(this.#e,e)}},cr=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`for`]),lr=f(`<label><!></label>`);function ur(e,i){let o=n();a(i,!0);let l=R(i,`id`,19,()=>Y(o)),u=R(i,`ref`,15,null),d=N(i,cr),f=sr.create({id:Z(()=>l()),ref:Z(()=>u(),e=>u(e))}),p=D(()=>Q(d,f.props,{for:i.for}));var m=c(),g=O(m),_=e=>{var n=c(),r=O(n);t(r,()=>i.child,()=>({props:L(p)})),s(e,n)},v=e=>{var n=lr();F(n,()=>({...L(p),for:i.for}));var r=k(n);t(r,()=>i.children??A),V(n),s(e,n)};r(g,e=>{i.child?e(_):e(v,-1)}),s(e,m),h()}var dr=ge({component:`progress`,parts:[`root`]}),fr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref)}#e=D(()=>({role:`progressbar`,value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":pr(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?``:void 0,[dr.root]:``,...this.attachment}));get props(){return L(this.#e)}set props(e){M(this.#e,e)}};function pr(e,t){return e===null?`indeterminate`:e===t?`loaded`:`loading`}var mr=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`value`,`max`,`min`,`id`,`ref`]),hr=f(`<div><!></div>`);function gr(e,i){let o=n();a(i,!0);let l=R(i,`value`,3,0),u=R(i,`max`,3,100),d=R(i,`min`,3,0),f=R(i,`id`,19,()=>Y(o)),p=R(i,`ref`,15,null),m=N(i,mr),g=fr.create({value:Z(()=>l()),max:Z(()=>u()),min:Z(()=>d()),id:Z(()=>f()),ref:Z(()=>p(),e=>p(e))}),_=D(()=>Q(m,g.props));var v=c(),y=O(v),b=e=>{var n=c(),r=O(n);t(r,()=>i.child,()=>({props:L(_)})),s(e,n)},x=e=>{var n=hr();F(n,()=>({...L(_)}));var r=k(n);t(r,()=>i.children??A),V(n),s(e,n)};r(y,e=>{i.child?e(b):e(x,-1)}),s(e,v),h()}var _r=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function vr(e,t){a(t,!0);let n=R(t,`ref`,15,null),r=N(t,_r);var i=c(),o=O(i);{let e=D(()=>J(`gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed`,t.class));p(o,()=>ur,(t,i)=>{i(t,I({"data-slot":`label`,get class(){return L(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}s(e,i),h()}var yr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`size`]);function br(e,t){a(t,!0);let n=R(t,`ref`,15,null),r=R(t,`variant`,3,`outline`),i=R(t,`size`,3,`default`),o=N(t,yr);var l=c(),u=O(l);{let e=D(()=>J(we({variant:r(),size:i()}),`cn-alert-dialog-cancel`,t.class));p(u,()=>bt,(t,r)=>{r(t,I({"data-slot":`alert-dialog-cancel`,get class(){return L(e)}},()=>o,{get ref(){return n()},set ref(e){n(e)}}))})}s(e,l),h()}var xr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Sr(e,t){a(t,!0);let n=R(t,`ref`,15,null),r=N(t,xr);var i=c(),o=O(i);{let e=D(()=>J(`bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50`,t.class));p(o,()=>$n,(t,i)=>{i(t,I({"data-slot":`alert-dialog-overlay`,get class(){return L(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}s(e,i),h()}var Cr=new Set([`$$slots`,`$$events`,`$$legacy`]);function wr(e,t){let n=N(t,Cr);var r=c(),i=O(r);p(i,()=>Ot,(e,t)=>{t(e,I(()=>n))}),s(e,r)}var Tr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`size`,`portalProps`]),Er=f(`<!> <!>`,1);function Dr(e,t){a(t,!0);let n=R(t,`ref`,15,null),r=R(t,`size`,3,`default`),i=N(t,Tr);wr(e,I(()=>t.portalProps,{children:(e,a)=>{var o=Er(),c=O(o);Sr(c,{});var l=z(c,2);{let e=D(()=>J(`gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none`,t.class));p(l,()=>Xn,(t,a)=>{a(t,I({"data-slot":`alert-dialog-content`,get"data-size"(){return r()},get class(){return L(e)}},()=>i,{get ref(){return n()},set ref(e){n(e)}}))})}s(e,o)},$$slots:{default:!0}})),h()}var Or=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function kr(e,t){a(t,!0);let n=R(t,`ref`,15,null),r=N(t,Or);var i=c(),o=O(i);{let e=D(()=>J(`text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,t.class));p(o,()=>ar,(t,i)=>{i(t,I({"data-slot":`alert-dialog-description`,get class(){return L(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}s(e,i),h()}var Ar=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),jr=f(`<div><!></div>`);function Mr(e,n){a(n,!0);let r=R(n,`ref`,15,null),i=N(n,Ar);var o=jr();F(o,e=>({"data-slot":`alert-dialog-footer`,class:e,...i}),[()=>J(`-mx-4 -mb-4 rounded-b-xl border-t bg-muted/50 p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,n.class)]);var c=k(o);t(c,()=>n.children??A),V(o),j(o,e=>r(e),()=>r()),s(e,o),h()}var Nr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Pr=f(`<div><!></div>`);function Fr(e,n){a(n,!0);let r=R(n,`ref`,15,null),i=N(n,Nr);var o=Pr();F(o,e=>({"data-slot":`alert-dialog-header`,class:e,...i}),[()=>J(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,n.class)]);var c=k(o);t(c,()=>n.children??A),V(o),j(o,e=>r(e),()=>r()),s(e,o),h()}var Ir=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Lr(e,t){a(t,!0);let n=R(t,`ref`,15,null),r=N(t,Ir);var i=c(),o=O(i);{let e=D(()=>J(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,t.class));p(o,()=>_t,(t,i)=>{i(t,I({"data-slot":`alert-dialog-title`,get class(){return L(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}s(e,i),h()}var Rr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function zr(e,t){a(t,!0);let n=R(t,`ref`,15,null),r=N(t,Rr);var i=c(),o=O(i);p(o,()=>nr,(e,t)=>{t(e,I({"data-slot":`alert-dialog-trigger`},()=>r,{get ref(){return n()},set ref(e){n(e)}}))}),s(e,i),h()}var Br=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function Vr(e,t){a(t,!0);let n=R(t,`open`,15,!1),r=N(t,Br);var i=c(),o=O(i);p(o,()=>mt,(e,t)=>{t(e,I(()=>r,{get open(){return n()},set open(e){n(e)}}))}),s(e,i),h()}var Hr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`max`,`value`]),Ur=f(`<div data-slot="progress-indicator" class="bg-primary size-full flex-1 transition-all"></div>`);function Wr(e,t){a(t,!0);let n=R(t,`ref`,15,null),r=R(t,`max`,3,100),i=N(t,Hr);var o=c(),l=O(o);{let e=D(()=>J(`h-1 rounded-full bg-muted relative flex w-full items-center overflow-x-hidden`,t.class));p(l,()=>gr,(a,o)=>{o(a,I({"data-slot":`progress`,get class(){return L(e)},get value(){return t.value},get max(){return r()}},()=>i,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var i=Ur();T(()=>te(i,`transform: translateX(-${100-100*(t.value??0)/(r()??1)}%)`)),s(e,i)},$$slots:{default:!0}}))})}s(e,o),h()}var Gr=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`duration`,`label`,`variant`,`children`,`position`,`align`,`portal`,`onclick`,`onpress`,`class`,`message`]),Kr=f(`<div><div class="text-xs text-muted-foreground"><!></div> <!></div>`),qr=f(`<!> <!>`,1);function Jr(e,n){a(n,!0);let i=()=>P(L(B),`$countdown`,o),[o,l]=b(),d=R(n,`name`,3,`hold`),f=R(n,`duration`,3,800),p=R(n,`variant`,3,`ghost`),m=R(n,`position`,3,`left`),y=R(n,`align`,3,`center`),x=R(n,`portal`,3,!0),C=N(n,Gr),E=w(!1),j=w(!1),F=w(null),B=w(ie(_(f()))),H=D(()=>Math.round((1-i()/f())*100));ne(()=>{i()===0&&se()});function U(e){ce(e),e.altKey?se(!0):W()}function oe(e){e.key===` `&&W()}function W(){L(E)||(n.onpress?.(),M(E,!0),M(j,!0),S(M(B,ae(f(),60),!0),`$countdown`,o),L(F)&&clearTimeout(L(F)))}function G(){L(E)&&(M(F,setTimeout(()=>{M(j,!1)},L(H)>20?200:1e3),!0),M(E,!1),S(M(B,_(f()),!0),`$countdown`,o))}function se(e=!1){(L(E)||e)&&(n.onclick?.(),M(E,!1),M(F,setTimeout(()=>{M(j,!1),S(M(B,_(f()),!0),`$countdown`,o)},300),!0))}function ce(e){e.preventDefault(),e.stopPropagation()}function le(e,t){if(t)return document.body.appendChild(e),{destroy:()=>e.remove()}}var ue=qr(),de=O(ue);{let e=D(()=>J(`select-none`,n.class)),r=D(()=>`anchor-name: --${d()};`);De(de,I({get variant(){return p()}},()=>C,{get class(){return L(e)},onpointerdown:U,onkeydown:oe,oncontextmenu:ce,onpointerup:G,onpointerleave:G,onkeyup:G,get style(){return L(r)},children:(e,r)=>{var i=c(),a=O(i);t(a,()=>n.children??A),s(e,i)},$$slots:{default:!0}}))}var fe=z(de,2),pe=e=>{var i=Kr(),a=k(i),o=k(a),l=e=>{var r=c(),i=O(r);t(i,()=>n.message),s(e,r)},f=e=>{var t=g();T(()=>u(t,n.label)),s(e,t)};r(o,e=>{n.message?e(l):e(f,-1)}),V(a),Wr(z(a,2),{get value(){return L(H)},class:`h-1 [&_div[data-slot=progress-indicator]]:bg-destructive/90 [&_div[data-slot=progress-indicator]]:transition-none`}),V(i),re(i,(e,t)=>le?.(e,t),x),T(e=>{ee(i,1,e),te(i,`position-anchor: --${d()}; position-area: ${m()} ${y()};`)},[()=>v(J(`fixed z-1002 w-fit min-w-26 transition-all ease-in-out space-y-1`,`bg-background/85 p-2 pt-1 rounded-md`,`starting:scale-0`))]),s(e,i)};r(fe,e=>{L(j)&&e(pe)}),s(e,ue),h(),l()}var Yr=7e3,Xr=f(`<!> `,1),Zr=f(`<!> <!>`,1),Qr=f(`<p id="introspection-halt-error" class="text-destructive text-sm"> </p>`),$r=f(` <!>`,1),ei=f(`<!> <div class="grid grid-cols-2 gap-4"><div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-hint"> </p></div> <div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-quiescence-hint"> </p></div></div> <!> <!>`,1);function ti(e,t){a(t,!0);let n=()=>P(me,`$configuration`,o),i=()=>P(oe,`$dict`,o),[o,l]=b(),d=D(()=>Fe(n())?n().halt??null:null),f=w(!1),m=w(ie({})),_=w(null),S=w(!1),C=w(!1),E=null,te=D(()=>L(m).duration??(L(d)===null?void 0:W(600,L(d).duration))),A=D(()=>L(m).quiescence??(L(d)===null?void 0:W(60,L(d).quiescence))),j=D(()=>L(d)!==null&&ae(L(te),L(d).duration)),N=D(()=>L(d)!==null&&ae(L(A),L(d).quiescence)),F=D(()=>L(j)&&L(N)),I=D(()=>L(_)!==null);function R(e){H(),M(C,!1),M(m,{},!0)}function ne(){L(F)&&!L(I)&&(M(C,!1),M(_,9,!0),E=setInterval(B,1e3))}function B(){L(_)!==null&&(M(_,L(_)-1),!(L(_)>0)&&(U(),M(S,!0),re()))}async function re(){let e=await Pe(L(te),L(A));M(S,!1),M(C,e instanceof Error),L(C)?H():M(f,!1)}function H(){U(),M(_,null),M(S,!1)}function U(){E!==null&&clearInterval(E),E=null}function ae(e,[t,n]){return e!==void 0&&Number.isInteger(e)&&e>=t&&e<=n}function W(e,[t,n]){return Math.min(n,Math.max(t,e))}var G=c(),se=O(G),ce=e=>{var t=c(),n=O(t);p(n,()=>Vr,(e,t)=>{t(e,{onOpenChange:R,get open(){return L(f)},set open(e){M(f,e,!0)},children:(e,t)=>{var n=Zr(),a=O(n);{let e=D(()=>[we({variant:`ghost`}),`text-destructive hover:text-destructive`]);p(a,()=>zr,(t,n)=>{n(t,{id:`introspection-halt-button`,get class(){return L(e)},children:(e,t)=>{var n=Xr(),r=O(n);Be(r,{});var a=z(r);T(()=>u(a,` ${i().nav.halt??``}`)),s(e,n)},$$slots:{default:!0}})})}var o=z(a,2);p(o,()=>Dr,(e,t)=>{t(e,{children:(e,t)=>{var n=ei(),a=O(n);p(a,()=>Fr,(e,t)=>{t(e,{children:(e,t)=>{var n=Zr(),r=O(n);p(r,()=>Lr,(e,t)=>{t(e,{children:(e,t)=>{x();var n=g();T(()=>u(n,i().halt.title)),s(e,n)},$$slots:{default:!0}})});var a=z(r,2);p(a,()=>kr,(e,t)=>{t(e,{children:(e,t)=>{x();var n=g();T(()=>u(n,i().halt.description)),s(e,n)},$$slots:{default:!0}})}),s(e,n)},$$slots:{default:!0}})});var o=z(a,2),l=k(o),f=k(l);vr(f,{for:`introspection-halt-input`,children:(e,t)=>{x();var n=g();T(()=>u(n,i().halt.interval)),s(e,n)},$$slots:{default:!0}});var h=z(f,2),b=()=>L(te),w=e=>L(m).duration=e;{let e=D(()=>!L(j));Re(h,{id:`introspection-halt-input`,type:`number`,inputmode:`numeric`,get min(){return L(d).duration[0]},get max(){return L(d).duration[1]},step:`1`,get disabled(){return L(I)},get value(){return b()},set value(e){w(e)},get"aria-invalid"(){return L(e)},"aria-describedby":`introspection-halt-hint`})}var E=z(h,2),M=y(E,!0);V(l);var P=z(l,2),R=k(P);vr(R,{for:`introspection-halt-quiescence-input`,children:(e,t)=>{x();var n=g();T(()=>u(n,i().halt.quiescence)),s(e,n)},$$slots:{default:!0}});var B=z(R,2),re=()=>L(A),ie=e=>L(m).quiescence=e;{let e=D(()=>!L(N));Re(B,{id:`introspection-halt-quiescence-input`,type:`number`,inputmode:`numeric`,get min(){return L(d).quiescence[0]},get max(){return L(d).quiescence[1]},step:`1`,get disabled(){return L(I)},get value(){return re()},set value(e){ie(e)},get"aria-invalid"(){return L(e)},"aria-describedby":`introspection-halt-quiescence-hint`})}var U=z(B,2),ae=y(U,!0);V(P),V(o);var oe=z(o,2),W=e=>{var t=Qr(),n=y(t,!0);T(()=>u(n,i().halt.failed)),s(e,t)};r(oe,e=>{L(C)&&e(W)});var G=z(oe,2);p(G,()=>Mr,(e,t)=>{t(e,{children:(e,t)=>{var n=Zr(),a=O(n),o=e=>{De(e,{id:`introspection-halt-cancel-button`,variant:`outline`,get disabled(){return L(S)},onclick:H,children:(e,t)=>{x();var n=$r(),r=O(n),a=z(r);pe(a,{id:`introspection-halt-countdown`,variant:`destructive`,class:`tabular-nums`,children:(e,t)=>{x();var n=g();T(()=>u(n,L(_))),s(e,n)},$$slots:{default:!0}}),T(()=>u(r,`${i().halt.cancel??``} `)),s(e,n)},$$slots:{default:!0}})},l=e=>{var t=c(),n=O(t);p(n,()=>br,(e,t)=>{t(e,{id:`introspection-halt-cancel-button`,children:(e,t)=>{x();var n=g();T(()=>u(n,i().halt.cancel)),s(e,n)},$$slots:{default:!0}})}),s(e,t)};r(a,e=>{L(I)?e(o):e(l,-1)});var d=z(a,2);{let e=D(()=>!L(F)||L(I));Jr(d,{id:`introspection-halt-confirm-button`,variant:`destructive`,portal:!1,position:`top`,get duration(){return Yr},get label(){return i().halt.hold},get disabled(){return L(e)},onclick:ne,children:(e,t)=>{x();var n=g();T(()=>u(n,i().nav.halt)),s(e,n)},$$slots:{default:!0}})}s(e,n)},$$slots:{default:!0}})}),T((e,t)=>{ee(E,1,v([`text-xs`,L(j)?`text-muted-foreground`:`text-destructive`])),u(M,e),ee(U,1,v([`text-xs`,L(N)?`text-muted-foreground`:`text-destructive`])),u(ae,t)},[()=>i().halt.bounds(L(d).duration[0],L(d).duration[1]),()=>i().halt.bounds(L(d).quiescence[0],L(d).quiescence[1])]),s(e,n)},$$slots:{default:!0}})}),s(e,n)},$$slots:{default:!0}})}),s(e,t)};r(se,e=>{L(d)!==null&&e(ce)}),s(e,G),h(),l()}var ni=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),ri=f(`<p class="text-muted-foreground py-20 text-center"> </p>`),ii=f(`<section class="flex flex-col gap-2"><div class="text-muted-foreground flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div> <!></section>`),ai=f(`<div></div>`);function oi(e,t){a(t,!0);let n=()=>P(ce,`$nodes`,l),i=()=>P(ke,`$query`,l),o=()=>P(ye,`$dict`,l),[l,d]=b(),f=N(t,ni),m=new xe,g=D(()=>Fe(n())?n():[]),_=D(()=>L(g).map(e=>({node:e,rank:Ee(e,i())})).filter(e=>e.rank>0).sort(v));ne(()=>{let e=L(_).length===1?Ne(L(_)[0].node):null;return Se.set(e===null?null:()=>m.add(e)),()=>Se.set(null)});function v(e,t){return t.rank-e.rank||e.node.namespace.localeCompare(t.node.namespace)||e.node.component.localeCompare(t.node.component)}function x(e){return[{id:`user`,label:o().space.user,of:e.filter(e=>!Ce(e.node))},{id:`system`,label:o().space.system,of:e.filter(e=>Ce(e.node))}].filter(e=>e.of.length>0)}U(e,{get store(){return ce},awaited:e=>{var n=c(),i=O(n),a=e=>{var t=ri(),n=y(t,!0);T(()=>u(n,o().nodes.empty)),s(e,t)},l=e=>{var t=ri(),n=y(t,!0);T(()=>u(n,o().nodes.nomatch)),s(e,t)},d=e=>{var n=ai();F(n,()=>({class:[`flex flex-col gap-6`,t.class],...f})),B(n,21,()=>x(L(_)),e=>e.id,(e,t)=>{var n=ii(),r=k(n),i=k(r),a=y(i,!0),o=z(i,2);se(o,{class:`flex-1`}),V(r);var l=z(r,2);p(l,()=>ve,(e,n)=>{n(e,{class:`gap-2`,children:(e,n)=>{var r=c(),i=O(r);B(i,17,()=>L(t).of,e=>e.node.id,(e,t)=>{let n=D(()=>Ne(L(t).node));var r=()=>m.has(L(n)),i=e=>e?m.add(L(n)):m.delete(L(n));Me(e,{get node(){return L(t).node},get open(){return r()},set open(e){i(e)}})}),s(e,r)},$$slots:{default:!0}})}),V(n),T(()=>u(a,L(t).label)),s(e,n)}),V(n),s(e,n)};r(i,e=>{L(g).length===0?e(a):L(_).length===0?e(l,1):e(d,-1)}),s(e,n)},$$slots:{awaited:!0}}),h(),d()}export{Qe as a,et as i,ti as n,Re as o,it as r,oi as t};
@@ -0,0 +1 @@
1
+ export{i as load_css,r as start}from"./BUuXt4am.js";
@@ -0,0 +1,6 @@
1
+ import{t as e}from"./XKyaHtl9.js";import{payload as t}from"../entry/payload.DSmR2FwN.js";import{A as n,Ct as r,D as i,Et as a,H as o,I as s,J as c,L as l,Mt as u,Nt as d,R as f,T as p,Tt as m,U as h,X as g,Y as _,a as v,ft as y,gt as b,ht as x,jt as ee,n as S,o as te,p as C,q as w,r as ne,rt as T,t as E,vt as D,w as re,x as ie,xt as O,z as ae}from"./CLKsegBr.js";var oe=class{store;values;request;revalidate;stale;timestamp=0;constructor(e){this.store=g(null),this.values=e.values,this.request=e.get,this.revalidate=e.revalidate??ce.revalidate,this.stale=e.stale??ce.stale,e.persist!==void 0&&this.persist(e.persist),e.bind!==void 0&&this.bind(e.bind)}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}add(e){this.values?.set(e.id,e),this.store.update(t=>t===null||t instanceof Error?[e]:t.find(t=>t.id===e.id)===void 0?[e,...t]:t)}get(e,t){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.get(e,t)}extract(e){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.extract(e)}delete(e){this.values?.delete(e),this.store.update(t=>t===null||t instanceof Error?t:t.filter(t=>t.id!==e))}set(e,t){this.store.update(n=>{if(n===null||n instanceof Error)return[e];let r=n.findIndex(t=>t.id===e.id);return r===-1?t?.add===!0?[e,...n]:n:(n[r]=e,n)}),this.values?.set(e.id,e)}update(e,t,n){if(this.values===void 0)throw Error(`Collection: values is not defined`);let r=this.values.extract(e);if(r===null)return;let i=t(r)??r;this.set(i,n)}sync(){return(this.timestamp===0||this.timestamp+this.revalidate<Date.now())&&(this.stale||this.clear(),this.refresh()),this}async fetch(){return await this.refresh(),this}replace(e){let t=e;if(this.store.set(t),this.timestamp=Date.now(),this.values!==void 0)for(let e of t)this.values.set(e.id,e)}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error?this.store.set(e):this.replace(e)}persist(e){if(typeof window>`u`)return;let t=this.load(e);if(t!==null&&(this.store.set(t),this.values?.persistent===!1))for(let e of t)this.values.set(e.id,e);this.store.subscribe(t=>{t instanceof Error||(t===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t)))})}load(e){if(typeof window>`u`)return null;let t=localStorage.getItem(e);if(t===null)return null;try{let n=JSON.parse(t);return Array.isArray(n)?n:(console.error(`Storage value for ${e} is not an array:`,n),null)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}clear(){this.store.set(null),this.values?.clear(),this.timestamp=0}};function se(e){return new oe(e)}var ce={revalidate:3e5,stale:!1},le=class{persistent;values={};fetch;revalidate;permanent;stale;persist;ready=!1;dumping=null;constructor(e){this.fetch=e.get,this.revalidate=e.revalidate??k.revalidate,this.permanent=e.permanent??k.permanent,this.stale=e.stale??k.stale,this.persist=e.persist,this.persistent=this.persist!==void 0,this.load(),e.bind!==void 0&&this.bind(e.bind)}set(e,t,n){let r=t,i=this.values[e]??(this.values[e]=this.create(r));return n?.stash===!0?this.stash(e):delete i.stash,i.store.set(r),!(r instanceof Error)&&this.ready&&n?.stash!==!0&&this.dump(),this.values[e].store}reset(e){let t=this.values[e]?.stash;return t===void 0?this.extract(e):(t===null?this.delete(e):this.set(e,t),t)}get(e,t){this.ready=!0;let n=this.values[e]??=this.create();return this.fetch===void 0||t?.fetch===!1||(n.timestamp===0||n.timestamp+this.revalidate<Date.now())&&(this.stale||n.store.set(null),n.timestamp=Date.now(),this.fetch(e).then(t=>this.set(e,t))),n.store}extract(e){if(this.values[e]===void 0)return null;let t=c(this.values[e].store);return t instanceof Error?null:t}delete(e){if(!(e in this.values))return;let t=this.values[e];t.store.set(null),t.timestamp=0,delete t.stash,this.dump()}clear(){for(let e of Object.keys(this.values))this.delete(e);this.ready=!1}create(e){return{store:g(e??null),timestamp:this.permanent&&e!==void 0?Date.now():0}}stash(e){let t=this.values[e];if(t.stash!==void 0){console.warn(`Stash overlap, skipping`);return}let n=this.get(e,{fetch:!1});t.stash??=c(n)}dump(e=!0){if(this.persist===void 0||typeof window>`u`)return;if(e){this.dumping??=setTimeout(()=>this.dump(!1),ue);return}this.dumping=null;let t={};for(let[e,n]of Object.entries(this.values)){let r=n.stash??c(n.store);r!==null&&!(r instanceof Error)&&(t[e]=r)}Object.keys(t).length===0?localStorage.removeItem(this.persist):localStorage.setItem(this.persist,JSON.stringify(t))}load(){if(this.persist===void 0||typeof window>`u`)return;let e=localStorage.getItem(this.persist);if(e!==null)try{let t=JSON.parse(e);if(typeof t!=`object`||!t){console.error(`Storage value for ${this.persist} is not an object:`,t);return}for(let[e,n]of Object.entries(t))this.set(e,n)}catch(e){console.error(`Invalid storage value for ${this.persist}`,e)}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}},ue=100,k={revalidate:3e5,permanent:!1,stale:!1};function de(e={}){return new le(e)}var fe=class{store;default;request;revalidate;timestamp=0;constructor(e){this.default=e.default??null,this.request=e.get,this.revalidate=e.revalidate??he.revalidate,this.store=e.persist===void 0||typeof window>`u`?g(this.default):pe(e.persist,this.default,e.session),e.bind&&this.bind(e.bind)}set(e){this.store.set(e)}update(e){this.store.update(t=>e(t))}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}extract(){return c(this.store)}sync(){this.request!==void 0&&this.timestamp+this.revalidate<Date.now()&&this.refresh()}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error||this.set(e)}bind(e){e.subscribe(e=>{e===null&&this.store.set(this.default)})}};function A(e={}){return new fe(e)}function pe(e,t,n){let r=g(me(e)??t),i=n?`sessionStorage`:`localStorage`;return r.subscribe(t=>{t===null?window[i].removeItem(e):window[i].setItem(e,JSON.stringify(t))}),r}function me(e){let t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}var he={revalidate:3e5};function ge(e,t){return new Promise(n=>{let r=!1,i=null;i=e.subscribe(e=>{t(e)&&(i?.(),r=!0,n(e))}),r&&i?.()})}function _e(e){return ge(e,e=>e!==null&&!(e instanceof Error))}function ve(...e){return w(e,(e,t)=>{let n=e.find(e=>e instanceof Error);n?t(n):e.some(e=>e===null)?t(null):t([...e])})}var ye={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},be=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},xe=Symbol(`lucide-context`),Se=()=>r(xe),Ce=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),we=ae(`<svg><!><!></svg>`);function j(e,t){a(t,!0);let r=Se()??{},i=E(t,`color`,19,()=>r.color??`currentColor`),o=E(t,`size`,19,()=>r.size??24),c=E(t,`strokeWidth`,19,()=>r.strokeWidth??2),d=E(t,`absoluteStrokeWidth`,19,()=>r.absoluteStrokeWidth??!1),f=E(t,`iconNode`,19,()=>[]),h=S(t,Ce),g=y(()=>d()?Number(c())*24/Number(o()):c());var _=we();C(_,e=>({...ye,...e,...h,width:o(),height:o(),stroke:i(),"stroke-width":T(g),class:[`lucide-icon lucide`,r.class,t.name&&`lucide-${t.name}`,t.class]}),[()=>!t.children&&!be(h)&&{"aria-hidden":`true`}]);var v=x(_);re(v,17,f,p,(e,t)=>{var n=y(()=>u(T(t),2));let r=()=>T(n)[0],i=()=>T(n)[1];var a=l(),o=b(a);ie(o,r,!0,(e,t)=>{C(e,()=>({...i()}))}),s(e,a)});var te=D(v);n(te,()=>t.children??ee),O(_),s(e,_),m()}var Te=new Set([`$$slots`,`$$events`,`$$legacy`]);function M(e,t){let n=S(t,Te),r=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]];j(e,ne({name:`loader-circle`},()=>n,{get iconNode(){return r}}))}var Ee=new Set([`$$slots`,`$$events`,`$$legacy`]);function De(e,t){let n=S(t,Ee),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]];j(e,ne({name:`rotate-ccw`},()=>n,{get iconNode(){return r}}))}var Oe=f(`<div class="m-auto flex flex-col items-center gap-4"><span class="text-destructive">Something went terribly wrong</span> <button class="p-4 border border-muted-foreground hover:bg-muted cursor-pointer rounded-md flex items-center gap-2"><!></button></div>`);function ke(e,t){let r=()=>te(t.store,`$store`,a),[a,o]=v(),c=E(t,`silent`,3,!1);var u=l(),d=b(u),f=e=>{var r=l(),a=b(r),o=e=>{var r=l(),i=b(r);n(i,()=>t.waiting),s(e,r)},u=e=>{M(e,{class:`animate-spin m-auto text-muted-foreground`})};i(a,e=>{t.waiting?e(o):c()||e(u,1)}),s(e,r)},p=e=>{var a=l(),o=b(a),u=e=>{var i=l(),a=b(i);n(a,()=>t.error,r),s(e,i)},d=e=>{var t=Oe(),n=D(x(t),2);De(x(n),{size:16}),O(n),O(t),h(`click`,n,()=>window.location.reload()),s(e,t)};i(o,e=>{t.error?e(u):c()||e(d,1)}),s(e,a)},m=e=>{var i=l(),a=b(i);n(a,()=>t.awaited,r),s(e,i)};i(d,e=>{r()===null?e(f):r()instanceof Error?e(p,1):e(m,-1)}),s(e,u),o()}o([`click`]);var N=A({persist:`auth:account`}),P=A({persist:`auth:challenge`,bind:N}),F=A({persist:`auth:method`}),I=g(!1),Ae=g(!1),je=w([P,N,I],([e,t,n])=>e!==null&&t!==null&&n===!1);function Me(e){N.extract()?.id!==e.id&&N.set(null),N.set(e)}function L(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}async function Ne(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get(`content-type`);if(!n||!~n.indexOf(`multipart/`))return e;let r=n.indexOf(`boundary=`),i=`-`;if(~r){let e=r+9,t=n.indexOf(`;`,e);i=n.slice(e,t>-1?t:void 0).trim().replace(/"/g,``)}return async function*(e,t,n){let r,i,a,o=new TextDecoder(`utf8`),s=e.getReader(),c=!n||!n.multiple,l=t.length,u=``,d=[];try{let e;e:for(;!(e=await s.read()).done;){let n=o.decode(e.value,{stream:!0});r=u.length,u+=n;let s=n.indexOf(t);for(~s?r+=s:r=u.indexOf(t),d=[];~r;){let e=u.slice(0,r),n=u.slice(r+l);if(i){let t=e.indexOf(`\r
2
+ \r
3
+ `)+4,r=e.lastIndexOf(`\r
4
+ `,t),i=!1,o=e.slice(t,r>-1?void 0:r),s=String(e.slice(0,t)).trim().split(`\r
5
+ `),l={},u=s.length;for(;a=s[--u];a=a.split(`: `),l[a.shift().toLowerCase()]=a.join(`: `));if(a=l[`content-type`],a&&~a.indexOf(`application/json`))try{o=JSON.parse(o),i=!0}catch{}if(a={headers:l,body:o,json:i},c?yield a:d.push(a),n.slice(0,2)===`--`)break e}else t=`\r
6
+ `+t,i=l+=2;u=n,r=u.indexOf(t)}d.length&&(yield d)}}finally{d.length&&(yield d),await s.cancel()}}(e.body,`--${i}`,t)}var Pe=Object.defineProperty,Fe=(e,t)=>{for(var n in t)Pe(e,n,{get:t[n],enumerable:!0})},R=class extends Error{code;constructor(e,t){super(void 0,t===void 0?void 0:{cause:t}),this.code=e}},Ie=Symbol(`meta`);function Le(e){return e[Ie]??null}function Re(e,t){Object.defineProperty(e,Ie,{value:t,writable:!1,enumerable:!1,configurable:!1})}var ze=class{origin;events;sleep;fetch=fetch.bind(globalThis);challenge=null;constructor(e){this.origin=e.origin,this.events=e.events,e.sleep!==void 0&&(this.sleep=JSON.stringify(e.sleep))}async json(e,t){let n=this.setup(t),r=await this.request(e,n),i=r.headers.get(`content-type`)===`application/json`?await r.json():await r.text();return typeof i==`object`&&i&&Re(i,{status:r.status,headers:r.headers}),r.ok?(this.events.emit(`response`,{status:r.status,headers:r.headers}),i):(this.events.emit(`error`,{code:r.status,body:i}),new R(r.status,i))}async multipart(e,t){let n=this.setup(t),r=await this.request(e,n);if(!r.ok)return new R(r.status,{body:await r.text()});let i=await Ne(r),a=await i.next();if(n.debug&&console.debug(`Multipart ACK`,{path:e,body:a.value.body}),JSON.parse(a.value.body)!==`ACK`)throw Error(`No ACK`);return(async function*(){for await(let t of i){n.debug&&console.debug(`Multipart chunk`,{path:e,body:t.body});let r=JSON.parse(t.body);if(r===`FIN`)return;yield r}})()}async octets(e,t){let n=await this.multipart(e,t);if(n instanceof Error)return n;let r=(await n.next()).value,i=L();return(async()=>{await new Promise(e=>setTimeout(e,0));for await(let r of n){let n=r.status===`completed`?r.error?new R(r.error.code??`UNKNOWN`,r.error):r.output:new R(`EXCEPTION`);t?.debug&&console.debug(`Emitting octets step`,{path:e,step:r.step,payload:n}),i.emit(r.step,n)}i.off(`*`)})(),[r,i]}authenticate(e){this.challenge=e}use(e){this.fetch=e}setup(e){if(e??={},e.headers??={},e.headers.accept??=`application/json`,this.sleep!==void 0&&(e.headers.sleep=this.sleep),e.credentials===`include`){if(e.headers.authorization===void 0){if(this.challenge===null)throw Error(`Credentials must be set before sending authenticated request`);e.headers.authorization=this.challenge}delete e.credentials}return e.body!==void 0&&(e.method??=`POST`,e.body instanceof File||e.body instanceof ReadableStream?(e.body instanceof ReadableStream&&(e.duplex=`half`),e.headers[`content-type`]??=e.body.type??`application/octet-stream`):(e.body=JSON.stringify(e.body),e.headers[`content-type`]??=`application/json`)),e}async request(e,t){let n=new URL(e,this.origin),r=await this.send(n.href,t),i=r.headers.get(`authorization`);return i!==null&&(this.challenge=i,this.events.emit(`challenge`,i)),r}async send(e,t){if(!(t.body instanceof ReadableStream))return await this.fetch(e,t);let n=t.body;try{return await this.fetch(e,t)}catch(e){throw await n.cancel().catch(()=>void 0),Error(`The upload was interrupted and the reply, if any, was lost`,{cause:e})}}},Be=class{agent;path;init;constructor(e){this.agent=e.agent,this.path=e.path,this.init=e.init}async json(e,t){return await this.request(`json`,e,t)}async octets(e,t){return await this.request(`octets`,e,t)}async multipart(e,t){return await this.request(`multipart`,e,t)}async request(e,t,n){let r=typeof t==`string`?t:``;n=typeof t==`string`?n:t;let i=this.abs(r),a=Object.assign({},this.init,n);if(e===`json`)return await this.agent.json(i,a);if(e===`octets`)return await this.agent.octets(i,a);if(e===`multipart`)return await this.agent.multipart(i,a);throw Error(`Invalid method: ${e}`)}abs(e){let t=new URL(this.path,`https://void`),n=new URL(e,t);return n.pathname.endsWith(`/`)||(n.pathname+=`/`),n.pathname+n.search}},Ve=class{events;agent;constructor(e){this.events=L(),this.agent=new ze({origin:e.origin,events:this.events,sleep:e.sleep})}resource(e,t){return new Be({agent:this.agent,path:e,init:t})}authenticate(e){this.agent.authenticate(e)}use(e){this.agent.use(e)}};function He(e){return typeof e==`string`&&(e={origin:e}),new Ve(e)}Fe({},{format:()=>We,test:()=>Ue});function Ue(e){return/^[[(]\d+\.\.\d+[\])]{1}$/.test(e)}function We(e,t){let[n,r]=t.slice(1,-1).split(`..`);return[`${e}${t.startsWith(`(`)?`>`:`>=`}${n}`,`${e}${t.endsWith(`)`)?`<`:`<=`}${r}`]}var Ge={title:`Introspection`,description:`The map of a Toa application`},Ke=8e3,qe=(()=>{if(typeof window>`u`)return``;let{protocol:e,hostname:t,origin:n}=window.location;return Xe(t)?`${e}//${t}:${Ke}`:n})(),Je=8003;function Ye(e){if(typeof window>`u`)return``;let{protocol:t,hostname:n}=window.location;return`${Xe(n)?`${t}//${n}:${Je}`:``}/.configuration/${e}/`}function Xe(e){return e===`localhost`||e===`127.0.0.1`||e===`[::1]`||e.startsWith(`192.168.`)||e.startsWith(`172.16.`)||e.startsWith(`10.`)}var Ze=`1`;(()=>{let e=new Date(Number.parseInt(d)),t=e.getFullYear(),n=new Date(t,0,1).getTime(),r=new Date(t+1,0,1).getTime();return`${Ze}.${(t+(e.getTime()-n)/(r-n)).toFixed(4)}`})();var z=He({origin:qe,sleep:void 0});console.info(`Origin connected`,qe,`no sleep`);var Qe=z.resource(`/identity/`);async function B(e){let t={method:`GET`};return e!==void 0&&(t.headers={authorization:e},t.credentials=`include`),Qe.json(t)}var $e=z.resource(`/identity/basic/`,{credentials:`include`});async function et(e,t){return await $e.json(e,{method:`POST`,body:t})}var tt=z.resource(`/accounts/otp/`);async function nt(e,t){return typeof e==`string`?await tt.json(e,{method:`POST`,body:t,credentials:`include`}):await tt.json({method:`POST`,body:e})}var rt=z.resource(`/identity/passkeys/`);async function it(e,t){return typeof e==`string`?await rt.json(e,{method:`POST`,body:t,credentials:`include`}):await rt.json({method:`POST`,body:e})}var at=z.resource(`/identity/federation/`,{credentials:`include`});async function ot(e,t){return await at.json(e,{method:`POST`,body:t})}async function V(){let e=P.extract();if(e===null)return;let t=await B(e);if(t instanceof Error)return t;Me(t)}function H(e,t){return e instanceof Error||(Me(e),F.set(t)),e}var st=A({persist:`auth:oidc:nonce`});function ct(e,t){let{client:n,endpoint:r,type:i,scope:a}=e;if(n===void 0||n===``)throw Error(`Client ID is required`);let o=lt(),s=new URLSearchParams({client_id:n,redirect_uri:window.location.origin+`/`,response_type:i,response_mode:`fragment`,scope:a,state:btoa(JSON.stringify({idp:t})),nonce:o});st.set(o),window.location.href=r+`?`+s}function lt(){return window.crypto?.randomUUID?.()??Math.random().toString(16).slice(2)}var ut=t.env,dt=ut.PUBLIC_APPLE_CLIENT_ID,ft=ut.PUBLIC_GOOGLE_CLIENT_ID,pt={apple:{iss:`https://appleid.apple.com`,endpoint:`https://appleid.apple.com/auth/authorize`,type:`code`,scope:`openid`,client:dt},google:{iss:`https://accounts.google.com`,endpoint:`https://accounts.google.com/o/oauth2/v2/auth`,type:`id_token`,scope:`openid profile`,client:ft}};async function mt(e){await ht();let t=await new Promise(t=>{window.google.accounts.oauth2.initCodeClient({client_id:e.client,scope:e.scope,ux_mode:`popup`,state:btoa(JSON.stringify({idp:`google`})),redirect_uri:window.location.origin+`/`,callback:async e=>{t(e)}}).requestCode()});return t?.code===void 0?Error(`NO_RESPONSE`,{cause:t}):t.code}function ht(){return new Promise((e,t)=>{if(window.google?.accounts?.oauth2!==void 0)return e(void 0);let n=document.createElement(`script`);n.src=`https://accounts.google.com/gsi/client`,n.async=!0,n.onload=()=>e(void 0),n.onerror=t,document.head.appendChild(n)})}var U=typeof window<`u`&&window;async function gt(e){await _t(e);let t=await U.AppleID.auth.signIn().catch(e=>e);return t instanceof Error?t:t?.authorization===void 0?Error(`No authentication response received`,{cause:t}):t.authorization.code}function _t(e){if(U.AppleID===void 0)return new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`,r.async=!0,r.onload=()=>{U.AppleID.auth.init({clientId:e.client,scope:e.scope,redirectURI:window.location.origin,state:btoa(JSON.stringify({idp:`apple`})),usePopup:!0}),t(void 0)},r.onerror=n,document.head.appendChild(r)})}var vt={apple:gt,google:mt};async function yt(e,t){let n=await bt(e);return n instanceof Error?n:t===void 0?St(e,n):xt(t,n)}async function bt(e){let t=vt[e]??ct,n=pt[e],r=await t(n,e);if(r instanceof Error)return console.error(`Authentication failed`,r),r;if(r===void 0)throw Error(`No authentication code received, redirect flow is not supported`);let i={code:r,iss:n.iss,for:window.location.origin};return btoa(JSON.stringify(i))}async function xt(e,t){let n=await ot(e,{scheme:`code`,credentials:t});if(n instanceof Error)return n;V()}async function St(e,t){return H(await B(`Code `+t),e)}function Ct(){N.set(null)}async function wt(e,t){return H(await B(`Basic `+btoa(`${e}:${t}`)),`password`)}async function Tt(e,t){return await et(e,t)}async function Et(e,t){let n=await Tt(e,t);if(n instanceof Error)return n;V()}async function Dt(e){return nt({email:e})}async function Ot(e,t){return await nt(e,{email:t})}async function kt(e,t){return H(await B(`OTP `+btoa(`${e}:${t}`)),`password`)}var At=z.resource(`/identity/passkeys/challenges/`);async function jt(e,t){let n={type:e};return t===void 0?await At.json(`.`,{method:`POST`,body:n}):await At.json(t,{method:`POST`,body:n})}var Mt=z.resource(`/identity/passkeys/`);async function Nt(e){return await Mt.json(e,{credentials:`include`})}async function Pt(){return await Nt((await _e(N)).id)}se({get:Pt,persist:`identity:passkeys`,bind:N,stale:!0});function W(e){let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function Ft(e){return new TextEncoder().encode(e).buffer}function G(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function It({id:e,transports:t}){return{id:W(e),type:`public-key`,transports:t}}async function Lt(e,t){let n={challenge:W(t.challenge),timeout:t.timeout,authenticatorSelection:t.authenticatorSelection,pubKeyCredParams:t.pubKeyCredParams,rp:{name:`app`},user:{id:Ft(e.id),name:e.name,displayName:e.name},excludeCredentials:t.excludeCredentials.map(It)};return await navigator.credentials.create({publicKey:n}).catch(e=>e)}async function Rt(e){let t={timeout:e.timeout,challenge:W(e.challenge),allowCredentials:e.allowCredentials.map(It),userVerification:e.userVerification};return await navigator.credentials.get({publicKey:t})}async function zt(e,t){let n=await jt(`creation`,t);if(n instanceof Error)return n;let r=await Lt({id:n.identity,name:e},n);if(r instanceof Error)return r;if(r===null)throw Error(`No credential is created`);return{key:Bt(r,e),identity:n.identity}}function Bt(e,t){let n=e.response,r=n.getAuthenticatorData(),i=n.getTransports(),a=n.getPublicKeyAlgorithm(),o=n.getPublicKey(),s=e.getClientExtensionResults();if(o===null)throw Error(`No public key is created`);return{id:e.id,type:e.type,response:{attestationObject:G(n.attestationObject),clientDataJSON:G(n.clientDataJSON),authenticatorData:G(r),transports:i,publicKeyAlgorithm:a,publicKey:G(o)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:s,label:t}}async function Vt(e){let t=await jt(`request`,e);if(t instanceof Error)return t;let n=Date.now(),r=await Rt(t).catch(e=>e);return r instanceof Error?r.name===`NotAllowedError`&&Date.now()-n<50?new Ut:r:r===null?Error(`No credential given`):Ht(r)}function Ht(e){let t=e.response;return{id:e.id,type:e.type,response:{authenticatorData:G(t.authenticatorData),clientDataJSON:G(t.clientDataJSON),signature:G(t.signature),userHandle:t.userHandle===null?null:G(t.userHandle)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:e.getClientExtensionResults()}}var Ut=class extends Error{constructor(){super(),this.name=this.constructor.name}},Wt=typeof window>`u`||window.PublicKeyCredential!==void 0;async function Gt(e,t){let n=await zt(e,t);if(n instanceof Error)return console.error(`Credential creation failed`,n),n;let r=await it(n.identity,n.key);if(r instanceof Error)return console.error(`Credential registration failed`,r),r;let i=P.extract();return i===null?Error(`Unauthenticated`):H(await B(i),`passkey`)}async function Kt(e){let t=await Vt(e);if(t instanceof Error)return console.error(`Credential request failed`,t),t;let n=await it(t);if(n instanceof Error)return console.error(`Credential verification failed`,n),n;let r=P.extract();return r===null?Error(`Unauthenticated`):H(await B(r),`passkey`)}function qt(e){if(document.startViewTransition===void 0)return Promise.resolve(e?.());let t=e!==void 0;return t&&$t(),new Promise(n=>{let r=document.startViewTransition(async()=>{Xt(),n(await e?.())});r.finished.then(i,i),r.ready.catch(Jt);function i(){t&&en(),q()}})}function Jt(){}function Yt(e){if(!(e.type===`popstate`&&e.event.hasUAVisualTransition)&&document.startViewTransition!==void 0)return new Promise(t=>{let n=document.startViewTransition({types:[`route`],update:async()=>{Xt(),t(),await e.complete}});n.finished.then(q,q),n.ready.catch(Jt)})}var K=null;function Xt(){if(K===null)return;let e=K.el.style.viewTransitionName===K.name;K.el.style.viewTransitionName=e?``:K.name,K.el.style.viewTransitionClass=e?``:K.classes??``}function q(){K!==null&&K.el.style.viewTransitionName===K.name&&(Zt(K),K=null)}function Zt(e){e.el.style.viewTransitionName=``,e.el.style.viewTransitionClass=``}var J=g(!1),Y=new Set;function Qt(e,t){let n={node:e,options:t,original:{name:e.style.viewTransitionName,classes:e.style.viewTransitionClass}};return Y.add(n),{destroy:()=>Y.delete(n)}}function $t(){J.set(!0);for(let e of Y)e.original={name:e.node.style.viewTransitionName,classes:e.node.style.viewTransitionClass},e.node.style.viewTransitionName=e.options.name,e.options.classes!==void 0&&(e.node.style.viewTransitionClass=e.options.classes)}function en(){for(let e of Y)e.original!==void 0&&(e.node.style.viewTransitionName=e.original.name,e.node.style.viewTransitionClass=e.original.classes);J.set(!1)}navigator.userAgent.toLowerCase().includes(`windows`);var tn=/mac ?os|ios|ipad ?os/i.test(navigator.userAgentData?.platform??``)||/(Mac|iPhone|iPad|iPod)/.test(navigator.userAgent);/android/i.test(navigator.userAgent),/(iPhone|iPad|iPod)/.test(navigator.userAgent),/^((?!chrome|android).)*safari/i.test(navigator.userAgent),`ontouchstart`in window,window.matchMedia(`(display-mode: standalone)`).matches,/PWAShell/i.test(navigator.userAgent),navigator.userAgent.match(/PWAShell\/(\S+)/)?.[1];var nn=!(`ontouchstart`in window);[`en-US`,`en-LR`,`en-MM`].includes(navigator.language),[`en-US`,`en-GB`,`en-CA`,`en-AU`,`en-NZ`,`en-IE`,`en-IN`,`en-LR`,`en-MM`].includes(navigator.language);function rn(e=navigator.userAgent){return[/FBAN|FBAV|FB_IAB/i,/Instagram/i,/Twitter/i,/Line/i,/LinkedIn/i,/Snapchat/i,/WhatsApp/i,/WeChat/i,/Messenger/i,/QQ/i,/Reddit/i,/Puffin/i,/TikTok/i,/musical.ly/i,/YouTube/i,/Pinterest/i,/Discord/i,/Telegram/i,/Viber/i,/Slack/i,/Signal/i,/KakaoTalk/i,/Baidu/i].some(t=>t.test(e))||(()=>{let t=RegExp(`(${[`WebView`,`(iPhone|iPod|iPad)(?!.*Safari/)`,`Android.*(wv)`,`(AppleWebKit)(?!.*Safari)`].join(`|`)})`,`ig`);return e.match(t)!==null})()||`TelegramWebviewProxy`in window||`TelegramWebviewProxyProto`in window||`TelegramWebview`in window}rn(navigator.userAgent);var an=new URLSearchParams;new URLSearchParams;function on(e){return an.get(e)}function sn(e,t=24){return _(e,n=>{let r=Date.now(),i=setInterval(()=>a(),1e3/t);function a(){let t=e-(Date.now()-r);t>0?n(t):(n(0),clearInterval(i))}return a(),()=>clearInterval(i)})}var cn={"en-US":{native:`English`,locale:`en-US`,dir:`ltr`,nav:{list:`List`,map:`Map`,signout:`Sign out`,filter:`Filter components`,halt:`HALT`},halt:{title:`Suspend operations`,description:`All systems will be inoperative for the interval you give, then resume automatically.`,interval:`Duration`,cancel:`Cancel`,hold:`Hold to halt`,bounds:((e,t)=>`${e}–${t} seconds`),quiescence:`Quiescence`,failed:`The halt request wasn’t accepted. Try again.`}}},ln=[`en-US`];function un(e){return ln.some(t=>t.startsWith(e))}function X(e){return ln.find(t=>t.startsWith(e))??`en-US`}var Z=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.format=o,e.parse=s;var t=/^[\u0009\u0020-\u007e\u0080-\u00ff]*$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/[\\"]/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,a=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function o(e){let{type:t,parameters:r}=e;if(!t||!i.test(t))throw TypeError(`Invalid type: ${t}`);let a=t;if(r)for(let e of Object.keys(r)){if(!n.test(e))throw TypeError(`Invalid parameter name: ${e}`);a+=`; ${e}=${y(r[e])}`}return a}function s(e,t){let n=t?.comma===!0?m:65536,r=e.length,i=_(e,t?.start??0,r),o=i;i=g(e,i,r,n);let s=v(e,o,i),c=e.slice(o,s).toLowerCase();return t?.parameters===!1?{type:c,index:i,parameters:new a}:h(e,c,i,r,n)}var c=32,l=9,u=59,d=61,f=34,p=92,m=44;function h(e,t,n,r,i){let o=new a;parameter:for(;n<r&&e.charCodeAt(n)!==i;){n=_(e,n+1,r);let t=n;for(;n<r;){let a=e.charCodeAt(n);if(a===i)break parameter;if(a===u)continue parameter;if(a===d){let a=v(e,t,n),s=e.slice(t,a).toLowerCase();if(n=_(e,n+1,r),n<r&&e.charCodeAt(n)===f){n++;let t=``;for(;n<r;){let a=e.charCodeAt(n++);if(a===f){n=g(e,n,r,i),o[s]===void 0&&(o[s]=t);break}t+=a===p&&n<r?e[n++]:String.fromCharCode(a)}continue parameter}let c=n;if(n=g(e,n,r,i),o[s]===void 0){let t=v(e,c,n);o[s]=e.slice(c,t)}continue parameter}n++}}return{type:t,index:n,parameters:o}}function g(e,t,n,r){for(;t<n;){let n=e.charCodeAt(t);if(n===u||n===r)break;t++}return t}function _(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==c&&n!==l)break;t++}return t}function v(e,t,n){for(;n>t;){let t=e.charCodeAt(n-1);if(t!==c&&t!==l)break;n--}return n}function y(e){if(n.test(e))return e;if(t.test(e))return`"${e.replace(r,`\\$&`)}"`;throw TypeError(`Invalid parameter value: ${e}`)}})),Q=e(((e,t)=>{var n=Z();t.exports=r;function r(e){for(var t=[],r=0;r<e.length;){var a=i(e,r),o=n.parse(e,{comma:!0,start:a});o.type=e.slice(a,a+o.type.length),t.push(o),r=o.index+1}return t}function i(e,t){for(var n=t;e.charCodeAt(n)===32||e.charCodeAt(n)===9;)n++;return n}})),dn=e(((e,t)=>{var n=Q();t.exports=s,t.exports.preferredCharsets=s;function r(e){for(var t=n(e),r=0,a=0;r<t.length;r++){var o=i(t[r],r);o&&(t[a++]=o)}return t.length=a,t}function i(e,t){return e.type?{charset:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.charset.toLowerCase()===e.toLowerCase())r|=1;else if(t.charset!==`*`)return null;return{i:n,o:t.i,q:t.q,s:r}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.charset}function u(e){return e.q>0}})),fn=e(((e,t)=>{var n=Q();t.exports=s,t.exports.preferredEncodings=s;function r(e){for(var t=n(e),r=!1,a=1,s=0,c=0;s<t.length;s++){var l=i(t[s],s);l&&(t[c++]=l,r||=o(`identity`,l),a=Math.min(a,l.q||1))}return r||(t[c++]={encoding:`identity`,q:a,i:s}),t.length=c,t}function i(e,t){return e.type?{encoding:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={encoding:e,o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.encoding.toLowerCase()===e.toLowerCase())r|=1;else if(t.encoding!==`*`)return null;return{encoding:e,i:n,o:t.i,q:t.q,s:r}}function s(e,t,n){var i=r(e||``),o=n?function(e,t){if(e.q!==t.q)return t.q-e.q;var r=n.indexOf(e.encoding),i=n.indexOf(t.encoding);return r===-1&&i===-1?t.s-e.s||e.o-t.o||e.i-t.i:r!==-1&&i!==-1?r-i:r===-1?1:-1}:c;if(!t)return i.filter(u).sort(o).map(l);var s=t.map(function(e,t){return a(e,i,t)});return s.filter(u).sort(o).map(function(e){return t[s.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function l(e){return e.encoding}function u(e){return e.q>0}})),pn=e(((e,t)=>{var n=Z(),r=Q();t.exports=c,t.exports.preferredLanguages=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){if(!e.type)return null;var n=e.type.indexOf(`-`);return{prefix:n===-1?e.type:e.type.slice(0,n),suffix:n===-1?void 0:e.type.slice(n+1),q:e.parameters.q?parseFloat(e.parameters.q):1,i:t,full:e.type}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0);if(!i)return null;var o=0;if(t.full.toLowerCase()===i.full.toLowerCase())o|=4;else if(t.prefix.toLowerCase()===i.full.toLowerCase())o|=2;else if(t.full.toLowerCase()===i.prefix.toLowerCase())o|=1;else if(t.full!==`*`)return null;return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.full}function d(e){return e.q>0}})),mn=e(((e,t)=>{var n=Z(),r=Q();t.exports=c,t.exports.preferredMediaTypes=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){var n=e.type.indexOf(`/`);if(n===-1)return null;var r=e.parameters.q?parseFloat(e.parameters.q):1;return delete e.parameters.q,{type:e.type.slice(0,n),subtype:e.type.slice(n+1),params:e.parameters,q:r,i:t}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0),o=0;if(!i)return null;if(t.type.toLowerCase()==i.type.toLowerCase())o|=4;else if(t.type!=`*`)return null;if(t.subtype.toLowerCase()==i.subtype.toLowerCase())o|=2;else if(t.subtype!=`*`)return null;var s=Object.keys(t.params);if(s.length>0){if(s.every(function(e){return t.params[e]==`*`||(t.params[e]||``).toLowerCase()==(i.params[e]||``).toLowerCase()}))o|=1;else return null}return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*/*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.type+`/`+e.subtype}function d(e){return e.q>0}}));e(((e,t)=>{var n=dn(),r=fn(),i=pn(),a=mn();t.exports=o,t.exports.Negotiator=o;function o(e){if(!(this instanceof o))return new o(e);this.request=e}o.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},o.prototype.charsets=function(e){return n(this.request.headers[`accept-charset`],e)},o.prototype.encoding=function(e,t){var n=this.encodings(e,t);return n&&n[0]},o.prototype.encodings=function(e,t){var n=t||{};return r(this.request.headers[`accept-encoding`],e,n.preferred)},o.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},o.prototype.languages=function(e){return i(this.request.headers[`accept-language`],e)},o.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},o.prototype.mediaTypes=function(e){return a(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes}))();var hn=`en-US`,gn=A({persist:`intl:selected`}),$=w([N,gn],([e,t])=>t?X(t):_n()||(e?.locale!==void 0&&un(e.locale)?X(e.locale):hn));w(N,e=>e?.grammar??`none`);function _n(){if(typeof navigator<`u`){for(let e of navigator.languages)if(un(e))return X(e)}return null}var vn=w($,e=>cn[e]);export{Ae as A,Ye as C,N as D,L as E,j as F,ve as I,A as L,I as M,ke as N,je as O,M as P,de as R,z as S,Le as T,wt as _,tn as a,pt as b,qt as c,Gt as d,Wt as f,Et as g,kt as h,on as i,F as j,P as k,Qt as l,Dt as m,$ as n,nn as o,Ot as p,sn as r,Yt as s,vn as t,Kt as u,Ct as v,Ge as w,V as x,yt as y,se as z};
@@ -0,0 +1,2 @@
1
+ import{payload as e}from"../entry/payload.DSmR2FwN.js";import{D as t,Et as n,F as r,I as i,L as a,M as o,N as s,R as c,S as l,Tt as u,V as d,at as f,dt as p,et as m,ft as h,gt as g,ht as _,it as v,j as y,jt as b,k as x,l as S,lt as C,rt as w,t as ee,vt as te,xt as ne}from"./CLKsegBr.js";import{c as T,i as E,l as re,m as ie,n as D,o as ae,r as oe,s as se,t as ce}from"./Dj16C-qO.js";var le=class{constructor(e){this.status=e.status,this.body=e}toString(){return JSON.stringify(this.body)}},ue=class extends le{},de=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},fe=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`a://`);function pe(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function me(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function he({href:e}){return e.split(`#`)[0]}function ge(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}function _e(e,t){let n=[];return e&&n.push([...new Headers(e)].join(`,`)),t&&n.push(t),ge(...n)}new TextEncoder,new TextDecoder;function ve(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var ye=2**32-1,be=ye-1,O=class extends Error{constructor(e,t,n,r){super(e),this.name=`DevalueError`,this.path=t.join(``),this.value=n,this.root=r}},xe=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Se(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===xe}function Ce(e){return Object.prototype.toString.call(e).slice(8,-1)}function we(e){return typeof Buffer<`u`&&Buffer.isBuffer(e)}function Te(e){switch(e){case`"`:return`\\"`;case`<`:return`\\u003C`;case`\\`:return`\\\\`;case`
2
+ `:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return e<` `?`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`:``}}function k(e){let t=``,n=0,r=e.length;for(let i=0;i<r;i+=1){let r=e[i],a=Te(r);a&&(t+=e.slice(n,i)+a,n=i+1)}return`"${n===0?e:t+e.slice(n)}"`}function Ee(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}var De=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Oe(e){return De.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function ke(e){return!(!Number.isInteger(e)||e<0||e>be)}function Ae(e){return!(!Number.isInteger(e)||e<0||e>ye)}function je(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return ke(+e)}function Me(e){for(var t=e.length-1;t>=0&&!je(e[t]);t--);return t+1}function Ne(e){let t=Object.keys(e);return t.length=Me(t),t}function Pe(e){return new Uint8Array(e).toBase64()}function Fe(e){return Uint8Array.fromBase64(e).buffer}function Ie(e){return Buffer.from(e).toString(`base64`)}function Le(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function Re(e){let t=new Uint8Array(e),n=``,r=32768;for(let e=0;e<t.length;e+=r){let i=t.subarray(e,e+r);n+=String.fromCharCode.apply(null,i)}return btoa(n)}function ze(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer}var Be=typeof Uint8Array.fromBase64==`function`,Ve=typeof process==`object`&&process.versions?.node!==void 0,He=Be?Pe:Ve?Ie:Re,Ue=Be?Fe:Ve?Le:ze;function We(e,t){if(!t)return e;let n={};for(let r of Object.keys(e))n[r]=t[r]??e[r];return n}var Ge=Object.freeze({kind:`not-plain`}),Ke=Object.freeze({kind:`symbol-keys`}),qe=Object.freeze({identify:e=>e,typeOf:e=>e===null?`null`:typeof e,toPrimitive:e=>e,tagOf:e=>Ce(e),isThenable:e=>typeof e.then==`function`,toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?``:e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>(we(e)&&(e=new Uint8Array(e)),{buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>Ne(e),shapeOf:e=>Se(e)?Ee(e).length>0?Ke:{kind:Object.getPrototypeOf(e)===null?`null-proto`:`plain`,keys:Object.keys(e)}:Ge,get:(e,t)=>e[t]}),Je=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,`byteLength`).get,Ye=typeof SharedArrayBuffer>`u`?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,`byteLength`).get,Xe=Object.freeze({fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e===`URL`?new URL(t):e===`URLSearchParams`?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{try{Je.call(t)}catch(e){if(!Ye)throw e;Ye.call(t)}let i=globalThis[e];return n===void 0?new i(t):new i(t,n,r)},box:e=>Object(e),createArray:e=>Array(e),createSparseArray:e=>{let t=[];return t[be]=void 0,delete t[be],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}});function Ze(e,t,n){return Qe(JSON.parse(e),t,n)}function Qe(e,t,n){let r=We(Xe,n?.operations);if(typeof e==`number`)return s(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let i=e,a=Array(i.length),o=null;function s(e,n=!1){if(e===-1)return r.fromPrimitive(void 0);if(e===-3)return r.fromPrimitive(NaN);if(e===-4)return r.fromPrimitive(1/0);if(e===-5)return r.fromPrimitive(-1/0);if(e===-6)return r.fromPrimitive(-0);if(n||typeof e!=`number`)throw Error(`Invalid input`);if(e in a)return a[e];if(e>=i.length)throw Error(`Invalid input`);let c=i[e];if(!c||typeof c!=`object`)a[e]=r.fromPrimitive(c);else if(Array.isArray(c)){if(typeof c[0]==`string`){let n=c[0],l=t&&Object.hasOwn(t,n)?t[n]:void 0;if(l){let t=c[1];if(typeof t!=`number`&&(t=i.push(c[1])-1),Object.hasOwn(a,t))return a[e]=l(a[t]);if(o??=new Set,o.has(t))throw Error(`Invalid circular reference`);return o.add(t),a[e]=l(s(t)),o.delete(t),a[e]}switch(n){case`Date`:a[e]=r.fromISOString(c[1]);break;case`Set`:let t=r.createSet();a[e]=t;for(let e=1;e<c.length;e+=1)r.addValue(t,s(c[e]));break;case`Map`:let o=r.createMap();a[e]=o;for(let e=1;e<c.length;e+=2)r.addEntry(o,s(c[e]),s(c[e+1]));break;case`RegExp`:a[e]=r.fromRegExpInfo(c[1],c[2]);break;case`Object`:{let t=c[1];if(typeof i[t]==`object`&&i[t][0]!==`BigInt`)throw Error(`Invalid input`);a[e]=r.box(s(t));break}case`BigInt`:a[e]=r.fromPrimitive(BigInt(c[1]));break;case`null`:let l=r.createNullPrototypeObject();a[e]=l;for(let e=1;e<c.length;e+=2){let t=c[e];if(typeof t!=`string`)throw Error(`Cannot parse an object with a non-string key`);if(t===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(l,t,s(c[e+1]))}break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:case`DataView`:{if(i[c[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=s(c[1]);a[e]=r.fromViewInfo(n,t,c[2],c[3]);break}case`ArrayBuffer`:{let t=c[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);a[e]=r.fromArrayBuffer(Ue(t));break}case`URL`:case`URLSearchParams`:case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:a[e]=r.fromStringValue(n,c[1]);break;default:throw Error(`Unknown type ${n}`)}}else if(c[0]===-7){let t=c[1];if(!Ae(t))throw Error(`Invalid input`);let n=r.createSparseArray(t);a[e]=n;for(let e=2;e<c.length;e+=2){let i=c[e];if(!ke(i)||i>=t)throw Error(`Invalid input`);r.set(n,i,s(c[e+1]))}}else{let t=r.createArray(c.length);a[e]=t;for(let e=0;e<c.length;e+=1){let n=c[e];n!==-2&&r.set(t,e,s(n))}}}else{let t=r.createObject();a[e]=t;for(let e of Object.keys(c)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(t,e,s(c[e]))}}return a[e]}return s(0)}function $e(e,t,n){let r=et(!1,e,t,n);return typeof r==`string`?r:`[${r.join(`,`)}]`}function et(e,t,n,r){let i=We(qe,r?.operations),a=[],o=new Map,s=[];if(n)for(let e of Object.getOwnPropertyNames(n))s.push({key:e,fn:n[e]});let c=[],l=0;function u(n,r){let d=i.typeOf(n);if(d===`undefined`)return-1;let f;if(d===`number`){if(f=i.toPrimitive(n),Number.isNaN(f))return-3;if(f===1/0)return-4;if(f===-1/0)return-5;if(f===0&&1/f<0)return-6}let p=i.identify(n);if(o.has(p))return o.get(p);r??=l++,o.set(p,r);for(let{key:e,fn:t}of s){let i=t(n);if(i)return a[r]=`["${e}",${u(i)}]`,r}if(d===`function`)throw new O(`Cannot stringify a function`,c,n,t);if(d===`symbol`)throw new O(`Cannot stringify a Symbol primitive`,c,n,t);let m=``;if(d!==`object`)m=tt(d===`number`?f:i.toPrimitive(n));else if(i.isThenable(n)){if(!e)throw new O(`Cannot stringify a Promise or thenable — use stringifyAsync instead`,c,n,t);m=i.toPromise(n).then(e=>{let t=u(e,r);t<0&&(a[r]=t)}),m.catch(()=>{})}else{let e=i.tagOf(n);switch(e){case`Number`:case`String`:case`Boolean`:case`BigInt`:m=`["Object",${u(i.unbox(n))}]`;break;case`Date`:m=`["Date","${i.toISOString(n)}"]`;break;case`URL`:m=`["URL",${k(i.toStringValue(n))}]`;break;case`URLSearchParams`:m=`["URLSearchParams",${k(i.toStringValue(n))}]`;break;case`RegExp`:let{source:r,flags:a}=i.regExpInfo(n);m=a?`["RegExp",${k(r)},"${a}"]`:`["RegExp",${k(r)}]`;break;case`Array`:{let e=!1,t=i.lengthOf(n);m=`[`;for(let r=0;r<t;r+=1)if(r>0&&(m+=`,`),i.hasOwn(n,r))c.push(`[${r}]`),m+=u(i.get(n,r)),c.pop();else if(e)m+=-2;else{let r=i.indicesOf(n),a=r.length,o=String(t).length;if((t-a)*3>4+o+a*(o+1)){m=`[-7,`+t;for(let e=0;e<r.length;e++){let t=r[e];c.push(`[${t}]`),m+=`,`+t+`,`+u(i.get(n,t)),c.pop()}break}e=!0,m+=-2}m+=`]`;break}case`Set`:m=`["Set"`;for(let e of i.valuesOf(n))m+=`,${u(e)}`;m+=`]`;break;case`Map`:m=`["Map"`;for(let[e,t]of i.entriesOf(n)){let n=i.typeOf(e),r=n!==`object`&&n!==`function`&&n!==`symbol`;c.push(`.get(${r?tt(i.toPrimitive(e)):`...`})`),m+=`,${u(e)},${u(t)}`,c.pop()}m+=`]`;break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:{let t=i.viewInfo(n);m=`["`+e+`",`+u(t.buffer),t.byteLength!==t.bufferByteLength&&(m+=`,${t.byteOffset},${t.length}`),m+=`]`;break}case`DataView`:{let t=i.viewInfo(n);m=`["`+e+`",`+u(t.buffer),t.byteLength!==t.bufferByteLength&&(m+=`,${t.byteOffset},${t.byteLength}`),m+=`]`;break}case`ArrayBuffer`:m=`["ArrayBuffer","${He(i.toArrayBuffer(n))}"]`;break;case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:m=`["${e}",${k(i.toStringValue(n))}]`;break;default:{let e=i.shapeOf(n);if(e.kind===`not-plain`)throw new O(`Cannot stringify arbitrary non-POJOs`,c,n,t);if(e.kind===`symbol-keys`)throw new O(`Cannot stringify POJOs with symbolic keys`,c,n,t);if(e.kind===`null-proto`){m=`["null"`;for(let r of e.keys){if(r===`__proto__`)throw new O(`Cannot stringify objects with __proto__ keys`,c,n,t);c.push(Oe(r)),m+=`,${k(r)},${u(i.get(n,r))}`,c.pop()}m+=`]`}else{m=`{`;let r=!1;for(let a of e.keys){if(a===`__proto__`)throw new O(`Cannot stringify objects with __proto__ keys`,c,n,t);r&&(m+=`,`),r=!0,c.push(Oe(a)),m+=`${k(a)}:${u(i.get(n,a))}`,c.pop()}m+=`}`}}}}return a[r]=m,r}let d=u(t);return d<0?`${d}`:a}function tt(e){let t=typeof e;return t===`string`?k(e):e===void 0?`-1`:e===0&&1/e<0?`-6`:t===`bigint`?`["BigInt","${e}"]`:String(e)}var A=()=>{throw Error(``)},j=()=>{throw Error(``)},nt={},rt={};function it(e){let t=Object.entries(e);t.length,nt=Object.fromEntries(t.map(([e,t])=>[e,t.encode])),rt=Object.fromEntries(t.map(([e,t])=>[e,t.decode])),A=e=>$e(e,nt),j=e=>Ze(e,rt)}function at(e,t){return e.origin===t.origin?e.href.slice(t.origin.length):e.href}function ot(e,t){return e+`/`+t}var st=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&ut(e),st(e,t));var M=new Map;function ct(e,t){let n=ft(e,t);if(n){let e=document.querySelector(n);if(e?.textContent){e.remove();let{body:t,...r}=JSON.parse(e.textContent);e.getAttribute(`data-b64`)!==null&&(t=ve(t));let i=e.getAttribute(`data-ttl`);return i&&M.set(n,{body:t,init:r,ttl:1e3*Number(i)}),Promise.resolve(new Response(t,r))}}return window.fetch(e,t)}function lt(e,t,n){if(M.size>0){let t=ft(e,n),r=t&&M.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);M.delete(t)}}return window.fetch(t,n)}function ut(e){let t=ft(dt(e));for(let e of M.keys())e.startsWith(t)&&M.delete(e)}function dt(e){return at(new URL(e instanceof Request?e.url:e,location.href),location)}function ft(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=t.body;if(e&&typeof e!=`string`&&!ArrayBuffer.isView(e))return null;n+=`[data-hash="${_e(t.headers,e)}"]`}return n}function pt({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=se(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ae(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function mt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ht(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var gt=`sveltekit:snapshot`,_t=`sveltekit:navigation-snapshot`,vt=`sveltekit:history-info`,N=`sveltekit:metadata`,P={tap:1,hover:2,viewport:3,eager:4,false:-1},yt=location.origin;function bt(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function xt(){return{x:pageXOffset,y:pageYOffset}}function St(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var Ct={...P,"":P.hover};function wt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Tt(e,t){for(;e&&e!==t;){if((e instanceof HTMLAnchorElement||e instanceof SVGAElement)&&e.hasAttribute(`href`))return e;e=wt(e)}}function Et(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||Dt(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===yt&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function F(e){let t=null,n=null,r=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)t===null&&(t=St(o,`preload-code`)),n===null&&(n=St(o,`preload-data`)),r===null&&(r=St(o,`reload`)),i===null&&(i=St(o,`replacestate`)),a===null&&(a=St(o,`reset`)),o=wt(o);function s(e){switch(e){case``:case`true`:return!0;case`false`:return!1;default:return}}return{preload_code:Ct[t??`false`],preload_data:Ct[n??`false`],reload:s(r),replace_state:s(i),reset:s(a)??!0}}function Dt(e,t,n){return e.origin!==yt||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Ot(e,t){let n=t?e.hash.split(`#`,3)[2]??``:e.hash.slice(1);return n?document.getElementById(decodeURIComponent(n)):null}function kt(e){}function At(e){let t=document.activeElement;e&&(t instanceof HTMLElement||t instanceof SVGElement)&&t!==document.body&&t.blur()}function jt(e){let t=e.getAttribute(`tabindex`);e.setAttribute(`tabindex`,`-1`),e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}function Mt(e){let t=window.parent===window||document.hasFocus(),n=document.querySelector(`[autofocus]`);if(n)t&&n.focus();else{t&&jt(Ot(e,!1)??document.body);let n=getSelection();if(n&&n.type!==`None`){let e=[];for(let t=0;t<n.rangeCount;t+=1)e.push(n.getRangeAt(t));setTimeout(()=>{if(n.rangeCount===e.length){for(let t=0;t<n.rangeCount;t+=1){let r=e[t],i=n.getRangeAt(t);if(r.commonAncestorContainer!==i.commonAncestorContainer||r.startContainer!==i.startContainer||r.endContainer!==i.endContainer||r.startOffset!==i.startOffset||r.endOffset!==i.endOffset)return}n.removeAllRanges()}})}}}var Nt=!0;function Pt(e,t,n){if(t&&Nt){if(n)scrollTo(n.x,n.y);else{let t=Ot(e,!1);t?t.scrollIntoView():scrollTo(0,0)}}Nt=!0}function Ft(e){throw Error(`https://svelte.dev/e/kit/navigation_external_url`)}function It(e){throw Error(`https://svelte.dev/e/kit/navigation_route_missing`)}function Lt(e){throw Error(`https://svelte.dev/e/kit/redirect_loop`)}var Rt=mt(`sveltekit:navigation-snapshot`)??{},zt=new Set;function Bt(){return new Set(zt)}function Vt(e){zt.size===0?delete Rt[e]:Rt[e]=Object.fromEntries(Array.from(zt,({id:e,capture:t})=>[e,A(t())]))}function Ht(e,t){let n=Rt[e];for(let e of zt)n&&Object.hasOwn(n,e.id)?e.restore(j(n[e.id])):t?.has(e)&&e.reset?.()}function Ut(e){delete Rt[e]}function Wt(e){Vt(e),ht(_t,Rt)}var Gt=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...Gt],[...new Set([...Gt])];function I(){}var Kt=c(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),qt=c(`<!> <!>`,1);function Jt(e,o){n(o,!0);let c=(e,n=b,s=b)=>{let u=(e,t=b)=>{var n=a(),r=g(n);l(r,()=>w(p),(e,n)=>{n(e,{get error(){return t()}})}),i(e,n)},d=h(()=>n().component),p=h(()=>n().error),m=h(()=>n().data);var _=a(),v=g(_);r(v,{get failed(){return w(p)?u:void 0},get onerror(){return w(p)?o.onerror:void 0}},e=>{var r=a(),u=g(r),p=e=>{var t=a(),r=g(t);l(r,()=>w(d),(e,t)=>{S(t(e,{get data(){return w(m)},get form(){return o.form},get params(){return o.page.params},children:(e,t)=>{c(e,()=>n().child,()=>s()+1)},$$slots:{default:!0}}),e=>f()[s()]=e,()=>f()?.[s()])}),i(e,t)},h=e=>{var t=a(),n=g(t);l(n,()=>w(d),(e,t)=>{S(t(e,{get data(){return w(m)},get form(){return o.form},get params(){return o.page.params},get error(){return o.error}}),e=>f()[s()]=e,()=>f()?.[s()])}),i(e,t)};t(u,e=>{n().child?e(p):e(h,-1)}),i(e,r)}),i(e,_)},f=ee(o,`components`,7),v=p(!1),y=p(!1),x=p(``);ar(()=>{w(v)?(C(y,!0),C(x,document.title||`untitled page`,!0)):C(v,!0)});var T=qt(),E=g(T);c(E,()=>o.tree,()=>0);var re=te(E,2),ie=e=>{var n=Kt(),r=_(n),a=e=>{var t=d();m(()=>s(t,w(x))),i(e,t)};t(r,e=>{w(y)&&e(a)}),ne(n),i(e,n)};t(re,e=>{w(v)&&e(ie)}),i(e,T),u()}var Yt=class{#e;get form(){return w(this.#e)}set form(e){C(this.#e,e)}#t;get error(){return w(this.#t)}set error(e){C(this.#t,e)}page;components=[];tree;onerror;constructor({page:e,tree:t,form:n,error:r,onerror:i=I}){this.page=e,this.tree=t,this.onerror=i,this.#e=p(n),this.#t=p(r)}},Xt=class{component;error;#e=p({});get data(){return w(this.#e)}set data(e){C(this.#e,e)}#t=p();get child(){return w(this.#t)}set child(e){C(this.#t,e)}constructor(e,t){this.component=e,this.error=t}};function Zt(e,t,n){let r=[void 0],i=-1;for(let a=1;a<e.length;a+=1){if(!e[a])continue;let o=a-1;for(;o>i+1&&t[o]==null;)--o;i=o;let s=t[o];r.push(s==null?void 0:n(s)?.catch(()=>void 0))}return Promise.all(r)}function*Qt(e,t,n){for(;e--;){let r=n[e];if(r!=null){let n=e;for(;!t[n];)--n;yield{error:r,idx:n+1}}}}var $t=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),en=new Set,L=mt(`sveltekit:history-info`)??{},tn=mt(`sveltekit:snapshot`)??{},R;function nn(e){L[e].scroll=xt()}function rn(e,t){L[e]={...L[e],resetIndex:t.resetIndex}}function an(e,t){Ut(e);let n=e+1;for(;L[n];)delete L[n],Ut(n),n+=1;for(n=t+1;tn[n];)delete tn[n],n+=1}function on(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(I)}async function sn(){try{if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(T||`/`);e&&await e.update()}}catch{}}var cn,ln,un,z,dn,B,fn={},pn={},mn=[],V=null;function hn(){V?.fork?.then(e=>e?.discard()),V=null,Q={element:void 0,href:void 0}}var gn=new Map,_n=new Set,vn=new Set,H=new Set,U={branch:[],error:null,url:null,nav:null},yn=!1,bn=!1,W=!1,G=null,xn=!1,Sn=!1,K,q,J;function Cn(e=history.state){return e?.[N]}var Y,X,wn=new Set,Tn=new Map,En=new Map;re(async e=>{typeof e==`string`&&(e=new URL(e,location.href));let t=await Z(e,!1);return t?{id:t.route.id,params:t.params}:null}),Promise.resolve();function Dn(e,t,n){return kn(e,t,n)}function*On(e){for(let[t,n]of e)for(let[e,r]of n)yield[ot(t,e),r]}async function kn(t,n,r){if(e.data){let{q:t={},p:n={},l:r={},f:i={}}=e.data;for(let e in t)fn[e]=t[e];for(let e in r)fn[e]=r[e];for(let e in i)fn[e]=i[e];for(let e in n)pn[e]=n[e]}document.URL!==location.href&&(location.href=location.href),B=t,it(B.hooks.transport??{}),await t.hooks.init?.(),cn=pt(t),z=document.documentElement,dn=n,ln=t.nodes[0],un=t.nodes[1];let[i]=await Promise.all([ln(),un()]),a=new Xt(i.component,void 0);R=new Yt({page:ce,tree:a,form:void 0,error:void 0,onerror:(e,t)=>en.add(t)});let o=Cn();K=o?.historyIndex??0,q=o?.navigationIndex??0,J=o?.resetIndex??0,K||(K=q=J=Date.now(),history.replaceState({...history.state,[N]:{historyIndex:K,navigationIndex:q,state:A({}),persistState:!1,resetIndex:K}},``)),rn(K,Cn());let s=L[K]?.scroll;function c(){s&&(history.scrollRestoration=`manual`,scrollTo(s.x,s.y))}r?(c(),await fr(dn,r)):(await $n({type:`enter`,url:bt(B.hash?hr(new URL(location.href)):location.href),replace_state:!0,state:o?.persistState?j(o.state):{},persist_state:o?.persistState??!1}),c()),dr()}function An(){mn.length=0,Sn=!1}function jn(e){R.components.some(e=>e?.snapshot)&&(tn[e]=R.components.map(e=>e?.snapshot?.capture()))}function Mn(e){tn[e]?.forEach((e,t)=>{R.components[t]?.snapshot?.restore(e)})}function Nn(){nn(K),ht(vt,L),jn(q),ht(gt,tn),Wt(K)}async function Pn(e,t={},n=0,r={},i){let a,o;t.refreshAll&&hn(),await $n({type:t.type??`goto`,url:bt(e),reset:t.reset,replace_state:t.replace,state:t.state,persist_state:t.persistState,event:t.event,action_result:t.action_result,redirect_count:n,nav_token:r,intent:i,accept:()=>{if(t.refreshAll){Sn=!0,a=new Set;for(let[e,t]of On(Tn))t.resource?.reset(),a.add(e);o=new Set;for(let[e]of On(En))o.add(e)}t.invalidate&&t.invalidate.forEach(lr)}}),t.refreshAll&&f().then(f).then(()=>{for(let[e,{resource:t}]of On(Tn))a?.has(e)&&t.start();for(let[e,{resource:t}]of On(En))o?.has(e)&&t.reconnect()})}async function Fn(e){if(e.id!==V?.id){hn();let t={};wn.add(t),V={id:e.id,token:t,promise:Gn({...e,preload:t}).finally(()=>{wn.delete(t)}),fork:null},V.promise.catch(hn)}return V.promise}async function In(e){await Promise.all([...e.layouts,e.leaf].filter(Boolean).map(([,e])=>e()))}async function Ln(e){let t=(await Z(e,!1))?.route;t&&await In(t)}async function Rn(e,t,n){let r={params:U.params,route:{id:U.route?.id??null},url:new URL(location.href)};if(U={...e.state,nav:r},gr(e),(n?y:o)(Jt,{target:t,props:R,transformError:async e=>{let t=await $(e,U.nav);return oe({error:t,status:t.status}),t}}),await Promise.resolve(),n){let e={from:null,to:{...r,scroll:L[K]?.scroll??xt()},willUnload:!1,type:`enter`,shallow:!1,complete:Promise.resolve()};H.forEach(t=>t(e))}Mn(q),Ht(K),bn=!0}async function zn({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(T&&(e.pathname===T||e.pathname===T+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=pe(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{page:{...ce},tree:{}}};a&&(l.props.error=a),s!==void 0&&(l.props.form=s);let u={},d=!ce,f=r&&await Zt(n,r,e=>e().then(e=>e.component)),p=l.props.tree,m=1,h=R.tree;for(let e=0;e<n.length;e+=1){let t=n[e],r=U.branch[e];if(t&&(d||!h||t?.data!==r?.data?(p.data={...u,...t.data},d=!0):p.data=h.data,u=p.data,e<n.length-1)){let t=e+1;for(;t<n.length&&!n[t];)t+=1;let r=n[t];r&&(p=p.child=new Xt(r.node.component,f?.[m++]),h=h?.child)}}return(!U.url||e.href!==U.url.href||U.error!==a||s!==void 0&&s!==ce.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},shallow:null,status:i??a?.status??200,url:new URL(e),form:s??null,data:u}),l}async function Bn({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},s=await e();return{node:s,loader:e,server:a,universal:s.universal?.load?{type:`data`,data:null,uses:o}:null,data:a?.data??null,slash:s.universal?.trailingSlash??a?.slash}}function Vn(e,t,n){let r=new URL(e instanceof Request?e.url:e,n),i=at(r,n);return{resolved:r,promise:bn?lt(i,r.href,t):ct(i,t)}}function Hn(e,t,n,r,i,a){if(Sn)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==U.params[e])return!0;for(let e of i.dependencies)if(mn.some(t=>t(new URL(e))))return!0;return!1}function Un(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Wn(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r).sort(),a=t.searchParams.getAll(r).sort();i.length===a.length&&i.every((e,t)=>e===a[t])&&n.delete(r)}return n}async function Gn({id:e,invalidating:t,url:n,params:r,route:i,preload:a,action_result:o}){if(!o&&V?.id===e)return wn.delete(V.token),V.promise;let{errors:s,layouts:c,leaf:l}=i,u=[...c,l],d=u.length-1,f=o?.type===`error`;s.forEach(e=>e?.().catch(I)),u.forEach(e=>e?.[1]().catch(I));let p=U.url?e!==Zn(U.url):!1,m=!U.route||i.id!==U.route.id,h=Wn(U.url,n),g=!1,_=u.map(async(e,t)=>{if(!e||f&&t===d)return;let a=U.branch[t];return e[1]===a?.loader&&!Hn(g,m,p,h,a.universal?.uses,r)?a:(g=!0,Bn({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await _[n])?.data);return e},server_data_node:Un(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of _)e.catch(I);let v=[];for(let e=0;e<u.length;e+=1)if(u[e])try{v.push(await _[e])}catch(t){if(t instanceof de)return{type:`redirect`,status:t.status,location:t.location};if(a&&wn.has(a))throw await $(t,{params:r,url:n,route:{id:i.id}});let o;if(t instanceof le)o=await $(t,{params:r,url:n,route:{id:i.id}});else{if(await E.check())return await sn(),await on(n);o=await $(t,{params:r,url:n,route:{id:i.id}})}return qn({i:e,branch:v,errors:s,error:o,url:n,params:r,route:i})}else v.push(void 0);return o?.type===`error`?qn({i:u.length,branch:v,errors:s,error:o.error,status:o.status,url:n,params:r,route:i}):zn({url:n,params:r,branch:v,errors:s,error:null,route:i,status:o?.status,form:o?.type===`success`||o?.type===`failure`?o.data??null:t?void 0:null})}async function Kn(e,t,n){for(let{error:r,idx:i}of Qt(e,t,n))try{return t.slice(0,i).concat({node:await r(),loader:r,data:{},server:null,universal:null})}catch{continue}}async function qn({i:e,branch:t,errors:n,error:r,status:i,url:a,params:o,route:s}){let c=await Kn(e,t,n);return c?zn({url:a,params:o,branch:c,errors:n,error:r,status:i,route:s}):nr(a,{id:s.id},r)}async function Jn({error:e,url:t,route:n}){let r={};try{return zn({url:t,params:r,branch:[await Bn({loader:ln,url:t,params:r,route:n,parent:()=>Promise.resolve({}),server_data_node:Un(null)}),{node:await un(),loader:un,universal:null,server:null,data:null}],error:e,errors:[],route:null})}catch(e){if(e instanceof de){await Pn(new URL(e.location,location.href));return}let i=await B.get_error_template(),a=await $(e,{url:t,params:r,route:n}),o=String(a?.message??``).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),s=i({status:a.status,message:o}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),e}}async function Yn(e){let t=e.href;if(gn.has(t))return gn.get(t);let n;try{let r=(async()=>{let t=await B.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Vn(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);B.hash?n.hash=t:n.pathname=t,t=n}return t})();gn.set(t,r),n=await r}catch{gn.delete(t);return}return n}async function Z(e,t){if(e&&!Dt(e,T,B.hash)){let n=await Yn(e);if(!n)return;let r=Xn(n);for(let n of cn){let i=n.exec(r);if(i)return{id:Zn(e),invalidating:t,route:n,params:i,url:e}}}}function Xn(e){return me(B.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(T.length))||`/`}function Zn(e){return(B.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function Qn({url:e,type:t,intent:n,delta:r,event:i,scroll:a,shallow:o=!1,target:s}){let c=!1,l=mr(U,n,e,t,a??null,o,s);l.navigation.type===`popstate`&&r!==void 0&&(l.navigation.delta=r),i!==void 0&&(l.navigation.event=i);let u={...l.navigation,cancel:()=>{c=!0,l.reject(Error(`navigation cancelled`))}};return W||_n.forEach(e=>e(u)),c?null:l}async function $n({type:e,url:t,popped:n,reset:r=!0,replace_state:i,state:a={},persist_state:o=!1,redirect_count:s=0,nav_token:c={},accept:l=I,block:u=I,event:d,intent:f,action_result:p}){let m=Y,h=X;Y=X=c,f??=await Z(t,!1);let g=e===`enter`?mr(U,f,t,e):Qn({url:t,type:e,delta:n?.delta,intent:f,scroll:n?.scroll,shallow:!!n?.shallow,target:n?.shallow??void 0,event:d});if(!g){u(),Y===c&&(Y=m),X===c&&(X=h);return}let _=K,y=q,b=Bt();l(),W=!0,bn&&g.navigation.type!==`enter`&&D(g.navigation);let x=f&&await Gn({...f,action_result:p});if(!x){let e=Dt(t,T,B.hash),n=e&&!1;if(e&&!n)return await on(t,i);x=await nr(t,{id:null},await $(new fe(404,`Not Found`,`Not found: ${t.pathname}${n?` (did you forget the hash?)`:``}`),{url:t,params:{},route:{id:null}}),i)}if(t=f?.url||t,Y!==c){g.reject(Error(`navigation aborted`));return}if(!x)return;if(x.type===`redirect`){if(s<20){V?.id===f?.id&&hn(),await $n({type:e,url:new URL(x.location,t),popped:n,reset:r,replace_state:i,state:a,persist_state:o,redirect_count:s+1,nav_token:c}),g.fulfil(void 0);return}if(x=await Jn({error:await $(ie(()=>Lt({url:t.href})),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!x)return}else if(x.props.page.status>=400&&await E.check())return await sn(),await on(t,i);if(An(),n||(nn(_),jn(y),i?Ut(_):Vt(_)),x.props.page.url.pathname!==t.pathname&&(t.pathname=x.props.page.url.pathname),n)a=n.state;else{let n=A(a);a=j(n);let s=+!i;e!==`enter`&&r&&(J+=1);let c={[N]:{historyIndex:K+=s,navigationIndex:q+=s,state:n,persistState:o,resetIndex:J}};(i?history.replaceState:history.pushState).call(history,c,``,t),rn(K,c[N]),i||an(K,q)}let S=f&&V?.id===f.id?V.fork:null;V?.fork&&!S?hn():(V=null,Q={element:void 0,href:void 0}),x.props.page.state=a,x.props.page.shallow=n?.shallow??null;let C;if(bn){await er(g.navigation);let e=n?.shallow?{params:x.state.params,route:{id:x.state.route?.id??null},url:x.state.url}:g.navigation.to;U={...x.state,nav:{params:e.params,route:e.route,url:e.url}},x.props.page&&(x.props.page.url=t),At(r);let i=S&&await S;if(i){C=i.commit();for(let e of en)e();en.clear()}else gr(x),C=v().then(()=>{for(let e of en)e();en.clear()});xn=!0}else await Rn(x,dn,!1);await tr(g,c,t,n?.scroll,r,C)&&(e===`popstate`&&Mn(q),Ht(K,b),D(null))}async function er(e){let t=(await Promise.all(Array.from(vn,t=>t(e)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>H.delete(e))}t.push(e),t.forEach(e=>H.add(e))}}async function tr(e,t,n,r,i,a){return await a,Y===t?(Pt(n,i,r),i&&document.activeElement===document.body&&Mt(n),W=!1,e.fulfil(void 0),e.navigation.to&&(e.navigation.to.scroll=xt()),H.forEach(t=>t(e.navigation)),!0):(e.reject(Error(`navigation aborted`)),!1)}async function nr(e,t,n,r){return e.origin===yt&&e.pathname===location.pathname&&!yn?await Jn({error:n,url:e,route:t}):await on(e,r)}var Q={element:void 0,href:void 0};function rr(){let e,t,n;function r(){clearTimeout(e),t?.removeEventListener(`mousemove`,i),t?.removeEventListener(`mouseleave`,r),t=void 0}function i(){clearTimeout(e),e=setTimeout(()=>{t&&s(t,P.hover)},20)}z.addEventListener(`mouseover`,e=>{if(!(e.target instanceof Element))return;let n=Tt(e.target,z);if(!n||n===t)return;r(),t=n;let a=F(n);a.preload_code<P.hover&&a.preload_data<P.hover||(n.addEventListener(`mousemove`,i),n.addEventListener(`mouseleave`,r,{once:!0}),i())});function a(e){if(e.defaultPrevented)return;let t=Tt(e.composedPath()[0],z);t&&s(t,P.tap)}z.addEventListener(`mousedown`,a),z.addEventListener(`touchstart`,a,{passive:!0});let o=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(Ln(new URL(t.target.href)),o.unobserve(t.target))},{threshold:0});async function s(e,t){let r=e===Q.element&&e?.href===Q.href&&t>=n;if(!e||r)return;let{url:i,external:a,download:o}=Et(e,T,B.hash);if(a||o)return;let s=F(e),c=i&&Zn(U.url)===Zn(i);if(!(s.reload||c)){if(t<=s.preload_data){Q={element:e,href:e.href},n=P.tap;let t=await Z(i,!1);if(!t)return;Fn(t).catch(I)}else t<=s.preload_code&&(Q={element:e,href:e.href},n=t,Ln(i))}}function c(){o.disconnect();for(let e of z.querySelectorAll(`a`)){let{url:t,external:n,download:r}=Et(e,T,B.hash);if(n||r)continue;let i=F(e);i.reload||(i.preload_code===P.viewport&&o.observe(e),i.preload_code===P.eager&&Ln(t))}}H.add(c),c()}async function $(e,t){if(e instanceof ue)return e.body;let n;n=e instanceof le?{kind:`app`,error:e.body}:e instanceof fe?{kind:`framework`,error:{status:e.status,message:e.text}}:{kind:`unknown`,error:e};let r=n.kind===`unknown`?{status:500,message:`Internal Error`}:n.error,i={...n,event:t},a=await B.hooks.handleError(i);return{...r,...a}}function ir(e,t){x(()=>(e.add(t),()=>{e.delete(t)}))}function ar(e){ir(H,e)}function or(e){ir(vn,e)}async function sr(e,t){let n=new URL(bt(e));n.origin!==yt&&Ft({caller:t,url:String(e)});let r=await Z(n,!1);return r||It({caller:t,url:String(e)}),r}async function cr(e,t={}){let n=t.replace??t.replaceState??!1,r=await sr(e,`goto`);return t.shallow?ur(r,t.state??{},{replace:n,persist_state:t.persistState??!1,reset:t.reset??!1},`goto`):Pn(r.url,{...t,replace:n,refreshAll:t.refreshAll??t.invalidateAll},0,{},r)}function lr(e){if(typeof e==`function`)mn.push(e);else{let{href:t}=new URL(e,location.href);mn.push(e=>e.href===t)}}async function ur(e,t,{replace:n,persist_state:r,reset:i},a){let o=e.url,s=Bt(),c=a===`goto`?Qn({url:o,type:`goto`,intent:e,shallow:!0}):void 0;if(!c&&a===`goto`)return;let l={};c&&(Y=X=l,W=!0,D(c.navigation)),n?Ut(K):(nn(K),Vt(K)),i&&(J+=1);let u=A(t);t=j(u);let d={[N]:{historyIndex:K+=+!n,navigationIndex:q,pageUrl:ce.url.href,state:u,persistState:r,resetIndex:J}};(n?history.replaceState:history.pushState).call(history,d,``,o),rn(K,d[N]),n||(xn=!0,an(K,q)),c&&await er(c.navigation),At(i),oe({state:t,shallow:{params:e?.params??null,route:e?{id:e.route.id}:null,url:o}}),(!c||await tr(c,l,o,null,i,v()))&&(Ht(K,s),c&&D(null))}function dr(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(Nn(),!W){let e=mr(U,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};_n.forEach(e=>e(n))}t&&(e.preventDefault(),e.returnValue=``)}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`?Nn():E.check()}),addEventListener(`focus`,()=>{E.check()}),navigator.connection?.saveData||rr(),z.addEventListener(`click`,async t=>{if(t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=Tt(t.composedPath()[0],z);if(!n)return;let{url:r,external:i,target:a,download:o}=Et(n,T,B.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=F(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(B.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===he(location);if(i||s.reload&&(!u||!l)){Qn({url:r,type:`link`,event:t})?W=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=U.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(G={...Cn(),resetIndex:J+ +!!s.reset},nn(K),e(r),!s.replace_state)return;G=null}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)});let d=r.href!==location.href;await Pn(r,{type:`link`,reset:s.reset,replace:s.replace_state??!d,refreshAll:!d,event:t})}),z.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(Dt(r,T,!1))return;let i=e.target,a=F(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),$n({type:`form`,url:r,reset:a.reset,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{let n=Cn(t.state);if(n?.historyIndex){let r=n.historyIndex,i=L[K];if(r===K)return;Y=X={};let a=r-K,o=n.resetIndex,s=o!==(i?.resetIndex??J),c=L[r]?.scroll,l=j(n.state),u=new URL(n.pageUrl??location.href),d=n.navigationIndex,f=U.url&&(location.href+U.url.href).includes(`#`)?he(location)===he(U.url):!1,p=d===q&&(xn&&(n.pageUrl===void 0||n.pageUrl===location.href)||f),m=n.pageUrl?new URL(location.href):null,h=K,g=q,_=J;nn(h),p||jn(g),Vt(h),K=r,q=d,J=o;let v=Y,y=m?await Z(m,!1):void 0;if(Y!==v)return;let b=m?{params:y?.params??null,route:y?{id:y.route.id}:null,url:m}:null;if(p){At(s),oe({state:l,shallow:b}),e(u),s&&c&&scrollTo(c.x,c.y),Ht(K,Bt()),W=!1,D(null);return}await $n({type:`popstate`,url:u,reset:s,popped:{state:l,scroll:c,delta:a,shallow:b},block:()=>{K=h,q=g,J=_,history.go(-a)},nav_token:v,event:t})}else G||(e(new URL(location.href)),B.hash&&location.reload())}),addEventListener(`hashchange`,()=>{if(G){let e=G;G=null,J=e.resetIndex,history.replaceState({...history.state,[N]:{...e,historyIndex:++K,navigationIndex:q}},``,location.href),rn(K,e)}});for(let e of document.querySelectorAll(`link`))$t.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{if(e.persisted){D(null);let e=L[K]?.scroll;e&&scrollTo(e.x,e.y)}});function e(e){U.url=e,oe({url:e})}}async function fr(e,{status:t,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){yn=!0;let l=new URL(location.href),u;({params:i={},route:a={id:null}}=await Z(l,!1)||{}),u=cn.find(({id:e})=>e===a.id);let d,f=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=pr(r.uses)),Bn({loader:B.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Un(r)})}),o=await Promise.all(e);if(u){let e=u.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}d=await zn({url:l,params:i,branch:o,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(t){if(t instanceof de)return await on(new URL(t.location,location.href));d=await Jn({error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,f=!1}if(d){if(d.props.page){let e=Cn();d.props.page.state=e?.persistState?j(e.state):{}}await Rn(d,e,f)}}function pr(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function mr(e,t,n,r,i=null,a=!1,o){let s,c,l=new Promise((e,t)=>{s=e,c=t});return l.catch(I),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:xt()},to:n&&{params:o?o.params:t?.params??null,route:{id:o?o.route?.id??null:t?.route?.id??null},url:o?.url??n,scroll:i},willUnload:!a&&!t,type:r,shallow:a,complete:l},fulfil:s,reject:c}}function hr(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gr(e){oe(e.props.page),R.tree.data=e.props.tree.data,R.tree.child=e.props.tree.child,`form`in e.props&&(R.form=e.props.form),`error`in e.props&&(R.error=e.props.error)}export{kt as i,or as n,Dn as r,cr as t};
@@ -0,0 +1 @@
1
+ import{A as e,Et as t,I as n,R as r,Tt as i,ht as a,jt as o,l as s,n as c,p as l,t as u,xt as d}from"./CLKsegBr.js";import"./Dj16C-qO.js";import{_t as f}from"./DEufyArO.js";var p=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),m=r(`<kbd><!></kbd>`);function h(r,h){t(h,!0);let g=u(h,`ref`,15,null),_=c(h,p);var v=m();l(v,e=>({"data-slot":`kbd`,class:e,..._}),[()=>f(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,h.class)]);var y=a(v);e(y,()=>h.children??o),d(v),s(v,e=>g(e),()=>g()),n(r,v),i()}export{h as t};
@@ -0,0 +1,3 @@
1
+ import{payload as e}from"../entry/payload.DSmR2FwN.js";var t=e.version,n=Array.isArray,r=Array.prototype.indexOf,i=Array.prototype.includes,a=Array.from,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyDescriptors,l=Object.prototype,u=Array.prototype,d=Object.getPrototypeOf,f=Object.isExtensible;function p(e){return typeof e==`function`}var m=()=>{};function h(e){for(var t=0;t<e.length;t++)e[t]()}function g(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function _(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var v=1<<24,y=1024,b=2048,x=4096,S=8192,ee=16384,te=32768,ne=1<<25,re=65536,ie=1<<18,ae=1<<19,oe=1<<20,se=1<<25,ce=1<<21,le=1<<22,ue=1<<23,de=Symbol(`$state`),fe=Symbol(`component`),pe=Symbol(`legacy props`),me=Symbol(``),he=Symbol(`proxy path`),ge=Symbol(`attributes`),_e=Symbol(`class`),ve=Symbol(`style`),ye=Symbol(`text`),be=Symbol(`form reset`),xe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Se=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Ce(e){return e===this.v}function we(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Te(e){return!we(e,this.v)}function Ee(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function De(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Oe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ke(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ae(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function je(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Me(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ne(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Pe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Fe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ie(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Le(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Re(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var ze=!1;function Be(){ze=!0}var Ve={},C=Symbol(`uninitialized`),He=`http://www.w3.org/1999/xhtml`,Ue=`http://www.w3.org/2000/svg`,We=`http://www.w3.org/1998/Math/MathML`,Ge=`@attach`;function Ke(e,t){return e.label=t,qe(e.v,t),e}function qe(e,t){return e?.[he]?.(t),e}function Je(e){return typeof e==`symbol`?`Symbol(${e.description})`:typeof e==`function`?`<function>`:typeof e==`object`&&e?`<object>`:String(e)}function Ye(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function Xe(e,t){return e===null&&Ee(t),e.c??=new Map(Ye(e)||void 0)}var w=null;function Ze(e){w=e}function Qe(e){return Xe(w,`getContext`).get(e)}function $e(e,t){return Xe(w,`setContext`).set(e,t),t}function et(e){return Xe(w,`hasContext`).has(e)}function tt(){return Xe(w,`getAllContexts`)}function nt(e,t=!1,n){w={p:w,i:!1,c:null,e:null,s:e,x:null,r:U,l:ze&&!t?{s:null,u:null,$:[]}:null}}function rt(e){var t=w,n=t.e;if(n!==null){t.e=null;for(var r of n)sr(r)}return e!==void 0&&(t.x=e),t.i=!0,w=t.p,it(e)}function it(e={}){return o(e,fe,{value:!0}),e}function at(){return!ze||w!==null&&w.l===null}var ot=[];function st(){var e=ot;ot=[],h(e)}function T(e){if(ot.length===0&&!sn){var t=ot;queueMicrotask(()=>{t===ot&&st()})}ot.push(e)}function ct(){for(;ot.length>0;)st()}function lt(){console.warn(`https://svelte.dev/e/derived_inert`)}function ut(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function dt(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function ft(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function D(e){E=e}var O;function k(e){if(e===null)throw ut(),Ve;return O=e}function A(){return k(N(O))}function pt(e){if(E){if(N(O)!==null)throw ut(),Ve;O=e}}function mt(e=1){if(E){for(var t=e,n=O;t--;)n=N(n);O=n}}function ht(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=N(n);e&&n.remove(),n=i}}function gt(e){if(!e||e.nodeType!==8)throw ut(),Ve;return e.data}function _t(e){if(typeof e!=`object`||!e||de in e||fe in e)return e;let t=d(e);if(t!==l&&t!==u)return e;var r=new Map,i=n(e),a=wn(0),o=null,c=zn,f=e=>{if(zn===c)return e();var t=B,n=zn;H(null),Bn(c);var r=e();return H(t),Bn(n),r};return i&&r.set(`length`,wn(e.length,o)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Fe();var i=r.get(t);return i===void 0?f(()=>{var e=wn(n.value,o);return r.set(t,e),e}):z(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>wn(C,o));r.set(t,e),An(a)}}else z(n,C),An(a);return!0},get(t,n,i){if(n===de)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||s(t,n)?.writable)&&(a=f(()=>wn(_t(c?t[n]:C),o)),r.set(n,a)),a!==void 0){var l=Y(a);return l===C?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){this.has?.(e,t);var n=Reflect.getOwnPropertyDescriptor(e,t),i=r.get(t);if(i!==void 0){var a=Y(i);if(a===C)return;if(n&&`value`in n)n.value=a;else return{enumerable:!0,configurable:!0,value:a,writable:!0}}return n},has(e,t){if(t===de)return!0;var n=r.get(t),i=n!==void 0&&n.v!==C||Reflect.has(e,t);return(n!==void 0||U!==null&&(!i||s(e,t)?.writable))&&(n===void 0&&(n=f(()=>wn(i?_t(e[t]):C,o)),r.set(t,n)),Y(n)===C)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>wn(C,o)),r.set(d+``,p)):z(p,C)}if(l===void 0)(!u||s(e,t)?.writable)&&(l=f(()=>wn(void 0,o)),z(l,_t(n)),r.set(t,l));else{u=l.v!==C;var m=f(()=>_t(n));z(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&z(g,_+1)}An(a)}return!0},ownKeys(e){Y(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==C});for(var[n,i]of r)i.v!==C&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Ie()}})}function vt(e){try{if(typeof e==`object`&&e&&de in e)return e[de]}catch{}return e}function yt(e,t){return Object.is(vt(e),vt(t))}var bt,xt,St,Ct,wt;function Tt(){if(bt===void 0){bt=window,xt=document,St=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ct=s(t,`firstChild`).get,wt=s(t,`nextSibling`).get,f(e)&&(e[_e]=void 0,e[ge]=null,e[ve]=void 0,e.__e=void 0),f(n)&&(n[ye]=void 0)}}function j(e=``){return document.createTextNode(e)}function M(e){return Ct.call(e)}function N(e){return wt.call(e)}function Et(e,t){if(!E)return M(e);var n=M(O);if(n===null)n=O.appendChild(j());else if(t&&n.nodeType!==3){var r=j();return n?.before(r),k(r),r}return t&&Nt(n),k(n),n}function Dt(e,t=!1){if(!E){var n=M(e);return n instanceof Comment&&n.data===``?N(n):n}if(t){if(O?.nodeType!==3){var r=j();return O?.before(r),k(r),r}Nt(O)}return O}function Ot(e,t=!1){if(!E)return M(e);var n=Et(e,t);return pt(e),n}function kt(e,t=1,n=!1){let r=E?O:e;for(var i;t--;)i=r,r=N(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=j();return r===null?i?.after(a):r.before(a),k(a),a}Nt(r)}return k(r),r}function At(e){e.textContent=``}function jt(){return!1}function Mt(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Nt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Pt(e){var t=U;if(t===null)return B.f|=ue,e;if(!(t.f&32768)&&!(t.f&4))throw e;P(e,t)}function P(e,t){if(e===Ve)throw e;if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128&&!(t.f&33570816)){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var Ft=~(b|x|y);function F(e,t){e.f=e.f&Ft|t}function It(e){e.f&512||e.deps===null?F(e,y):F(e,x)}function Lt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),F(e,y)}function Rt(e,t){if(t){let t=document.body;e.autofocus=!0,T(()=>{document.activeElement===t&&e.focus()})}}var zt=!1;function Bt(){zt||(zt=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[be]?.()})},{capture:!0}))}function Vt(e){var t=B,n=U;H(null),W(null);try{return e()}finally{H(t),W(n)}}function Ht(e,t,n,r=n){e.addEventListener(t,()=>Vt(n));let i=e[be];e[be]=i?()=>{i(),r(!0)}:()=>r(!0),Bt()}function Ut(e,t,n,r){let i=at()?qt:Zt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=U,c=Wt(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){P(e,s)}Gt()}}var d=Kt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Yt(e))).then(u).catch(e=>P(e,s)).finally(d)}l?l.then(()=>{s.f&16384?d():(c(),f(),Gt())}):f()}function Wt(){var e=U,t=B,n=w,r=I;return function(i=!0){W(e),H(t),Ze(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Gt(e=!0){W(null),H(null),Ze(null),e&&I?.deactivate()}function Kt(){var e=U,t=e.b,n=I,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function qt(e){var t=2|b;return U!==null&&(U.f|=ae),{ctx:w,deps:null,effects:null,equals:Ce,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:U,ac:null}}var Jt=Symbol(`obsolete`);function Yt(e,t,n){let r=U;r===null&&De();var i=void 0,a=Cn(C),o=!B,s=new Set;return fr(()=>{var t=U,n=g();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==xe&&n.reject(e)}).finally(Gt)}catch(e){n.reject(e),Gt()}var c=I;if(o){if(t.f&32768)var l=Kt();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Jt);else for(let e of s.values())e.reject(Jt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Jt&&(c.activate(),t?(a.f|=ue,On(a,t)):(a.f&8388608&&(a.f^=ue),On(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),ar(()=>{for(let e of s)e.reject(Jt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Xt(e){let t=qt(e);return Fn(t),t}function Zt(e){let t=qt(e);return t.equals=Te,t}function Qt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Q(t[n])}}function $t(e){var t,n=U,r=e.parent;if(!Nn&&r!==null&&e.v!==C&&r.f&24576)return lt(),e.v;W(r);try{Qt(e),t=Wn(e)}finally{W(n)}return t}function en(e){var t=$t(e);!e.equals(t)&&(e.wv=Vn(),(!I?.is_fork||e.deps===null)&&(I===null?e.v=t:(I.capture(e,t,!0),an?.capture(e,t,!0)),e.deps===null))?F(e,y):Nn||(L===null?It(e):(ir()||I?.is_fork)&&L.set(e,t))}function tn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&Vt(()=>{t.ac.abort(xe),t.ac=null}),t.fn!==null&&(t.teardown=m),qn(t,0),yr(t))}function nn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Jn(t)}var rn=null,I=null,an=null,L=null,on=null,sn=!1,cn=!1,ln=null,un=null,dn=0,fn=1,pn=class e{id=fn++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){rn===null?rn=this:(rn.#n=this,this.#t=rn),rn=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)F(r,b),t(r);for(r of n.m)F(r,x),t(r)}this.#p.add(e)}#g(){var e=[];for(let i of this.#c)if(!(i.f&16384||!(i.f&6144))){for(var t=i,n=!1;t.parent!==null;){t=t.parent;var r=t.f;if(r&96){if(!(r&1024)){n=!0;break}t.f^=y}}n||e.push(t)}return this.#c=[],e}#_(){this.#e=!0;for(let e of this.#u)this.#d.delete(e),F(e,b),this.schedule(e);for(let e of this.#d)F(e,x),this.schedule(e);this.apply();for(var t=ln=[],n=[],r=un=[];this.#c.length>0;){dn++>1e3&&(this.#S(),hn());for(let e of this.#g())try{this.#v(e,t,n)}catch(t){throw bn(e),this.#h()||this.discard(),t}}if(I=null,r.length>0){var i=e.ensure();for(let e of r)i.schedule(e)}if(ln=null,un=null,this.#h()){this.#x(n),this.#x(t);for(let[e,t]of this.#f)yn(e,t);r.length>0&&I.#_();return}let a=this.#y();if(a)this.#x(n),this.#x(t),a.#b(this);else{this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),an=this,_n(n),_n(t),an=null,this.#s?.resolve();var o=I;if(this.#a===0&&(this.#c.length===0||o!==null)&&this.#S(),this.#c.length>0){if(o!==null){for(let e of this.#c)o.#c.push(e);this.#c=[]}else o=this}o!==null&&(R.clear(),o.#_())}}#v(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Hn(r)&&(i&16&&this.#d.add(r),Jn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),F(i,b),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#S(),I=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)Lt(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==C&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),L?.set(e,t)),this.is_fork||(e.v=t)}activate(){I=this}deactivate(){I=null,L=null}flush(){try{cn=!0,I=this,this.#_()}finally{dn=0,on=null,ln=null,un=null,cn=!1,I=null,L=null,R.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(Jt);this.#S(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,T(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=g()).promise}static ensure(){if(I===null){let t=I=new e;!cn&&!sn&&T(()=>{t.#e||t.flush()})}return I}apply(){L=null}schedule(e){on=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)?e.b.defer_effect(e):this.#c.push(e)}#S(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?rn=e:t.#t=e,this.linked=!1}}};function mn(e){var t=sn,n=an;an=null,sn=!0;try{var r;for(e&&(mn(),r=e());;){if(ct(),I===null)return r;I.flush()}}finally{sn=t,an=n}}function hn(){try{Me()}catch(e){P(e,on)}}var gn=null;function _n(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Hn(r)&&(gn=new Set,Jn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Sr(r),gn?.size>0)){R.clear();for(let e of gn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)gn.has(n)&&(gn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Jn(n)}}gn.clear()}}gn=null}}function vn(e){I.schedule(e)}function yn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),F(e,y);for(var n=e.first;n!==null;)yn(n,t),n=n.next}}function bn(e){F(e,y);for(var t=e.first;t!==null;)bn(t),t=t.next}var xn=new Set,R=new Map,Sn=!1;function Cn(e,t){return{f:0,v:e,reactions:null,equals:Ce,rv:0,wv:0}}function wn(e,t){let n=Cn(e,t);return Fn(n),n}function Tn(e,t=!1,n=!0){let r=Cn(e);return t||(r.equals=Te),ze&&n&&w!==null&&w.l!==null&&(w.l.s??=[]).push(r),r}function z(e,t,n=!1){return B!==null&&(!V||B.f&131072)&&at()&&B.f&4325394&&(G===null||!G.has(e))&&Le(),On(e,n?_t(t):t,un)}var En=null,Dn=0;function On(e,t,n=null){if(!e.equals(t)){Nn?R.set(e,t):R.has(e)||R.set(e,e.v);var r=pn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&$t(t),L===null&&It(t)}e.wv=Vn(),En=null,Dn=0,jn(e,b,n),En=null,at()&&U!==null&&U.f&1024&&!(U.f&96)&&(J===null?In([e]):J.push(e)),!r.is_fork&&xn.size>0&&!Sn&&kn()}return t}function kn(){Sn=!1;for(let e of xn){e.f&1024&&F(e,x);let t;try{t=Hn(e)}catch{t=!0}t&&Jn(e)}xn.clear()}function An(e){z(e,e.v+1)}function jn(e,t,n){var r=e.reactions;if(r!==null){var i=at(),a=r.length;if(Dn+=a,Dn>1e5&&En===null&&(En=new Set),En!==null){if(En.has(e))return;En.add(e)}for(var o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==U){var l=(c&b)===0;if(l&&F(s,t),c&131072)xn.add(s);else if(c&2){var u=s;L?.delete(u),jn(u,x,n)}else if(l){var d=s;c&16&&gn!==null&&gn.add(d),n===null?vn(d):n.push(d)}}}}}var Mn=null,Nn=!1;function Pn(e){Nn=e}var B=null,V=!1;function H(e){B=e}var U=null;function W(e){U=e}var G=null;function Fn(e){B!==null&&(B.f&2097152||B.f&2)&&(G??=new Set).add(e)}var K=null,q=0,J=null;function In(e){J=e}var Ln=1,Rn=0,zn=Rn;function Bn(e){zn=e}function Vn(){return++Ln}function Hn(e){var t=e.f;if(t&2048)return!0;if(t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Hn(a)&&en(a),a.wv>e.wv)return!0}t&512&&L===null&&F(e,y)}return!1}function Un(e,t,n=!0){var r=e.reactions;if(r!==null&&!(G!==null&&G.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Un(a,t,!1):t===a&&(n?F(a,b):a.f&1024&&F(a,x),vn(a))}}function Wn(e){var t=K,n=q,r=J,i=B,a=G,o=w,s=V,c=zn,l=e.f;K=null,q=0,J=null,B=l&96?null:e,G=null,Ze(e.ctx),V=!1,zn=++Rn,e.ac!==null&&(Vt(()=>{e.ac.abort(xe)}),e.ac=null);try{e.f|=ce;var u=e.fn,d=u();e.f|=te;var f=Gn(e);if(at()&&J!==null&&!V&&f!==null&&!(e.f&6146))for(var p=0;p<J.length;p++)Un(J[p],e);if(i!==null&&i!==e){if(Rn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Rn;if(t!==null)for(let e of t)e.rv=Rn;J!==null&&(r===null?r=J:r.push(...J))}return e.f&8388608&&(e.f^=ue),d}catch(t){return Gn(e),Pt(t)}finally{e.f^=ce,K=t,q=n,J=r,B=i,G=a,Ze(o),V=s,zn=c}}function Gn(e){var t=e.deps,n=I?.is_fork;if(K!==null){var r;if(n||qn(e,q),t!==null&&q>0)for(t.length=q+K.length,r=0;r<K.length;r++)t[q+r]=K[r];else e.deps=t=K;if(ir()&&e.f&512)for(r=q;r<t.length;r++)(t[r].reactions??=[]).push(e)}else!n&&t!==null&&q<t.length&&(qn(e,q),t.length=q);return t}function Kn(e,t){let n=t.reactions;if(n!==null){var a=r.call(n,e);if(a!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[a]=n[o],n.pop())}}if(n===null&&t.f&2&&(K===null||!i.call(K,t))){var s=t;s.f&512&&(s.f^=512),s.v!==C&&It(s),s.ac!==null&&Vt(()=>{s.ac.abort(xe),s.ac=null,F(s,b)}),tn(s),qn(s,0)}}function qn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Kn(e,n[r])}function Jn(e){var t=e.f;if(!(t&16384)){F(e,y);var n=U;U=e;try{t&16777232?br(e):yr(e),vr(e);var r=Wn(e);e.teardown=typeof r==`function`?r:null,e.wv=Ln}finally{U=n}}}async function Yn(){await Promise.resolve(),mn()}function Xn(){return pn.ensure().settled()}function Y(e){var t=!!(e.f&2);if(Mn?.add(e),B!==null&&!V&&!(U!==null&&U.f&16384)&&(G===null||!G.has(e))){var n=B.deps;if(B.f&2097152)e.rv<Rn&&(e.rv=Rn,K===null&&n!==null&&n[q]===e?q++:K===null?K=[e]:K.push(e));else{B.deps??=[],i.call(B.deps,e)||B.deps.push(e);var r=e.reactions;r===null?e.reactions=[B]:i.call(r,B)||r.push(B)}}if(Nn&&R.has(e))return R.get(e);if(t){var a=e;if(Nn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Qn(a))&&(o=$t(a)),R.set(a,o),o}var s=!(a.f&512)&&!V&&B!==null&&!!(B.f&512),c=(a.f&te)===0;Hn(a)&&(s&&(a.f|=512),en(a)),s&&!c&&(nn(a),Zn(a))}if(L?.has(e))return L.get(e);if(e.f&8388608)throw e.v;return e.v}function Zn(e){if(e.f|=512,e.deps!==null)for(let n of e.deps){var t=n.reactions;t===null?n.reactions=[e]:i.call(t,e)||t.push(e),n.f&2&&!(n.f&512)&&(nn(n),Zn(n))}}function Qn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(R.has(t)||t.f&2&&Qn(t))return!0;return!1}function $n(e){var t=V;try{return V=!0,e()}finally{V=t}}function er(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(de in e)tr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&de in n&&tr(n)}}}function tr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{tr(e[n],t)}catch{}let n=d(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=c(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function nr(e){U===null&&(B===null&&je(e),Ae()),Nn&&ke(e)}function rr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function X(e,t){var n=U;n!==null&&n.f&8192&&(e|=S);var r={ctx:w,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};I?.register_created_effect(r);var i=r;if(e&4)ln===null?pn.ensure().schedule(r):ln.push(r);else if(t!==null){try{Jn(r)}catch(e){throw Q(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=re))}if(i!==null&&(i.parent=n,n!==null&&rr(i,n),B!==null&&B.f&2&&!(e&64))){var a=B;(a.effects??=[]).push(i)}return r}function ir(){return B!==null&&!V}function ar(e){let t=X(8,null);return F(t,y),t.teardown=e,t}function or(e){nr(`$effect`);var t=U.f;if(!B&&t&32&&w!==null&&!w.i){var n=w;(n.e??=[]).push(e)}else return sr(e)}function sr(e){return X(4|oe,e)}function cr(e){return nr(`$effect.pre`),X(8|oe,e)}function lr(e){pn.ensure();let t=X(64|ae,e);return()=>{Q(t)}}function ur(e){pn.ensure();let t=X(64|ae,e);return(e={})=>new Promise(n=>{e.outro?Cr(t,()=>{Q(t),n(void 0)}):(Q(t),n(void 0))})}function dr(e){return X(4,e)}function fr(e){return X(le|ae,e)}function pr(e,t=0){return X(8|t,e)}function mr(e,t=[],n=[],r=[]){Ut(r,t,n,t=>{X(8,()=>{e(...t.map(Y))})})}function hr(e,t=[],n=[],r=[]){Ut(r,t,n,t=>{X(4,()=>e(...t.map(Y)))})}function gr(e,t=0){return X(16|t,e)}function _r(e,t=0){return X(v|t,e)}function Z(e){return X(32|ae,e)}function vr(e){var t=e.teardown;if(t!==null){let n=Nn,r=B;Pn(!0),H(null);try{t.call(null)}catch(t){P(t,e.parent)}finally{Pn(n),H(r)}}}function yr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Vt(()=>{e.abort(xe)});var r=n.next;n.f&64?n.parent=null:Q(n,t),n=r}}function br(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Q(t),t=n}}function Q(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(xr(e.nodes.start,e.nodes.end),n=!0),e.f|=ne,yr(e,t&&!n),qn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();vr(e),e.f^=ne,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Sr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function xr(e,t){for(;e!==null;){var n=e===t?null:N(e);e.remove(),e=n}}function Sr(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 Cr(e,t,n=!0){var r=[];e.f|=256,wr(e,r,!0);var i=()=>{n&&Q(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function wr(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);wr(i,t,o?n:!1)}i=a}}}function Tr(e){e.f&=-257,Er(e,!0)}function Er(e,t){if(!(e.f&256)&&e.f&8192){e.f^=S,e.f&1024||(F(e,b),pn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Er(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Dr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:N(n);t.append(n),n=i}}function Or(e,t,n){if(e==null)return t(void 0),n&&n(void 0),m;let r=$n(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var kr=[];function Ar(e,t){return{subscribe:jr(e,t).subscribe}}function jr(e,t=m){let n=null,r=new Set;function i(t){if(we(e,t)&&(e=t,n)){let t=!kr.length;for(let t of r)t[1](),kr.push(t,e);if(t){for(let e=0;e<kr.length;e+=2)kr[e][0](kr[e+1]);kr.length=0}}}function a(t){i(t(e))}function o(o,s=m){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||m),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Mr(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return Ar(n,(e,n)=>{let o=!1,s=[],c=0,l=m,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:m},d=i.map((e,t)=>Or(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){h(d),l(),o=!1}})}function Nr(e){let t;return Or(e,e=>t=e)(),t}function Pr(e){let t=0,n=Cn(0),r;return()=>{ir()&&(Y(n),pr(()=>(t===0&&(r=$n(()=>e(()=>An(n)))),t+=1,()=>{T(()=>{--t,t===0&&(r?.(),r=void 0,An(n))})})))}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var Fr=Symbol(`events`),Ir=new Set,Lr=new Set;function Rr(e,t,n,r={}){function i(e){if(r.capture||Gr.call(t,e),!e.cancelBubble)return Vt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?(i.__removed=!1,T(()=>{i.__removed||t.addEventListener(e,i,r)})):t.addEventListener(e,i,r),i}function zr(e,t,n,r={}){var i=Rr(t,e,n,r);return()=>{i.__removed=!0,e.removeEventListener(t,i,r)}}function Br(e,t,n,r,i){var a={capture:r,passive:i},o=Rr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ar(()=>{o.__removed=!0,t.removeEventListener(e,o,a)})}function Vr(e,t,n){(t[Fr]??={})[e]=n}function Hr(e){for(var t=0;t<e.length;t++)Ir.add(e[t]);for(var n of Lr)n(e)}var Ur=null,Wr=!1;function Gr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Ur=e,Wr||(Wr=!0,setTimeout(()=>{Wr=!1,Ur=null}));var s=0,c=Ur===e&&e[Fr];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[Fr]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(a=i[s]||e.target,a!==t){o(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=B,f=U;H(null),W(null);try{for(var p,m=[];a!==null&&a!==t;){try{var h=a[Fr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble)break;s++,a=s<i.length?i[s]:null}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Fr]=t,delete e.currentTarget,H(d),W(f)}}}var Kr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function qr(e){return Kr?.createHTML(e)??e}function Jr(e){var t=Mt(`template`);return t.innerHTML=qr(e.replaceAll(`<!>`,`<!---->`)),t.content}function $(e,t){var n=U;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Yr(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(E)return $(O,null),O;i===void 0&&(i=Jr(a?e:`<!>`+e),n||(i=M(i)));var t=r||St?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=M(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function Xr(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(E)return $(O,null),O;if(!o){var e=M(Jr(a));if(i)for(o=document.createDocumentFragment();M(e);)o.appendChild(M(e));else o=M(e)}var t=o.cloneNode(!0);if(i){var n=M(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function Zr(e,t){return Xr(e,t,`svg`)}function Qr(e=``){if(!E){var t=j(e+``);return $(t,t),t}var n=O;return n.nodeType===3?Nt(n):(n.before(n=j()),k(n)),$(n,n),n}function $r(){if(E)return $(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=j();return e.append(t,n),$(t,n),e}function ei(e,t){if(E){var n=U;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),A()}else e!==null&&e.before(t)}function ti(){if(E&&O&&O.nodeType===8&&O.textContent?.startsWith(`$`)){let e=O.textContent.substring(1);return A(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function ni(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var ri=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function ii(e){return ri.includes(e)}var ai=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),oi={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 si(e){return e=e.toLowerCase(),oi[e]??e}[...ai];var ci=[`touchstart`,`touchmove`];function li(e){return ci.includes(e)}var ui=[`textarea`,`script`,`style`,`title`];function di(e){return ui.includes(e)}var fi=re|ae;function pi(e,t,n,r){new mi(e,t,n,r)}var mi=class{parent;is_pending=!1;transform_error;#e;#t=E?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Pr(()=>(this.#m=Cn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=U;t.b=this,t.f|=128,n(e)},this.parent=U.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=gr(()=>{if(E){let e=gt(this.#t);A();let t=e===`[!`;if(e.startsWith(`[?`)){let t=JSON.parse(e.slice(2));this.#_(t)}else t?this.#b():this.#g()}else this.#x()},fi),E&&(this.#e=O)}#g(){try{this.#a=Z(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);T(r),t&&(this.#s=Z(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{this.#y()||(t?ft():(t=!0,n&&Re(),this.#s!==null&&Cr(this.#s,()=>{this.#s=null}),this.#C(()=>{this.#x()})))};return{reset:r,invoke_onerror:()=>{if(!this.#y())try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){P(e,this.#i&&this.#i.parent)}}}}#y(){return(this.#i.f&(ee|ne))!==0}#b(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Z(()=>e(this.#e)),T(()=>{if(!this.#y()){var e=this.#c=document.createDocumentFragment(),t=j(),n=!1;e.append(t),this.#a=this.#C(()=>{try{return Z(()=>this.#r(t))}catch(e){try{this.error(e),n=!0}catch(e){P(e,this.#i.parent)}return null}}),this.#a===null?(this.#c=null,n&&this.#S(I)):this.#u===0&&(this.#e.before(e),this.#c=null,Cr(this.#o,()=>{this.#o=null}),this.#S(I))}}))}#x(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Z(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Dr(this.#a,e);let t=this.#n.pending;this.#o=Z(()=>t(this.#e))}else this.#S(I)}catch(e){this.error(e)}}#S(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Lt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#C(e){var t=U,n=B,r=w;W(this.#i),H(this.#i),Ze(this.#i.ctx);try{return pn.ensure(),e()}finally{W(t),H(n),Ze(r)}}#w(e,t){this.has_pending_snippet()?(this.#u+=e,this.#u===0&&(this.#S(t),this.#o&&Cr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))):this.parent&&this.parent.#w(e,t)}update_pending_count(e,t){this.#w(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,T(()=>{this.#d=!1,this.#m&&On(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Y(this.#m)}error(e){if(e===Ve||!this.#n.onerror&&!this.#n.failed)throw e;I?.is_fork?(this.#a&&I.skip_effect(this.#a),this.#o&&I.skip_effect(this.#o),this.#s&&I.skip_effect(this.#s),I.oncommit(()=>{this.#y()||this.#T(e)})):this.#T(e)}#T(e){this.#a&&=(Q(this.#a),null),this.#o&&=(Q(this.#o),null),this.#s&&=(Q(this.#s),null),E&&(k(this.#t),mt(),k(ht()));let t=this.#n.failed,n=e=>{if(this.#y())return;let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&!this.#y()&&(this.#s=this.#C(()=>{try{return Z(()=>{var r=U;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return P(e,this.#i.parent),null}}))};T(()=>{if(!this.#y()){var t;try{t=this.transform_error(e)}catch(e){P(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>P(e,this.#i&&this.#i.parent)):n(t)}})}};function hi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[ye]??=e.nodeValue)&&(e[ye]=n,e.nodeValue=`${n}`)}function gi(e,t){return yi(e,t)}function _i(e,t){Tt(),t.intro=t.intro??!1;let n=t.target,r=E,i=O;try{for(var a=M(n);a&&(a.nodeType!==8||a.data!==`[`);)a=N(a);if(!a)throw Ve;D(!0),k(a);let r=yi(e,{...t,anchor:a});return D(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Ve&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&Ne(),Tt(),At(n),D(!1),gi(e,t)}finally{D(r),k(i)}}var vi=new Map;function yi(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0,transformError:c}){Tt();var l=void 0,u=ur(()=>{var s=n??t.appendChild(j());pi(s,{pending:()=>{}},t=>{nt({});var n=w;if(o&&(n.c=o),i&&(r.$$events=i),E&&$(t,null),l=e(t,r)||it(),E&&(U.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw ut(),Ve;rt()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=li(r);for(let e of[t,document]){var a=vi.get(e);a===void 0&&(a=new Map,vi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Gr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(a(Ir)),Lr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=vi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Gr),r.delete(e),r.size===0&&vi.delete(n)):r.set(e,i)}Lr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return bi.set(l,u),l}var bi=new WeakMap;function xi(e,t){let n=bi.get(e);return n?(bi.delete(e),n(t)):Promise.resolve()}var Si=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Tr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Tr(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Q(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Dr(r,t),t.append(j()),this.#n.set(e,{effect:r,fragment:t})}else Q(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Cr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Q(n.effect),this.#n.delete(e))};ensure(e,t){var n=I,r=jt();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=j();i.append(a),this.#n.set(e,{effect:Z(()=>t(a)),fragment:i})}else this.#t.set(e,Z(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=O),this.#a(n)}};function Ci(e,t,...n){var r=new Si(e);gr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},re)}function wi(e){w===null&&Ee(`onMount`),ze&&w.l!==null?Ti(w).m.push(e):or(()=>{let t=$n(e);if(typeof t==`function`)return t})}function Ti(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function Ei(){return Symbol(Ge)}function Di(e,t,n=!1){var r;E&&(r=O,A());var i=new Si(e),a=n?re:0;function o(e,t){if(E){var n=gt(r);if(e!==parseInt(n.substring(1))){var a=ht();k(a),i.anchor=a,D(!1),i.ensure(e,t),D(!0);return}}i.ensure(e,t)}gr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var Oi=Symbol(`NaN`);function ki(e,t,n){E&&A();var r=new Si(e),i=!at();gr(()=>{var e=t();e!==e&&(e=Oi),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function Ai(e,t){return t}function ji(e,t,n){for(var r=[],i=t.length,o,s=t.length,c=0;c<i;c++){let n=t[c];Cr(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Mi(e,a(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else--s},!1)}if(s===0){var l=r.length===0&&n!==null&&e.pending.size===0;if(l){var u=n,d=u.parentNode;At(d),d.append(u),e.items.clear()}Mi(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Mi(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=se,Dr(a,document.createDocumentFragment())):Q(t[i],n)}}var Ni;function Pi(e,t,r,i,o,s=null){var c=e,l=new Map;if(t&4){var u=e;c=E?k(M(u)):u.appendChild(j())}E&&A();var d=null,f=Zt(()=>{var e=r();return n(e)?e:e==null?[]:a(e)}),p=new Map,m=!0;function h(e){if(!(_.effect.f&16384)){_.pending.delete(e);var n=Y(f);_.fallback=d,Ii(_,n,c,t,i),d!==null&&(n.length===0?d.f&33554432?(d.f^=se,Ri(d,null,c)):Tr(d):Cr(d,()=>{d=null}))}}function g(e){_.pending.delete(e)}var _={effect:gr(()=>{var e=Y(f),n=e.length;let a=!1;E&&gt(c)===`[!`!=(n===0)&&(c=ht(),k(c),D(!1),a=!0);for(var u=new Set,_=I,v=jt(),y=0;y<n;y+=1){E&&O.nodeType===8&&O.data===`]`&&(c=O,a=!0,D(!1));var b=e[y],x=i(b,y),S=m?null:l.get(x);S?(S.v&&On(S.v,b),S.i&&On(S.i,y),v&&_.unskip_effect(S.e)):(S=Li(l,m?c:Ni??=j(),b,x,y,o,t,r),m||(S.e.f|=se),l.set(x,S)),u.add(x)}if(n===0&&s&&!d&&(m?d=Z(()=>s(c)):(d=Z(()=>s(Ni??=j())),d.f|=se)),n>u.size&&Oe(``,``,``),E&&n>0&&k(ht()),!m){if(p.set(_,u),v){for(let[e,t]of l)u.has(e)||_.skip_effect(t.e);_.oncommit(h),_.ondiscard(g)}else h(_)}a&&D(!0),Y(f)}),flags:t,items:l,pending:p,outrogroups:null,fallback:d};m=!1,E&&(c=O)}function Fi(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Ii(e,t,n,r,i){var o=!!(r&8),s=t.length,c=e.items,l=Fi(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Tr(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432){if(_.f^=se,_===l)Ri(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),zi(e,d,_),zi(e,_,y),Ri(_,y,n),d=_,p=[],m=[],l=Fi(d.next);continue}}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Ri(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);zi(e,S.prev,ee.next),zi(e,d,S),zi(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Ri(_,l,n),zi(e,_.prev,_.next),zi(e,_,d===null?e.effect.first:d.next),zi(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Fi(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Fi(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Mi(e,a(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=Fi(l.next);var ne=te.length;if(ne>0){var re=r&4&&s===0?n:null;if(o){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}ji(e,te,re)}}o&&T(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Li(e,t,n,r,i,a,o,s){var c=o&1?o&16?Cn(n):Tn(n,!1,!1):null,l=o&2?Cn(i):null;return{v:c,i:l,e:Z(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ri(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=N(r);if(a.before(r),r===i)return;r=o}}function zi(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Bi(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;E&&(o=k(M(c)))}mr(()=>{var e=U;if(s===(s=t()??``))E&&A();else if(n&&!E)e.nodes=null,c.innerHTML=s,s!==``&&$(M(c),c.lastChild);else if(e.nodes!==null&&(xr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(E){for(var a=O.data,l=A(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=N(l);if(l===null)throw ut(),Ve;$(O,u),o=k(l)}else{var d=Mt(r?`svg`:i?`math`:`template`,r?Ue:i?We:void 0);d.innerHTML=s;var f=r||i?d:d.content;if($(M(f),f.lastChild),r||i)for(;M(f);)o.before(M(f));else o.before(f)}}})}function Vi(e,t,n){var r;E&&(r=O,A());var i=new Si(e);gr(()=>{var e=t()??null;if(E&&gt(r)===`[`!=(e!==null)){var a=ht();k(a),i.anchor=a,D(!1),i.ensure(e,e&&(t=>n(t,e))),D(!0)}else i.ensure(e,e&&(t=>n(t,e)))},re)}function Hi(e,t,n,r,i,a){let o=E;E&&A();var s=null;E&&O.nodeType===1&&(s=O,A());var c=E?O:e,l=new Si(c,!1);gr(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Ue:void 0;if(e===null)l.ensure(null,null);else return l.ensure(e,t=>{if(e){var n=E;if(s=E?s:Mt(e,a),$(s,s),r){var i=null;E&&di(e)&&s.append(i=document.createComment(``));var o=E?M(s):s.appendChild(j());E&&(o===null?D(!1):k(o)),r(s,o),i?.remove()}U.nodes.end=s,n||t.before(s)}E&&k(t)}),()=>{}},re),ar(()=>{}),o&&(D(!0),k(c))}function Ui(e,t){let n=null,r=E;var i;if(E){n=O;for(var a=M(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=N(a);if(a===null)D(!1);else{var o=N(a);a.remove(),k(o)}}E||(i=document.head.appendChild(j()));try{gr(()=>{var e=Z(()=>t(i));e.f|=ie,E||(e.nodes===null?e.nodes={start:i,end:i,a:null,t:null}:e.nodes.end=i)})}finally{r&&(D(!0),k(n))}}function Wi(e,t,n){dr(()=>{var r=$n(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};pr(()=>{var e=n();er(e),i&&we(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function Gi(e,t){var n=void 0,r;_r(()=>{n!==(n=t())&&(r&&=(Q(r),null),n&&(r=Z(()=>{dr(()=>n(e))})))})}function Ki(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ki(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function qi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ki(e))&&(r&&(r+=` `),r+=t);return r}function Ji(e){return typeof e==`object`?qi(e):e??``}var Yi=[...`
3
+ \r\f\xA0\v`];function Xi(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Yi.includes(r[o-1]))&&(s===r.length||Yi.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Zi(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Qi(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function $i(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Qi)),i&&c.push(...Object.keys(i).map(Qi));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Qi(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Zi(r)),i&&(n+=Zi(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function ea(e,t,n,r,i,a){var o=e[_e];if(E||o!==n||o===void 0){var s=Xi(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[_e]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ta(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function na(e,t,n,r){var i=e[ve];if(E||i!==t){var a=$i(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[ve]=t}else r&&(Array.isArray(r)?(ta(e,n?.[0],r[0]),ta(e,n?.[1],r[1],`important`)):ta(e,n,r));return r}function ra(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function ia(e,t){var n=!(`__defaultValue`in e);(n||e.__defaultValue!==t)&&(e.__defaultValue=t,aa(e,!n||`__value`in e))}function aa(e,t){var r=e.__defaultValue,i=e.multiple,a=i?r??[]:null;if(!i||n(a)){var o=e.selectedIndex,s=t&&i?new Set(e.selectedOptions):null;for(var c of e.options){var l=ca(c);ra(c,i?a.includes(l):yt(l,r))}if(t){if(s!==null)for(c of e.options){var u=s.has(c);c.selected!==u&&(c.selected=u)}else e.selectedIndex!==o&&(e.selectedIndex=o)}}}function oa(e,t,r=!1){if(e.multiple){if(t==null)return;if(!n(t))return dt();for(var i of e.options)i.selected=t.includes(ca(i))}else{for(i of e.options)if(yt(ca(i),t)){i.selected=!0;return}(!r||t!==void 0)&&(e.selectedIndex=-1)}}function sa(e){var t=new MutationObserver(t=>{t.every(la)||(`__defaultValue`in e&&aa(e,!1),`__value`in e&&oa(e,e.__value))});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),ar(()=>{t.disconnect()})}function ca(e){return`__value`in e?e.__value:e.value}function la(e){if(e.target.closest(`selectedcontent`)!==null)return!0;if(e.type===`childList`){var t=[...e.addedNodes,...e.removedNodes];return t.length>0&&t.every(e=>e.nodeName===`SELECTEDCONTENT`)}return!1}var ua=Symbol(`class`),da=Symbol(`style`),fa=Symbol(`is custom element`),pa=Symbol(`is html`),ma=Se?`link`:`LINK`,ha=Se?`input`:`INPUT`,ga=Se?`option`:`OPTION`,_a=Se?`select`:`SELECT`,va=Se?`progress`:`PROGRESS`;function ya(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;ba(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;ba(e,`checked`,null),e.checked=r}}};e[be]=n,T(n),Bt()}}function ba(e,t,n,r){var i=Ca(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ma)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ta(e).has(t)?e[t]=n:e.setAttribute(t,n))}function xa(e,t,n,r,i=!1,a=!1){E&&i&&e.nodeName===ha&&(`defaultValue`in n||`defaultChecked`in n||ya(e));var o=Ca(e),s=o[fa],c=!o[pa];let l=E&&s;l&&D(!1);var u=t||{},d=e.nodeName===ga,f=e.nodeName===_a;try{for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=Ji(n.class):(r||n[ua])&&(n.class=null),n[da]&&(n.style??=null);var m=Ta(e);if(e.nodeName===ha&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==u.type||h===void 0&&e.hasAttribute(`type`))&&(u.type=h,ba(e,`type`,h,a))}for(let i in n){let l=n[i];if(d&&i===`value`&&l==null)e.value=e.__value=``,u[i]=l;else if(i===`class`)ea(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,l,r,t?.[ua],n[ua]),u[i]=l,u[ua]=n[ua];else if(i===`style`)na(e,l,t?.[da],n[da]),u[i]=l,u[da]=n[da];else{var g=u[i];if(l!==g||l===void 0&&e.hasAttribute(i)){u[i]=l;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=ii(r);if(ni(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(l!=null)continue;e.removeEventListener(r,u[n],t),u[n]=null}if(v)Vr(r,e,l),Hr([r]);else if(l!=null){function a(e){u[i].call(this,e)}u[n]=Rr(r,e,a,t)}}else if(i===`style`)ba(e,i,l);else if(i===`autofocus`)Rt(e,!!l);else if(!s&&(i===`__value`||i===`value`&&l!=null))e.__value=l,(g==null||e.value!==l||l===0&&e.nodeName===va)&&(e.value=l);else if(i===`selected`&&d)ra(e,l);else{var y=i;c||(y=si(y));var b=y===`defaultValue`||y===`defaultChecked`;if(f&&y===`defaultValue`)continue;if(l==null&&!s&&!b){if(o[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else b||(s||typeof l!=`string`)&&m.has(y)?(e[y]=l,y in o&&(o[y]=C)):typeof l!=`function`&&ba(e,y,l,a)}}}}}}finally{l&&D(!0)}return u}function Sa(e,t,n=[],r=[],i=[],a,o=!1,s=!1){Ut(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===_a,l=!1;if(_r(()=>{var u=t(...n.map(Y)),d=xa(e,r,u,a,o,s);if(l&&c){var f=e;`defaultValue`in u&&ia(f,u.defaultValue),`value`in u&&oa(f,u.value)}for(let e of Object.getOwnPropertySymbols(i))u[e]||Q(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];t.description===`@attach`&&(!r||p!==r[t])&&(i[t]&&Q(i[t]),i[t]=Z(()=>Gi(e,()=>p))),d[t]=p}r=d}),c){var u=e;dr(()=>{var e=r;`defaultValue`in e&&ia(u,e.defaultValue),oa(u,e.value,!0),sa(u)})}l=!0})}function Ca(e){return e[ge]??={[fa]:e.nodeName.includes(`-`),[pa]:e.namespaceURI===He}}var wa=new Map;function Ta(e){var t=e.getAttribute(`is`)||e.nodeName,n=wa.get(t);if(n)return n;wa.set(t,n=new Set);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=c(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.add(o);i=d(i)}return n}function Ea(e,t,n=t){var r=new WeakSet;Ht(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Da(e)?Oa(a):a,n(a),I!==null&&r.add(I),await Yn(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(E&&e.defaultValue!==e.value||$n(t)==null&&e.value)&&(n(Da(e)?Oa(e.value):e.value),I!==null&&r.add(I)),pr(()=>{var n=t();if(e===document.activeElement){var i=I;if(r.has(i))return}Da(e)&&n===Oa(e.value)||(e.type!==`date`||n||e.value)&&n!==e.value&&(e.value=n??``)})}function Da(e){var t=e.type;return t===`number`||t===`range`}function Oa(e){return e===``?null:+e}function ka(e,t,n=t){Ht(e,`change`,()=>{n(e.files)}),E&&e.files&&n(e.files),pr(()=>{e.files=t()})}var Aa=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function ja(e,t,n){var r=Aa.observe(e,()=>n(e[t]));dr(()=>($n(()=>n(e[t])),r))}function Ma(e,t){return e===t||e?.[de]===t}function Na(e=it(),t,n,r){var i=w.r,a=U;return dr(()=>{var o,s;return pr(()=>{o=s,s=r?.()||[],$n(()=>{Ma(n(...s),e)||(t(e,...s),o&&Ma(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Ma(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var Pa=!1,Fa=Symbol(`unmounted`);function Ia(e,t,n){let r=n[t]??={store:null,source:Tn(void 0),unsubscribe:m};if(r.store!==e&&!(Fa in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=m;else{var i=!0;r.unsubscribe=Or(e,e=>{i?r.source.v=e:z(r.source,e)}),i=!1}}return e&&Fa in n?Nr(e):Y(r.source)}function La(e,t,n){let r=n[t];return r&&r.store!==e&&(r.unsubscribe(),r.unsubscribe=m),e}function Ra(e,t){return Ba(e,t),t}function za(){let e={};function t(){ar(()=>{for(var t in e)e[t].unsubscribe();o(e,Fa,{enumerable:!1,value:!0})})}return[e,t]}function Ba(e,t){try{e.set(t)}finally{}}function Va(){Pa=!0}function Ha(e){var t=Pa;try{return Pa=!1,[e(),Pa]}finally{Pa=t}}var Ua={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function Wa(e,t,n){return new Proxy({props:e,exclude:t},Ua)}var Ga={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];p(i)&&(i=i());let a=s(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(p(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=s(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===de||t===pe)return!1;for(let n of e.props)if(p(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(p(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function Ka(...e){return new Proxy({props:e},Ga)}function qa(e,t,n,r){var i=!ze||!!(n&2),a=!!(n&8),o=!!(n&16),c=r,l=!0,u=void 0,d=()=>o&&i?(u??=qt(r),Y(u)):(l&&(l=!1,c=o?$n(r):r),c);let f;if(a){var p=de in e||pe in e;f=s(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var m,h=!1;a?[m,h]=Ha(()=>e[t]):m=e[t],m===void 0&&r!==void 0&&(m=d(),f&&(i&&Pe(t),f(m)));var g=i?()=>{var n=e[t];return n===void 0?d():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return g;if(f){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||h)&&f(t?g():e),e):g()})}var v=!1,y=(n&1?qt:Zt)(()=>(v=!1,g()));a&&Y(y);var b=U;return(function(e,t){if(arguments.length>0){let n=t?Y(y):i&&a?_t(e):e;return z(y,n),v=!0,c!==void 0&&(c=n),e}return Nn&&v||b.f&16384?y.v:Y(y)})}export{lr as $,Ci as A,Be as At,ti as B,Bi as C,Qe as Ct,Di as D,$e as Dt,ki as E,nt as Et,pi as F,zr as G,Hr as H,ei as I,Nr as J,Pr as K,$r as L,gi as M,_ as Mt,hi as N,t as Nt,Ei as O,Je as Ot,xi as P,dr as Q,Yr as R,Vi as S,tt as St,Ai as T,rt as Tt,Vr as U,Qr as V,Br as W,jr as X,Ar as Y,hr as Z,Ji as _,Ot as _t,za as a,Yn as at,Ui as b,mt as bt,La as c,An as ct,ka as d,wn as dt,mr as et,Ea as f,Xt as ft,ea as g,Dt as gt,na as h,Et as ht,Va as i,Xn as it,_i as j,m as jt,wi as k,Ke as kt,Na as l,z as lt,ba as m,bt as mt,Wa as n,cr as nt,Ia as o,$n as ot,Sa as p,xt as pt,Mr as q,Ka as r,Y as rt,Ra as s,zn as st,qa as t,or as tt,ja as u,Cn as ut,qi as v,kt as vt,Pi as w,et as wt,Hi as x,pt as xt,Wi as y,_t as yt,Zr as z};
@@ -0,0 +1 @@
1
+ var e=function(e,t){return new URL(e,t).href},t={},n=function(e){return e.pathname.endsWith(`.css`)},r=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},i=function(i,a,o){let s=Promise.resolve();if(a&&a.length>0){let i,c=document.querySelector(`meta[property=csp-nonce]`),l=c?.nonce||c?.getAttribute(`nonce`);function u(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function d(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}s=u(a.map(a=>{a=e(a,o);let s=d(a),c=n(s);return r(t,s.href,()=>{if(i===void 0){i={all:new Set,styles:new Set};let e=document.getElementsByTagName(`link`);for(let t=e.length-1;t>=0;t--){let n=e[t];i.all.add(n.href),n.rel===`stylesheet`&&i.styles.add(n.href)}}if((c?i.styles:i.all).has(s.href))return;let e=document.createElement(`link`);if(e.rel=c?`stylesheet`:`modulepreload`,c||(e.as=`script`),e.crossOrigin=``,e.href=s.href,l&&e.setAttribute(`nonce`,l),document.head.appendChild(e),c)return new Promise((t,n)=>{e.addEventListener(`load`,t),e.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${s}`)))})})}).filter(e=>e!==void 0))}function c(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return s.then(e=>{for(let t of e||[])t.status===`rejected`&&c(t.reason);return i().catch(c)})};export{i as t};