@toa.io/extensions.exposition 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.
- package/components/exposition.octets/package.json +2 -2
- package/components/identity.federation/package.json +1 -1
- package/components/identity.tokens/package.json +1 -1
- package/package.json +7 -6
- package/transpiled/HTTP/Context.d.ts +4 -0
- package/transpiled/HTTP/Context.js +4 -1
- package/transpiled/HTTP/Context.js.map +1 -1
- package/transpiled/HTTP/Server.d.ts +3 -1
- package/transpiled/HTTP/address.d.ts +5 -0
- package/transpiled/HTTP/address.js +11 -0
- package/transpiled/HTTP/address.js.map +1 -1
- package/transpiled/directives/censor/Censor.d.ts +2 -2
- package/transpiled/directives/censor/Censor.js +4 -9
- package/transpiled/directives/censor/Censor.js.map +1 -1
- package/transpiled/directives/map/Client.d.ts +21 -0
- package/transpiled/directives/map/Client.js +33 -0
- package/transpiled/directives/map/Client.js.map +1 -0
- package/transpiled/directives/map/Headers.d.ts +2 -1
- package/transpiled/directives/map/Headers.js +2 -2
- package/transpiled/directives/map/Headers.js.map +1 -1
- package/transpiled/directives/map/Map.js +14 -4
- package/transpiled/directives/map/Map.js.map +1 -1
- package/ui/dist/_app/env.js +1 -1
- package/ui/dist/_app/immutable/chunks/-39mDws-.js +1 -0
- package/ui/dist/_app/immutable/chunks/1WXXcBlU.js +90 -0
- package/ui/dist/_app/immutable/chunks/BjwH--Q_.js +1 -0
- package/ui/dist/_app/immutable/chunks/Bt6Kyh95.js +2 -0
- package/ui/dist/_app/immutable/chunks/C3gnuDhG.js +3 -0
- package/ui/dist/_app/immutable/chunks/CRzLMJPS.js +1 -0
- package/ui/dist/_app/immutable/chunks/DYI4yOrv.js +6 -0
- package/ui/dist/_app/immutable/chunks/XKyaHtl9.js +1 -0
- package/ui/dist/_app/immutable/entry/app.C3gvpmYY.js +2 -0
- package/ui/dist/_app/immutable/entry/payload.DSmR2FwN.js +1 -0
- package/ui/dist/_app/immutable/entry/start.BzTqgs51.js +2 -0
- package/ui/dist/_app/immutable/nodes/0.BufbmJeT.js +1 -0
- package/ui/dist/_app/immutable/nodes/1.Dn_85faQ.js +1 -0
- package/ui/dist/_app/immutable/nodes/2.DCLYeX2U.js +8 -0
- package/ui/dist/_app/immutable/nodes/3.aoe4R-SX.js +1 -0
- package/ui/dist/_app/immutable/nodes/4.B0CiB3ml.js +1 -0
- package/ui/dist/_app/immutable/nodes/5.BUrdbysb.js +1 -0
- package/ui/dist/_app/immutable/nodes/6.yNbGQqYT.js +1 -0
- package/ui/dist/_app/version.json +1 -1
- package/ui/dist/index.html +17 -14
- package/ui/dist/_app/immutable/chunks/BfkEoJWo.js +0 -3
- package/ui/dist/_app/immutable/chunks/C2Pl6xgG.js +0 -90
- package/ui/dist/_app/immutable/chunks/CXABSZYQ.js +0 -6
- package/ui/dist/_app/immutable/chunks/MJkgCRen.js +0 -1
- package/ui/dist/_app/immutable/chunks/doOvBfYz.js +0 -1
- package/ui/dist/_app/immutable/chunks/xihTtKlq.js +0 -1
- package/ui/dist/_app/immutable/entry/app.DIki71EZ.js +0 -2
- package/ui/dist/_app/immutable/entry/start.DLcriI5g.js +0 -1
- package/ui/dist/_app/immutable/nodes/0.Bsma_XlH.js +0 -1
- package/ui/dist/_app/immutable/nodes/1.CPfTvL2Y.js +0 -1
- package/ui/dist/_app/immutable/nodes/2.DyvXex_x.js +0 -8
- package/ui/dist/_app/immutable/nodes/3.ClsZXJWk.js +0 -1
- package/ui/dist/_app/immutable/nodes/4.yPslz9Nb.js +0 -1
- package/ui/dist/_app/immutable/nodes/5.BZxbRAPf.js +0 -1
- package/ui/dist/_app/immutable/nodes/6.J6MdfI1j.js +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{t as e}from"../chunks/XKyaHtl9.js";import{B as t,C as n,Et as r,F as i,Ft as a,G as o,H as s,It as c,J as l,Lt as u,M as d,Mt as f,Nt as p,O as m,Ot as h,P as g,Pt as _,Rt as v,S as y,T as b,U as x,Ut as S,V as C,Wt as w,Yt as T,Z as E,_t as D,at as O,b as k,bt as A,ct as j,dt as ee,et as M,it as N,j as P,kt as F,lt as te,nt as I,q as ne,rt as re,tt as L,vt as R,w as z,x as B,y as V,zt as H}from"../chunks/C3gnuDhG.js";import{A as ie,B as ae,C as oe,D as U,H as se,S as ce,U as le,V as ue,_ as de,b as fe,c as pe,d as me,f as he,g as ge,h as _e,i as ve,j as ye,l as be,m as xe,n as Se,p as Ce,s as we,t as Te,u as Ee,w as De,y as Oe,z as ke}from"../chunks/DYI4yOrv.js";import{t as Ae}from"../chunks/Bt6Kyh95.js";import{$ as W,A as je,B as Me,C as Ne,E as Pe,F as G,G as Fe,H as K,I as Ie,J as Le,K as q,L as Re,M as ze,N as Be,O as Ve,P as He,Q as Ue,R as We,S as Ge,T as Ke,U as qe,V as Je,W as Ye,X as Xe,Y as Ze,Z as Qe,_ as $e,b as J,c as et,et as tt,f as nt,g as rt,h as it,j as at,k as ot,l as st,m as ct,nt as Y,o as lt,p as ut,q as dt,rt as ft,t as pt,tt as mt,u as ht,v as gt,w as _t,x as vt,y as yt,z as bt}from"../chunks/1WXXcBlU.js";function xt(e){return async t=>{t.preventDefault();let n=t.target.querySelectorAll(`fieldset`),r=[];for(let e of n)e.disabled=!0,r.push(e);await e(t);for(let e of r)e.disabled=!1}}var St=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ct(e,t){let n=k(t,St),r=[[`path`,{d:`M14 8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-6.939 6.939a1.207 1.207 0 0 1-1.708 0l-6.94-6.94a.707.707 0 0 1 .5-1.206H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1z`}],[`path`,{d:`M9 4h6`}]];U(e,B({name:`arrow-big-down-dash`},()=>n,{get iconNode(){return r}}))}var wt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tt(e,t){let n=k(t,wt),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];U(e,B({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Et=new Set([`$$slots`,`$$events`,`$$legacy`]);function Dt(e,t){let n=k(t,Et),r=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]];U(e,B({name:`log-out`},()=>n,{get iconNode(){return r}}))}var Ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function kt(e,t){let n=k(t,Ot),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];U(e,B({name:`search`},()=>n,{get iconNode(){return r}}))}var At=new Set([`$$slots`,`$$events`,`$$legacy`]);function jt(e,t){let n=k(t,At),r=[[`path`,{d:`M20 11v6`}],[`path`,{d:`M20 13h2`}],[`path`,{d:`M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578`}],[`circle`,{cx:`10`,cy:`7`,r:`4`}],[`circle`,{cx:`20`,cy:`19`,r:`2`}]];U(e,B({name:`user-key`},()=>n,{get iconNode(){return r}}))}var Mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Nt(e,t){let n=k(t,Mt),r=[[`path`,{d:`m10.586 5.414-5.172 5.172`}],[`path`,{d:`m18.586 13.414-5.172 5.172`}],[`path`,{d:`M6 12h12`}],[`circle`,{cx:`12`,cy:`20`,r:`2`}],[`circle`,{cx:`12`,cy:`4`,r:`2`}],[`circle`,{cx:`20`,cy:`12`,r:`2`}],[`circle`,{cx:`4`,cy:`12`,r:`2`}]];U(e,B({name:`waypoints`},()=>n,{get iconNode(){return r}}))}var Pt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ft=I(`<kbd><!></kbd>`);function It(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=k(t,Pt);var i=Ft();P(i,e=>({"data-slot":`kbd`,class:e,...r}),[()=>Y(`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`,t.class)]);var a=p(i);l(a,()=>t.children??T),H(i),m(i,e=>n(e),()=>n()),M(e,i),S()}function X(e){let t=h(u(e));return{[qe]:!0,[Ze]:!0,get current(){return A(t)},set current(e){r(t,e,!0)}}}X.from=Fe,X.with=q,X.flatten=Ye,X.readonly=Qe,X.isBox=dt,X.isWritableBox=Le;function Lt(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var Rt=[Ne,je,Ve],zt=[Pe,ot,`End`];[...Rt,...zt];function Bt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?_t:Ke,vertical:Ne}[t]}function Vt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Ke:_t,vertical:Pe}[t]}function Ht(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:Bt(e,t),prevKey:Vt(e,t)}}var Ut=class{#e;#t=X(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){let e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,t,n=!1){let r=this.#e.rootNode.current;if(!r||!e)return;let i=this.getCandidateNodes();if(!i.length)return;let a=i.indexOf(e),{nextKey:o,prevKey:s}=Ht(Lt(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Ve]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?Ke:Ne,t=s===`ArrowUp`?_t:Pe;l[e]=a+1,l[t]=a-1}let u=l[t.key];if(u===void 0)return;t.preventDefault(),u<0&&c?u=i.length-1:u===i.length&&c&&(u=0);let d=i[u];if(d)return d.focus(),this.#t.current=d.id,this.#e.onCandidateFocus?.(d),d}getTabIndex(e){let t=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&t[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){let e=this.#t.current;if(!e)return;let t=this.#e.rootNode.current?.querySelector(`#${e}`);t&&Ge(t)&&t.focus()}},Wt=18,Gt=40,Kt=`${Gt}px`,qt=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function Jt({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:i,domContext:a}){let o=h(!1),s=h(!1),c=h(!1);function l(){let e=n.current;return e!==`none`&&e===`increase-width`&&A(o)&&A(s)}function u(){let i=e.current,s=t.current;if(!i||!s||A(c)||n.current===`none`)return;let l=i,u=l.getBoundingClientRect().left+l.offsetWidth,d=l.getBoundingClientRect().top+l.offsetHeight/2,f=u-Wt,p=d;(a.querySelectorAll(qt).length!==0||a.getDocument().elementFromPoint(f,p)!==i)&&(r(o,!0),r(c,!0))}return R(()=>{let t=e.current;if(!t||n.current===`none`)return;function i(){let e=Re(t).innerWidth-t.getBoundingClientRect().right;r(s,e>=Gt)}i();let a=setInterval(i,1e3);return()=>{clearInterval(a)}}),R(()=>{let e=i.current||a.getActiveElement()===t.current;if(n.current===`none`||!e)return;let o=setTimeout(u,0),s=setTimeout(u,2e3),l=setTimeout(u,5e3),d=setTimeout(()=>{r(c,!0)},6e3);return()=>{clearTimeout(o),clearTimeout(s),clearTimeout(l),clearTimeout(d)}}),{get hasPwmBadge(){return A(o)},get willPushPwmBadge(){return l()},PWM_BADGE_SPACE_WIDTH:Kt}}var Yt=`^\\d+$`,Xt=He({component:`pin-input`,parts:[`root`,`cell`]}),Zt=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],Qt=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=h(!1);#t=Xe(!1);#n=h(null);#r=h(null);#i=new We(()=>this.opts.value.current??``);#a=F(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=h(u({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=G(this.opts.ref),this.inputAttachment=G(this.opts.inputRef),this.domContext=new Ie(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=Jt({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),ne(()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;this.#c.value.current!==e.value&&(this.opts.value.current=e.value),A(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=te(this.domContext.getDocument(),`selectionchange`,this.#m,{capture:!0});this.#m(),this.domContext.getActiveElement()===e&&(this.#t.current=!0),this.domContext.getElementById(`pin-input-style`)||this.#p();let r=()=>{t&&t.style.setProperty(`--bits-pin-input-root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{n(),i.disconnect()}}),bt([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{en(()=>{let e=this.opts.inputRef.current;if(!e)return;e.dispatchEvent(new Event(`input`));let t=e.selectionStart,n=e.selectionEnd,i=e.selectionDirection??`none`;t!==null&&n!==null&&(r(this.#n,t,!0),r(this.#r,n,!0),A(this.#o).prev=[t,n,i])},this.domContext)}),R(()=>{let e=this.opts.value.current,t=this.#i.current,n=this.opts.maxLength.current,r=this.opts.onComplete.current;t!==void 0&&e!==t&&t.length<n&&e.length===n&&r(e)})}onkeydown=e=>{let t=e.key;Zt.includes(t)||e.ctrlKey||e.metaKey||t&&A(this.#a)&&!A(this.#a).test(t)&&e.preventDefault()};#l=F(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=F(()=>({id:this.opts.id.current,[Xt.root]:``,style:A(this.#l),...this.attachment}));get rootProps(){return A(this.#u)}set rootProps(e){r(this.#u,e)}#d=F(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return A(this.#d)}set inputWrapperProps(e){r(this.#d,e)}#f=F(()=>({position:`absolute`,inset:0,width:this.#s.willPushPwmBadge?`calc(100% + ${this.#s.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:this.#s.willPushPwmBadge?`inset(0 ${this.#s.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:this.opts.textAlign.current,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--bits-pin-input-root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}));#p(){let e=this.domContext.getDocument(),t=e.createElement(`style`);if(t.id=`pin-input-style`,e.head.appendChild(t),t.sheet){let e=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;tn(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),tn(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),tn(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),tn(t.sheet,`@supports (-webkit-touch-callout: none) { [data-pin-input-input] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),tn(t.sheet,`[data-pin-input-input] + * { pointer-events: all !important; }`)}}#m=()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;if(this.domContext.getActiveElement()!==e){r(this.#n,null),r(this.#r,null);return}let n=e.selectionStart,i=e.selectionEnd,a=e.selectionDirection??`none`,o=e.maxLength,s=e.value,c=A(this.#o).prev,l=-1,u=-1,d;if(s.length!==0&&n!==null&&i!==null){let e=n===i,t=n===s.length&&s.length<o;if(e&&!t){let e=n;if(e===0)l=0,u=1,d=`forward`;else if(e===o)l=e-1,u=e,d=`backward`;else if(o>1&&s.length>1){let t=0;if(c[0]!==null&&c[1]!==null){d=e<c[1]?`backward`:`forward`;let n=c[0]===c[1]&&c[0]<o;d===`backward`&&!n&&(t=-1)}l=t+e,u=t+e+1}}l!==-1&&u!==-1&&l!==u&&this.opts.inputRef.current?.setSelectionRange(l,u,d)}let f=l===-1?n:l,p=u===-1?i:u,m=d??a;r(this.#n,f,!0),r(this.#r,p,!0),A(this.#o).prev=[f,p,m]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);t.length>0&&A(this.#a)&&!A(this.#a).test(t)?e.preventDefault():(typeof this.#i.current==`string`&&t.length<this.#i.current.length&&this.domContext.getDocument().dispatchEvent(new Event(`selectionchange`)),this.opts.value.current=t)};onfocus=e=>{let t=this.opts.inputRef.current;if(t){let e=Math.min(t.value.length,this.opts.maxLength.current-1),n=t.value.length;t.setSelectionRange(e,n),r(this.#n,e,!0),r(this.#r,n,!0)}this.#t.current=!0};onpaste=e=>{let t=this.opts.inputRef.current;if(!t)return;let n=e=>{let n=t.selectionStart===null?void 0:t.selectionStart,r=t.selectionEnd===null?void 0:t.selectionEnd,i=n!==r,a=this.opts.value.current;return(i?a.slice(0,n)+e+a.slice(r):a.slice(0,n)+e+a.slice(n)).slice(0,this.opts.maxLength.current)},i=e=>e.length>0&&A(this.#a)&&!A(this.#a).test(e);if(!this.opts.pasteTransformer?.current&&(!this.#c.isIOS||!e.clipboardData||!t)){i(n(e.clipboardData?.getData(`text/plain`)))&&e.preventDefault();return}let a=e.clipboardData?.getData(`text/plain`)??``,o=this.opts.pasteTransformer?.current?this.opts.pasteTransformer.current(a):a;e.preventDefault();let s=n(o);if(i(s))return;t.value=s,this.opts.value.current=s;let c=Math.min(s.length,this.opts.maxLength.current-1),l=s.length;t.setSelectionRange(c,l),r(this.#n,c,!0),r(this.#r,l,!0)};onmouseover=e=>{r(this.#e,!0)};onmouseleave=e=>{r(this.#e,!1)};onblur=e=>{A(this.#o).willSyntheticBlur?A(this.#o).willSyntheticBlur=!1:this.#t.current=!1};#h=F(()=>({id:this.opts.inputId.current,style:A(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":A(this.#n),"data-pin-input-input-mse":A(this.#r),inputmode:this.opts.inputmode.current,pattern:A(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:Be(this.opts.disabled.current),onpaste:this.onpaste,oninput:this.oninput,onkeydown:this.onkeydown,onmouseover:this.onmouseover,onmouseleave:this.onmouseleave,onfocus:this.onfocus,onblur:this.onblur,...this.inputAttachment}));get inputProps(){return A(this.#h)}set inputProps(e){r(this.#h,e)}#g=F(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&A(this.#n)!==null&&A(this.#r)!==null&&(A(this.#n)===A(this.#r)&&t===A(this.#n)||t>=A(this.#n)&&t<A(this.#r)),r=this.opts.value.current[t]===void 0?null:this.opts.value.current[t];return{char:r,isActive:n,hasFakeCaret:n&&r===null}}));#_=F(()=>({cells:A(this.#g),isFocused:this.#t.current,isHovering:A(this.#e)}));get snippetProps(){return A(this.#_)}set snippetProps(e){r(this.#_,e)}},$t=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=G(this.opts.ref)}#e=F(()=>({id:this.opts.id.current,[Xt.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return A(this.#e)}set props(e){r(this.#e,e)}};function en(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function tn(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var nn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),rn=I(`<div><!> <div><input/></div></div>`);function an(e,t){let n=N();w(t,!0);let r=V(t,`id`,19,()=>J(n)),i=V(t,`inputId`,19,()=>`${J(n)}-input`),a=V(t,`ref`,15,null),o=V(t,`inputRef`,15,null),s=V(t,`maxlength`,3,6),u=V(t,`textalign`,3,`left`),d=V(t,`inputmode`,3,`numeric`),f=V(t,`onComplete`,3,vt),m=V(t,`pushPasswordManagerStrategy`,3,`increase-width`),h=V(t,`class`,3,``),g=V(t,`autocomplete`,3,`one-time-code`),_=V(t,`disabled`,3,!1),v=V(t,`value`,15,``),y=V(t,`onValueChange`,3,vt),b=k(t,nn),x=Qt.create({id:q(()=>r()),ref:q(()=>a(),e=>a(e)),inputRef:q(()=>o(),e=>o(e)),inputId:q(()=>i()),autocomplete:q(()=>g()),maxLength:q(()=>s()),textAlign:q(()=>u()),disabled:q(()=>_()),inputmode:q(()=>d()),pattern:q(()=>t.pattern),onComplete:q(()=>f()),value:q(()=>v(),e=>{v(e),y()(e)}),pushPasswordManagerStrategy:q(()=>m()),pasteTransformer:q(()=>t.pasteTransformer)}),C=F(()=>K(b,x.inputProps)),E=F(()=>K(x.rootProps,{class:h()})),D=F(()=>K(x.inputWrapperProps,{}));var O=rn();P(O,()=>({...A(E)}));var j=p(O);l(j,()=>t.children??T,()=>x.snippetProps);var ee=c(j,2);P(ee,()=>({...A(D)}));var te=p(ee);P(te,()=>({...A(C)}),void 0,void 0,void 0,void 0,!0),H(ee),H(O),M(e,O),S()}var on=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),sn=I(`<div><!></div>`);function cn(e,t){let n=N();w(t,!0);let r=V(t,`id`,19,()=>J(n)),i=V(t,`ref`,15,null),a=k(t,on),s=$t.create({id:q(()=>r()),ref:q(()=>i(),e=>i(e)),cell:q(()=>t.cell)}),c=F(()=>K(a,s.props));var u=L(),d=_(u),f=e=>{var n=L(),r=_(n);l(r,()=>t.child,()=>({props:A(c)})),M(e,n)},m=e=>{var n=sn();P(n,()=>({...A(c)}));var r=p(n);l(r,()=>t.children??T),H(n),M(e,n)};o(d,e=>{t.child?e(f):e(m,-1)}),M(e,u),S()}var ln=He({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),un=new Me(`Tabs.Root`),dn=class e{static create(t){return un.set(new e(t))}opts;attachment;rovingFocusGroup;#e=h(u([]));get triggerIds(){return A(this.#e)}set triggerIds(e){r(this.#e,e,!0)}valueToTriggerId=new Je;valueToContentId=new Je;constructor(e){this.opts=e,this.attachment=G(e.ref),this.rovingFocusGroup=new Ut({candidateAttr:ln.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(e,t){return this.triggerIds.push(e),this.valueToTriggerId.set(t,e),()=>{this.triggerIds=this.triggerIds.filter(t=>t!==e),this.valueToTriggerId.delete(t)}}registerContent(e,t){return this.valueToContentId.set(t,e),()=>{this.valueToContentId.delete(t)}}setValue(e){this.opts.value.current=e}#t=F(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[ln.root]:``,...this.attachment}));get props(){return A(this.#t)}set props(e){r(this.#t,e)}},fn=class e{static create(t){return new e(t,un.get())}opts;root;attachment;#e=F(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=G(e.ref)}#t=F(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[ln.list]:``,"data-disabled":at(A(this.#e)),...this.attachment}));get props(){return A(this.#t)}set props(e){r(this.#t,e)}},pn=class e{static create(t){return new e(t,un.get())}opts;root;attachment;#e=h(0);#t=F(()=>this.root.opts.value.current===this.opts.value.current);#n=F(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=F(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=G(e.ref),bt([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),R(()=>{this.root.triggerIds.length,A(this.#t)||!this.root.opts.value.current?r(this.#e,0):r(this.#e,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#i(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(e){this.root.opts.activationMode.current!==`automatic`||A(this.#n)||this.#i()}onclick(e){A(this.#n)||this.#i()}onkeydown(e){A(this.#n)||(e.key===` `||e.key===`Enter`?(e.preventDefault(),this.#i()):this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e))}#a=F(()=>({id:this.opts.id.current,role:`tab`,"data-state":hn(A(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":at(A(this.#n)),"aria-selected":ze(A(this.#t)),"aria-controls":A(this.#r),[ln.trigger]:``,disabled:Be(A(this.#n)),tabindex:A(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return A(this.#a)}set props(e){r(this.#a,e)}},mn=class e{static create(t){return new e(t,un.get())}opts;root;attachment;#e=F(()=>this.root.opts.value.current===this.opts.value.current);#t=F(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=G(e.ref),bt([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=F(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:Be(!A(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":hn(A(this.#e)),"aria-labelledby":A(this.#t),"data-orientation":this.root.opts.orientation.current,[ln.content]:``,...this.attachment}));get props(){return A(this.#n)}set props(e){r(this.#n,e)}};function hn(e){return e?`active`:`inactive`}var gn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),_n=I(`<div><!></div>`);function vn(e,t){let n=N();w(t,!0);let r=V(t,`id`,19,()=>J(n)),i=V(t,`ref`,15,null),a=V(t,`value`,15,``),s=V(t,`onValueChange`,3,vt),c=V(t,`orientation`,3,`horizontal`),u=V(t,`loop`,3,!0),d=V(t,`activationMode`,3,`automatic`),f=V(t,`disabled`,3,!1),m=k(t,gn),h=dn.create({id:q(()=>r()),value:q(()=>a(),e=>{a(e),s()(e)}),orientation:q(()=>c()),loop:q(()=>u()),activationMode:q(()=>d()),disabled:q(()=>f()),ref:q(()=>i(),e=>i(e))}),g=F(()=>K(m,h.props));var v=L(),y=_(v),b=e=>{var n=L(),r=_(n);l(r,()=>t.child,()=>({props:A(g)})),M(e,n)},x=e=>{var n=_n();P(n,()=>({...A(g)}));var r=p(n);l(r,()=>t.children??T),H(n),M(e,n)};o(y,e=>{t.child?e(b):e(x,-1)}),M(e,v),S()}var yn=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),bn=I(`<div><!></div>`);function xn(e,t){let n=N();w(t,!0);let r=V(t,`id`,19,()=>J(n)),i=V(t,`ref`,15,null),a=k(t,yn),s=mn.create({value:q(()=>t.value),id:q(()=>r()),ref:q(()=>i(),e=>i(e))}),c=F(()=>K(a,s.props));var u=L(),d=_(u),f=e=>{var n=L(),r=_(n);l(r,()=>t.child,()=>({props:A(c)})),M(e,n)},m=e=>{var n=bn();P(n,()=>({...A(c)}));var r=p(n);l(r,()=>t.children??T),H(n),M(e,n)};o(d,e=>{t.child?e(f):e(m,-1)}),M(e,u),S()}var Sn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),Cn=I(`<div><!></div>`);function wn(e,t){let n=N();w(t,!0);let r=V(t,`id`,19,()=>J(n)),i=V(t,`ref`,15,null),a=k(t,Sn),s=fn.create({id:q(()=>r()),ref:q(()=>i(),e=>i(e))}),c=F(()=>K(a,s.props));var u=L(),d=_(u),f=e=>{var n=L(),r=_(n);l(r,()=>t.child,()=>({props:A(c)})),M(e,n)},m=e=>{var n=Cn();P(n,()=>({...A(c)}));var r=p(n);l(r,()=>t.children??T),H(n),M(e,n)};o(d,e=>{t.child?e(f):e(m,-1)}),M(e,u),S()}var Tn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),En=I(`<button><!></button>`);function Dn(e,t){let n=N();w(t,!0);let r=V(t,`disabled`,3,!1),i=V(t,`id`,19,()=>J(n)),a=V(t,`type`,3,`button`),s=V(t,`ref`,15,null),c=k(t,Tn),u=pn.create({id:q(()=>i()),disabled:q(()=>r()??!1),value:q(()=>t.value),ref:q(()=>s(),e=>s(e))}),d=F(()=>K(c,u.props,{type:a()}));var f=L(),m=_(f),h=e=>{var n=L(),r=_(n);l(r,()=>t.child,()=>({props:A(d)})),M(e,n)},g=e=>{var n=En();P(n,()=>({...A(d)}));var r=p(n);l(r,()=>t.children??T),H(n),M(e,n)};o(m,e=>{t.child?e(h):e(g,-1)}),M(e,f),S()}var On={"en-US":{auth:{signupTitle:`One-tap sign-up`,passwordTitle:`Hop in with password`,passwordDescription:`Create an account or sign in`,passkey:`Passkeys`,email:`Email`,alreadyHaveAccount:`Already have an account?`,betterSecurity:`Better security`,passkeysNotSupported:`Passkeys not supported`,passkeysWarning:`Your browser does not respect your privacy and security.`,learnMore:`Learn more`,passwordBlank:`Leave password blank <nobr>to receive</nobr> <nobr>a one-time</nobr> passcode.`,otpInstructions:`Enter the code sent to your email. It expires in 5 minutes.`,continueWith:(e=>`Continue with ${e}`),passkeysDescription:`Passkeys are safer than passwords, easier to use, and can’t be stolen.`,yourName:`Your name`,password:`Password`,refresh:{description:(e=>`${e?e+`, for`:`For`} security reasons, your credentials have expired. Please log in again to continue.`),title:`Welcome back`,continue:`Continue`},signout:`Sign out`,login:`Log In`,signin:`Sign In`,copyId:`Copy account ID`},credentials:{connect:`Connect`,email:{title:`Email`,description:`Connect your email address`},google:{title:`Google`,description:`Connect your Google account`},apple:{title:`Apple`,description:`Connect your Apple ID`},passkeys:{title:`Passkeys`,tagline:`Sign in faster with a passkey`,create:`Create`,manage:`Manage`,collapse:`Collapse`,add:`Enter passkey name`,delete:`Hold to delete`,unknown:`Unknown`,count:(e=>{let t={one:`{n} passkey`,other:`{n} passkeys`},n=`en-US`,r=new Intl.PluralRules(n).select(e),i=t;return(i[r]??i.other).replace(/{n}/g,new Intl.NumberFormat(n).format(e))}),meta:((e,t)=>`Added ${e} · Used ${t}`),duplicate:`This device already has a passkey for your account`,failed:`Could not create the passkey. Please try again.`},transfer:{action:`Sign in on another device`,title:`Scan to sign in`,description:`Use your other device to scan this code and sign in.`,done:`Done`}}}},Z=ee(Se,e=>On[e]),kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),An=I(`<div><!></div>`);function jn(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=k(t,kn);var i=An();P(i,e=>({"data-slot":`card-content`,class:e,...r}),[()=>Y(`px-(--card-spacing)`,t.class)]);var a=p(i);l(a,()=>t.children??T),H(i),m(i,e=>n(e),()=>n()),M(e,i),S()}var Mn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nn=I(`<p><!></p>`);function Pn(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=k(t,Mn);var i=Nn();P(i,e=>({"data-slot":`card-description`,class:e,...r}),[()=>Y(`text-sm text-muted-foreground`,t.class)]);var a=p(i);l(a,()=>t.children??T),H(i),m(i,e=>n(e),()=>n()),M(e,i),S()}var Fn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),In=I(`<div><!></div>`);function Ln(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=k(t,Fn);var i=In();P(i,e=>({"data-slot":`card-footer`,class:e,...r}),[()=>Y(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,t.class)]);var a=p(i);l(a,()=>t.children??T),H(i),m(i,e=>n(e),()=>n()),M(e,i),S()}var Rn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),zn=I(`<div><!></div>`);function Bn(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=k(t,Rn);var i=zn();P(i,e=>({"data-slot":`card-header`,class:e,...r}),[()=>Y(`gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,t.class)]);var a=p(i);l(a,()=>t.children??T),H(i),m(i,e=>n(e),()=>n()),M(e,i),S()}var Vn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Hn=I(`<div><!></div>`);function Un(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=k(t,Vn);var i=Hn();P(i,e=>({"data-slot":`card-title`,class:e,...r}),[()=>Y(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,t.class)]);var a=p(i);l(a,()=>t.children??T),H(i),m(i,e=>n(e),()=>n()),M(e,i),S()}var Wn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),Gn=I(`<div><!></div>`);function Kn(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=V(t,`size`,3,`default`),i=k(t,Wn);var a=Gn();P(a,e=>({"data-slot":`card`,"data-size":r(),class:e,...i}),[()=>Y(`gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,t.class)]);var o=p(a);l(o,()=>t.children??T),H(a),m(a,e=>n(e),()=>n()),M(e,a),S()}var qn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Jn(e,t){let n=k(t,qn),r=[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]];U(e,B({name:`arrow-right`},()=>n,{get iconNode(){return r}}))}var Yn=I(`<div><!></div>`);function Xn(e,t){w(t,!0);let n=h(!1);async function a(){r(n,!0),await new Promise(e=>setTimeout(e,500)),r(n,!1)}var o={shake:a},s=Yn(),c=p(s);return l(c,()=>t.children),H(s),D(()=>g(s,1,i([t.class,A(n)&&`shake`]),`svelte-alh7mr`)),M(e,s),S(o)}var Zn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Qn=I(`<div><!></div>`);function $n(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=k(t,Zn);var i=Qn();P(i,e=>({"data-slot":`input-otp-group`,class:e,...r}),[()=>Y(`rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center`,t.class)]);var a=p(i);l(a,()=>t.children??T),H(i),m(i,e=>n(e),()=>n()),M(e,i),S()}var er=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),tr=I(`<div class="cn-input-otp-caret pointer-events-none absolute inset-0 flex items-center justify-center"><div class="h-4 w-px animate-caret-blink bg-foreground duration-1000 h-4 w-px bg-foreground"></div></div>`),nr=I(` <!>`,1);function rr(e,n){w(n,!0);let r=V(n,`ref`,15,null),i=k(n,er);var a=L(),s=_(a);{let e=F(()=>Y(`size-8 border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex items-center justify-center data-[active=true]:z-10`,n.class));t(s,()=>cn,(t,a)=>{a(t,B({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return A(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)},children:(e,t)=>{v();var r=nr(),i=_(r),a=c(i),s=e=>{var t=tr();M(e,t)};o(a,e=>{n.cell.hasFakeCaret&&e(s)}),D(()=>E(i,`${n.cell.char??``} `)),M(e,r)},$$slots:{default:!0}}))})}M(e,a),S()}var ir=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function ar(e,n){w(n,!0);let r=V(n,`ref`,15,null),i=V(n,`value`,15,``),a=k(n,ir);var o=L(),s=_(o);{let e=F(()=>Y(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));t(s,()=>an,(t,n)=>{n(t,B({"data-slot":`input-otp`,spellcheck:!1,get class(){return A(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}M(e,o),S()}var or=I(`<div class="w-full flex items-center"><!></div>`);function sr(e,r){w(r,!0);let i=()=>z(Z,`$dict`,a),[a,c]=n(),l=V(r,`ref`,15,null),u=V(r,`mode`,11,`password`),d=V(r,`password`,15,``),f=V(r,`otp`,15,``);var h=or(),g=p(h),v=e=>{mt(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return i().auth.password},class:`placeholder:text-sm`,get value(){return d()},set value(e){d(e)}})},y=e=>{var n=L(),r=_(n);{let e=(e,n)=>{let r=()=>(n?.()).cells;var i=L(),a=_(i);t(a,()=>$n,(e,n)=>{n(e,{children:(e,n)=>{var i=L(),a=_(i);s(a,17,()=>r().slice(0,6),x,(e,n)=>{var r=L(),i=_(r);t(i,()=>rr,(e,t)=>{t(e,{get cell(){return A(n)},class:`size-[40px] bg-background`})}),M(e,r)}),M(e,i)},$$slots:{default:!0}})}),M(e,i)};t(r,()=>ar,(t,n)=>{n(t,{maxlength:6,get pattern(){return Yt},required:!0,get value(){return f()},set value(e){f(e)},children:e,$$slots:{default:!0}})})}M(e,n)};o(g,e=>{u()===`password`?e(v):e(y,-1)}),H(h),m(h,e=>l(e),()=>l()),M(e,h),S(),c()}var cr=I(`<!> <span class="sr-only"> </span>`,1),lr=I(`<form><fieldset class="space-y-2"><!> <div class="space-y-2"><div class="flex items-center gap-2"><!> <!></div> <div class="text-sm text-muted-foreground px-1"><!></div></div></fieldset></form>`);function ur(e,t){w(t,!0);let i=()=>z(Z,`$dict`,s),[s,l]=n(),u=h(!1),d=h(``),f=h(``),g=h(``),v=h(null),y=h(`password`),b=h(void 0);async function x(){A(f).length===0?A(y)===`password`?await ee():await N():await T()}async function T(){r(u,!0);let e=t.account===void 0?await k():await Ce(t.account.id,{username:A(d),password:A(f)});r(u,!1),e instanceof Error&&await P()}async function k(){let e=await xe(A(d),A(f));return e instanceof Error||le(e)?.status===201&&t.oncreate?.(e),e}async function ee(){r(u,!0);let e=t.account===void 0?await me(A(d)):await Ee(t.account.id,A(d));r(u,!1),!(e instanceof Error)&&(r(y,`otp`),requestAnimationFrame(()=>te()))}async function N(){if(A(d).length===0){console.error(`username is required`);return}if(A(g).length!==6){await P();return}r(u,!0);let e=await he(A(d),A(g));if(r(u,!1),e instanceof Error)r(g,``),await P();else return le(e)?.status===201&&t.oncreate?.(e),e}async function P(){await A(b)?.shake(),te()}function te(){ye&&A(v)?.querySelector(`input`)?.focus()}var I=lr(),ne=F(()=>xt(x)),re=p(I),R=p(re);{let e=F(()=>A(y)===`otp`||void 0);mt(R,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return A(e)},get autofocus(){return ye},get placeholder(){return i().auth.email},get value(){return A(d)},set value(e){r(d,e,!0)}})}var B=c(R,2),V=p(B),ie=p(V);m(Xn(ie,{class:`w-full`,children:(e,t)=>{sr(e,{get mode(){return A(y)},get ref(){return A(v)},set ref(e){r(v,e,!0)},get password(){return A(f)},set password(e){r(f,e,!0)},get otp(){return A(g)},set otp(e){r(g,e,!0)}})},$$slots:{default:!0}}),e=>r(b,e,!0),()=>A(b));var ae=c(ie,2);W(ae,{size:`icon-lg`,type:`submit`,children:(e,t)=>{var n=cr(),r=_(n),s=e=>{yt(e,{})},l=e=>{Jn(e,{})};o(r,e=>{A(u)?e(s):e(l,-1)});var d=c(r,2),f=a(d,!0);D(()=>E(f,i().auth.login)),M(e,n)},$$slots:{default:!0}}),H(V);var oe=c(V,2),U=p(oe),se=e=>{var t=L(),n=_(t);C(n,()=>i().auth.passwordBlank),M(e,t)},ce=e=>{var t=O();D(()=>E(t,i().auth.otpInstructions)),M(e,t)};o(U,e=>{A(y)===`password`?e(se):e(ce,-1)}),H(oe),H(B),H(re),H(I),j(`submit`,I,function(...e){A(ne)?.apply(this,e)}),M(e,I),S(),l()}var dr=I(`<h2> </h2>`),fr=I(`<!> <!>`,1);function pr(e,r){w(r,!0);let i=()=>z(Z,`$dict`,o),[o,s]=n();var l=L(),u=_(l);{let e=F(()=>Y(`pt-4 gap-4 bg-background/75`,r.class));t(u,()=>Kn,(n,o)=>{o(n,{get class(){return A(e)},children:(e,n)=>{var o=fr(),s=_(o);t(s,()=>Bn,(e,n)=>{n(e,{class:`gap-0`,children:(e,n)=>{var r=fr(),o=_(r);t(o,()=>Un,(e,t)=>{t(e,{children:(e,t)=>{var n=dr(),r=a(n,!0);D(()=>E(r,i().auth.passwordTitle)),M(e,n)},$$slots:{default:!0}})});var s=c(o,2);t(s,()=>Pn,(e,t)=>{t(e,{children:(e,t)=>{v();var n=O();D(()=>E(n,i().auth.passwordDescription)),M(e,n)},$$slots:{default:!0}})}),M(e,r)},$$slots:{default:!0}})});var l=c(s,2);t(l,()=>jn,(e,t)=>{t(e,{children:(e,t)=>{ur(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),M(e,o)},$$slots:{default:!0}})})}M(e,l),S(),s()}function mr(e){ur(e,{})}var hr=new Set([`$$slots`,`$$events`,`$$legacy`]);function gr(e,t){let n=k(t,hr),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`m9 12 2 2 4-4`}]];U(e,B({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var _r=new Set([`$$slots`,`$$events`,`$$legacy`]);function vr(e,t){let n=k(t,_r),r=[[`path`,{d:`m2 2 20 20`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`}]];U(e,B({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var yr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),br=I(`<div><!></div>`);function xr(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=k(t,yr);var i=br();P(i,e=>({"data-slot":`alert-description`,class:e,...r}),[()=>Y(`text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);l(a,()=>t.children??T),H(i),m(i,e=>n(e),()=>n()),M(e,i),S()}var Sr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Cr=I(`<div><!></div>`);function wr(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=k(t,Sr);var i=Cr();P(i,e=>({"data-slot":`alert-title`,class:e,...r}),[()=>Y(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);l(a,()=>t.children??T),H(i),m(i,e=>n(e),()=>n()),M(e,i),S()}var Tr=tt({base:`grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full`,variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}}),Er=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),Dr=I(`<div><!></div>`);function Or(e,t){w(t,!0);let n=V(t,`ref`,15,null),r=V(t,`variant`,3,`default`),i=k(t,Er);var a=Dr();P(a,e=>({"data-slot":`alert`,role:`alert`,class:e,...i}),[()=>Y(Tr({variant:r()}),t.class)]);var o=p(a);l(o,()=>t.children??T),H(a),m(a,e=>n(e),()=>n()),M(e,a),S()}var kr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ar(e,t){let n=k(t,kr),r=[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`}],[`path`,{d:`M2 16h.01`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`}]];U(e,B({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var jr=I(`<!> `,1),Mr=I(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function Nr(e,t){w(t,!0);let i=()=>z(Z,`$dict`,s),[s,l]=n(),u=h(!1);async function d(){r(u,!0),await we(),r(u,!1)}var f=Mr(),m=p(f),g=a(m,!0),v=c(m,2);W(v,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:d,children:(e,t)=>{var n=jr(),r=_(n),a=e=>{yt(e,{})},s=e=>{Ar(e,{})};o(r,e=>{A(u)?e(a):e(s,-1)});var l=c(r);D(()=>E(l,` ${i().auth.signin??``}`)),M(e,n)},$$slots:{default:!0}}),H(f),D(()=>E(g,i().auth.alreadyHaveAccount)),M(e,f),S(),l()}var Pr=I(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function Fr(e,t){w(t,!0);let i=()=>z(Z,`$dict`,a),[a,s]=n(),l=F(()=>t.account?.name??``),u=h(!1);async function d(){let e=A(l).trim();if(e.length===0)return;r(u,!0);let n=await pe(e,t.account?.id);r(u,!1),!(n instanceof Error)&&t.oncreate?.(n)}var f=Pr(),m=F(()=>xt(d)),g=p(f),v=p(g),y=p(v);mt(y,{id:`name`,type:`text`,get placeholder(){return i().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return ye},get value(){return A(l)},set value(e){r(l,e)}});var b=c(y,2);W(b,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(e,t)=>{var n=L(),r=_(n),i=e=>{yt(e,{})},a=e=>{Jn(e,{})};o(r,e=>{A(u)?e(i):e(a,-1)}),M(e,n)},$$slots:{default:!0}}),H(v),H(g),H(f),D(()=>g.disabled=t.disabled),j(`submit`,f,function(...e){A(m)?.apply(this,e)}),M(e,f),S(),s()}var Ir=I(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),Lr=I(`<h2> </h2>`),Rr=I(`<!> <!>`,1),zr=I(`<!> <!> <!>`,1),Br=I(`<p> </p> <!>`,1),Vr=I(`<div class="space-y-4"><!> <!></div>`);function Hr(e,r){w(r,!0);let i=()=>z(Z,`$dict`,s),[s,l]=n(),u=e=>{var t=Ir(),n=p(t),r=c(n),o=a(r,!0);H(t),D(()=>{E(n,`${i().auth.passkeysDescription??``} `),d(r,`href`,f),E(o,i().auth.learnMore)}),M(e,t)},f=ie?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var m=Vr(),h=p(m);{let e=F(()=>Y(`gap-4 bg-background/75`,be&&`pt-4`,r.class));t(h,()=>Kn,(n,s)=>{s(n,{get class(){return A(e)},children:(e,n)=>{var s=Rr(),l=_(s),d=e=>{var n=Rr(),o=_(n);t(o,()=>Bn,(e,n)=>{n(e,{class:`gap-0`,children:(e,n)=>{var r=L(),o=_(r);t(o,()=>Un,(e,t)=>{t(e,{children:(e,t)=>{var n=Lr(),r=a(n,!0);D(()=>E(r,i().auth.signupTitle)),M(e,n)},$$slots:{default:!0}})}),M(e,r)},$$slots:{default:!0}})});var s=c(o,2);t(s,()=>jn,(e,t)=>{t(e,{children:(e,t)=>{Fr(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),M(e,n)};o(l,e=>{be&&e(d)});var f=c(l,2);t(f,()=>Ln,(e,n)=>{n(e,{children:(e,n)=>{var r=L(),s=_(r),l=e=>{var n=L(),r=_(n);t(r,()=>Or,(e,n)=>{n(e,{children:(e,n)=>{var r=zr(),a=_(r);gr(a,{color:`green`});var o=c(a,2);t(o,()=>wr,(e,t)=>{t(e,{children:(e,t)=>{v();var n=O();D(()=>E(n,i().auth.betterSecurity)),M(e,n)},$$slots:{default:!0}})});var s=c(o,2);t(s,()=>xr,(e,t)=>{t(e,{children:(e,t)=>{u(e)},$$slots:{default:!0}})}),M(e,r)},$$slots:{default:!0}})}),M(e,n)},d=e=>{var n=L(),r=_(n);t(r,()=>Or,(e,n)=>{n(e,{children:(e,n)=>{var r=zr(),o=_(r);vr(o,{color:`red`,class:`animate-pulse`});var s=c(o,2);t(s,()=>wr,(e,t)=>{t(e,{children:(e,t)=>{v();var n=O();D(()=>E(n,i().auth.passkeysNotSupported)),M(e,n)},$$slots:{default:!0}})});var l=c(s,2);t(l,()=>xr,(e,t)=>{t(e,{children:(e,t)=>{var n=Br(),r=_(n),o=a(r,!0),s=c(r,2);u(s),D(()=>E(o,i().auth.passkeysWarning)),M(e,n)},$$slots:{default:!0}})}),M(e,r)},$$slots:{default:!0}})}),M(e,n)};o(s,e=>{be?e(l):e(d,-1)}),M(e,r)},$$slots:{default:!0}})}),M(e,s)},$$slots:{default:!0}})})}var g=c(h,2),y=e=>{Nr(e,{})};o(g,e=>{be&&!r.account&&e(y)}),H(m),M(e,m),S(),l()}var Ur=I(`<!> <!> `,1);function Wr(e,t){w(t,!0);let r=()=>z(Z,`$dict`,i),[i,a]=n();async function o(e){let n=e.currentTarget;n.disabled=!0,await we(t.account.id),n.disabled=!1}W(e,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:o,children:(e,t)=>{var n=Ur(),i=_(n);Ar(i,{class:`size-5 x-icon`});var a=c(i,2);yt(a,{class:`x-spinner`});var o=c(a);D(()=>E(o,` ${r().auth.refresh.continue??``}`)),M(e,n)},$$slots:{default:!0}}),S(),a()}var Gr=re(`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M19.84 10.2273C19.84 9.5182 19.7764 8.8364 19.6582 8.1818H10.24V12.05H15.6218C15.39 13.3 14.6855 14.3591 13.6264 15.0682V17.5773H16.8582C18.7491 15.8364 19.84 13.2727 19.84 10.2273Z" fill="#4285F4"></path><path d="M10.24 20C12.94 20 15.2036 19.1045 16.8581 17.5773L13.6263 15.0682C12.7309 15.6682 11.5854 16.0227 10.24 16.0227C7.6354 16.0227 5.4309 14.2636 4.6445 11.9H1.3036V14.4909C2.9491 17.7591 6.3309 20 10.24 20Z" fill="#34A853"></path><path d="M4.6445 11.9C4.4445 11.3 4.3309 10.6591 4.3309 10C4.3309 9.3409 4.4445 8.7 4.6445 8.1V5.5091H1.3036C0.6264 6.8591 0.24 8.3864 0.24 10C0.24 11.6136 0.6264 13.1409 1.3036 14.4909L4.6445 11.9Z" fill="#FBBC04"></path><path d="M10.24 3.9773C11.7081 3.9773 13.0263 4.4818 14.0627 5.4727L16.9309 2.6045C15.1991 0.9909 12.9354 0 10.24 0C6.3309 0 2.9491 2.2409 1.3036 5.5091L4.6445 8.1C5.4309 5.7364 7.6354 3.9773 10.24 3.9773Z" fill="#E94235"></path></svg>`);function Kr(e,t){var n=Gr();D(()=>g(n,0,i(t.class))),M(e,n)}var qr=re(`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill="currentColor" viewBox="0 0 814 1000"><path d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"></path></svg>`);function Jr(e,t){w(t,!0);var n=qr(),r=a(n);D(e=>{g(n,0,e),d(r,`fill`,t.fill)},[()=>i(Y(`size-5 -mt-[3px]`,t.class))]),M(e,n),S()}var Yr={google:Kr,apple:Jr},Xr=I(`<!> <!> <!>`,1);function Zr(e,n){w(n,!0);let r=F(()=>Yr[n.idp]);async function i(e){let t=e.currentTarget;t.disabled=!0,await ge(n.idp,n.account?.id),t.disabled=!1}{let a=F(()=>n.children?`default`:`icon`),o=F(()=>Y(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,n.class));W(e,{variant:`outline`,get size(){return A(a)},onclick:i,get class(){return A(o)},children:(e,i)=>{var a=Xr(),o=_(a);t(o,()=>A(r),(e,t)=>{t(e,{class:`x-icon`})});var s=c(o,2);yt(s,{class:`x-spinner`});var u=c(s,2);l(u,()=>n.children??T),M(e,a)},$$slots:{default:!0}})}S()}var Qr=I(`<div class="flex gap-2"><!> <!></div>`);function $r(e,t){w(t,!0);var n=Qr(),r=p(n),i=e=>{Zr(e,{idp:`google`,get account(){return t.account}})};o(r,e=>{de.google.client&&e(i)});var a=c(r,2),s=e=>{Zr(e,{idp:`apple`,get account(){return t.account}})};o(a,e=>{de.apple.client&&e(s)}),H(n),M(e,n),S()}function ei(e,t){w(t,!0);let r=()=>z(Z,`$dict`,i),[i,a]=n(),o={google:`Google`,apple:`Apple`};Zr(e,{get idp(){return t.idp},class:`w-full`,children:(e,n)=>{v();var i=O();D(e=>E(i,e),[()=>r().auth.continueWith(o[t.idp])]),M(e,i)},$$slots:{default:!0}}),S(),a()}var ti=I(`<!> <!>`,1);function ni(e,n){var r=L(),i=_(r);t(i,()=>Kn,(e,r)=>{r(e,{class:`w-full`,children:(e,r)=>{var i=ti(),a=_(i);t(a,()=>Bn,(e,r)=>{r(e,{children:(e,r)=>{var i=ti(),a=_(i);t(a,()=>Un,(e,t)=>{t(e,{children:(e,t)=>{v();var r=O();D(()=>E(r,n.title)),M(e,r)},$$slots:{default:!0}})});var o=c(a,2);t(o,()=>Pn,(e,t)=>{t(e,{children:(e,t)=>{v();var r=O();D(()=>E(r,n.description)),M(e,r)},$$slots:{default:!0}})}),M(e,i)},$$slots:{default:!0}})});var o=c(a,2);t(o,()=>jn,(e,t)=>{t(e,{class:`flex flex-col`,children:(e,t)=>{var r=L(),i=_(r);l(i,()=>n.action),M(e,r)},$$slots:{default:!0}})}),M(e,i)},$$slots:{default:!0}})}),M(e,r)}var ri=I(`<!> `,1),ii=I(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function ai(e,t){w(t,!0);let r=()=>z(Z,`$dict`,i),[i,a]=n();ne(()=>{t.method===null&&_e()});var s=ii(),l=p(s);{let e=e=>{var n=L(),r=_(n),i=e=>{Wr(e,{get account(){return t.account}})},a=e=>{mr(e,{})},s=e=>{ei(e,{idp:`apple`})},c=e=>{ei(e,{idp:`google`})};o(r,e=>{t.method===`passkey`?e(i):t.method===`password`?e(a,1):t.method===`apple`?e(s,2):t.method===`google`&&e(c,3)}),M(e,n)},n=F(()=>r().auth.refresh.description(t.account.name));ni(l,{get title(){return r().auth.refresh.title},get description(){return A(n)},action:e,$$slots:{action:!0}})}var u=c(l,2);W(u,{variant:`outline`,get onclick(){return _e},children:(e,t)=>{var n=ri(),i=_(n);Dt(i,{});var a=c(i);D(()=>E(a,` ${r().auth.signout??``}`)),M(e,n)},$$slots:{default:!0}}),H(s),M(e,s),S(),a()}var oi=new Set([`$$slots`,`$$events`,`$$legacy`]);function si(e,t){let n=k(t,oi),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`}]];U(e,B({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ci=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function li(e,n){w(n,!0);let r=V(n,`ref`,15,null),i=k(n,ci);var a=L(),o=_(a);{let e=F(()=>Y(`text-sm flex-1 outline-none`,n.class));t(o,()=>xn,(t,n)=>{n(t,B({"data-slot":`tabs-content`,get class(){return A(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}M(e,a),S()}var ui=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function di(e,n){w(n,!0);let r=V(n,`ref`,15,null),i=k(n,ui);var a=L(),o=_(a);{let e=F(()=>Y(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,n.class));t(o,()=>Dn,(t,n)=>{n(t,B({"data-slot":`tabs-trigger`,get class(){return A(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}M(e,a),S()}var fi=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function pi(e,n){w(n,!0);let r=V(n,`ref`,15,null),i=V(n,`value`,15,``),a=k(n,fi);var o=L(),s=_(o);{let e=F(()=>Y(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));t(s,()=>vn,(t,n)=>{n(t,B({"data-slot":`tabs`,get class(){return A(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}M(e,o),S()}var mi=tt({base:`rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,variants:{variant:{default:`cn-tabs-list-variant-default bg-muted`,line:`cn-tabs-list-variant-line gap-1 bg-transparent`}},defaultVariants:{variant:`default`}}),hi=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function gi(e,n){w(n,!0);let r=V(n,`ref`,15,null),i=V(n,`variant`,3,`default`),a=k(n,hi);var o=L(),s=_(o);{let e=F(()=>Y(mi({variant:i()}),n.class));t(s,()=>wn,(t,n)=>{n(t,B({"data-slot":`tabs-list`,get"data-variant"(){return i()},get class(){return A(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}M(e,o),S()}var _i=I(`<!> `,1),vi=I(`<!> <!>`,1),yi=I(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function bi(e,i){w(i,!0);let a=()=>z(Z,`$dict`,o),[o,s]=n(),l=h(null);function u(e){requestAnimationFrame(()=>{A(l)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let d=h(`passkey`);ne(()=>{r(d,be?`passkey`:`password`,!0)});var f=L(),m=_(f);{let e=F(()=>Y(`w-full`,i.class));t(m,()=>pi,(n,o)=>{o(n,{get class(){return A(e)},onValueChange:u,get value(){return A(d)},set value(e){r(d,e,!0)},get ref(){return A(l)},set ref(e){r(l,e,!0)},children:(e,n)=>{var r=yi(),o=_(r),s=p(o);t(s,()=>gi,(e,n)=>{n(e,{children:(e,n)=>{var r=vi(),i=_(r);t(i,()=>di,(e,t)=>{t(e,{value:`passkey`,"data-marker":`passkey-tab`,children:(e,t)=>{var n=_i(),r=_(n);Ar(r,{color:`var(--muted-foreground)`});var i=c(r);D(()=>E(i,` ${a().auth.passkey??``}`)),M(e,n)},$$slots:{default:!0}})});var o=c(i,2);t(o,()=>di,(e,t)=>{t(e,{value:`password`,id:`iam-email-tab`,children:(e,t)=>{var n=_i(),r=_(n);si(r,{color:`var(--muted-foreground)`});var i=c(r);D(()=>E(i,` ${a().auth.email??``}`)),M(e,n)},$$slots:{default:!0}})}),M(e,r)},$$slots:{default:!0}})}),$r(c(s,2),{get account(){return i.account}}),H(o);var l=c(o,2);t(l,()=>li,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Hr(e,{get account(){return i.account},oncreate:e=>i.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var u=c(l,2);t(u,()=>li,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{pr(e,{get account(){return i.account},oncreate:e=>i.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),M(e,r)},$$slots:{default:!0}})})}M(e,f),S(),s()}var xi=I(`<div class="flex items-center justify-center h-screen"><!></div>`),Si=I(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function Ci(e,t){w(t,!0);let r=()=>z(Oe,`$iam`,u),i=()=>z(oe,`$method`,u),a=()=>z(fe,`$authenticated`,u),s=()=>z(ce,`$greeting`,u),c=()=>z(De,`$processing`,u),[u,d]=n(),f=e=>{var n=L(),a=_(n),s=e=>{ai(e,{get account(){return r()},get method(){return i()}})},c=e=>{{let n=F(()=>Y(`scale-0 transition-transform`,`scale-100`));bi(e,{get class(){return A(n)},get account(){return t.account},get oncreate(){return t.oncreate}})}};o(a,e=>{r()?e(s):e(c,-1)}),M(e,n)};var m=L(),h=_(m),g=e=>{var n=L(),r=_(n);l(r,()=>t.children),M(e,n)},v=e=>{var t=xi(),n=p(t);yt(n,{}),H(t),M(e,t)},y=e=>{var n=L(),r=_(n);l(r,()=>t.screen,()=>({authentication:f})),M(e,n)},b=e=>{var t=Si(),n=p(t);f(n),H(t),M(e,t)};o(h,e=>{a()?e(g):s()||c()?e(v,1):t.screen?e(y,2):e(b,-1)}),M(e,m),S(),d()}var wi=e(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Q=e((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),Ti=e((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),Ei=e(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),Di=e(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),Oi=e((e=>{var t=Q().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),ki=e((e=>{var t=Q().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Ai=e((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),ji=e((e=>{var t=Ti(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),Mi=e((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),Ni=e((e=>{var t=Mi();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),Pi=e(((e,t)=>{var n=Ni();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),Fi=e((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Ii=e((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
|
|
2
|
+
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),$=e((e=>{var t=Fi(),n=Ii();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),Li=e((e=>{var t=Q(),n=ji(),r=Ti(),i=$(),a=Fi(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),Ri=e((e=>{var t=Q(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),zi=e(((e,t)=>{var n=$();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),Bi=e(((e,t)=>{var n=$(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t=0;for(;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),Vi=e(((e,t)=>{var n=$();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),Hi=e(((e,t)=>{var n=$(),r=Q();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t=0;for(;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
|
|
3
|
+
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),Ui=e(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),Wi=e((e=>{var t=$(),n=zi(),r=Bi(),i=Vi(),a=Hi(),o=Ii(),s=Q(),c=Ui();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
|
|
4
|
+
Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),Gi=e((e=>{var t=Q(),n=Ti(),r=Ei(),i=Di(),a=Oi(),o=ki(),s=Ai(),c=ji(),l=Pi(),u=Li(),d=Ri(),f=$(),p=Wi();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
|
|
5
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
+
Minimum version required to store current data is: `+c+`.
|
|
7
|
+
`);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),Ki=e((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||(e.color={});let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),qi=e((e=>{var t=Ki();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),Ji=e((e=>{var t=Ki();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
|
|
8
|
+
`;return typeof a==`function`&&a(null,p),p}}));e((e=>{var t=wi(),n=Gi(),r=qi(),i=Ji();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}))(),Yr.google,Yr.apple;var Yi=`search`;function Xi(e){return new URLSearchParams(e.replace(/^#/,``)).get(Yi)}function Zi(e,t){let n=new URLSearchParams(e.replace(/^#/,``));t===``?n.delete(Yi):n.set(Yi,t);let r=n.toString().replace(/%2F/gi,`/`);return r===``?``:`#`+r}var Qi=e=>{var t=$i(),n=_(t);et(n,{});var r=c(n,2);st(r,{}),M(e,t)},$i=I(`<!> <!>`,1),ea=I(`<div class="w-full min-w-0 flex-1 md:max-w-64 md:flex-none md:shrink"></div>`),ta=I(`<div class="relative w-full min-w-0 flex-1 md:max-w-64 md:flex-none md:shrink"><!> <!> <!></div>`),na=I(`<header class="bg-background sticky top-0 z-50 -mt-2 flex w-full items-center gap-4 px-4 py-3" style="view-transition-name: chrome"><div class="flex shrink-0 items-center gap-2 md:flex-1 md:gap-4"><h1 class="hidden min-w-0 truncate text-lg font-medium md:block"> </h1> <!> <!> <div class="hidden items-center gap-4 md:flex"><!> <!></div></div> <!> <div class="flex shrink-0 items-center justify-end gap-1 md:flex-1"><!></div></header> <div class="mx-auto flex w-full max-w-3xl flex-col gap-4 px-4 pb-4"><!> <!></div>`,1);function ra(e,t){w(t,!0);let i=()=>z(fe,`$authenticated`,g),s=()=>z($e,`$query`,g),l=()=>z(ve,`$tree`,g),u=()=>z(it,`$only`,g),d=()=>z(Te,`$dict`,g),m=()=>z(Oe,`$account`,g),[g,x]=n(),C=h(null),T=h(!1);R(()=>{i()&&r(T,!1)}),ne(()=>{let e=()=>{let e=Xi(location.hash);e!==null&&$e.set(e)};return e(),window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}),R(()=>{let e=Zi(location.hash,s());e!==location.hash&&Ae(e===``?location.pathname:e,{shallow:!0,replace:!0})});let k=F(()=>rt(l())),ee=F(()=>ut(l(),nt.configuration)),N=F(()=>ut(l(),nt.introspection));function P(){let e=pt(l(),ue.title),t=URL.createObjectURL(new Blob([e],{type:`text/markdown`})),n=window.document.createElement(`a`);n.href=t,n.download=`discovery.md`,n.click(),URL.revokeObjectURL(t)}function te(e){e.key===`Enter`&&u()?.()}function I(e){e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),A(C)?.focus(),A(C)?.select())}j(`keydown`,f,I),Ue(e,{children:(e,t)=>{var n=na(),u=_(n),f=p(u),h=p(f),g=a(h,!0),x=c(h,2),S=e=>{{let t=e=>{ht(e,{class:`size-4`})},n=F(()=>ct(l(),se));gt(e,{id:`discovery-mcp-button`,get text(){return A(n)},variant:`ghost`,size:`icon`,get"aria-label"(){return d().nav.mcp},class:`text-muted-foreground`,icon:t,$$slots:{icon:!0}})}};o(x,e=>{A(k)&&e(S)});var w=c(x,2);W(w,{id:`discovery-markdown-button`,variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return d().nav.markdown},onclick:P,children:(e,t)=>{Ct(e,{})},$$slots:{default:!0}});var j=c(w,2),I=p(j),ne=e=>{W(e,{id:`discovery-configuration-button`,get href(){return ke},variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return d().nav.configuration},children:(e,t)=>{Tt(e,{})},$$slots:{default:!0}})};o(I,e=>{A(ee)&&e(ne)});var re=c(I,2),L=e=>{W(e,{id:`discovery-introspection-button`,get href(){return ae},variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return d().nav.introspection},children:(e,t)=>{Nt(e,{})},$$slots:{default:!0}})};o(re,e=>{A(N)&&e(L)}),H(j),H(f);var R=c(f,2),z=e=>{var t=ea();M(e,t)},B=e=>{var t=ta(),n=p(t);kt(n,{class:`text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-3.5 -translate-y-1/2`});var i=c(n,2);mt(i,{id:`nav-filter-input`,type:`search`,onkeydown:te,get"aria-label"(){return d().nav.filter},class:`ps-8 pe-3 md:pe-14 [&::-webkit-search-cancel-button]:hidden`,get ref(){return A(C)},set ref(e){r(C,e,!0)},get value(){return y(),s()},set value(e){b($e,e)}}),It(c(i,2),{class:`absolute end-2 top-1/2 hidden -translate-y-1/2 md:inline-flex`,children:(e,t)=>{v();var n=O();D(()=>E(n,ie?`⌘K`:`Ctrl K`)),M(e,n)},$$slots:{default:!0}}),H(t),M(e,t)};o(R,e=>{A(T)?e(z):e(B,-1)});var V=c(R,2),oe=p(V),U=e=>{var t=$i(),n=_(t),r=e=>{var t=$i(),n=_(t);gt(n,{get text(){return m().id},variant:`outline`,size:`icon-sm`,get"aria-label"(){return d().nav.identity},class:`md:hidden`});var r=c(n,2);{let e=F(()=>m().id.slice(0,8));gt(r,{id:`iam-identity-button`,get text(){return m().id},get label(){return A(e)},variant:`outline`,size:`sm`,get"aria-label"(){return d().nav.identity},class:`hidden font-mono md:inline-flex`})}M(e,t)};o(n,e=>{m()!==null&&e(r)});var i=c(n,2);W(i,{id:`iam-logout-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return d().nav.signout},class:`text-destructive hover:text-destructive`,get onclick(){return _e},children:(e,t)=>{Dt(e,{})},$$slots:{default:!0}}),M(e,t)},ce=e=>{W(e,{id:`iam-cancel-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return d().nav.back},onclick:()=>r(T,!1),children:(e,t)=>{ft(e,{})},$$slots:{default:!0}})},le=e=>{W(e,{id:`iam-login-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return d().nav.signin},onclick:()=>r(T,!0),children:(e,t)=>{jt(e,{})},$$slots:{default:!0}})};o(oe,e=>{i()?e(U):A(T)?e(ce,1):e(le,-1)}),H(V),H(u);var de=c(u,2),fe=p(de),pe=e=>{Ci(e,{children:(e,t)=>{Qi(e)},$$slots:{default:!0}})},me=e=>{Qi(e)};o(fe,e=>{A(T)?e(pe):e(me,-1)});var he=c(fe,2);lt(he,{}),H(de),D(()=>E(g,ue.title)),M(e,n)},$$slots:{default:!0}}),S(),x()}export{ra as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"../chunks/XKyaHtl9.js";import{C as t,D as n,Ut as r,Wt as i,w as a}from"../chunks/C3gnuDhG.js";import{d as o,n as s,s as c}from"../chunks/1WXXcBlU.js";var l=e({load:()=>u});function u(){return{meta:{title:`Authentication`,description:`Tokens, not passwords. Follow the authorization response.`}}}function d(e,l){i(l,!1);let u=()=>a(o,`$dict`,d),[d,f]=t();n(),c(e,{get source(){return s},get title(){return u().guide.authentication.title}}),r(),f()}export{d as component,l as universal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"../chunks/XKyaHtl9.js";import{C as t,D as n,Ut as r,Wt as i,w as a}from"../chunks/C3gnuDhG.js";import{d as o,r as s,s as c}from"../chunks/1WXXcBlU.js";var l=e({load:()=>u});function u(){return{meta:{title:`Multipart responses`,description:`How a streamed reply is framed.`}}}function d(e,l){i(l,!1);let u=()=>a(o,`$dict`,d),[d,f]=t();n(),c(e,{get source(){return s},get title(){return u().guide.multipart.title}}),r(),f()}export{d as component,l as universal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"../chunks/XKyaHtl9.js";import{C as t,D as n,Ut as r,Wt as i,w as a}from"../chunks/C3gnuDhG.js";import{d as o,i as s,s as c}from"../chunks/1WXXcBlU.js";var l=e({load:()=>u});function u(){return{meta:{title:`Collection queries`,description:`How a collection is selected.`}}}function d(e,l){i(l,!1);let u=()=>a(o,`$dict`,d),[d,f]=t();n(),c(e,{get source(){return s},get title(){return u().guide.queries.title}}),r(),f()}export{d as component,l as universal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"../chunks/XKyaHtl9.js";import{C as t,D as n,Ut as r,Wt as i,w as a}from"../chunks/C3gnuDhG.js";import{a as o,d as s,s as c}from"../chunks/1WXXcBlU.js";var l=e({load:()=>u});function u(){return{meta:{title:`Status codes`,description:`HTTP status codes the gateway may return.`}}}function d(e,l){i(l,!1);let u=()=>a(s,`$dict`,d),[d,f]=t();n(),c(e,{get source(){return o},get title(){return u().guide.status.title}}),r(),f()}export{d as component,l as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1793028401680"}
|
package/ui/dist/index.html
CHANGED
|
@@ -25,14 +25,17 @@
|
|
|
25
25
|
<meta property="og:description" content="Resource exploration and playground" />
|
|
26
26
|
<meta name="twitter:card" content="summary" />
|
|
27
27
|
|
|
28
|
-
<link href="/.discovery/_app/immutable/entry/start.
|
|
29
|
-
<link href="/.discovery/_app/immutable/
|
|
30
|
-
<link href="/.discovery/_app/immutable/chunks/
|
|
31
|
-
<link href="/.discovery/_app/immutable/
|
|
32
|
-
<link href="/.discovery/_app/immutable/chunks/
|
|
33
|
-
<link href="/.discovery/_app/immutable/
|
|
34
|
-
<link href="/.discovery/_app/immutable/
|
|
35
|
-
<link href="/.discovery/_app/immutable/
|
|
28
|
+
<link href="/.discovery/_app/immutable/entry/start.BzTqgs51.js" rel="modulepreload">
|
|
29
|
+
<link href="/.discovery/_app/immutable/entry/payload.DSmR2FwN.js" rel="modulepreload">
|
|
30
|
+
<link href="/.discovery/_app/immutable/chunks/CRzLMJPS.js" rel="modulepreload">
|
|
31
|
+
<link href="/.discovery/_app/immutable/chunks/BjwH--Q_.js" rel="modulepreload">
|
|
32
|
+
<link href="/.discovery/_app/immutable/chunks/Bt6Kyh95.js" rel="modulepreload">
|
|
33
|
+
<link href="/.discovery/_app/immutable/chunks/C3gnuDhG.js" rel="modulepreload">
|
|
34
|
+
<link href="/.discovery/_app/immutable/entry/app.C3gvpmYY.js" rel="modulepreload">
|
|
35
|
+
<link href="/.discovery/_app/immutable/nodes/0.BufbmJeT.js" rel="modulepreload">
|
|
36
|
+
<link href="/.discovery/_app/immutable/chunks/XKyaHtl9.js" rel="modulepreload">
|
|
37
|
+
<link href="/.discovery/_app/immutable/chunks/DYI4yOrv.js" rel="modulepreload">
|
|
38
|
+
<link href="/.discovery/_app/immutable/chunks/-39mDws-.js" rel="modulepreload">
|
|
36
39
|
<link href="/.discovery/_app/env.js" rel="modulepreload">
|
|
37
40
|
|
|
38
41
|
<link href="/.discovery/_app/immutable/assets/0.DKJjMwRs.css" rel="stylesheet">
|
|
@@ -41,8 +44,9 @@
|
|
|
41
44
|
<div style="display: contents">
|
|
42
45
|
<script>
|
|
43
46
|
{
|
|
44
|
-
|
|
47
|
+
__sveltekit_yh5qk8 = {
|
|
45
48
|
base: "/.discovery",
|
|
49
|
+
version: "1793028401680",
|
|
46
50
|
assets: "/.discovery",
|
|
47
51
|
env: null
|
|
48
52
|
};
|
|
@@ -50,12 +54,11 @@
|
|
|
50
54
|
const element = document.currentScript.parentElement;
|
|
51
55
|
|
|
52
56
|
import("/.discovery/_app/env.js").then(({ env }) => {
|
|
53
|
-
|
|
57
|
+
__sveltekit_yh5qk8.env = env;
|
|
54
58
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
import("/.discovery/_app/immutable/entry/app.
|
|
58
|
-
]).then(([kit, app]) => {
|
|
59
|
+
import("/.discovery/_app/immutable/entry/start.BzTqgs51.js").then(async (kit) => {
|
|
60
|
+
kit.init(__sveltekit_yh5qk8);
|
|
61
|
+
const app = await import("/.discovery/_app/immutable/entry/app.C3gvpmYY.js");
|
|
59
62
|
kit.start(app, element);
|
|
60
63
|
});
|
|
61
64
|
});
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=Array.isArray,d=Array.prototype.indexOf,f=Array.prototype.includes,p=Array.from,m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,_=Object.prototype,v=Array.prototype,y=Object.getPrototypeOf,b=Object.isExtensible;function x(e){return typeof e==`function`}var S=()=>{};function ee(e){return e()}function te(e){for(var t=0;t<e.length;t++)e[t]()}function ne(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function re(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 ie=1<<24,C=1024,w=2048,ae=4096,oe=8192,se=16384,ce=32768,le=1<<25,ue=65536,de=1<<18,fe=1<<19,pe=1<<20,me=1<<25,he=65536,ge=1<<21,_e=1<<22,ve=1<<23,ye=Symbol(`$state`),be=Symbol(`legacy props`),xe=Symbol(``),Se=Symbol(`proxy path`),Ce=Symbol(`attributes`),we=Symbol(`class`),Te=Symbol(`style`),Ee=Symbol(`text`),De=Symbol(`form reset`),Oe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ke=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Ae(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function je(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Me(){throw Error(`https://svelte.dev/e/missing_context`)}function Ne(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Pe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Fe(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ie(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Le(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Re(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ze(){throw Error(`https://svelte.dev/e/fork_discarded`)}function Be(){throw Error(`https://svelte.dev/e/fork_timing`)}function Ve(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function He(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ue(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function We(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ge(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ke(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function qe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Je(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ye={},T=Symbol(`uninitialized`),Xe=`http://www.w3.org/1999/xhtml`,Ze=`http://www.w3.org/2000/svg`,Qe=`http://www.w3.org/1998/Math/MathML`,$e=`@attach`;function et(){console.warn(`https://svelte.dev/e/derived_inert`)}function tt(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function nt(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function rt(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function it(){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 nt(),Ye;return O=e}function A(){return k(B(O))}function at(e){if(E){if(B(O)!==null)throw nt(),Ye;O=e}}function ot(e=1){if(E){for(var t=e,n=O;t--;)n=B(n);O=n}}function st(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=B(n);e&&n.remove(),n=i}}function ct(e){if(!e||e.nodeType!==8)throw nt(),Ye;return e.data}function lt(e){return e===this.v}function ut(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function dt(e){return!ut(e,this.v)}var ft=!1;function pt(){ft=!0}function mt(e,t){return e.label=t,ht(e.v,t),e}function ht(e,t){return e?.[Se]?.(t),e}function gt(e){return typeof e==`symbol`?`Symbol(${e.description})`:typeof e==`function`?`<function>`:typeof e==`object`&&e?`<object>`:String(e)}function _t(e,t,n){let r={};return[()=>(n(r)||Me(),e(r)),e=>t(r,e)]}function vt(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function yt(e,t){return e===null&&je(t),e.c??=new Map(vt(e)||void 0)}var j=null;function bt(e){j=e}function xt(){return _t(St,Ct,wt)}function St(e){return yt(j,`getContext`).get(e)}function Ct(e,t){return yt(j,`setContext`).set(e,t),t}function wt(e){return yt(j,`hasContext`).has(e)}function Tt(){return yt(j,`getAllContexts`)}function Et(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:q,l:ft&&!t?{s:null,u:null,$:[]}:null}}function Dt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)xr(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Ot(){return!ft||j!==null&&j.l===null}var kt=[];function At(){var e=kt;kt=[],te(e)}function M(e){if(kt.length===0&&!On){var t=kt;queueMicrotask(()=>{t===kt&&At()})}kt.push(e)}function jt(){for(;kt.length>0;)At()}function Mt(e){var t=q;if(t===null)return W.f|=ve,e;if(!(t.f&32768)&&!(t.f&4))throw e;Nt(e,t)}function Nt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var Pt=~(w|ae|C);function N(e,t){e.f=e.f&Pt|t}function Ft(e){e.f&512||e.deps===null?N(e,C):N(e,ae)}function It(e){if(e!==null)for(let t of e)t.f&2&&t.f&65536&&(t.f^=he,It(t.deps))}function Lt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),It(e.deps),N(e,C)}function Rt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),S;let r=Q(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var zt=[];function Bt(e,t){return{subscribe:Vt(e,t).subscribe}}function Vt(e,t=S){let n=null,r=new Set;function i(t){if(ut(e,t)&&(e=t,n)){let t=!zt.length;for(let t of r)t[1](),zt.push(t,e);if(t){for(let e=0;e<zt.length;e+=2)zt[e][0](zt[e+1]);zt.length=0}}}function a(t){i(t(e))}function o(o,s=S){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||S),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Ht(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 Bt(n,(e,n)=>{let o=!1,s=[],c=0,l=S,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:S},d=i.map((e,t)=>Rt(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){te(d),l(),o=!1}})}function Ut(e){let t;return Rt(e,e=>t=e)(),t}var Wt=!1,Gt=!1,Kt=Symbol(`unmounted`);function qt(e,t,n){let r=n[t]??={store:null,source:Yn(void 0),unsubscribe:S};if(r.store!==e&&!(Kt in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=S;else{var i=!0;r.unsubscribe=Rt(e,e=>{i?r.source.v=e:L(r.source,e)}),i=!1}}return e&&Kt in n?Ut(e):Z(r.source)}function Jt(e,t,n){let r=n[t];return r&&r.store!==e&&(r.unsubscribe(),r.unsubscribe=S),e}function Yt(e,t){return Zt(e,t),t}function Xt(){let e={};function t(){yr(()=>{for(var t in e)e[t].unsubscribe();m(e,Kt,{enumerable:!1,value:!0})})}return[e,t]}function Zt(e,t){Wt=!0;try{e.set(t)}finally{Wt=!1}}function Qt(){Gt=!0}function $t(e){var t=Gt;try{return Gt=!1,[e(),Gt]}finally{Gt=t}}function en(e,t){if(t){let t=document.body;e.autofocus=!0,M(()=>{document.activeElement===t&&e.focus()})}}function tn(e){E&&z(e)!==null&&fr(e)}var nn=!1;function rn(){nn||(nn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[De]?.()})},{capture:!0}))}function an(e){var t=W,n=q;K(null),Kr(null);try{return e()}finally{K(t),Kr(n)}}function on(e,t,n,r=n){e.addEventListener(t,()=>an(n));let i=e[De];e[De]=i?()=>{i(),r(!0)}:()=>r(!0),rn()}function sn(e){let t=0,n=qn(0),r;return()=>{vr()&&(Z(n),Dr(()=>(t===0&&(r=Q(()=>e(()=>Qn(n)))),t+=1,()=>{M(()=>{--t,t===0&&(r?.(),r=void 0,Qn(n))})})))}}var cn=ue|fe;function ln(e,t,n,r){new un(e,t,n,r)}var un=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=sn(()=>(this.#m=qn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Ar(()=>{if(E){let e=this.#t;A();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},cn),E&&(this.#e=O)}#g(){try{this.#a=H(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);M(r),t&&(this.#s=H(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{t?it():(t=!0,n&&Je(),this.#s!==null&&Lr(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()}))};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Nt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=H(()=>e(this.#e)),M(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#S(()=>H(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Lr(this.#o,()=>{this.#o=null}),this.#x(P))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=H(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Vr(this.#a,e);let t=this.#n.pending;this.#o=H(()=>t(this.#e))}else this.#x(P)}catch(e){this.error(e)}}#x(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}#S(e){var t=q,n=W,r=j;Kr(this.#i),K(this.#i),bt(this.#i.ctx);try{return Pn.ensure(),e()}catch(e){return Mt(e),null}finally{Kr(t),K(n),bt(r)}}#C(e,t){this.has_pending_snippet()?(this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Lr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))):this.parent&&this.parent.#C(e,t)}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,M(()=>{this.#d=!1,this.#m&&Xn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;P?.is_fork?(this.#a&&P.skip_effect(this.#a),this.#o&&P.skip_effect(this.#o),this.#s&&P.skip_effect(this.#s),P.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(U(this.#a),null),this.#o&&=(U(this.#o),null),this.#s&&=(U(this.#s),null),E&&(k(this.#t),ot(),k(st()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return H(()=>{var r=q;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Nt(e,this.#i.parent),null}}))};M(()=>{var t;try{t=this.transform_error(e)}catch(e){Nt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Nt(e,this.#i&&this.#i.parent)):n(t)})}};function dn(e,t,n,r){let i=Ot()?hn:yn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=q,c=fn(),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){Nt(e,s)}pn()}}var d=mn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>_n(e))).then(u).catch(e=>Nt(e,s)).finally(d)}l?l.then(()=>{c(),f(),pn()}):f()}function fn(){var e=q,t=W,n=j,r=P;return function(i=!0){Kr(e),K(t),bt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function pn(e=!0){Kr(null),K(null),bt(null),e&&P?.deactivate()}function mn(){var e=q,t=e.b,n=P,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 hn(e){var t=2|w;return q!==null&&(q.f|=fe),{ctx:j,deps:null,effects:null,equals:lt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:q,ac:null}}var gn=Symbol(`obsolete`);function _n(e,t,n){let r=q;r===null&&Ne();var i=void 0,a=qn(T),o=!W,s=new Set;return Er(()=>{var t=q,n=ne();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Oe&&n.reject(e)}).finally(pn)}catch(e){n.reject(e),pn()}var c=P;if(o){if(t.f&32768)var l=mn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(gn);else for(let e of s.values())e.reject(gn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==gn&&(c.activate(),t?(a.f|=ve,Xn(a,t)):(a.f&8388608&&(a.f^=ve),Xn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),yr(()=>{for(let e of s)e.reject(gn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function vn(e){let t=hn(e);return Jr(t),t}function yn(e){let t=hn(e);return t.equals=dt,t}function bn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function xn(e){var t,n=q,r=e.parent;if(!Wr&&r!==null&&e.v!==T&&r.f&24576)return et(),e.v;Kr(r);try{e.f&=~he,bn(e),t=ri(e)}finally{Kr(n)}return t}function Sn(e){var t=xn(e);!e.equals(t)&&(e.wv=ei(),(!P?.is_fork||e.deps===null)&&(P===null?e.v=t:(P.capture(e,t,!0),En?.capture(e,t,!0)),e.deps===null))?N(e,C):Wr||(F===null?Ft(e):(vr()||P?.is_fork)&&F.set(e,t))}function Cn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&an(()=>{t.ac.abort(Oe),t.ac=null}),t.fn!==null&&(t.teardown=S),ai(t,0),Nr(t))}function wn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&oi(t)}var Tn=null,P=null,En=null,F=null,Dn=null,On=!1,kn=!1,An=null,jn=null,Mn=0,Nn=1,Pn=class e{id=Nn++;#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(){Tn===null?Tn=this:(Tn.#n=this,this.#t=Tn),Tn=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)N(r,w),t(r);for(r of n.m)N(r,ae),t(r)}this.#p.add(e)}#g(){this.#e=!0,Mn++>1e3&&(this.#x(),In());for(let e of this.#u)this.#d.delete(e),N(e,w),this.schedule(e);for(let e of this.#d)N(e,ae),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=An=[],r=[],i=jn=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Hn(e),this.#h()||this.discard(),t}if(P=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(An=null,jn=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Vn(e,t);i.length>0&&P.#g();return}let o=this.#v();if(o)this.#b(r),this.#b(n),o.#y(this);else{this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),En=this,Rn(r),Rn(n),En=null,this.#s?.resolve();var s=P;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(I.clear(),s.#g())}}#_(e,t,n){e.f^=C;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^=C:i&4?t.push(r):ti(r)&&(i&16&&this.#d.add(r),oi(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}}}#v(){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}#y(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),N(i,w),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),P=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)Lt(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==T&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),F?.set(e,t)),this.is_fork||(e.v=t)}activate(){P=this}deactivate(){P=null,F=null}flush(){try{kn=!0,P=this,this.#g()}finally{Mn=0,Dn=null,An=null,jn=null,kn=!1,P=null,F=null,I.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(gn);this.#x(),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,M(()=>{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??=ne()).promise}static ensure(){if(P===null){let t=P=new e;!kn&&!On&&M(()=>{t.#e||t.flush()})}return P}apply(){F=null}schedule(e){if(Dn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768))e.b.defer_effect(e);else{for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(An!==null&&t===q&&(W===null||!(W.f&2))&&!Wt)return;if(n&96){if(!(n&1024))return;t.f^=C}}this.#c.push(t)}}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?Tn=e:t.#t=e,this.linked=!1}}};function Fn(e){var t=On;On=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(jt(),P===null)return n;P.flush()}}finally{On=t}}function In(){try{Re()}catch(e){Nt(e,Dn)}}var Ln=null;function Rn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ti(r)&&(Ln=new Set,oi(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Ir(r),Ln?.size>0)){I.clear();for(let e of Ln){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Ln.has(n)&&(Ln.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||oi(n)}}Ln.clear()}}Ln=null}}function zn(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?zn(n,t):e&131072&&(N(n,w),t.add(n))}}function Bn(e){P.schedule(e)}function Vn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,C);for(var n=e.first;n!==null;)Vn(n,t),n=n.next}}function Hn(e){N(e,C);for(var t=e.first;t!==null;)Hn(t),t=t.next}function Un(e){Ae(`fork`),P!==null&&Be();var t=Pn.ensure();t.is_fork=!0,F=new Map;var n=!1,r=t.settled();return Fn(e),{commit:async()=>{if(n)await r;else{t.linked||ze(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=ei();Fn(()=>{var e=new Set;for(var n of t.current.keys())zn(n,e);Gn(e),Zn()}),t.flush(),await r}},discard:()=>{for(var e of t.current.keys())e.wv=ei();!n&&t.linked&&t.discard()}}}var Wn=new Set,I=new Map;function Gn(e){Wn=e}var Kn=!1;function qn(e,t){return{f:0,v:e,reactions:null,equals:lt,rv:0,wv:0}}function Jn(e,t){let n=qn(e,t);return Jr(n),n}function Yn(e,t=!1,n=!0){let r=qn(e);return t||(r.equals=dt),ft&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function L(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&Ot()&&W.f&4325394&&(qr===null||!qr.has(e))&&qe(),Xn(e,n?er(t):t,jn)}function Xn(e,t,n=null){if(!e.equals(t)){Wr?I.set(e,t):I.has(e)||I.set(e,e.v);var r=Pn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&xn(t),F===null&&Ft(t)}e.wv=ei(),$n(e,w,n),Ot()&&q!==null&&q.f&1024&&!(q.f&96)&&(X===null?Yr([e]):X.push(e)),!r.is_fork&&Wn.size>0&&!Kn&&Zn()}return t}function Zn(){Kn=!1;for(let e of Wn){e.f&1024&&N(e,ae);let t;try{t=ti(e)}catch{t=!0}t&&oi(e)}Wn.clear()}function Qn(e){L(e,e.v+1)}function $n(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ot(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(i||s!==q){var l=(c&w)===0;if(l&&N(s,t),c&131072)Wn.add(s);else if(c&2){var u=s;F?.delete(u),c&65536||(c&512&&(q===null||!(q.f&2097152))&&(s.f|=he),$n(u,ae,n))}else if(l){var d=s;c&16&&Ln!==null&&Ln.add(d),n===null?Bn(d):n.push(d)}}}}function er(e){if(typeof e!=`object`||!e||ye in e)return e;let t=y(e);if(t!==_&&t!==v)return e;var n=new Map,r=u(e),i=Jn(0),a=null,o=Qr,s=e=>{if(Qr===o)return e();var t=W,n=Qr;K(null),$r(o);var r=e();return K(t),$r(n),r};return r&&n.set(`length`,Jn(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ge();var i=n.get(t);return i===void 0?s(()=>{var e=Jn(r.value,a);return n.set(t,e),e}):L(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>Jn(T,a));n.set(t,e),Qn(i)}}else L(r,T),Qn(i);return!0},get(t,r,i){if(r===ye)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||h(t,r)?.writable)&&(o=s(()=>Jn(er(c?t[r]:T),a)),n.set(r,o)),o!==void 0){var l=Z(o);return l===T?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==T)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===ye)return!0;var r=n.get(t),i=r!==void 0&&r.v!==T||Reflect.has(e,t);return(r!==void 0||q!==null&&(!i||h(e,t)?.writable))&&(r===void 0&&(r=s(()=>Jn(i?er(e[t]):T,a)),n.set(t,r)),Z(r)===T)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>Jn(T,a)),n.set(d+``,f)):L(f,T)}if(l===void 0)(!u||h(e,t)?.writable)&&(l=s(()=>Jn(void 0,a)),L(l,er(o)),n.set(t,l));else{u=l.v!==T;var p=s(()=>er(o));L(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&L(g,_+1)}Qn(i)}return!0},ownKeys(e){Z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==T});for(var[r,a]of n)a.v!==T&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ke()}})}function tr(e){try{if(typeof e==`object`&&e&&ye in e)return e[ye]}catch{}return e}function nr(e,t){return Object.is(tr(e),tr(t))}var rr,ir,ar,or,sr;function cr(){if(rr===void 0){rr=window,ir=document,ar=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;or=h(t,`firstChild`).get,sr=h(t,`nextSibling`).get,b(e)&&(e[we]=void 0,e[Ce]=null,e[Te]=void 0,e.__e=void 0),b(n)&&(n[Ee]=void 0)}}function R(e=``){return document.createTextNode(e)}function z(e){return or.call(e)}function B(e){return sr.call(e)}function lr(e,t){if(!E)return z(e);var n=z(O);if(n===null)n=O.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),k(r),r}return t&&hr(n),k(n),n}function ur(e,t=!1){if(!E){var n=z(e);return n instanceof Comment&&n.data===``?B(n):n}if(t){if(O?.nodeType!==3){var r=R();return O?.before(r),k(r),r}hr(O)}return O}function dr(e,t=1,n=!1){let r=E?O:e;for(var i;t--;)i=r,r=B(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),k(a),a}hr(r)}return k(r),r}function fr(e){e.textContent=``}function pr(){return!1}function mr(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 hr(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 gr(e){q===null&&(W===null&&Le(e),Ie()),Wr&&Fe(e)}function _r(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=q;n!==null&&n.f&8192&&(e|=oe);var r={ctx:j,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};P?.register_created_effect(r);var i=r;if(e&4)An===null?Pn.ensure().schedule(r):An.push(r);else if(t!==null){try{oi(r)}catch(e){throw U(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|=ue))}if(i!==null&&(i.parent=n,n!==null&&_r(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function vr(){return W!==null&&!G}function yr(e){let t=V(8,null);return N(t,C),t.teardown=e,t}function br(e){gr(`$effect`);var t=q.f;if(!W&&t&32&&j!==null&&!j.i){var n=j;(n.e??=[]).push(e)}else return xr(e)}function xr(e){return V(4|pe,e)}function Sr(e){return gr(`$effect.pre`),V(8|pe,e)}function Cr(e){Pn.ensure();let t=V(64|fe,e);return()=>{U(t)}}function wr(e){Pn.ensure();let t=V(64|fe,e);return(e={})=>new Promise(n=>{e.outro?Lr(t,()=>{U(t),n(void 0)}):(U(t),n(void 0))})}function Tr(e){return V(4,e)}function Er(e){return V(_e|fe,e)}function Dr(e,t=0){return V(8|t,e)}function Or(e,t=[],n=[],r=[]){dn(r,t,n,t=>{V(8,()=>{e(...t.map(Z))})})}function kr(e,t=[],n=[],r=[]){dn(r,t,n,t=>{V(4,()=>e(...t.map(Z)))})}function Ar(e,t=0){return V(16|t,e)}function jr(e,t=0){return V(ie|t,e)}function H(e){return V(32|fe,e)}function Mr(e){var t=e.teardown;if(t!==null){let e=Wr,n=W;Gr(!0),K(null);try{t.call(null)}finally{Gr(e),K(n)}}}function Nr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&an(()=>{e.abort(Oe)});var r=n.next;n.f&64?n.parent=null:U(n,t),n=r}}function Pr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||U(t),t=n}}function U(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Fr(e.nodes.start,e.nodes.end),n=!0),e.f|=le,Nr(e,t&&!n),ai(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Mr(e),e.f^=le,e.f|=se;var i=e.parent;i!==null&&i.first!==null&&Ir(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Fr(e,t){for(;e!==null;){var n=e===t?null:B(e);e.remove(),e=n}}function Ir(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 Lr(e,t,n=!0){var r=[];Rr(e,r,!0);var i=()=>{n&&U(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Rr(e,t,n){if(!(e.f&8192)){e.f^=oe;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);Rr(i,t,o?n:!1)}i=a}}}function zr(e){Br(e,!0)}function Br(e,t){if(e.f&8192){e.f^=oe,e.f&1024||(N(e,w),Pn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Br(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 Vr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:B(n);t.append(n),n=i}}var Hr=null,Ur=!1,Wr=!1;function Gr(e){Wr=e}var W=null,G=!1;function K(e){W=e}var q=null;function Kr(e){q=e}var qr=null;function Jr(e){W!==null&&(qr??=new Set).add(e)}var J=null,Y=0,X=null;function Yr(e){X=e}var Xr=1,Zr=0,Qr=Zr;function $r(e){Qr=e}function ei(){return++Xr}function ti(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~he),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ti(a)&&Sn(a),a.wv>e.wv)return!0}t&512&&F===null&&N(e,C)}return!1}function ni(e,t,n=!0){var r=e.reactions;if(r!==null&&!(qr!==null&&qr.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?ni(a,t,!1):t===a&&(n?N(a,w):a.f&1024&&N(a,ae),Bn(a))}}function ri(e){var t=J,n=Y,r=X,i=W,a=qr,o=j,s=G,c=Qr,l=e.f;J=null,Y=0,X=null,W=l&96?null:e,qr=null,bt(e.ctx),G=!1,Qr=++Zr,e.ac!==null&&(an(()=>{e.ac.abort(Oe)}),e.ac=null);try{e.f|=ge;var u=e.fn,d=u();e.f|=ce;var f=e.deps,p=P?.is_fork;if(J!==null){var m;if(p||ai(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(vr()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Y<f.length&&(ai(e,Y),f.length=Y);if(Ot()&&X!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)ni(X[m],e);if(i!==null&&i!==e){if(Zr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Zr;if(t!==null)for(let e of t)e.rv=Zr;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=ve),d}catch(e){return Mt(e)}finally{e.f^=ge,J=t,Y=n,X=r,W=i,qr=a,bt(o),G=s,Qr=c}}function ii(e,t){let n=t.reactions;if(n!==null){var r=d.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(J===null||!f.call(J,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~he),a.v!==T&&Ft(a),a.ac!==null&&an(()=>{a.ac.abort(Oe),a.ac=null,N(a,w)}),Cn(a),ai(a,0)}}function ai(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ii(e,n[r])}function oi(e){var t=e.f;if(!(t&16384)){N(e,C);var n=q,r=Ur;q=e,Ur=!(t&96);try{t&16777232?Pr(e):Nr(e),Mr(e);var i=ri(e);e.teardown=typeof i==`function`?i:null,e.wv=Xr}finally{Ur=r,q=n}}}async function si(){await Promise.resolve(),Fn()}function ci(){return Pn.ensure().settled()}function Z(e){var t=!!(e.f&2);if(Hr?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(qr===null||!qr.has(e))){var n=W.deps;if(W.f&2097152)e.rv<Zr&&(e.rv=Zr,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{W.deps??=[],f.call(W.deps,e)||W.deps.push(e);var r=e.reactions;r===null?e.reactions=[W]:f.call(r,W)||r.push(W)}}if(Wr&&I.has(e))return I.get(e);if(t){var i=e;if(Wr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||ui(i))&&(a=xn(i)),I.set(i,a),a}var o=!(i.f&512)&&!G&&W!==null&&(Ur||!!(W.f&512)),s=(i.f&ce)===0;ti(i)&&(o&&(i.f|=512),Sn(i)),o&&!s&&(wn(i),li(i))}if(F?.has(e))return F.get(e);if(e.f&8388608)throw e.v;return e.v}function li(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(wn(t),li(t))}function ui(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(I.has(t)||t.f&2&&ui(t))return!0;return!1}function Q(e){var t=G;try{return G=!0,e()}finally{G=t}}function di(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ye in e)fi(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ye in n&&fi(n)}}}function fi(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{fi(e[n],t)}catch{}let n=y(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=g(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function pi(){return Symbol($e)}function mi(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var hi=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function gi(e){return hi.includes(e)}var _i=`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(`.`),vi={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 yi(e){return e=e.toLowerCase(),vi[e]??e}[..._i];var bi=[`touchstart`,`touchmove`];function xi(e){return bi.includes(e)}var Si=[`textarea`,`script`,`style`,`title`];function Ci(e){return Si.includes(e)}var wi=Symbol(`events`),Ti=new Set,Ei=new Set;function Di(e,t,n,r={}){function i(e){if(r.capture||Pi.call(t,e),!e.cancelBubble)return an(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?M(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Oi(e,t,n,r={}){var i=Di(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ki(e,t,n,r,i){var a={capture:r,passive:i},o=Di(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&yr(()=>{t.removeEventListener(e,o,a)})}function Ai(e,t,n){(t[wi]??={})[e]=n}function ji(e){for(var t=0;t<e.length;t++)Ti.add(e[t]);for(var n of Ei)n(e)}var Mi=null,Ni=!1;function Pi(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Mi=e,Ni||(Ni=!0,setTimeout(()=>{Ni=!1,Mi=null}));var o=0,s=Mi===e&&e[wi];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[wi]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){m(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=W,d=q;K(null),Kr(null);try{for(var f,p=[];a!==null&&a!==t;){try{var h=a[wi]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[wi]=t,delete e.currentTarget,K(u),Kr(d)}}}var Fi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Ii(e){return Fi?.createHTML(e)??e}function Li(e){var t=mr(`template`);return t.innerHTML=Ii(e.replaceAll(`<!>`,`<!---->`)),t.content}function $(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ri(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(E)return $(O,null),O;i===void 0&&(i=Li(a?e:`<!>`+e),n||(i=z(i)));var t=r||ar?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=z(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function zi(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=z(Li(a));if(i)for(o=document.createDocumentFragment();z(e);)o.appendChild(z(e));else o=z(e)}var t=o.cloneNode(!0);if(i){var n=z(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function Bi(e,t){return zi(e,t,`svg`)}function Vi(e=``){if(!E){var t=R(e+``);return $(t,t),t}var n=O;return n.nodeType===3?hr(n):(n.before(n=R()),k(n)),$(n,n),n}function Hi(){if(E)return $(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=R();return e.append(t,n),$(t,n),e}function Ui(e,t){if(E){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),A()}else e!==null&&e.before(t)}function Wi(){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 Gi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Ee]??=e.nodeValue)&&(e[Ee]=n,e.nodeValue=`${n}`)}function Ki(e,t){return Yi(e,t)}function qi(e,t){cr(),t.intro=t.intro??!1;let n=t.target,r=E,i=O;try{for(var a=z(n);a&&(a.nodeType!==8||a.data!==`[`);)a=B(a);if(!a)throw Ye;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!==Ye&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&He(),cr(),fr(n),D(!1),Ki(e,t)}finally{D(r),k(i)}}var Ji=new Map;function Yi(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){cr();var c=void 0,l=wr(()=>{var o=n??t.appendChild(R());ln(o,{pending:()=>{}},t=>{Et({});var n=j;if(a&&(n.c=a),i&&(r.$$events=i),E&&$(t,null),c=e(t,r)||{},E&&(q.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw nt(),Ye;Dt()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=xi(r);for(let e of[t,document]){var a=Ji.get(e);a===void 0&&(a=new Map,Ji.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Pi,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(p(Ti)),Ei.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=Ji.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Pi),r.delete(e),r.size===0&&Ji.delete(n)):r.set(e,i)}Ei.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return Xi.set(c,l),c}var Xi=new WeakMap;function Zi(e,t){let n=Xi.get(e);return n?(Xi.delete(e),n(t)):Promise.resolve()}var Qi=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)zr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(zr(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&&(U(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();Vr(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else U(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Lr(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)||(U(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=pr();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:H(()=>t(a)),fragment:i})}else this.#t.set(e,H(()=>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 $i(e,t,n=!1){var r;E&&(r=O,A());var i=new Qi(e),a=n?ue:0;function o(e,t){if(E){var n=ct(r);if(e!==parseInt(n.substring(1))){var a=st();k(a),i.anchor=a,D(!1),i.ensure(e,t),D(!0);return}}i.ensure(e,t)}Ar(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var ea=Symbol(`NaN`);function ta(e,t,n){E&&A();var r=new Qi(e),i=!Ot();Ar(()=>{var e=t();e!==e&&(e=ea),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function na(e,t){return t}function ra(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Lr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;ia(e,p(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;fr(u),u.append(l),e.items.clear()}ia(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function ia(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|=me,Vr(a,document.createDocumentFragment())):U(t[i],n)}}var aa;function oa(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=E?k(z(c)):c.appendChild(R())}E&&A();var l=null,d=yn(()=>{var e=n();return u(e)?e:e==null?[]:p(e)}),f,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=l,ca(v,f,o,t,r),l!==null&&(f.length===0?l.f&33554432?(l.f^=me,ua(l,null,o)):zr(l):Lr(l,()=>{l=null})))}function _(e){v.pending.delete(e)}var v={effect:Ar(()=>{f=Z(d);var e=f.length;let c=!1;E&&ct(o)===`[!`!=(e===0)&&(o=st(),k(o),D(!1),c=!0);for(var u=new Set,p=P,v=pr(),y=0;y<e;y+=1){E&&O.nodeType===8&&O.data===`]`&&(o=O,c=!0,D(!1));var b=f[y],x=r(b,y),S=h?null:s.get(x);S?(S.v&&Xn(S.v,b),S.i&&Xn(S.i,y),v&&p.unskip_effect(S.e)):(S=la(s,h?o:aa??=R(),b,x,y,i,t,n),h||(S.e.f|=me),s.set(x,S)),u.add(x)}if(e===0&&a&&!l&&(h?l=H(()=>a(o)):(l=H(()=>a(aa??=R())),l.f|=me)),e>u.size&&Pe(``,``,``),E&&e>0&&k(st()),!h){if(m.set(p,u),v){for(let[e,t]of s)u.has(e)||p.skip_effect(t.e);p.oncommit(g),p.ondiscard(_)}else g(p)}c&&D(!0),Z(d)}),flags:t,items:s,pending:m,outrogroups:null,fallback:l};h=!1,E&&(o=O)}function sa(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function ca(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=sa(e.effect.first),l,u=null,d,f=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(d??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(zr(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432){if(_.f^=me,_===c)ua(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),da(e,u,_),da(e,_,y),ua(_,y,n),u=_,f=[],m=[],c=sa(u.next);continue}}if(_!==c){if(l!==void 0&&l.has(_)){if(f.length<m.length){var b=m[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)ua(f[x],b,n);for(x=0;x<m.length;x+=1)l.delete(m[x]);da(e,S.prev,ee.next),da(e,u,S),da(e,ee,b),c=b,u=ee,--v,f=[],m=[]}else l.delete(_),ua(_,c,n),da(e,_.prev,_.next),da(e,_,u===null?e.effect.first:u.next),da(e,u,_),u=_;continue}for(f=[],m=[];c!==null&&c!==_;)(l??=new Set).add(c),m.push(c),c=sa(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=sa(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(ia(e,p(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var te=[];if(l!==void 0)for(_ of l)_.f&8192||te.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&te.push(c),c=sa(c.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}ra(e,te,re)}}a&&M(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function la(e,t,n,r,i,a,o,s){var c=o&1?o&16?qn(n):Yn(n,!1,!1):null,l=o&2?qn(i):null;return{v:c,i:l,e:H(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ua(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=B(r);if(a.before(r),r===i)return;r=o}}function da(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function fa(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;E&&(o=k(z(c)))}Or(()=>{var e=q;if(s===(s=t()??``))E&&A();else if(n&&!E)e.nodes=null,c.innerHTML=s,s!==``&&$(z(c),c.lastChild);else if(e.nodes!==null&&(Fr(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=B(l);if(l===null)throw nt(),Ye;$(O,u),o=k(l)}else{var d=mr(r?`svg`:i?`math`:`template`,r?Ze:i?Qe:void 0);d.innerHTML=s;var f=r||i?d:d.content;if($(z(f),f.lastChild),r||i)for(;z(f);)o.before(z(f));else o.before(f)}}})}function pa(e,t,...n){var r=new Qi(e);Ar(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ue)}function ma(e){return(t,...n)=>{var r=e(...n),i;E?(i=O,A()):(i=z(Li(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&yr(a)}}function ha(e,t,n){var r;E&&(r=O,A());var i=new Qi(e);Ar(()=>{var e=t()??null;if(E&&ct(r)===`[`!=(e!==null)){var a=st();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)))},ue)}function ga(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 Qi(c,!1);Ar(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Ze:void 0;if(e===null)l.ensure(null,null);else return l.ensure(e,t=>{if(e){if(s=E?s:mr(e,a),$(s,s),r){var n=null;E&&Ci(e)&&s.append(n=document.createComment(``));var i=E?z(s):s.appendChild(R());E&&(i===null?D(!1):k(i)),r(s,i),n?.remove()}q.nodes.end=s,t.before(s)}E&&k(t)}),()=>{}},ue),yr(()=>{}),o&&(D(!0),k(c))}function _a(e,t){let n=null,r=E;var i;if(E){n=O;for(var a=z(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=B(a);if(a===null)D(!1);else{var o=B(a);a.remove(),k(o)}}E||(i=document.head.appendChild(R()));try{Ar(()=>{var e=H(()=>t(i));e.f|=de})}finally{r&&(D(!0),k(n))}}function va(e,t,n){Tr(()=>{var r=Q(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};Dr(()=>{var e=n();di(e),i&&ut(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function ya(e,t){var n=void 0,r;jr(()=>{n!==(n=t())&&(r&&=(U(r),null),n&&(r=H(()=>{Tr(()=>n(e))})))})}function ba(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=ba(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function xa(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ba(e))&&(r&&(r+=` `),r+=t);return r}function Sa(e){return typeof e==`object`?xa(e):e??``}var Ca=[...`
|
|
3
|
-
\r\f\xA0\v`];function wa(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||Ca.includes(r[o-1]))&&(s===r.length||Ca.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ta(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 Ea(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Da(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(Ea)),i&&c.push(...Object.keys(i).map(Ea));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=Ea(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+=Ta(r)),i&&(n+=Ta(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Oa(e,t,n,r,i,a){var o=e[we];if(E||o!==n||o===void 0){var s=wa(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[we]=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 ka(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 Aa(e,t,n,r){var i=e[Te];if(E||i!==t){var a=Da(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Te]=t}else r&&(Array.isArray(r)?(ka(e,n?.[0],r[0]),ka(e,n?.[1],r[1],`important`)):ka(e,n,r));return r}function ja(e,t,n=!1){if(e.multiple){if(t==null)return;if(!u(t))return rt();for(var r of e.options)r.selected=t.includes(Na(r))}else{for(r of e.options)if(nr(Na(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}}function Ma(e){var t=new MutationObserver(()=>{`__value`in e&&ja(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),yr(()=>{t.disconnect()})}function Na(e){return`__value`in e?e.__value:e.value}var Pa=Symbol(`class`),Fa=Symbol(`style`),Ia=Symbol(`is custom element`),La=Symbol(`is html`),Ra=ke?`link`:`LINK`,za=ke?`input`:`INPUT`,Ba=ke?`option`:`OPTION`,Va=ke?`select`:`SELECT`;function Ha(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Wa(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Wa(e,`checked`,null),e.checked=r}}};e[De]=n,M(n),rn()}}function Ua(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Wa(e,t,n,r){var i=qa(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ra)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[xe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ya(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ga(e,t,n,r,i=!1,a=!1){if(E&&i&&e.nodeName===za){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Ha(o)}var s=qa(e),c=s[Ia],l=!s[La];let u=E&&c;u&&D(!1);var d=t||{},f=e.nodeName===Ba;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=Sa(n.class):(r||n[Pa])&&(n.class=null),n[Fa]&&(n.style??=null);var m=Ya(e);if(e.nodeName===za&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,Wa(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null)e.value=e.__value=``,d[i]=o;else if(i===`class`)Oa(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Pa],n[Pa]),d[i]=o,d[Pa]=n[Pa];else if(i===`style`)Aa(e,o,t?.[Fa],n[Fa]),d[i]=o,d[Fa]=n[Fa];else{var g=d[i];if(o!==g||o===void 0&&e.hasAttribute(i)){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=gi(r);if(mi(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)Ai(r,e,o),ji([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=Di(r,e,a,t)}}else if(i===`style`)Wa(e,i,o);else if(i===`autofocus`)en(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)Ua(e,o);else{var y=i;l||(y=yi(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b){if(s[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||m.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=T)):typeof o!=`function`&&Wa(e,y,o,a)}}}}}return u&&D(!0),d}function Ka(e,t,n=[],r=[],i=[],a,o=!1,s=!1){dn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Va,l=!1;if(jr(()=>{var u=t(...n.map(Z)),d=Ga(e,r,u,a,o,s);l&&c&&`value`in u&&ja(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||U(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&U(i[t]),i[t]=H(()=>ya(e,()=>f))),d[t]=f}r=d}),c){var u=e;Tr(()=>{ja(u,r.value,!0),Ma(u)})}l=!0})}function qa(e){return e[Ce]??={[Ia]:e.nodeName.includes(`-`),[La]:e.namespaceURI===Xe}}var Ja=new Map;function Ya(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ja.get(t);if(n)return n;Ja.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=g(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=y(i)}return n}function Xa(e,t,n=t){var r=new WeakSet;on(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Za(e)?Qa(a):a,n(a),P!==null&&r.add(P),await si(),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||Q(t)==null&&e.value)&&(n(Za(e)?Qa(e.value):e.value),P!==null&&r.add(P)),Dr(()=>{var n=t();if(e===document.activeElement){var i=P;if(r.has(i))return}Za(e)&&n===Qa(e.value)||(e.type!==`date`||n||e.value)&&n!==e.value&&(e.value=n??``)})}function Za(e){var t=e.type;return t===`number`||t===`range`}function Qa(e){return e===``?null:+e}function $a(e,t,n=t){on(e,`change`,()=>{n(e.files)}),E&&e.files&&n(e.files),Dr(()=>{e.files=t()})}function eo(e,t){return e===t||e?.[ye]===t}function to(e={},t,n,r){var i=j.r,a=q;return Tr(()=>{var o,s;return Dr(()=>{o=s,s=r?.()||[],Q(()=>{eo(n(...s),e)||(t(e,...s),o&&eo(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&&eo(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function no(e=!1){let t=j,n=t.l.u;if(!n)return;let r=()=>di(t.s);if(e){let e=0,n={},i=hn(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>Z(i)}n.b.length&&Sr(()=>{ro(t,r),te(n.b)}),br(()=>{let e=Q(()=>n.m.map(ee));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&br(()=>{ro(t,r),te(n.a)})}function ro(e,t){if(e.l.s)for(let t of e.l.s)Z(t);t()}var io={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 ao(e,t,n){return new Proxy({props:e,exclude:t},io)}var oo={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(x(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];x(i)&&(i=i());let a=h(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(x(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=h(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===ye||t===be)return!1;for(let n of e.props)if(x(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(x(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 so(...e){return new Proxy({props:e},oo)}function co(e,t,n,r){var i=!ft||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=hn(r),Z(l)):(c&&(c=!1,s=o?Q(r):r),s);let d;if(a){var f=ye in e||be in e;d=h(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=$t(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&We(t),d(p)));var g=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(d){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||m)&&d(t?g():e),e):g()})}var v=!1,y=(n&1?hn:yn)(()=>(v=!1,g()));a&&Z(y);var b=q;return(function(e,t){if(arguments.length>0){let n=t?Z(y):i&&a?er(e):e;return L(y,n),v=!0,s!==void 0&&(s=n),e}return Wr&&v||b.f&16384?y.v:Z(y)})}function lo(e){return class extends uo{constructor(t){super({component:e,...t})}}}var uo=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Yn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===be||(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?qi:Ki)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Fn(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&m(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Zi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function fo(e,t){if(Ae(`hydratable`),E){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);tt(e)}return t()}var po=s({afterUpdate:()=>bo,beforeUpdate:()=>yo,createContext:()=>xt,createEventDispatcher:()=>vo,createRawSnippet:()=>ma,flushSync:()=>Fn,fork:()=>Un,getAbortSignal:()=>mo,getAllContexts:()=>Tt,getContext:()=>St,hasContext:()=>wt,hydratable:()=>fo,hydrate:()=>qi,mount:()=>Ki,onDestroy:()=>go,onMount:()=>ho,setContext:()=>Ct,settled:()=>ci,tick:()=>si,unmount:()=>Zi,untrack:()=>Q});function mo(){return W===null&&Ve(),(W.ac??=new AbortController).signal}function ho(e){j===null&&je(`onMount`),ft&&j.l!==null?xo(j).m.push(e):br(()=>{let t=Q(e);if(typeof t==`function`)return t})}function go(e){j===null&&je(`onDestroy`),ho(()=>()=>Q(e))}function _o(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function vo(){let e=j;return e===null&&je(`createEventDispatcher`),(t,n,r)=>{let i=e.s.$$events?.[t];if(i){let a=u(i)?i.slice():[i],o=_o(t,n,r);for(let t of a)t.call(e.x,o);return!o.defaultPrevented}return!0}}function yo(e){j===null&&je(`beforeUpdate`),j.l===null&&Ue(`beforeUpdate`),xo(j).b.push(e)}function bo(e){j===null&&je(`afterUpdate`),j.l===null&&Ue(`afterUpdate`),xo(j).a.push(e)}function xo(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{lr as $,Ui as A,S as At,pi as B,oa as C,Et as Ct,Ki as D,pt as Dt,$i as E,mt as Et,Vi as F,Qr as G,ci as H,ji as I,Or as J,kr as K,Ai as L,Ri as M,o as Mt,Bi as N,s as Nt,Gi as O,ot as Ot,Wi as P,l as Pt,rr as Q,ki as R,fa as S,Dt as St,ta as T,gt as Tt,si as U,Z as V,Q as W,Sr as X,br as Y,ir as Z,va as _,Bt as _t,ao as a,qn as at,ha as b,St as bt,to as c,sn as ct,Ka as d,Xt as dt,ur as et,Wa as f,qt as ft,xa as g,Ut as gt,Sa as h,Ht as ht,co as i,L as it,Hi as j,re as jt,Zi as k,at as kt,$a as l,tn as lt,Oa as m,Jt as mt,ho as n,er as nt,so as o,Jn as ot,Aa as p,Yt as pt,Cr as q,lo as r,Qn as rt,no as s,vn as st,po as t,dr as tt,Xa as u,Qt as ut,_a as v,Vt as vt,na as w,Ct as wt,pa as x,wt as xt,ga as y,Tt as yt,Oi as z};
|