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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/package.json +7 -7
  2. package/ui/dist/_app/immutable/chunks/BKLS6E7N.js +1 -0
  3. package/ui/dist/_app/immutable/chunks/{Cm2dEurq.js → CBWKRJPw.js} +1 -1
  4. package/ui/dist/_app/immutable/chunks/CReGULOR.js +2 -0
  5. package/ui/dist/_app/immutable/chunks/{CgoKto2g.js → CjDdIwEP.js} +1 -1
  6. package/ui/dist/_app/immutable/chunks/CvpzImRs.js +6 -0
  7. package/ui/dist/_app/immutable/chunks/DB6FDyN4.js +1 -0
  8. package/ui/dist/_app/immutable/chunks/Djzgvszh.js +6 -0
  9. package/ui/dist/_app/immutable/chunks/Dz3pFDN9.js +3 -0
  10. package/ui/dist/_app/immutable/chunks/QWn5Fu7g.js +1 -0
  11. package/ui/dist/_app/immutable/chunks/S1izXW26.js +1 -0
  12. package/ui/dist/_app/immutable/chunks/gDwfFIiF.js +1 -0
  13. package/ui/dist/_app/immutable/entry/app.Sb72KUFn.js +2 -0
  14. package/ui/dist/_app/immutable/entry/start.q7yYuVLR.js +1 -0
  15. package/ui/dist/_app/immutable/nodes/{0.DGOddNoa.js → 0.v-sbbV7A.js} +1 -1
  16. package/ui/dist/_app/immutable/nodes/{1.C9K2sqAy.js → 1.azM-QPvN.js} +1 -1
  17. package/ui/dist/_app/immutable/nodes/2.BllAis6e.js +8 -0
  18. package/ui/dist/_app/immutable/nodes/3.BIIuP24J.js +1 -0
  19. package/ui/dist/_app/immutable/nodes/4.x4jc9hZa.js +1 -0
  20. package/ui/dist/_app/immutable/nodes/5.BA7zeznN.js +1 -0
  21. package/ui/dist/_app/version.json +1 -1
  22. package/ui/dist/index.html +13 -13
  23. package/ui/dist/_app/immutable/chunks/BvcBr1q5.js +0 -2
  24. package/ui/dist/_app/immutable/chunks/C00lLaWa.js +0 -1
  25. package/ui/dist/_app/immutable/chunks/CBBq-xPv.js +0 -6
  26. package/ui/dist/_app/immutable/chunks/CEUj4ZAs.js +0 -1
  27. package/ui/dist/_app/immutable/chunks/COupBNP3.js +0 -6
  28. package/ui/dist/_app/immutable/chunks/DMYw6P0r.js +0 -1
  29. package/ui/dist/_app/immutable/chunks/DSlJ2Pi2.js +0 -1
  30. package/ui/dist/_app/immutable/chunks/iNotLC3U.js +0 -1
  31. package/ui/dist/_app/immutable/chunks/sTot5bBi.js +0 -3
  32. package/ui/dist/_app/immutable/entry/app.BeXCBo1L.js +0 -2
  33. package/ui/dist/_app/immutable/entry/start.Bh-IzX3A.js +0 -1
  34. package/ui/dist/_app/immutable/nodes/2.C06l43Nf.js +0 -8
  35. package/ui/dist/_app/immutable/nodes/3.ComoQ55A.js +0 -1
  36. package/ui/dist/_app/immutable/nodes/4.BxhlPTkU.js +0 -1
  37. package/ui/dist/_app/immutable/nodes/5.CeA_CNxg.js +0 -1
@@ -0,0 +1,8 @@
1
+ import{$ as e,A as t,At as n,C as r,Ct as i,E as a,F as o,M as s,Mt as c,N as l,O as u,Ot as d,P as f,R as p,S as m,St as h,V as g,X as _,Y as v,a as y,at as b,b as x,ct as S,d as C,dt as w,et as T,f as E,ft as D,h as O,ht as ee,i as k,j as A,kt as j,m as M,n as N,nt as P,o as F,pt as I,rt as L,s as R,st as z,tt as B,ut as te,w as ne,x as V,z as re}from"../chunks/Dz3pFDN9.js";import{n as ie,s as ae}from"../chunks/gDwfFIiF.js";import"../chunks/QWn5Fu7g.js";import"../chunks/xihTtKlq.js";import{A as oe,D as se,F as H,M as ce,O as le,T as ue,_ as de,a as fe,b as pe,d as me,f as he,g as ge,h as _e,j as ve,m as ye,n as be,o as xe,p as Se,t as Ce,u as we,v as Te,w as Ee,y as De}from"../chunks/CvpzImRs.js";import{a as Oe,i as ke,n as Ae,o as je,r as Me}from"../chunks/DB6FDyN4.js";import{t as Ne}from"../chunks/CjDdIwEP.js";import"../chunks/BKLS6E7N.js";import{$ as Pe,A as Fe,B as Ie,D as Le,F as Re,H as ze,M as Be,N as Ve,O as U,P as He,Q as Ue,R as We,T as W,U as Ge,V as Ke,W as qe,X as Je,Z as Ye,a as G,at as Xe,ct as Ze,dt as Qe,f as $e,ft as et,i as tt,it as nt,k as K,lt as rt,ot as it,p as at,q,r as ot,st as J,tt as Y,ut as st,z as ct}from"../chunks/Djzgvszh.js";import"../chunks/S1izXW26.js";import{t as lt}from"../chunks/CBWKRJPw.js";function ut(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 dt=new Set([`$$slots`,`$$events`,`$$legacy`]);function ft(e,t){let n=y(t,dt),r=[[`path`,{d:`M3 5h.01`}],[`path`,{d:`M3 12h.01`}],[`path`,{d:`M3 19h.01`}],[`path`,{d:`M8 5h13`}],[`path`,{d:`M8 12h13`}],[`path`,{d:`M8 19h13`}]];H(e,F({name:`list`},()=>n,{get iconNode(){return r}}))}var pt=new Set([`$$slots`,`$$events`,`$$legacy`]);function mt(e,t){let n=y(t,pt),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`}]];H(e,F({name:`log-out`},()=>n,{get iconNode(){return r}}))}var ht=new Set([`$$slots`,`$$events`,`$$legacy`]);function gt(e,t){let n=y(t,ht),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];H(e,F({name:`search`},()=>n,{get iconNode(){return r}}))}var _t=new Set([`$$slots`,`$$events`,`$$legacy`]);function vt(e,t){let n=y(t,_t),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`}]];H(e,F({name:`waypoints`},()=>n,{get iconNode(){return r}}))}function X(e){let t=z(L(e));return{[nt]:!0,[st]:!0,get current(){return g(t)},set current(e){b(t,e,!0)}}}X.from=it,X.with=J,X.flatten=Xe,X.readonly=et,X.isBox=Ze,X.isWritableBox=rt;function yt(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var bt=[Be,Ie,We],xt=[Re,ct,`End`];[...bt,...xt];function St(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Ve:He,vertical:Be}[t]}function Ct(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?He:Ve,vertical:Re}[t]}function wt(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:St(e,t),prevKey:Ct(e,t)}}var Tt=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}=wt(yt(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[We]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?He:Be,t=s===`ArrowUp`?Ve:Re;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&&ke(t)&&t.focus()}},Et=18,Dt=40,Ot=`${Dt}px`,kt=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function At({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=z(!1),o=z(!1),s=z(!1);function c(){let e=n.current;return e!==`none`&&e===`increase-width`&&g(a)&&g(o)}function l(){let r=e.current,o=t.current;if(!r||!o||g(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-Et,f=u;(i.querySelectorAll(kt).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(b(a,!0),b(s,!0))}return _(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=je(t).innerWidth-t.getBoundingClientRect().right;b(o,e>=Dt)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),_(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(l,0),o=setTimeout(l,2e3),c=setTimeout(l,5e3),u=setTimeout(()=>{b(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(u)}}),{get hasPwmBadge(){return g(a)},get willPushPwmBadge(){return c()},PWM_BADGE_SPACE_WIDTH:Ot}}var jt=`^\\d+$`,Mt=qe({component:`pin-input`,parts:[`root`,`cell`]}),Nt=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],Pt=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=z(!1);#t=Qe(!1);#n=z(null);#r=z(null);#i=new Je(()=>this.opts.value.current??``);#a=S(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=z(L({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=q(this.opts.ref),this.inputAttachment=q(this.opts.inputRef),this.domContext=new Oe(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=At({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),N(()=>{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),g(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=re(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()}}),Ye([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{It(()=>{let e=this.opts.inputRef.current;if(!e)return;e.dispatchEvent(new Event(`input`));let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection??`none`;t!==null&&n!==null&&(b(this.#n,t,!0),b(this.#r,n,!0),g(this.#o).prev=[t,n,r])},this.domContext)}),_(()=>{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;Nt.includes(t)||e.ctrlKey||e.metaKey||t&&g(this.#a)&&!g(this.#a).test(t)&&e.preventDefault()};#l=S(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=S(()=>({id:this.opts.id.current,[Mt.root]:``,style:g(this.#l),...this.attachment}));get rootProps(){return g(this.#u)}set rootProps(e){b(this.#u,e)}#d=S(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return g(this.#d)}set inputWrapperProps(e){b(this.#d,e)}#f=S(()=>({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;`;Lt(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),Lt(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),Lt(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),Lt(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; } }`),Lt(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){b(this.#n,null),b(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=g(this.#o).prev,c=-1,l=-1,u;if(o.length!==0&&n!==null&&r!==null){let e=n===r,t=n===o.length&&o.length<a;if(e&&!t){let e=n;if(e===0)c=0,l=1,u=`forward`;else if(e===a)c=e-1,l=e,u=`backward`;else if(a>1&&o.length>1){let t=0;if(s[0]!==null&&s[1]!==null){u=e<s[1]?`backward`:`forward`;let n=s[0]===s[1]&&s[0]<a;u===`backward`&&!n&&(t=-1)}c=t+e,l=t+e+1}}c!==-1&&l!==-1&&c!==l&&this.opts.inputRef.current?.setSelectionRange(c,l,u)}let d=c===-1?n:c,f=l===-1?r:l,p=u??i;b(this.#n,d,!0),b(this.#r,f,!0),g(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);t.length>0&&g(this.#a)&&!g(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),b(this.#n,e,!0),b(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)},r=e=>e.length>0&&g(this.#a)&&!g(this.#a).test(e);if(!this.opts.pasteTransformer?.current&&(!this.#c.isIOS||!e.clipboardData||!t)){r(n(e.clipboardData?.getData(`text/plain`)))&&e.preventDefault();return}let i=e.clipboardData?.getData(`text/plain`)??``,a=this.opts.pasteTransformer?.current?this.opts.pasteTransformer.current(i):i;e.preventDefault();let o=n(a);if(r(o))return;t.value=o,this.opts.value.current=o;let s=Math.min(o.length,this.opts.maxLength.current-1),c=o.length;t.setSelectionRange(s,c),b(this.#n,s,!0),b(this.#r,c,!0)};onmouseover=e=>{b(this.#e,!0)};onmouseleave=e=>{b(this.#e,!1)};onblur=e=>{g(this.#o).willSyntheticBlur?g(this.#o).willSyntheticBlur=!1:this.#t.current=!1};#h=S(()=>({id:this.opts.inputId.current,style:g(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":g(this.#n),"data-pin-input-input-mse":g(this.#r),inputmode:this.opts.inputmode.current,pattern:g(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:Ge(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 g(this.#h)}set inputProps(e){b(this.#h,e)}#g=S(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&g(this.#n)!==null&&g(this.#r)!==null&&(g(this.#n)===g(this.#r)&&t===g(this.#n)||t>=g(this.#n)&&t<g(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}}));#_=S(()=>({cells:g(this.#g),isFocused:this.#t.current,isHovering:g(this.#e)}));get snippetProps(){return g(this.#_)}set snippetProps(e){b(this.#_,e)}},Ft=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=q(this.opts.ref)}#e=S(()=>({id:this.opts.id.current,[Mt.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return g(this.#e)}set props(e){b(this.#e,e)}};function It(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function Lt(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var Rt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),zt=s(`<div><!> <div><input/></div></div>`);function Bt(e,r){let a=f();i(r,!0);let o=k(r,`id`,19,()=>K(a)),s=k(r,`inputId`,19,()=>`${K(a)}-input`),c=k(r,`ref`,15,null),l=k(r,`inputRef`,15,null),u=k(r,`maxlength`,3,6),d=k(r,`textalign`,3,`left`),p=k(r,`inputmode`,3,`numeric`),m=k(r,`onComplete`,3,Fe),_=k(r,`pushPasswordManagerStrategy`,3,`increase-width`),v=k(r,`class`,3,``),b=k(r,`autocomplete`,3,`one-time-code`),x=k(r,`disabled`,3,!1),w=k(r,`value`,15,``),E=k(r,`onValueChange`,3,Fe),D=y(r,Rt),O=Pt.create({id:J(()=>o()),ref:J(()=>c(),e=>c(e)),inputRef:J(()=>l(),e=>l(e)),inputId:J(()=>s()),autocomplete:J(()=>b()),maxLength:J(()=>u()),textAlign:J(()=>d()),disabled:J(()=>x()),inputmode:J(()=>p()),pattern:J(()=>r.pattern),onComplete:J(()=>m()),value:J(()=>w(),e=>{w(e),E()(e)}),pushPasswordManagerStrategy:J(()=>_()),pasteTransformer:J(()=>r.pasteTransformer)}),ee=S(()=>Y(D,O.inputProps)),A=S(()=>Y(O.rootProps,{class:v()})),M=S(()=>Y(O.inputWrapperProps,{}));var N=zt();C(N,()=>({...g(A)}));var F=T(N);V(F,()=>r.children??n,()=>O.snippetProps);var I=P(F,2);C(I,()=>({...g(M)}));var L=T(I);C(L,()=>({...g(ee)}),void 0,void 0,void 0,void 0,!0),j(I),j(N),t(e,N),h()}var Vt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),Ht=s(`<div><!></div>`);function Ut(e,r){let o=f();i(r,!0);let s=k(r,`id`,19,()=>K(o)),c=k(r,`ref`,15,null),l=y(r,Vt),u=Ft.create({id:J(()=>s()),ref:J(()=>c(),e=>c(e)),cell:J(()=>r.cell)}),d=S(()=>Y(l,u.props));var p=A(),m=B(p),_=e=>{var n=A(),i=B(n);V(i,()=>r.child,()=>({props:g(d)})),t(e,n)},v=e=>{var i=Ht();C(i,()=>({...g(d)}));var a=T(i);V(a,()=>r.children??n),j(i),t(e,i)};a(m,e=>{r.child?e(_):e(v,-1)}),t(e,p),h()}var Wt=qe({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),Gt=new Ue(`Tabs.Root`),Kt=class e{static create(t){return Gt.set(new e(t))}opts;attachment;rovingFocusGroup;#e=z(L([]));get triggerIds(){return g(this.#e)}set triggerIds(e){b(this.#e,e,!0)}valueToTriggerId=new Pe;valueToContentId=new Pe;constructor(e){this.opts=e,this.attachment=q(e.ref),this.rovingFocusGroup=new Tt({candidateAttr:Wt.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=S(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[Wt.root]:``,...this.attachment}));get props(){return g(this.#t)}set props(e){b(this.#t,e)}},qt=class e{static create(t){return new e(t,Gt.get())}opts;root;attachment;#e=S(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=q(e.ref)}#t=S(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[Wt.list]:``,"data-disabled":Ke(g(this.#e)),...this.attachment}));get props(){return g(this.#t)}set props(e){b(this.#t,e)}},Jt=class e{static create(t){return new e(t,Gt.get())}opts;root;attachment;#e=z(0);#t=S(()=>this.root.opts.value.current===this.opts.value.current);#n=S(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=S(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=q(e.ref),Ye([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),_(()=>{this.root.triggerIds.length,g(this.#t)||!this.root.opts.value.current?b(this.#e,0):b(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`||g(this.#n)||this.#i()}onclick(e){g(this.#n)||this.#i()}onkeydown(e){g(this.#n)||(e.key===` `||e.key===`Enter`?(e.preventDefault(),this.#i()):this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e))}#a=S(()=>({id:this.opts.id.current,role:`tab`,"data-state":Xt(g(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Ke(g(this.#n)),"aria-selected":ze(g(this.#t)),"aria-controls":g(this.#r),[Wt.trigger]:``,disabled:Ge(g(this.#n)),tabindex:g(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return g(this.#a)}set props(e){b(this.#a,e)}},Yt=class e{static create(t){return new e(t,Gt.get())}opts;root;attachment;#e=S(()=>this.root.opts.value.current===this.opts.value.current);#t=S(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=q(e.ref),Ye([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=S(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:Ge(!g(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":Xt(g(this.#e)),"aria-labelledby":g(this.#t),"data-orientation":this.root.opts.orientation.current,[Wt.content]:``,...this.attachment}));get props(){return g(this.#n)}set props(e){b(this.#n,e)}};function Xt(e){return e?`active`:`inactive`}var Zt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),Qt=s(`<div><!></div>`);function $t(e,r){let o=f();i(r,!0);let s=k(r,`id`,19,()=>K(o)),c=k(r,`ref`,15,null),l=k(r,`value`,15,``),u=k(r,`onValueChange`,3,Fe),d=k(r,`orientation`,3,`horizontal`),p=k(r,`loop`,3,!0),m=k(r,`activationMode`,3,`automatic`),_=k(r,`disabled`,3,!1),v=y(r,Zt),b=Kt.create({id:J(()=>s()),value:J(()=>l(),e=>{l(e),u()(e)}),orientation:J(()=>d()),loop:J(()=>p()),activationMode:J(()=>m()),disabled:J(()=>_()),ref:J(()=>c(),e=>c(e))}),x=S(()=>Y(v,b.props));var w=A(),E=B(w),D=e=>{var n=A(),i=B(n);V(i,()=>r.child,()=>({props:g(x)})),t(e,n)},O=e=>{var i=Qt();C(i,()=>({...g(x)}));var a=T(i);V(a,()=>r.children??n),j(i),t(e,i)};a(E,e=>{r.child?e(D):e(O,-1)}),t(e,w),h()}var en=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),tn=s(`<div><!></div>`);function nn(e,r){let o=f();i(r,!0);let s=k(r,`id`,19,()=>K(o)),c=k(r,`ref`,15,null),l=y(r,en),u=Yt.create({value:J(()=>r.value),id:J(()=>s()),ref:J(()=>c(),e=>c(e))}),d=S(()=>Y(l,u.props));var p=A(),m=B(p),_=e=>{var n=A(),i=B(n);V(i,()=>r.child,()=>({props:g(d)})),t(e,n)},v=e=>{var i=tn();C(i,()=>({...g(d)}));var a=T(i);V(a,()=>r.children??n),j(i),t(e,i)};a(m,e=>{r.child?e(_):e(v,-1)}),t(e,p),h()}var rn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),an=s(`<div><!></div>`);function on(e,r){let o=f();i(r,!0);let s=k(r,`id`,19,()=>K(o)),c=k(r,`ref`,15,null),l=y(r,rn),u=qt.create({id:J(()=>s()),ref:J(()=>c(),e=>c(e))}),d=S(()=>Y(l,u.props));var p=A(),m=B(p),_=e=>{var n=A(),i=B(n);V(i,()=>r.child,()=>({props:g(d)})),t(e,n)},v=e=>{var i=an();C(i,()=>({...g(d)}));var a=T(i);V(a,()=>r.children??n),j(i),t(e,i)};a(m,e=>{r.child?e(_):e(v,-1)}),t(e,p),h()}var sn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),cn=s(`<button><!></button>`);function ln(e,r){let o=f();i(r,!0);let s=k(r,`disabled`,3,!1),c=k(r,`id`,19,()=>K(o)),l=k(r,`type`,3,`button`),u=k(r,`ref`,15,null),d=y(r,sn),p=Jt.create({id:J(()=>c()),disabled:J(()=>s()??!1),value:J(()=>r.value),ref:J(()=>u(),e=>u(e))}),m=S(()=>Y(d,p.props,{type:l()}));var _=A(),v=B(_),b=e=>{var n=A(),i=B(n);V(i,()=>r.child,()=>({props:g(m)})),t(e,n)},x=e=>{var i=cn();C(i,()=>({...g(m)}));var a=T(i);V(a,()=>r.children??n),j(i),t(e,i)};a(v,e=>{r.child?e(b):e(x,-1)}),t(e,_),h()}var un={"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(be,e=>un[e]),dn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),fn=s(`<div><!></div>`);function pn(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=y(r,dn);var s=fn();C(s,e=>({"data-slot":`card-content`,class:e,...o}),[()=>U(`px-(--card-spacing)`,r.class)]);var c=T(s);V(c,()=>r.children??n),j(s),R(s,e=>a(e),()=>a()),t(e,s),h()}var mn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),hn=s(`<p><!></p>`);function gn(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=y(r,mn);var s=hn();C(s,e=>({"data-slot":`card-description`,class:e,...o}),[()=>U(`text-sm text-muted-foreground`,r.class)]);var c=T(s);V(c,()=>r.children??n),j(s),R(s,e=>a(e),()=>a()),t(e,s),h()}var _n=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),vn=s(`<div><!></div>`);function yn(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=y(r,_n);var s=vn();C(s,e=>({"data-slot":`card-footer`,class:e,...o}),[()=>U(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,r.class)]);var c=T(s);V(c,()=>r.children??n),j(s),R(s,e=>a(e),()=>a()),t(e,s),h()}var bn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),xn=s(`<div><!></div>`);function Sn(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=y(r,bn);var s=xn();C(s,e=>({"data-slot":`card-header`,class:e,...o}),[()=>U(`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]`,r.class)]);var c=T(s);V(c,()=>r.children??n),j(s),R(s,e=>a(e),()=>a()),t(e,s),h()}var Cn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),wn=s(`<div><!></div>`);function Tn(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=y(r,Cn);var s=wn();C(s,e=>({"data-slot":`card-title`,class:e,...o}),[()=>U(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,r.class)]);var c=T(s);V(c,()=>r.children??n),j(s),R(s,e=>a(e),()=>a()),t(e,s),h()}var En=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),Dn=s(`<div><!></div>`);function On(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=k(r,`size`,3,`default`),s=y(r,En);var c=Dn();C(c,e=>({"data-slot":`card`,"data-size":o(),class:e,...s}),[()=>U(`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`,r.class)]);var l=T(c);V(l,()=>r.children??n),j(c),R(c,e=>a(e),()=>a()),t(e,c),h()}var kn=s(`<div><!></div>`);function An(e,n){i(n,!0);let r=z(!1);async function a(){b(r,!0),await new Promise(e=>setTimeout(e,500)),b(r,!1)}var o={shake:a},s=kn(),c=T(s);return V(c,()=>n.children),j(s),v(()=>M(s,1,O([n.class,g(r)&&`shake`]),`svelte-alh7mr`)),t(e,s),h(o)}var jn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Mn=s(`<div><!></div>`);function Nn(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=y(r,jn);var s=Mn();C(s,e=>({"data-slot":`input-otp-group`,class:e,...o}),[()=>U(`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`,r.class)]);var c=T(s);V(c,()=>r.children??n),j(s),R(s,e=>a(e),()=>a()),t(e,s),h()}var Pn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Fn=s(`<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>`),In=s(` <!>`,1);function Ln(e,n){i(n,!0);let r=k(n,`ref`,15,null),o=y(n,Pn);var s=A(),c=B(s);{let e=S(()=>U(`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));x(c,()=>Ut,(i,s)=>{s(i,F({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return g(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},children:(e,r)=>{d();var i=In(),o=B(i),s=P(o),c=e=>{var n=Fn();t(e,n)};a(s,e=>{n.cell.hasFakeCaret&&e(c)}),v(()=>u(o,`${n.cell.char??``} `)),t(e,i)},$$slots:{default:!0}}))})}t(e,s),h()}var Rn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function zn(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=y(n,Rn);var s=A(),c=B(s);{let e=S(()=>U(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));x(c,()=>Bt,(t,n)=>{n(t,F({"data-slot":`input-otp`,spellcheck:!1,get class(){return g(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),h()}var Bn=s(`<div class="w-full flex items-center"><!></div>`);function Vn(e,n){i(n,!0);let o=()=>D(Z,`$dict`,s),[s,c]=w(),l=k(n,`ref`,15,null),u=k(n,`mode`,11,`password`),d=k(n,`password`,15,``),f=k(n,`otp`,15,``);var p=Bn(),m=T(p),_=e=>{Me(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return o().auth.password},class:`placeholder:text-sm`,get value(){return d()},set value(e){d(e)}})},v=e=>{var n=A(),i=B(n);{let e=(e,n)=>{let i=()=>(n?.()).cells;var a=A(),o=B(a);x(o,()=>Nn,(e,n)=>{n(e,{children:(e,n)=>{var a=A(),o=B(a);r(o,17,()=>i().slice(0,6),ne,(e,n)=>{var r=A(),i=B(r);x(i,()=>Ln,(e,t)=>{t(e,{get cell(){return g(n)},class:`size-[40px] bg-background`})}),t(e,r)}),t(e,a)},$$slots:{default:!0}})}),t(e,a)};x(i,()=>zn,(t,n)=>{n(t,{maxlength:6,get pattern(){return jt},required:!0,get value(){return f()},set value(e){f(e)},children:e,$$slots:{default:!0}})})}t(e,n)};a(m,e=>{u()===`password`?e(_):e(v,-1)}),j(p),R(p,e=>l(e),()=>l()),t(e,p),h(),c()}var Hn=s(`<!> <span class="sr-only"> </span>`,1),Un=s(`<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 Wn(e,n){i(n,!0);let r=()=>D(Z,`$dict`,s),[s,c]=w(),l=z(!1),d=z(``),f=z(``),_=z(``),y=z(null),x=z(`password`),C=z(void 0);async function E(){g(f).length===0?g(x)===`password`?await k():await M():await O()}async function O(){b(l,!0);let e=n.account===void 0?await ee():await ge(n.account.id,{username:g(d),password:g(f)});b(l,!1),e instanceof Error&&await N()}async function ee(){let e=await de(g(d),g(f));return e instanceof Error||ue(e)?.status===201&&n.oncreate?.(e),e}async function k(){b(l,!0);let e=n.account===void 0?await ye(g(d)):await Se(n.account.id,g(d));b(l,!1),!(e instanceof Error)&&(b(x,`otp`),requestAnimationFrame(()=>F()))}async function M(){if(g(d).length===0){console.error(`username is required`);return}if(g(_).length!==6){await N();return}b(l,!0);let e=await _e(g(d),g(_));if(b(l,!1),e instanceof Error)b(_,``),await N();else return ue(e)?.status===201&&n.oncreate?.(e),e}async function N(){await g(C)?.shake(),F()}function F(){xe&&g(y)?.querySelector(`input`)?.focus()}var I=Un(),L=S(()=>ut(E)),te=T(I),ne=T(te);{let e=S(()=>g(x)===`otp`||void 0);Me(ne,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return g(e)},get autofocus(){return xe},get placeholder(){return r().auth.email},get value(){return g(d)},set value(e){b(d,e,!0)}})}var V=P(ne,2),re=T(V),ie=T(re);R(An(ie,{class:`w-full`,children:(e,t)=>{Vn(e,{get mode(){return g(x)},get ref(){return g(y)},set ref(e){b(y,e,!0)},get password(){return g(f)},set password(e){b(f,e,!0)},get otp(){return g(_)},set otp(e){b(_,e,!0)}})},$$slots:{default:!0}}),e=>b(C,e,!0),()=>g(C));var ae=P(ie,2);W(ae,{size:`icon-lg`,type:`submit`,children:(e,n)=>{var i=Hn(),o=B(i),s=e=>{G(e,{})},c=e=>{ot(e,{})};a(o,e=>{g(l)?e(s):e(c,-1)});var d=P(o,2),f=T(d,!0);j(d),v(()=>u(f,r().auth.login)),t(e,i)},$$slots:{default:!0}}),j(re);var oe=P(re,2),se=T(oe),H=e=>{var n=A(),i=B(n);m(i,()=>r().auth.passwordBlank),t(e,n)},ce=e=>{var n=o();v(()=>u(n,r().auth.otpInstructions)),t(e,n)};a(se,e=>{g(x)===`password`?e(H):e(ce,-1)}),j(oe),j(V),j(te),j(I),p(`submit`,I,function(...e){g(L)?.apply(this,e)}),t(e,I),h(),c()}var Gn=s(`<h2> </h2>`),Kn=s(`<!> <!>`,1);function qn(e,n){i(n,!0);let r=()=>D(Z,`$dict`,a),[a,s]=w();var c=A(),l=B(c);{let e=S(()=>U(`pt-4 gap-4 bg-background/75`,n.class));x(l,()=>On,(i,a)=>{a(i,{get class(){return g(e)},children:(e,i)=>{var a=Kn(),s=B(a);x(s,()=>Sn,(e,n)=>{n(e,{class:`gap-0`,children:(e,n)=>{var i=Kn(),a=B(i);x(a,()=>Tn,(e,n)=>{n(e,{children:(e,n)=>{var i=Gn(),a=T(i,!0);j(i),v(()=>u(a,r().auth.passwordTitle)),t(e,i)},$$slots:{default:!0}})});var s=P(a,2);x(s,()=>gn,(e,n)=>{n(e,{children:(e,n)=>{d();var i=o();v(()=>u(i,r().auth.passwordDescription)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})});var c=P(s,2);x(c,()=>pn,(e,t)=>{t(e,{children:(e,t)=>{Wn(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),t(e,a)},$$slots:{default:!0}})})}t(e,c),h(),s()}function Jn(e){Wn(e,{})}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Xn(e,t){let n=y(t,Yn),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`}]];H(e,F({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var Zn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Qn(e,t){let n=y(t,Zn),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`}]];H(e,F({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),er=s(`<div><!></div>`);function tr(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=y(r,$n);var s=er();C(s,e=>({"data-slot":`alert-description`,class:e,...o}),[()=>U(`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`,r.class)]);var c=T(s);V(c,()=>r.children??n),j(s),R(s,e=>a(e),()=>a()),t(e,s),h()}var nr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),rr=s(`<div><!></div>`);function ir(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=y(r,nr);var s=rr();C(s,e=>({"data-slot":`alert-title`,class:e,...o}),[()=>U(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,r.class)]);var c=T(s);V(c,()=>r.children??n),j(s),R(s,e=>a(e),()=>a()),t(e,s),h()}var ar=Le({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`}}),or=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),sr=s(`<div><!></div>`);function cr(e,r){i(r,!0);let a=k(r,`ref`,15,null),o=k(r,`variant`,3,`default`),s=y(r,or);var c=sr();C(c,e=>({"data-slot":`alert`,role:`alert`,class:e,...s}),[()=>U(ar({variant:o()}),r.class)]);var l=T(c);V(l,()=>r.children??n),j(c),R(c,e=>a(e),()=>a()),t(e,c),h()}var lr=new Set([`$$slots`,`$$events`,`$$legacy`]);function ur(e,t){let n=y(t,lr),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`}]];H(e,F({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var dr=s(`<!> `,1),fr=s(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function pr(e,n){i(n,!0);let r=()=>D(Z,`$dict`,o),[o,s]=w(),c=z(!1);async function l(){b(c,!0),await we(),b(c,!1)}var d=fr(),f=T(d),p=T(f,!0);j(f);var m=P(f,2);W(m,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:l,children:(e,n)=>{var i=dr(),o=B(i),s=e=>{G(e,{})},l=e=>{ur(e,{})};a(o,e=>{g(c)?e(s):e(l,-1)});var d=P(o);v(()=>u(d,` ${r().auth.signin??``}`)),t(e,i)},$$slots:{default:!0}}),j(d),v(()=>u(p,r().auth.alreadyHaveAccount)),t(e,d),h(),s()}var mr=s(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function hr(e,n){i(n,!0);let r=()=>D(Z,`$dict`,o),[o,s]=w(),c=S(()=>n.account?.name??``),l=z(!1);async function u(){let e=g(c).trim();if(e.length===0)return;b(l,!0);let t=await me(e,n.account?.id);b(l,!1),!(t instanceof Error)&&n.oncreate?.(t)}var d=mr(),f=S(()=>ut(u)),m=T(d),_=T(m),y=T(_);Me(y,{id:`name`,type:`text`,get placeholder(){return r().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return xe},get value(){return g(c)},set value(e){b(c,e)}});var x=P(y,2);W(x,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(e,n)=>{var r=A(),i=B(r),o=e=>{G(e,{})},s=e=>{ot(e,{})};a(i,e=>{g(l)?e(o):e(s,-1)}),t(e,r)},$$slots:{default:!0}}),j(_),j(m),j(d),v(()=>m.disabled=n.disabled),p(`submit`,d,function(...e){g(f)?.apply(this,e)}),t(e,d),h(),s()}var gr=s(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),_r=s(`<h2> </h2>`),vr=s(`<!> <!>`,1),yr=s(`<!> <!> <!>`,1),br=s(`<p> </p> <!>`,1),xr=s(`<div class="space-y-4"><!> <!></div>`);function Sr(e,n){i(n,!0);let r=()=>D(Z,`$dict`,s),[s,c]=w(),l=e=>{var n=gr(),i=T(n),a=P(i),o=T(a,!0);j(a),j(n),v(()=>{u(i,`${r().auth.passkeysDescription??``} `),E(a,`href`,f),u(o,r().auth.learnMore)}),t(e,n)},f=fe?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var p=xr(),m=T(p);{let e=S(()=>U(`gap-4 bg-background/75`,he&&`pt-4`,n.class));x(m,()=>On,(i,s)=>{s(i,{get class(){return g(e)},children:(e,i)=>{var s=vr(),c=B(s),f=e=>{var i=vr(),a=B(i);x(a,()=>Sn,(e,n)=>{n(e,{class:`gap-0`,children:(e,n)=>{var i=A(),a=B(i);x(a,()=>Tn,(e,n)=>{n(e,{children:(e,n)=>{var i=_r(),a=T(i,!0);j(i),v(()=>u(a,r().auth.signupTitle)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})});var o=P(a,2);x(o,()=>pn,(e,t)=>{t(e,{children:(e,t)=>{hr(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),t(e,i)};a(c,e=>{he&&e(f)});var p=P(c,2);x(p,()=>yn,(e,n)=>{n(e,{children:(e,n)=>{var i=A(),s=B(i),c=e=>{var n=A(),i=B(n);x(i,()=>cr,(e,n)=>{n(e,{children:(e,n)=>{var i=yr(),a=B(i);Xn(a,{color:`green`});var s=P(a,2);x(s,()=>ir,(e,n)=>{n(e,{children:(e,n)=>{d();var i=o();v(()=>u(i,r().auth.betterSecurity)),t(e,i)},$$slots:{default:!0}})});var c=P(s,2);x(c,()=>tr,(e,t)=>{t(e,{children:(e,t)=>{l(e)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,n)},f=e=>{var n=A(),i=B(n);x(i,()=>cr,(e,n)=>{n(e,{children:(e,n)=>{var i=yr(),a=B(i);Qn(a,{color:`red`,class:`animate-pulse`});var s=P(a,2);x(s,()=>ir,(e,n)=>{n(e,{children:(e,n)=>{d();var i=o();v(()=>u(i,r().auth.passkeysNotSupported)),t(e,i)},$$slots:{default:!0}})});var c=P(s,2);x(c,()=>tr,(e,n)=>{n(e,{children:(e,n)=>{var i=br(),a=B(i),o=T(a,!0);j(a);var s=P(a,2);l(s),v(()=>u(o,r().auth.passkeysWarning)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,n)};a(s,e=>{he?e(c):e(f,-1)}),t(e,i)},$$slots:{default:!0}})}),t(e,s)},$$slots:{default:!0}})})}var _=P(m,2),y=e=>{pr(e,{})};a(_,e=>{he&&!n.account&&e(y)}),j(p),t(e,p),h(),c()}var Cr=s(`<!> <!> `,1);function wr(e,n){i(n,!0);let r=()=>D(Z,`$dict`,a),[a,o]=w();async function s(e){let t=e.currentTarget;t.disabled=!0,await we(n.account.id),t.disabled=!1}W(e,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:s,children:(e,n)=>{var i=Cr(),a=B(i);ur(a,{class:`size-5 x-icon`});var o=P(a,2);G(o,{class:`x-spinner`});var s=P(o);v(()=>u(s,` ${r().auth.refresh.continue??``}`)),t(e,i)},$$slots:{default:!0}}),h(),o()}var Tr=l(`<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 Er(e,n){var r=Tr();v(()=>M(r,0,O(n.class))),t(e,r)}var Dr=l(`<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 Or(e,n){i(n,!0);var r=Dr(),a=T(r);j(r),v(e=>{M(r,0,e),E(a,`fill`,n.fill)},[()=>O(U(`size-5 -mt-[3px]`,n.class))]),t(e,r),h()}var kr={google:Er,apple:Or},Ar=s(`<!> <!> <!>`,1);function jr(e,r){i(r,!0);let a=S(()=>kr[r.idp]);async function o(e){let t=e.currentTarget;t.disabled=!0,await De(r.idp,r.account?.id),t.disabled=!1}{let i=S(()=>r.children?`default`:`icon`),s=S(()=>U(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,r.class));W(e,{variant:`outline`,get size(){return g(i)},onclick:o,get class(){return g(s)},children:(e,i)=>{var o=Ar(),s=B(o);x(s,()=>g(a),(e,t)=>{t(e,{class:`x-icon`})});var c=P(s,2);G(c,{class:`x-spinner`});var l=P(c,2);V(l,()=>r.children??n),t(e,o)},$$slots:{default:!0}})}h()}var Mr=s(`<div class="flex gap-2"><!> <!></div>`);function Nr(e,n){i(n,!0);var r=Mr(),o=T(r),s=e=>{jr(e,{idp:`google`,get account(){return n.account}})};a(o,e=>{pe.google.client&&e(s)});var c=P(o,2),l=e=>{jr(e,{idp:`apple`,get account(){return n.account}})};a(c,e=>{pe.apple.client&&e(l)}),j(r),t(e,r),h()}function Pr(e,n){i(n,!0);let r=()=>D(Z,`$dict`,a),[a,s]=w(),c={google:`Google`,apple:`Apple`};jr(e,{get idp(){return n.idp},class:`w-full`,children:(e,i)=>{d();var a=o();v(e=>u(a,e),[()=>r().auth.continueWith(c[n.idp])]),t(e,a)},$$slots:{default:!0}}),h(),s()}var Fr=s(`<!> <!>`,1);function Ir(e,n){var r=A(),i=B(r);x(i,()=>On,(e,r)=>{r(e,{class:`w-full`,children:(e,r)=>{var i=Fr(),a=B(i);x(a,()=>Sn,(e,r)=>{r(e,{children:(e,r)=>{var i=Fr(),a=B(i);x(a,()=>Tn,(e,r)=>{r(e,{children:(e,r)=>{d();var i=o();v(()=>u(i,n.title)),t(e,i)},$$slots:{default:!0}})});var s=P(a,2);x(s,()=>gn,(e,r)=>{r(e,{children:(e,r)=>{d();var i=o();v(()=>u(i,n.description)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})});var s=P(a,2);x(s,()=>pn,(e,r)=>{r(e,{class:`flex flex-col`,children:(e,r)=>{var i=A(),a=B(i);V(a,()=>n.action),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,r)}var Lr=s(`<!> `,1),Rr=s(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function zr(e,n){i(n,!0);let r=()=>D(Z,`$dict`,o),[o,s]=w();N(()=>{n.method===null&&Te()});var c=Rr(),l=T(c);{let e=e=>{var r=A(),i=B(r),o=e=>{wr(e,{get account(){return n.account}})},s=e=>{Jn(e,{})},c=e=>{Pr(e,{idp:`apple`})},l=e=>{Pr(e,{idp:`google`})};a(i,e=>{n.method===`passkey`?e(o):n.method===`password`?e(s,1):n.method===`apple`?e(c,2):n.method===`google`&&e(l,3)}),t(e,r)},i=S(()=>r().auth.refresh.description(n.account.name));Ir(l,{get title(){return r().auth.refresh.title},get description(){return g(i)},action:e,$$slots:{action:!0}})}var d=P(l,2);W(d,{variant:`outline`,get onclick(){return Te},children:(e,n)=>{var i=Lr(),a=B(i);mt(a,{});var o=P(a);v(()=>u(o,` ${r().auth.signout??``}`)),t(e,i)},$$slots:{default:!0}}),j(c),t(e,c),h(),s()}var Br=new Set([`$$slots`,`$$events`,`$$legacy`]);function Vr(e,t){let n=y(t,Br),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`}]];H(e,F({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var Hr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Ur(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=y(n,Hr);var o=A(),s=B(o);{let e=S(()=>U(`text-sm flex-1 outline-none`,n.class));x(s,()=>nn,(t,n)=>{n(t,F({"data-slot":`tabs-content`,get class(){return g(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),h()}var Wr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Gr(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=y(n,Wr);var o=A(),s=B(o);{let e=S(()=>U(`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));x(s,()=>ln,(t,n)=>{n(t,F({"data-slot":`tabs-trigger`,get class(){return g(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),h()}var Kr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function qr(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=y(n,Kr);var s=A(),c=B(s);{let e=S(()=>U(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));x(c,()=>$t,(t,n)=>{n(t,F({"data-slot":`tabs`,get class(){return g(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),h()}var Jr=Le({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`}}),Yr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function Xr(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`variant`,3,`default`),o=y(n,Yr);var s=A(),c=B(s);{let e=S(()=>U(Jr({variant:a()}),n.class));x(c,()=>on,(t,n)=>{n(t,F({"data-slot":`tabs-list`,get"data-variant"(){return a()},get class(){return g(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,s),h()}var Zr=s(`<!> `,1),Qr=s(`<!> <!>`,1),$r=s(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function ei(e,n){i(n,!0);let r=()=>D(Z,`$dict`,a),[a,o]=w(),s=z(null);function c(e){requestAnimationFrame(()=>{g(s)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let l=z(`passkey`);N(()=>{b(l,he?`passkey`:`password`,!0)});var d=A(),f=B(d);{let e=S(()=>U(`w-full`,n.class));x(f,()=>qr,(i,a)=>{a(i,{get class(){return g(e)},onValueChange:c,get value(){return g(l)},set value(e){b(l,e,!0)},get ref(){return g(s)},set ref(e){b(s,e,!0)},children:(e,i)=>{var a=$r(),o=B(a),s=T(o);x(s,()=>Xr,(e,n)=>{n(e,{children:(e,n)=>{var i=Qr(),a=B(i);x(a,()=>Gr,(e,n)=>{n(e,{value:`passkey`,"data-marker":`passkey-tab`,children:(e,n)=>{var i=Zr(),a=B(i);ur(a,{color:`var(--muted-foreground)`});var o=P(a);v(()=>u(o,` ${r().auth.passkey??``}`)),t(e,i)},$$slots:{default:!0}})});var o=P(a,2);x(o,()=>Gr,(e,n)=>{n(e,{value:`password`,id:`iam-email-tab`,children:(e,n)=>{var i=Zr(),a=B(i);Vr(a,{color:`var(--muted-foreground)`});var o=P(a);v(()=>u(o,` ${r().auth.email??``}`)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),Nr(P(s,2),{get account(){return n.account}}),j(o);var c=P(o,2);x(c,()=>Ur,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Sr(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var l=P(c,2);x(l,()=>Ur,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{qn(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),t(e,a)},$$slots:{default:!0}})})}t(e,d),h(),o()}var ti=s(`<div class="flex items-center justify-center h-screen"><!></div>`),ni=s(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function ri(e,n){i(n,!0);let r=()=>D(se,`$iam`,u),o=()=>D(ve,`$method`,u),s=()=>D(le,`$authenticated`,u),c=()=>D(oe,`$greeting`,u),l=()=>D(ce,`$processing`,u),[u,d]=w(),f=e=>{var i=A(),s=B(i),c=e=>{zr(e,{get account(){return r()},get method(){return o()}})},l=e=>{{let t=S(()=>U(`scale-0 transition-transform`,`scale-100`));ei(e,{get class(){return g(t)},get account(){return n.account},get oncreate(){return n.oncreate}})}};a(s,e=>{r()?e(c):e(l,-1)}),t(e,i)};var p=A(),m=B(p),_=e=>{var r=A(),i=B(r);V(i,()=>n.children),t(e,r)},v=e=>{var n=ti(),r=T(n);G(r,{}),j(n),t(e,n)},y=e=>{var r=A(),i=B(r);V(i,()=>n.screen,()=>({authentication:f})),t(e,r)},b=e=>{var n=ni(),r=T(n);f(r),j(n),t(e,n)};a(m,e=>{s()?e(_):c()||l()?e(v,1):n.screen?e(y,2):e(b,-1)}),t(e,p),h(),d()}function ii(e,t){return!!(e.dev!==void 0&&e.dev===!1||e.beta!==void 0&&e.beta===ai()||e.debug!==void 0&&e.debug===oi()||e.role!==void 0&&t?.roles!==void 0&&si(t.roles,e.role))}function ai(){return typeof window<`u`&&window.location.hostname.startsWith(`beta.`)}function oi(){return ai()}function si(e,t){for(let n of e)if(n===t||t.startsWith(n+`:`))return!0;return!1}var ci=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`denied`]),li=s(`<div class="flex justify-center pt-[14vh]"><!></div>`);function ui(e,n){i(n,!0);let r=()=>D(se,`$account`,s),o=()=>D(Z,`$dict`,s),[s,c]=w(),l=y(n,ci),u=S(()=>ii(l,r())),d=S(()=>r()?.id??``);var f=A(),p=B(f),m=e=>{var r=A(),i=B(r);V(i,()=>n.children),t(e,r)},_=e=>{var r=A(),i=B(r);V(i,()=>n.denied),t(e,r)},v=e=>{var n=li(),r=T(n);{let e=S(()=>g(d).slice(0,8));tt(r,{get text(){return g(d)},get label(){return g(e)},get"aria-label"(){return o().auth.copyId},variant:`outline`,class:`font-mono`})}j(n),t(e,n)};a(p,e=>{g(u)?e(m):n.denied===void 0?g(d)!==``&&e(v,2):e(_,1)}),t(e,f),h(),c()}var di=c(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Q=c((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)}})),fi=c((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}}})),pi=c(((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})),mi=c(((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})),hi=c((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}})),gi=c((e=>{var t=Q().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),_i=c((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}})),vi=c((e=>{var t=fi(),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}}})),yi=c((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]]}})),bi=c((e=>{var t=yi();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}})),xi=c(((e,t)=>{var n=bi();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})),Si=c((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Ci=c((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)}})),$=c((e=>{var t=Si(),n=Ci();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}}})),wi=c((e=>{var t=Q(),n=vi(),r=fi(),i=$(),a=Si(),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}})),Ti=c((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}})),Ei=c(((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})),Di=c(((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})),Oi=c(((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})),ki=c(((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})),Ai=c(((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)})),ji=c((e=>{var t=$(),n=Ei(),r=Di(),i=Oi(),a=ki(),o=Ci(),s=Q(),c=Ai();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()))}})),Mi=c((e=>{var t=Q(),n=fi(),r=pi(),i=mi(),a=hi(),o=gi(),s=_i(),c=vi(),l=xi(),u=wi(),d=Ti(),f=$(),p=ji();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)}})),Ni=c((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}}})),Pi=c((e=>{var t=Ni();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)}})),Fi=c((e=>{var t=Ni();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}}));c((e=>{var t=di(),n=Mi(),r=Pi(),i=Fi();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)})}))(),kr.google,kr.apple;var Ii=s(`<a><!> <span class="hidden md:inline"> </span></a>`),Li=s(`<div class="flex h-dvh flex-col"><header class="flex items-center gap-4 px-4 py-3" style="view-transition-name: chrome"><div class="flex flex-1 items-center gap-4"><h1 class="hidden min-w-0 truncate text-lg font-medium md:block"> </h1> <nav class="flex shrink-0 gap-1"></nav></div> <div class="relative w-full max-w-64 min-w-0 shrink"><!> <!> <!></div> <div class="flex flex-1 justify-end gap-1"><!> <!></div></header> <main class="min-h-0 flex-1"><!></main></div>`);function Ri(n,a){i(a,!0);let s=()=>D($e,`$only`,f),c=()=>D(Ce,`$dict`,f),l=()=>D(at,`$query`,f),[f,m]=w();ie(()=>at.set(``));let _=z(null);function y(e){e.key===`Enter`&&s()?.()}function C(e){e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g(_)?.focus(),g(_)?.select())}let ee=S(()=>[{id:`map`,href:`${ae}/`,label:c().nav.map,Icon:vt},{id:`list`,href:`${ae}/list/`,label:c().nav.list,Icon:ft}]),k=S(()=>g(ee).map(e=>e.href).filter(e=>Ne.url.pathname.startsWith(e)).reduce((e,t)=>t.length>e.length?t:e,``));p(`keydown`,e,C),ri(n,{children:(e,n)=>{var i=Li(),s=T(i),f=T(s),p=T(f),m=T(p,!0);j(p);var h=P(p,2);r(h,21,()=>g(ee),e=>e.id,(e,n)=>{let r=S(()=>g(n).href===g(k));var i=Ii(),a=T(i);x(a,()=>g(n).Icon,(e,t)=>{t(e,{class:`size-4`})});var o=P(a,2),s=T(o,!0);j(o),j(i),v(()=>{E(i,`id`,`nav-${g(n).id}-link`),E(i,`href`,g(n).href),E(i,`aria-current`,g(r)?`page`:void 0),E(i,`aria-label`,g(n).label),M(i,1,O([`inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm transition-colors`,g(r)?`bg-muted font-medium`:`text-muted-foreground hover:text-foreground`])),u(s,g(n).label)}),t(e,i)}),j(h),j(f);var C=P(f,2),w=T(C);gt(w,{class:`text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-3.5 -translate-y-1/2`});var D=P(w,2);Me(D,{id:`nav-filter-input`,type:`search`,onkeydown:y,get"aria-label"(){return c().nav.filter},class:`ps-8 pe-3 md:pe-14 [&::-webkit-search-cancel-button]:hidden`,get ref(){return g(_)},set ref(e){b(_,e,!0)},get value(){return te(),l()},set value(e){I(at,e)}});var N=P(D,2);lt(N,{class:`absolute end-2 top-1/2 hidden -translate-y-1/2 md:inline-flex`,children:(e,n)=>{d();var r=o();v(()=>u(r,fe?`⌘K`:`Ctrl K`)),t(e,r)},$$slots:{default:!0}}),j(C);var F=P(C,2),L=T(F);ui(L,{role:`system:halt`,denied:e=>{},children:(e,t)=>{Ae(e,{})},$$slots:{denied:!0,default:!0}});var R=P(L,2);W(R,{id:`iam-logout-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return c().nav.signout},class:`text-destructive hover:text-destructive`,get onclick(){return Te},children:(e,t)=>{mt(e,{})},$$slots:{default:!0}}),j(F),j(s);var z=P(s,2);ui(T(z),{role:`system:introspection`,children:(e,n)=>{var r=A(),i=B(r);V(i,()=>a.children),t(e,r)},$$slots:{default:!0}}),j(z),j(i),v(()=>u(m,Ee.title)),t(e,i)},$$slots:{default:!0}}),h(),m()}export{Ri as component};
@@ -0,0 +1 @@
1
+ import"../chunks/Dz3pFDN9.js";import"../chunks/xihTtKlq.js";import"../chunks/S1izXW26.js";import{t as e}from"../chunks/CReGULOR.js";function t(t){e(t,{class:`h-full`})}export{t as component};
@@ -0,0 +1 @@
1
+ import{Ct as e,St as t,V as n,ct as r}from"../chunks/Dz3pFDN9.js";import"../chunks/xihTtKlq.js";import{t as i}from"../chunks/CjDdIwEP.js";import{n as a,t as o}from"../chunks/CReGULOR.js";function s(s,c){e(c,!0);let l=r(()=>a(i.params.id??``));o(s,{class:`h-full`,get focus(){return n(l)}}),t()}export{s as component};
@@ -0,0 +1 @@
1
+ import{A as e,M as t,et as n,kt as r}from"../chunks/Dz3pFDN9.js";import"../chunks/xihTtKlq.js";import{t as i}from"../chunks/DB6FDyN4.js";import"../chunks/S1izXW26.js";var a=t(`<div class="mx-auto h-full max-w-3xl overflow-auto px-4 pb-12"><!></div>`);function o(t){var o=a(),s=n(o);i(s,{}),r(o),e(t,o)}export{o as component};
@@ -1 +1 @@
1
- {"version":"1792052843295"}
1
+ {"version":"1792759264135"}
@@ -16,16 +16,16 @@
16
16
  />
17
17
  <link rel="apple-touch-icon" href="/.introspection/apple-touch-icon.png" />
18
18
 
19
- <link href="/.introspection/_app/immutable/entry/start.Bh-IzX3A.js" rel="modulepreload">
20
- <link href="/.introspection/_app/immutable/chunks/DMYw6P0r.js" rel="modulepreload">
21
- <link href="/.introspection/_app/immutable/chunks/sTot5bBi.js" rel="modulepreload">
22
- <link href="/.introspection/_app/immutable/chunks/iNotLC3U.js" rel="modulepreload">
23
- <link href="/.introspection/_app/immutable/entry/app.BeXCBo1L.js" rel="modulepreload">
19
+ <link href="/.introspection/_app/immutable/entry/start.q7yYuVLR.js" rel="modulepreload">
20
+ <link href="/.introspection/_app/immutable/chunks/gDwfFIiF.js" rel="modulepreload">
21
+ <link href="/.introspection/_app/immutable/chunks/Dz3pFDN9.js" rel="modulepreload">
22
+ <link href="/.introspection/_app/immutable/chunks/QWn5Fu7g.js" rel="modulepreload">
23
+ <link href="/.introspection/_app/immutable/entry/app.Sb72KUFn.js" rel="modulepreload">
24
24
  <link href="/.introspection/_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
25
- <link href="/.introspection/_app/immutable/nodes/0.DGOddNoa.js" rel="modulepreload">
26
- <link href="/.introspection/_app/immutable/chunks/CBBq-xPv.js" rel="modulepreload">
27
- <link href="/.introspection/_app/immutable/chunks/CgoKto2g.js" rel="modulepreload">
28
- <link href="/.introspection/_app/immutable/chunks/CEUj4ZAs.js" rel="modulepreload">
25
+ <link href="/.introspection/_app/immutable/nodes/0.v-sbbV7A.js" rel="modulepreload">
26
+ <link href="/.introspection/_app/immutable/chunks/CvpzImRs.js" rel="modulepreload">
27
+ <link href="/.introspection/_app/immutable/chunks/CjDdIwEP.js" rel="modulepreload">
28
+ <link href="/.introspection/_app/immutable/chunks/BKLS6E7N.js" rel="modulepreload">
29
29
  <link href="/.introspection/_app/env.js" rel="modulepreload">
30
30
 
31
31
  <link href="/.introspection/_app/immutable/assets/0.lZd8PDGB.css" rel="stylesheet">
@@ -34,7 +34,7 @@
34
34
  <div style="display: contents">
35
35
  <script>
36
36
  {
37
- __sveltekit_1kakf8e = {
37
+ __sveltekit_li1qes = {
38
38
  base: "/.introspection",
39
39
  assets: "/.introspection",
40
40
  env: null
@@ -43,11 +43,11 @@
43
43
  const element = document.currentScript.parentElement;
44
44
 
45
45
  import("/.introspection/_app/env.js").then(({ env }) => {
46
- __sveltekit_1kakf8e.env = env;
46
+ __sveltekit_li1qes.env = env;
47
47
 
48
48
  Promise.all([
49
- import("/.introspection/_app/immutable/entry/start.Bh-IzX3A.js"),
50
- import("/.introspection/_app/immutable/entry/app.BeXCBo1L.js")
49
+ import("/.introspection/_app/immutable/entry/start.q7yYuVLR.js"),
50
+ import("/.introspection/_app/immutable/entry/app.Sb72KUFn.js")
51
51
  ]).then(([kit, app]) => {
52
52
  kit.start(app, element);
53
53
  });
@@ -1,2 +0,0 @@
1
- import{$ as e,A as t,C as n,Ct as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,Ot as d,R as f,St as p,T as m,U as h,V as g,X as _,Y as v,_ as y,a as b,at as x,b as S,c as C,ct as w,dt as T,et as E,f as D,ft as O,h as ee,i as k,j as A,jt as j,kt as M,m as te,nt as N,o as P,p as ne,q as F,rt as re,st as ie,tt as I,vt as ae}from"./sTot5bBi.js";import{s as oe,t as se}from"./DMYw6P0r.js";import"./iNotLC3U.js";import"./xihTtKlq.js";import{F as ce,I as le,N as ue,c as de,l as fe}from"./CBBq-xPv.js";import"./CEUj4ZAs.js";import{$ as pe,C as me,S as L,_ as he,_t as ge,c as _e,d as ve,et as ye,f as be,g as xe,gt as Se,h as Ce,l as we,m as Te,n as Ee,o as De,p as Oe,s as ke,t as Ae,u as je,v as Me,x as Ne,y as Pe}from"./COupBNP3.js";import{t as Fe}from"./Cm2dEurq.js";var Ie={value:()=>{}};function Le(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Re(n)}function Re(e){this._=e}function ze(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Re.prototype=Le.prototype={constructor:Re,on:function(e,t){var n=this._,r=ze(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Be(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Ve(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ve(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Re(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Be(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ve(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ie,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var He={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Ue(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),He.hasOwnProperty(t)?{space:He[t],local:e}:e}function We(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ge(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ke(e){var t=Ue(e);return(t.local?Ge:We)(t)}function qe(){}function Je(e){return e==null?qe:function(){return this.querySelector(e)}}function Ye(e){typeof e!=`function`&&(e=Je(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new R(r,this._parents)}function Xe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ze(){return[]}function Qe(e){return e==null?Ze:function(){return this.querySelectorAll(e)}}function $e(e){return function(){return Xe(e.apply(this,arguments))}}function et(e){e=typeof e==`function`?$e(e):Qe(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new R(r,i)}function tt(e){return function(){return this.matches(e)}}function nt(e){return function(t){return t.matches(e)}}var rt=Array.prototype.find;function it(e){return function(){return rt.call(this.children,e)}}function at(){return this.firstElementChild}function ot(e){return this.select(e==null?at:it(typeof e==`function`?e:nt(e)))}var st=Array.prototype.filter;function ct(){return Array.from(this.children)}function lt(e){return function(){return st.call(this.children,e)}}function ut(e){return this.selectAll(e==null?ct:lt(typeof e==`function`?e:nt(e)))}function dt(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new R(r,this._parents)}function ft(e){return Array(e.length)}function pt(){return new R(this._enter||this._groups.map(ft),this._parents)}function mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}mt.prototype={constructor:mt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ht(e){return function(){return e}}function gt(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new mt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function _t(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new mt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function vt(e){return e.__data__}function yt(e,t){if(!arguments.length)return Array.from(this,vt);var n=t?_t:gt,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ht(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=bt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new R(o,r),o._enter=s,o._exit=c,o}function bt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xt(){return new R(this._exit||this._groups.map(ft),this._parents)}function St(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ct(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new R(s,this._parents)}function wt(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Tt(e){e||=Et;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new R(i,this._parents).order()}function Et(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Dt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ot(){return Array.from(this)}function kt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function At(){let e=0;for(let t of this)++e;return e}function jt(){return!this.node()}function Mt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Nt(e){return function(){this.removeAttribute(e)}}function Pt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ft(e,t){return function(){this.setAttribute(e,t)}}function It(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Lt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function zt(e,t){var n=Ue(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Pt:Nt:typeof t==`function`?n.local?Rt:Lt:n.local?It:Ft)(n,t))}function Bt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vt(e){return function(){this.style.removeProperty(e)}}function Ht(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ut(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Wt(e,t,n){return arguments.length>1?this.each((t==null?Vt:typeof t==`function`?Ut:Ht)(e,t,n??``)):Gt(this.node(),e)}function Gt(e,t){return e.style.getPropertyValue(t)||Bt(e).getComputedStyle(e,null).getPropertyValue(t)}function Kt(e){return function(){delete this[e]}}function qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Yt(e,t){return arguments.length>1?this.each((t==null?Kt:typeof t==`function`?Jt:qt)(e,t)):this.node()[e]}function Xt(e){return e.trim().split(/^|\s+/)}function Zt(e){return e.classList||new Qt(e)}function Qt(e){this._node=e,this._names=Xt(e.getAttribute(`class`)||``)}Qt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function $t(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function en(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tn(e){return function(){$t(this,e)}}function nn(e){return function(){en(this,e)}}function rn(e,t){return function(){(t.apply(this,arguments)?$t:en)(this,e)}}function an(e,t){var n=Xt(e+``);if(arguments.length<2){for(var r=Zt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?rn:t?tn:nn)(n,t))}function on(){this.textContent=``}function sn(e){return function(){this.textContent=e}}function cn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ln(e){return arguments.length?this.each(e==null?on:(typeof e==`function`?cn:sn)(e)):this.node().textContent}function un(){this.innerHTML=``}function dn(e){return function(){this.innerHTML=e}}function fn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function pn(e){return arguments.length?this.each(e==null?un:(typeof e==`function`?fn:dn)(e)):this.node().innerHTML}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function hn(){return this.each(mn)}function gn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _n(){return this.each(gn)}function vn(e){var t=typeof e==`function`?e:Ke(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yn(){return null}function bn(e,t){var n=typeof e==`function`?e:Ke(e),r=t==null?yn:typeof t==`function`?t:Je(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xn(){var e=this.parentNode;e&&e.removeChild(this)}function Sn(){return this.each(xn)}function Cn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tn(e){return this.select(e?wn:Cn)}function En(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Dn(e){return function(t){e.call(this,t,this.__data__)}}function On(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function kn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function An(e,t,n){return function(){var r=this.__on,i,a=Dn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function jn(e,t,n){var r=On(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?An:kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Mn(e,t,n){var r=Bt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nn(e,t){return function(){return Mn(this,e,t)}}function Pn(e,t){return function(){return Mn(this,e,t.apply(this,arguments))}}function Fn(e,t){return this.each((typeof t==`function`?Pn:Nn)(e,t))}function*In(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ln=[null];function R(e,t){this._groups=e,this._parents=t}function Rn(){return new R([[document.documentElement]],Ln)}function zn(){return this}R.prototype=Rn.prototype={constructor:R,select:Ye,selectAll:et,selectChild:ot,selectChildren:ut,filter:dt,data:yt,enter:pt,exit:xt,join:St,merge:Ct,selection:zn,order:wt,sort:Tt,call:Dt,nodes:Ot,node:kt,size:At,empty:jt,each:Mt,attr:zt,style:Wt,property:Yt,classed:an,text:ln,html:pn,raise:hn,lower:_n,append:vn,insert:bn,remove:Sn,clone:Tn,datum:En,on:jn,dispatch:Fn,[Symbol.iterator]:In};function z(e){return typeof e==`string`?new R([[document.querySelector(e)]],[document.documentElement]):new R([[e]],Ln)}function Bn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function B(e,t){if(e=Bn(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Vn={capture:!0,passive:!1};function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Un(e){var t=e.document.documentElement,n=z(e).on(`dragstart.drag`,Hn,Vn);`onselectstart`in t?n.on(`selectstart.drag`,Hn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Wn(e,t){var n=e.document.documentElement,r=z(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,Hn,Vn),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Gn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qn(){}var Jn=.7,Yn=1/Jn,V=`\\s*([+-]?\\d+)\\s*`,Xn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,H=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Zn=/^#([0-9a-f]{3,8})$/,Qn=RegExp(`^rgb\\(${V},${V},${V}\\)$`),$n=RegExp(`^rgb\\(${H},${H},${H}\\)$`),er=RegExp(`^rgba\\(${V},${V},${V},${Xn}\\)$`),tr=RegExp(`^rgba\\(${H},${H},${H},${Xn}\\)$`),nr=RegExp(`^hsl\\(${Xn},${H},${H}\\)$`),rr=RegExp(`^hsla\\(${Xn},${H},${H},${Xn}\\)$`),ir={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gn(qn,lr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:or,formatHsl:sr,formatRgb:cr,toString:cr});function ar(){return this.rgb().formatHex()}function or(){return this.rgb().formatHex8()}function sr(){return yr(this).formatHsl()}function cr(){return this.rgb().formatRgb()}function lr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Zn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new U(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qn.exec(e))?new U(t[1],t[2],t[3],1):(t=$n.exec(e))?new U(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=er.exec(e))?dr(t[1],t[2],t[3],t[4]):(t=tr.exec(e))?dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nr.exec(e))?vr(t[1],t[2]/100,t[3]/100,1):(t=rr.exec(e))?vr(t[1],t[2]/100,t[3]/100,t[4]):ir.hasOwnProperty(e)?ur(ir[e]):e===`transparent`?new U(NaN,NaN,NaN,0):null}function ur(e){return new U(e>>16&255,e>>8&255,e&255,1)}function dr(e,t,n,r){return r<=0&&(e=t=n=NaN),new U(e,t,n,r)}function fr(e){return e instanceof qn||(e=lr(e)),e?(e=e.rgb(),new U(e.r,e.g,e.b,e.opacity)):new U}function pr(e,t,n,r){return arguments.length===1?fr(e):new U(e,t,n,r??1)}function U(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gn(U,pr,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new U(W(this.r),W(this.g),W(this.b),_r(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mr,formatHex:mr,formatHex8:hr,formatRgb:gr,toString:gr}));function mr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}`}function hr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity)?1:this.opacity)*255)}`}function gr(){let e=_r(this.opacity);return`${e===1?`rgb(`:`rgba(`}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${e===1?`)`:`, ${e})`}`}function _r(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function W(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function G(e){return e=W(e),(e<16?`0`:``)+e.toString(16)}function vr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new K(e,t,n,r)}function yr(e){if(e instanceof K)return new K(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=lr(e)),!e)return new K;if(e instanceof K)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new K(o,s,c,e.opacity)}function br(e,t,n,r){return arguments.length===1?yr(e):new K(e,t,n,r??1)}function K(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gn(K,br,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new K(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new K(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new U(Cr(e>=240?e-240:e+120,i,r),Cr(e,i,r),Cr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new K(xr(this.h),Sr(this.s),Sr(this.l),_r(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=_r(this.opacity);return`${e===1?`hsl(`:`hsla(`}${xr(this.h)}, ${Sr(this.s)*100}%, ${Sr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function xr(e){return e=(e||0)%360,e<0?e+360:e}function Sr(e){return Math.max(0,Math.min(1,e||0))}function Cr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var wr=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Er(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Dr(e){return(e=+e)==1?Or:function(t,n){return n-t?Er(t,n,e):wr(isNaN(t)?n:t)}}function Or(e,t){var n=t-e;return n?Tr(e,n):wr(isNaN(e)?t:e)}var kr=(function e(t){var n=Dr(t);function r(e,t){var r=n((e=pr(e)).r,(t=pr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Or(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jr=new RegExp(Ar.source,`g`);function Mr(e){return function(){return e}}function Nr(e){return function(t){return e(t)+``}}function Pr(e,t){var n=Ar.lastIndex=jr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Ar.exec(e))&&(i=jr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:q(r,i)})),n=jr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Nr(c[0].x):Mr(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Fr=180/Math.PI,Ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lr(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Fr,skewX:Math.atan(c)*Fr,scaleX:o,scaleY:s}}var Rr;function zr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Ir:Lr(t.a,t.b,t.c,t.d,t.e,t.f)}function Br(e){return e==null||(Rr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Rr.setAttribute(`transform`,e),!(e=Rr.transform.baseVal.consolidate()))?Ir:(e=e.matrix,Lr(e.a,e.b,e.c,e.d,e.e,e.f))}function Vr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:q(e,i)},{i:c-2,x:q(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:q(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:q(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:q(e,n)},{i:s-2,x:q(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Hr=Vr(zr,`px, `,`px)`,`deg)`),Ur=Vr(Br,`, `,`)`,`)`),Wr=1e-12;function Gr(e){return((e=Math.exp(e))+1/e)/2}function Kr(e){return((e=Math.exp(e))-1/e)/2}function qr(e){return((e=Math.exp(2*e))-1)/(e+1)}var Jr=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Wr)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Gr(y),c=s/(n*g)*(i*qr(t*r+y)-Kr(y));return[a+c*d,o+c*f,s*i/Gr(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),Yr=0,Xr=0,Zr=0,Qr=1e3,$r,ei,ti=0,ni=0,ri=0,ii=typeof performance==`object`&&performance.now?performance:Date,ai=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return ni||=(ai(si),ii.now()+ri)}function si(){ni=0}function ci(){this._call=this._time=this._next=null}ci.prototype=li.prototype={constructor:ci,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?oi():+n)+(t==null?0:+t),!this._next&&ei!==this&&(ei?ei._next=this:$r=this,ei=this),this._call=e,this._time=n,mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,mi())}};function li(e,t,n){var r=new ci;return r.restart(e,t,n),r}function ui(){oi(),++Yr;for(var e=$r,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yr}function di(){ni=(ti=ii.now())+ri,Yr=Xr=0;try{ui()}finally{Yr=0,pi(),ni=0}}function fi(){var e=ii.now(),t=e-ti;t>Qr&&(ri-=t,ti=e)}function pi(){for(var e,t=$r,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:$r=n);ei=e,mi(r)}function mi(e){Yr||(Xr&&=clearTimeout(Xr),e-ni>24?(e<1/0&&(Xr=setTimeout(di,e-ii.now()-ri)),Zr&&=clearInterval(Zr)):(Zr||=(ti=ii.now(),setInterval(fi,Qr)),Yr=1,ai(di)))}function hi(e,t,n){var r=new ci;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var gi=Le(`start`,`end`,`cancel`,`interrupt`),_i=[];function vi(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;bi(e,n,{name:t,index:r,group:i,on:gi,tween:_i,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function yi(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function bi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=li(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return hi(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(hi(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function xi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Si(e){return this.each(function(){xi(this,e)})}function Ci(e,t){var n,r;return function(){var i=J(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function wi(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ti(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ci:wi)(n,e,t))}function Ei(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function Di(e,t){var n;return(typeof t==`number`?q:t instanceof lr?kr:(n=lr(t))?(t=n,kr):Pr)(e,t)}function Oi(e){return function(){this.removeAttribute(e)}}function ki(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ai(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function ji(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Mi(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ni(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Pi(e,t){var n=Ue(e),r=n===`transform`?Ur:Di;return this.attrTween(e,typeof t==`function`?(n.local?Ni:Mi)(n,r,Ei(this,`attr.`+e,t)):t==null?(n.local?ki:Oi)(n):(n.local?ji:Ai)(n,r,t))}function Fi(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ii(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Li(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(e,i)),n}return i._value=t,i}function Ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fi(e,i)),n}return i._value=t,i}function zi(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Ue(e);return this.tween(n,(r.local?Li:Ri)(r,t))}function Bi(e,t){return function(){yi(this,e).delay=+t.apply(this,arguments)}}function Vi(e,t){return t=+t,function(){yi(this,e).delay=t}}function Hi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Bi:Vi)(t,e)):Y(this.node(),t).delay}function Ui(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Wi(e,t){return t=+t,function(){J(this,e).duration=t}}function Gi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ui:Wi)(t,e)):Y(this.node(),t).duration}function Ki(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function qi(e){var t=this._id;return arguments.length?this.each(Ki(t,e)):Y(this.node(),t).ease}function Ji(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Yi(e){if(typeof e!=`function`)throw Error();return this.each(Ji(this._id,e))}function Xi(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new X(r,this._parents,this._name,this._id)}function Zi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new X(o,this._parents,this._name,this._id)}function Qi(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function $i(e,t,n){var r,i,a=Qi(t)?yi:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ea(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each($i(n,e,t))}function ta(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function na(){return this.on(`end.remove`,ta(this._id))}function ra(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Je(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,vi(l[f],t,n,f,l,Y(u,n)));return new X(a,this._parents,t,n)}function ia(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Qe(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&vi(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var aa=Rn.prototype.constructor;function oa(){return new aa(this._groups,this._parents)}function sa(e,t){var n,r,i;return function(){var a=Gt(this,e),o=(this.style.removeProperty(e),Gt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ca(e){return function(){this.style.removeProperty(e)}}function la(e,t,n){var r,i=n+``,a;return function(){var o=Gt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ua(e,t,n){var r,i,a;return function(){var o=Gt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Gt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function da(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=ca(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function fa(e,t,n){var r=(e+=``)==`transform`?Hr:Di;return t==null?this.styleTween(e,sa(e,r)).on(`end.style.`+e,ca(e)):typeof t==`function`?this.styleTween(e,ua(e,r,Ei(this,`style.`+e,t))).each(da(this._id,e)):this.styleTween(e,la(e,r,t),n).on(`end.style.`+e,null)}function pa(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ma(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&pa(e,a,n)),r}return a._value=t,a}function ha(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,ma(e,t,n??``))}function ga(e){return function(){this.textContent=e}}function _a(e){return function(){var t=e(this);this.textContent=t??``}}function va(e){return this.tween(`text`,typeof e==`function`?_a(Ei(this,`text`,e)):ga(e==null?``:e+``))}function ya(e){return function(t){this.textContent=e.call(this,t)}}function ba(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ya(r)),t}return r._value=e,r}function xa(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,ba(e))}function Sa(){for(var e=this._name,t=this._id,n=Ta(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Y(c,t);vi(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function Ca(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=J(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var wa=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ta(){return++wa}var Z=Rn.prototype;X.prototype={constructor:X,select:ra,selectAll:ia,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Xi,merge:Zi,selection:oa,transition:Sa,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:ea,attr:Pi,attrTween:zi,style:fa,styleTween:ha,text:va,textTween:xa,remove:na,tween:Ti,delay:Hi,duration:Gi,ease:qi,easeVarying:Yi,end:Ca,[Symbol.iterator]:Z[Symbol.iterator]};function Ea(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Da={time:null,delay:0,duration:250,ease:Ea};function Oa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ka(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=Ta(),(n=Da).time=oi(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&vi(c,e,t,l,o,n||Oa(c,t));return new X(r,this._parents,e,t)}Rn.prototype.interrupt=Si,Rn.prototype.transition=ka;var Aa=e=>()=>e;function ja(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Ma=new Q(1,0,0);Na.prototype=Q.prototype;function Na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ma;return e.__zoom}function Pa(e){e.stopImmediatePropagation()}function Fa(e){e.preventDefault(),e.stopImmediatePropagation()}function Ia(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function La(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ra(){return this.__zoom||Ma}function za(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ba(){return navigator.maxTouchPoints||`ontouchstart`in this}function Va(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Ha(){var e=Ia,t=La,n=Va,r=za,i=Ba,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Jr,l=Le(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Ra).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,ee).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,Ra),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Ma.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Q(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Q(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Q(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=z(this.that).datum();l.call(e,this.that,new ja(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=B(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],xi(this),s.start();Fa(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=z(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=B(t,i),l=t.clientX,u=t.clientY;Un(t.view),Pa(t),a.mouse=[c,this.__zoom.invert(c)],xi(this),a.start();function d(e){if(Fa(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=B(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Wn(e.view,a.moved),Fa(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=B(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Fa(r),s>0?z(this).transition().duration(s).call(x,d,c,r):z(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Pa(t),s=0;s<i;++s)c=r[s],l=B(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),xi(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Fa(e),s=0;s<a;++s)c=i[s],l=B(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function ee(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Pa(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=B(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=z(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:Aa(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:Aa(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:Aa(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:Aa([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Ua=[.25,2],Wa=16,Ga=(e,t)=>{let n=t.onchange,r=Ha().scaleExtent(Ua).filter(Ka).on(`zoom`,e=>n(e.transform)),i=z(e);return i.call(r).on(`dblclick.zoom`,null),e.addEventListener(`wheel`,a,{passive:!1}),t.onready?.({reset:()=>r.transform(i,Ma)}),{update:e=>{n=e.onchange},destroy:()=>{e.removeEventListener(`wheel`,a),z(e).on(`.zoom`,null)}};function a(t){if(qa(t)||Ja(t.target,`[data-scrollable]`))return;t.preventDefault();let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?Wa:1,{k:a}=Na(e);r.translateBy(i,-t.deltaX*n/a,-t.deltaY*n/a)}};function Ka(e){return e.type===`wheel`?qa(e)&&!Ja(e.target,`[data-scrollable]`):e.ctrlKey||`button`in e&&e.button!==0?!1:!Ja(e.target,`button, a, [data-scrollable]`)}function qa(e){return e.ctrlKey||e.metaKey}function Ja(e,t){return e instanceof Element&&e.closest(t)!==null}function Ya(e,t){let n=e.map(e=>({kind:`component`,id:je(e),node:e})),r=new Map,i=new Map;for(let e of t){let t=Xa(e.src),n=je(e.dst);`service`in e.src&&r.set(t,{kind:`service`,id:t,name:e.src.service});let a=i.get(`${t} ${n}`),o=+!!to(e);a===void 0?i.set(`${t} ${n}`,{id:`${t} ${n}`,from:t,to:n,calls:1,events:o}):(a.calls++,a.events+=o)}return{vertices:[...r.values(),...n],links:[...i.values()],calls:t}}function Xa(e){return`service`in e?Za+e.service:je(e)}var Za=`svc:`,Qa=`@`;function $a(e){return e.startsWith(Za)?Qa+e.slice(4):Ce(e)}function eo(e){return e.startsWith(Qa)?Za+e.slice(1):e.includes(`.`)?e:`${we}.${e}`}function to(e){return`event`in e.src}function no(e,t){return t===null?[]:e.filter(e=>e.from===t||e.to===t)}function ro(e,t){let n=new Set;if(t===null)return n;n.add(t);for(let r of e)r.from===t&&n.add(r.to),r.to===t&&n.add(r.from);return n}function io(e){return e.kind===`component`?Ce(e.id):e.name}function ao(e,t){return e.kind===`component`?Te(e.node,t)>0:ve(e.name,t)}function oo(e,t){let n=e.vertices.find(e=>e.id===t);if(n===void 0)return null;let r=new Map(e.vertices.map(e=>[e.id,e])),i=new Map,a=new Map,o=!1;for(let s of e.calls){let e=Xa(s.src),c=je(s.dst);if(e===t&&c===t){o=!0;continue}let l=c===t?`in`:e===t?`out`:null;if(l===null)continue;let u=l===`in`?e:c,d=r.get(u);if(d===void 0)continue;let f=l===`in`?{row:co(n,s),theirs:lo(s)}:{row:lo(s),theirs:co(d,s)};so(l===`in`?i:a,`${l}:${u}`,d,f,to(s))}return{vertex:n,incoming:[...i.values()].sort(uo),outgoing:[...a.values()].sort(uo),self:o}}function so(e,t,n,r,i){let a=e.get(t);a===void 0&&(a={id:t,vertex:n,wires:[]},e.set(t,a));let o={...r,id:`${t} ${r.row} ${r.theirs} ${i}`,event:i};a.wires.some(e=>e.id===o.id)||a.wires.push(o)}function co(e,t){if(e.kind!==`component`)return null;let n=t.src;if(`event`in n){let t=je(n),r=e.node.receivers.find(e=>e.source===t&&e.event===n.event);if(r!==void 0)return`receiver:${r.label}`}return`operation:${t.dst.operation}`}function lo(e){return`event`in e.src?`event:${e.src.event}`:`operation`in e.src?`operation:${e.src.operation}`:null}function uo(e,t){return e.vertex.kind===t.vertex.kind?e.vertex.id.localeCompare(t.vertex.id):e.vertex.kind===`service`?1:-1}var fo=ae(null),po=`card`,mo=`transition-spring transition-morph`;function ho(e){return`card-`+e.replace(/[^a-z0-9]+/gi,`-`)}async function go(e){fo.set(e),await h(),await se(`${oe}/${$a(e)}/`)}async function _o(){window.navigation?.canGoBack===!0?window.history.back():await se(`${oe}/`)}var vo=4,yo=(e,t)=>{let n=t,r=null;return e.addEventListener(`pointerdown`,i),e.addEventListener(`click`,a),e.addEventListener(`keydown`,o),{update:e=>n=e,destroy:()=>{e.removeEventListener(`pointerdown`,i),e.removeEventListener(`click`,a),e.removeEventListener(`keydown`,o)}};function i(e){r={x:e.clientX,y:e.clientY}}function a(t){let i=r;if(r=null,!(i!==null&&Math.hypot(t.clientX-i.x,t.clientY-i.y)>vo)){if(t.target instanceof Element){let n=t.target.closest(`button, a`);if(n!==null&&n!==e)return}n(t.shiftKey)}}function o(t){t.target===e&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(t.shiftKey))}},bo=(e,t)=>{let{into:n,id:r}=t,i=new ResizeObserver(()=>a());return i.observe(e),{update:e=>{n=e.into,r=e.id,a()},destroy:()=>i.disconnect()};function a(){n.set(r,{width:e.offsetWidth,height:e.offsetHeight})}},$={width:220,height:61,gap:32,row:20},xo={height:40},So={width:400,height:320},Co=.25,wo={height:20,prefix:`band:`},To=6,Eo=32;function Do(e,t,n=4){let r=new Map,i=e.vertices.filter(e=>e.kind===`service`),a=e.vertices.filter(e=>e.kind===`component`).sort(Mo),o={x:$.width+$.gap,y:$.height+$.row},s=[{label:`user`,of:a.filter(e=>!xe(e.node))},{label:`system`,of:a.filter(e=>xe(e.node))}].filter(e=>e.of.length>0),c=[],l=0;for(let e of s)c.push({id:wo.prefix+e.label,label:e.label,x:0,y:l,width:0}),l+=wo.height+$.row,e.of.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*o.y})),l+=Math.ceil(e.of.length/n)*o.y;i.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*(xo.height+$.row)}));let u=[...r.values()].reduce((e,t)=>Math.max(e,t.x),0)+$.width;for(let e of c)e.width=u,r.set(e.id,{x:e.x,y:e.y});let d=new Map(i.map(e=>[e.id,xo.height]));jo(r,t,e=>({width:e.startsWith(wo.prefix)?u:$.width,height:e.startsWith(wo.prefix)?wo.height:d.get(e)??$.height}));for(let e of c){let t=r.get(e.id);t!==void 0&&Object.assign(e,t),r.delete(e.id)}return{positions:r,bands:c}}function Oo(e,t,n,r=null){let i=new Map([[e.vertex.id,{x:0,y:0}]]),a=Ao(n,e.vertex.id,So).height/2;return o(e.incoming,-1),o(e.outgoing,1),jo(i,t,t=>Ao(n,t,t===e.vertex.id?So:$));function o(e,t){let o=$.width+$.gap;ko(e).forEach((e,s)=>{let c=$.gap+s*o,l=e.map(e=>Ao(n,e.id,$).height),u=l.reduce((e,t)=>e+t,0)+$.row*(e.length-1),d=a-u/2;e.forEach((e,n)=>{let a=e.id===r?So.width:$.width;i.set(e.id,{x:t<0?-(c+a):So.width+c,y:d}),d+=l[n]+$.row})})}}function ko(e){if(e.length===0)return[];if(e.length<=To)return[e];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}function Ao(e,t,n){return e.get(t)??n}function jo(e,t,n){if(e.size===0)return e;let r={left:1/0,top:1/0,right:-1/0,bottom:-1/0};for(let[t,i]of e){let{width:e,height:a}=n(t);r.left=Math.min(r.left,i.x),r.top=Math.min(r.top,i.y),r.right=Math.max(r.right,i.x+e),r.bottom=Math.max(r.bottom,i.y+a)}let i={width:r.right-r.left,height:r.bottom-r.top},a={x:Math.max(Eo,(t.width-i.width)/2)-r.left,y:Math.max(Eo,(t.height-i.height)/2)-r.top};for(let[t,n]of e)e.set(t,{x:n.x+a.x,y:n.y+a.y});return e}function Mo(e,t){return e.id.localeCompare(t.id)}var No=new Set([`$$slots`,`$$events`,`$$legacy`]);function Po(e,t){let n=b(t,No),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`}]];ce(e,P({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Fo=c(`<!> <!>`,1);function Io(e,n){r(n,!0);var i=A(),o=I(i);{let e=w(()=>[`bg-muted items-center`,n.class]);S(o,()=>he,(r,i)=>{i(r,{variant:`muted`,size:`sm`,get style(){return`height: ${xo.height??``}px`},get class(){return g(e)},children:(e,r)=>{var i=Fo(),o=I(i);S(o,()=>Pe,(e,t)=>{t(e,{children:(e,t)=>{Po(e,{class:`text-muted-foreground size-4`})},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>L,(e,r)=>{r(e,{children:(e,r)=>{var i=A(),o=I(i);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{d();var i=a();v(()=>u(i,n.name)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})})}t(e,i),p()}var Lo=1/3,Ro=2/3;function zo(e,t,n){return Vo(e,t,n,Ro)}function Bo(e,t,n){return Vo(e,t,n,Lo)}function Vo(e,t,n,r){let i=t>=e.x+e.width/2,a=e.y+(n?.y??e.height*r);if(n?.x===void 0)return{x:i?e.x+e.width:e.x,y:a,away:i?1:-1};let o=e.x+n.x;return{x:o,y:a,away:t>=o?1:-1}}function Ho(e,t){let n=Math.max(40,Math.abs(t.x-e.x)/2),r={x:e.x+e.away*n,y:e.y},i={x:t.x+t.away*n,y:t.y};return`M${e.x},${e.y} C${r.x},${r.y} ${i.x},${i.y} ${t.x},${t.y}`}function Uo(e){let t=e.x+e.width/2,n=e.y+e.height;return`M${t-10},${n} C${t-28},${n+28} ${t+28},${n+28} ${t+10},${n}`}var Wo=l(`<path fill="none" stroke="currentColor" stroke-width="1.5" class="transition-opacity" marker-end="url(#map-arrow)"></path>`),Go=l(`<svg aria-hidden="true"><defs><marker id="map-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor"></path></marker></defs><!></svg>`);function Ko(e,i){r(i,!0);let a=w(()=>i.arcs.map(e=>{let t=o(e.from),n=o(e.to);if(t===null||n===null)return null;let r=e.from===e.to?Uo(t):Ho(zo(t,n.x,e.out),Bo(n,t.x,e.in));return{id:e.id,d:r,dashed:e.dashed===!0,dimmed:e.dimmed===!0}}).filter(e=>e!==null));function o(e){let t=i.positions.get(e),n=i.sizes.get(e);return t===void 0||n===void 0?null:{...t,...n}}var s=Go(),c=N(E(s));n(c,17,()=>g(a),e=>e.id,(e,n)=>{var r=Wo();v(()=>{D(r,`d`,g(n).d),D(r,`stroke-dasharray`,g(n).dashed?`4 3`:void 0),D(r,`opacity`,g(n).dimmed?Co:void 0)}),t(e,r)}),M(s),v(()=>te(s,0,ee([`pointer-events-none absolute overflow-visible`,i.class]))),t(e,s),p()}var qo=c(`<span class="text-muted-foreground"> </span>`),Jo=c(`<!> `,1),Yo=c(`<!> <!>`,1),Xo=c(`<button type="button" class="text-muted-foreground hover:bg-muted hover:text-foreground -m-1 shrink-0
2
- cursor-pointer rounded-md p-1 transition-colors"><!></button>`),Zo=c(`<div class="flex items-start gap-2"><!> <!></div> <!>`,1);function Qo(e,n){r(n,!0);let a=()=>O(_e,`$dict`,o),[o,c]=T(),l=k(n,`open`,3,!1);var d=A(),f=I(d);{let e=w(()=>[`bg-card flex-col items-stretch gap-0`,n.class]);S(f,()=>he,(r,o)=>{o(r,{variant:`outline`,size:`sm`,get class(){return g(e)},children:(e,r)=>{var o=Zo(),c=I(o),d=E(c);S(d,()=>L,(e,r)=>{r(e,{class:`min-w-0`,children:(e,r)=>{var a=Yo(),o=I(a);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{var a=Jo(),o=I(a),s=e=>{var r=qo(),i=E(r);M(r),v(()=>u(i,`${n.node.namespace??``}.`)),t(e,r)};i(o,e=>{n.node.namespace!=="default"&&e(s)});var c=N(o,1,!0);v(()=>u(c,n.node.component)),t(e,a)},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>Ne,(e,t)=>{t(e,{class:`text-xs line-clamp-none`,children:(e,t)=>{De(e,{get node(){return n.node}})},$$slots:{default:!0}})}),t(e,a)},$$slots:{default:!0}})});var f=N(d,2),p=e=>{var r=Xo(),i=E(r);{let e=w(()=>[`size-4 transition-transform`,l()&&`rotate-180`]);ke(i,{get class(){return g(e)}})}M(r),v(()=>{D(r,`aria-expanded`,l()),D(r,`aria-label`,a().map.expand)}),s(`click`,r,function(...e){n.ontoggle?.apply(this,e)}),t(e,r)};i(f,e=>{n.ontoggle!==void 0&&e(p)}),M(c);var m=N(c,2),h=e=>{Ee(e,{get node(){return n.node},class:`pt-3`})};i(m,e=>{l()&&e(h)}),t(e,o)},$$slots:{default:!0}})})}t(e,d),p(),c()}o([`click`]);var $o=c(`<div class="text-muted-foreground absolute top-0 left-0 flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div>`),es=c(`<div class="absolute top-0 left-0 cursor-pointer transition-opacity" role="button" tabindex="0"><!></div>`),ts=c(`<!> <!> <!>`,1);function ns(e,a){r(a,!0);let o=()=>O(Oe,`$query`,l),s=()=>O(_e,`$dict`,l),c=()=>O(fo,`$flying`,l),[l,d]=T(),m=new pe,h=ie(null),b=w(()=>Do(a.graph,a.view)),S=w(()=>g(b).positions),C=w(()=>ro(a.graph.links,g(h))),ee=w(()=>no(a.graph.links,g(h)).map(e=>({id:e.id,from:e.from,to:e.to,dashed:e.events===e.calls})));_(()=>{let e=a.graph.vertices.filter(e=>ao(e,o())),t=e.length===1?e[0].id:null;return be.set(t===null?null:()=>void go(t)),()=>be.set(null)});function k(e){return ao(e,o())?g(h)===null||g(C).has(e.id):!1}var A=ts(),j=I(A);Ko(j,{class:`text-muted-foreground/50`,get arcs(){return g(ee)},get positions(){return g(S)},get sizes(){return m}});var te=N(j,2);n(te,17,()=>g(b).bands,e=>e.id,(e,n)=>{var r=$o();let i;var a=E(r),o=E(a,!0);M(a);var c=N(a,2);me(c,{class:`flex-1`}),M(r),v(()=>{i=ne(r,``,i,{translate:`${g(n).x??``}px ${g(n).y??``}px`,width:`${g(n).width??``}px`,height:`${wo.height??``}px`}),u(o,s().space[g(n).label])}),t(e,r)});var P=N(te,2);n(P,17,()=>a.graph.vertices,e=>e.id,(e,n)=>{let r=w(()=>g(S).get(g(n).id)??{x:0,y:0});var a=es();let o;var s=E(a),l=e=>{Qo(e,{get node(){return g(n).node}})},u=e=>{Io(e,{get name(){return g(n).name}})};i(s,e=>{g(n).kind===`component`?e(l):e(u,-1)}),M(a),y(a,(e,t)=>bo?.(e,t),()=>({into:m,id:g(n).id})),y(a,(e,t)=>yo?.(e,t),()=>()=>void go(g(n).id)),v((e,t)=>{D(a,`aria-label`,e),o=ne(a,``,o,t)},[()=>io(g(n)),()=>({translate:`${g(r).x??``}px ${g(r).y??``}px`,width:`${$.width??``}px`,opacity:k(g(n))?1:Co,"view-transition-name":c()===g(n).id?po:void 0,"view-transition-class":c()===g(n).id?mo:void 0})]),f(`mouseenter`,a,()=>x(h,g(n).id,!0)),f(`mouseleave`,a,()=>x(h,null)),t(e,a)}),t(e,A),p(),d()}var rs=(e,t)=>{let n=new ResizeObserver(()=>s()),r=new MutationObserver(()=>s()),{into:i,of:a}=t,o=new Set;return n.observe(e),r.observe(e,{childList:!0,subtree:!0}),s(),{update:e=>{i=e.into,a=e.of,s()},destroy:()=>{n.disconnect(),r.disconnect();for(let e of o)i.delete(e)}};function s(){let t=new Set;for(let n of e.querySelectorAll(`[data-row]`)){if(n.dataset.row===void 0)continue;let e=`${a} ${n.dataset.row}`;t.add(e);let r={top:l(n).top,height:n.offsetHeight,right:c(n)},o=i.get(e);(o===void 0||o.top!==r.top||o.height!==r.height||o.right!==r.right)&&i.set(e,r)}for(let e of o)t.has(e)||i.delete(e);o=t}function c(e){let t=0;for(let n of e.children)n instanceof HTMLElement&&(t=Math.max(t,l(n).left+n.offsetWidth));return t===0?l(e).left+e.offsetWidth:t}function l(t){let n={top:0,left:0},r=t;for(;r!==null&&r!==e;)n.top+=r.offsetTop,n.left+=r.offsetLeft,r=r.offsetParent;return n}},is=(e,t)=>{let n=t;return e.addEventListener(`mouseover`,r),e.addEventListener(`mouseleave`,i),e.addEventListener(`focusin`,r),e.addEventListener(`focusout`,i),{update:e=>n=e,destroy:()=>{e.removeEventListener(`mouseover`,r),e.removeEventListener(`mouseleave`,i),e.removeEventListener(`focusin`,r),e.removeEventListener(`focusout`,i)}};function r(e){let t=e.target instanceof Element?e.target.closest(`[data-row]`):null;n(t?.getAttribute(`data-row`)??null)}function i(){n(null)}},as=c(`<div class="pointer-events-none absolute inset-y-0 end-2 flex items-center"><!></div>`),os=c(`<div role="button" tabindex="0"><div class="transition-opacity"><!></div> <!></div>`),ss=c(`<!> <!> <div class="absolute top-0 left-0"><!></div>`,1);function cs(e,o){r(o,!0);let s=()=>O(fo,`$flying`,m),c=()=>O(Oe,`$query`,m),l=()=>O(_e,`$dict`,m),[m,h]=T();_(()=>fo.set(o.id));let b=new pe,S=new pe,C=ie(null),k=ie(null),j=w(()=>oo(o.graph,o.id));function P(){return(g(j)?.incoming??[]).filter(e=>e.vertex.kind===`service`).map(e=>e.id)}let F=new ye(P()),re=w(()=>g(j)===null?new Map:Oo(g(j),o.view,b,g(C))),ae=w(()=>{if(g(j)===null)return[];let e=[];for(let t of g(j).incoming)if(!F.has(t.id))for(let n of t.wires)e.push({id:n.id,from:t.id,to:g(j).vertex.id,out:ce(t.id,n.theirs,8),in:ce(g(j).vertex.id,n.row),dashed:n.event,dimmed:!oe(t,n)});for(let t of g(j).outgoing)if(!F.has(t.id))for(let n of t.wires)e.push({id:n.id,from:g(j).vertex.id,to:t.id,out:ce(g(j).vertex.id,n.row,8),in:ce(t.id,n.theirs),dashed:n.event,dimmed:!oe(t,n)});return g(j).self&&e.push({id:`self`,from:g(j).vertex.id,to:g(j).vertex.id,dimmed:g(k)!==null}),e});function oe(e,t){return g(k)===null?!0:g(k).of===`card`?g(k).id===e.id:g(k).id===t.row}function se(e){return g(k)===null?!0:g(k).of===`card`?g(k).id===e.id:e.wires.some(e=>e.row===g(k)?.id)}function ce(e,t,n){if(t===null)return;let r=S.get(`${e} ${t}`);if(r!==void 0)return{y:r.top+r.height/2,x:n===void 0?void 0:r.right+n}}function le(e){de(()=>{x(C,g(C)===e.id?null:e.id,!0)})}function ue(e,t){t?F.has(e.id)?F.delete(e.id):F.add(e.id):go(e.vertex.id)}let me=w(()=>[...g(j)?.incoming??[],...g(j)?.outgoing??[]].find(e=>e.vertex.id===s())?.id??null);function L(e){return g(re).get(e)??{x:0,y:0}}var he=A(),ge=I(he),ve=e=>{var r=ss(),o=I(r);Ko(o,{class:`text-muted-foreground/50 z-10`,get arcs(){return g(ae)},get positions(){return g(re)},get sizes(){return b}});var p=N(o,2);n(p,17,()=>[...g(j).incoming,...g(j).outgoing],e=>e.id,(e,n)=>{var r=os();let o;var s=E(r);let p;var m=E(s),h=e=>{{let t=w(()=>g(C)===g(n).id);Qo(e,{get node(){return g(n).vertex.node},get open(){return g(t)},ontoggle:()=>le(g(n))})}},_=e=>{Io(e,{get name(){return g(n).vertex.name}})};i(m,e=>{g(n).vertex.kind===`component`?e(h):e(_,-1)}),M(s);var T=N(s,2),O=e=>{var n=as(),r=E(n);Fe(r,{children:(e,n)=>{d();var r=a();v(()=>u(r,l().map.restore)),t(e,r)},$$slots:{default:!0}}),M(n),t(e,n)},A=w(()=>F.has(g(n).id)&&g(n).vertex.kind===`service`);i(T,e=>{g(A)&&e(O)}),M(r),y(r,(e,t)=>bo?.(e,t),()=>({into:b,id:g(n).id})),y(r,(e,t)=>rs?.(e,t),()=>({into:S,of:g(n).id})),y(r,(e,t)=>fe?.(e,t),()=>({name:ho(g(n).id),classes:mo})),y(r,(e,t)=>yo?.(e,t),()=>e=>ue(g(n),e)),v((e,t,i)=>{te(r,1,ee([`absolute top-0 left-0 cursor-pointer`,g(C)===g(n).id?`z-0`:`z-20`])),D(r,`aria-label`,e),o=ne(r,``,o,t),p=ne(s,``,p,i)},[()=>io(g(n).vertex),()=>({translate:`${L(g(n).id).x??``}px ${L(g(n).id).y??``}px`,width:`${(g(C)===g(n).id?So.width:$.width)??``}px`,"view-transition-name":g(me)===g(n).id?po:void 0,"view-transition-class":g(me)===g(n).id?mo:void 0}),()=>({opacity:ao(g(n).vertex,c())&&se(g(n))&&!F.has(g(n).id)?1:Co})]),f(`mouseenter`,r,()=>x(k,F.has(g(n).id)?null:{of:`card`,id:g(n).id},!0)),f(`mouseleave`,r,()=>x(k,null)),t(e,r)});var m=N(p,2);let h;var _=E(m),T=e=>{Ae(e,{class:`bg-card`,get node(){return g(j).vertex.node},collapsible:!1})},O=e=>{Io(e,{get name(){return g(j).vertex.name}})};i(_,e=>{g(j).vertex.kind===`component`?e(T):e(O,-1)}),M(m),y(m,(e,t)=>bo?.(e,t),()=>({into:b,id:g(j).vertex.id})),y(m,(e,t)=>rs?.(e,t),()=>({into:S,of:g(j).vertex.id})),y(m,(e,t)=>is?.(e,t),()=>e=>x(k,e===null?null:{of:`row`,id:e},!0)),v(e=>h=ne(m,``,h,e),[()=>({translate:`${L(g(j).vertex.id).x??``}px ${L(g(j).vertex.id).y??``}px`,width:`${So.width??``}px`,"view-transition-name":s()===g(j).vertex.id?po:void 0,"view-transition-class":s()===g(j).vertex.id?mo:void 0})]),t(e,r)};i(ge,e=>{g(j)!==null&&e(ve)}),t(e,he),p(),h()}var ls=c(`<p class="text-muted-foreground absolute inset-x-0 top-4 text-center text-sm"> </p>`),us=c(`<!> <div class="absolute top-0 left-0 origin-top-left"><!></div>`,1),ds=c(`<div><!></div>`);function fs(n,a){r(a,!0);let o=()=>O(_e,`$dict`,s),[s,c]=T(),l=k(a,`focus`,3,null),d=ie(re(Ma)),h=ie(null),b=re({width:0,height:0});_(()=>S(l()));function S(e){g(h)?.reset()}function D(e){e.key===`Escape`&&l()!==null&&_o()}var P=ds();f(`keydown`,e,D);var ae=E(P);{let e=(e,n)=>{var r=w(()=>j(n?.(),2));let a=()=>g(r)[0],s=()=>g(r)[1],c=w(()=>Ya(a(),s()));var f=us(),p=I(f),h=e=>{var n=ls(),r=E(n,!0);M(n),v(()=>u(r,o().map.empty)),t(e,n)};i(p,e=>{g(c).links.length===0&&e(h)});var _=N(p,2);let y;var x=E(_),S=e=>{ns(e,{get graph(){return g(c)},get view(){return b}})},C=e=>{var n=A(),r=I(n);m(r,l,e=>{cs(e,{get graph(){return g(c)},get view(){return b},get id(){return l()}})}),t(e,n)};i(x,e=>{l()===null?e(S):e(C,-1)}),M(_),v(()=>y=ne(_,``,y,{translate:`${g(d).x??``}px ${g(d).y??``}px`,scale:g(d).k})),t(e,f)},n=w(()=>le(ge,Se));ue(ae,{get store(){return g(n)},awaited:e,$$slots:{awaited:!0}})}M(P),F(()=>C(P,`clientWidth`,e=>b.width=e)),F(()=>C(P,`clientHeight`,e=>b.height=e)),y(P,(e,t)=>Ga?.(e,t),()=>({onchange:e=>x(d,e,!0),onready:e=>x(h,e,!0)})),v(()=>te(P,1,ee([`bg-muted/30 relative touch-none overflow-hidden`,a.class]))),t(n,P),p(),c()}export{eo as n,fs as t};
@@ -1 +0,0 @@
1
- import{A as e,At as t,C as n,Ct as r,D as i,E as a,F as o,J as s,M as c,O as l,Ot as u,P as d,St as f,T as p,V as m,X as h,Y as g,_,_t as v,a as y,at as b,b as x,ct as S,d as C,dt as w,et as T,ft as E,h as D,i as O,j as k,k as A,kt as j,l as M,m as ee,mt as N,nt as P,o as F,p as te,rt as ne,s as I,st as L,tt as R,u as z,x as B,yt as V,z as H}from"./sTot5bBi.js";import"./iNotLC3U.js";import"./xihTtKlq.js";import{F as U,N as W,r as re,t as ie}from"./CBBq-xPv.js";import{$ as ae,A as G,C as oe,E as se,G as ce,H as le,J as ue,K as de,O as K,Q as q,T as fe,V as pe,W as me,Y as he,Z as J,_t as ge,b as _e,c as ve,dt as ye,et as be,f as xe,g as Se,ht as Ce,j as we,k as Y,m as Te,mt as Ee,nt as De,p as Oe,pt as ke,q as X,rt as Ae,st as Z,t as je,tt as Q,u as Me,w as Ne}from"./COupBNP3.js";function Pe(e){return e!==null&&!(e instanceof Error)}var Fe=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ie(e,t){let n=y(t,Fe),r=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`}]];U(e,F({name:`pause`},()=>n,{get iconNode(){return r}}))}function Le(e,t){return setTimeout(t,e)}var Re=1,ze=9,Be=11;function Ve(e){return ke(e)&&e.nodeType===Re&&typeof e.nodeName==`string`}function He(e){return ke(e)&&e.nodeType===ze}function Ue(e){return ke(e)&&e.constructor?.name===`VisualViewport`}function We(e){return ke(e)&&e.nodeType!==void 0}function Ge(e){return We(e)&&e.nodeType===Be&&`host`in e}function Ke(e,t){if(!e||!t||!Ve(e)||!Ve(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Ge(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function qe(e){return He(e)?e:Ue(e)?e.document:e?.ownerDocument??document}function Je(e){return Ge(e)?Je(e.host):He(e)?e.defaultView??window:Ve(e)?e.ownerDocument?.defaultView??window:window}function Ye(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Xe=class{element;#e=S(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return m(this.#e)}set root(e){b(this.#e,e)}constructor(e){this.element=typeof e==`function`?Z(e):e}getDocument=()=>qe(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Ye(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)},Ze=typeof document<`u`,Qe=$e();function $e(){return Ze&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function et(e){return e instanceof HTMLElement}function tt(e){return e instanceof Element||e instanceof SVGElement}var nt=me({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),$=new q(`Dialog.Root | AlertDialog.Root`),rt=class e{static create(t){let n=$.getOr(null);return $.set(new e(t,n))}opts;#e=L(null);get triggerNode(){return m(this.#e)}set triggerNode(e){b(this.#e,e,!0)}#t=L(null);get contentNode(){return m(this.#t)}set contentNode(e){b(this.#t,e,!0)}#n=L(null);get overlayNode(){return m(this.#n)}set overlayNode(e){b(this.#n,e,!0)}#r=L(null);get descriptionNode(){return m(this.#r)}set descriptionNode(e){b(this.#r,e,!0)}#i=L(void 0);get contentId(){return m(this.#i)}set contentId(e){b(this.#i,e,!0)}#a=L(void 0);get titleId(){return m(this.#a)}set titleId(e){b(this.#a,e,!0)}#o=L(void 0);get triggerId(){return m(this.#o)}set triggerId(e){b(this.#o,e,!0)}#s=L(void 0);get descriptionId(){return m(this.#s)}set descriptionId(e){b(this.#s,e,!0)}#c=L(null);get cancelNode(){return m(this.#c)}set cancelNode(e){b(this.#c,e,!0)}#l=L(0);get nestedOpenCount(){return m(this.#l)}set nestedOpenCount(e){b(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new we({ref:Z(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new we({ref:Z(()=>this.overlayNode),open:this.opts.open,enabled:!0}),J(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),he(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>nt.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=S(()=>({"data-state":ce(this.opts.open.current)}));get sharedProps(){return m(this.#u)}set sharedProps(e){b(this.#u,e)}},it=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.triggerNode=e,this.root.triggerId=e?.id}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleOpen())}#e=S(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":le(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.getBitsAttr(`trigger`)]:``,onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},at=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=X(this.opts.ref),J.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=S(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ot=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=X(this.opts.ref,e=>{this.root.descriptionNode=e}),J.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},st=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},ct=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.overlayNode=e)}#e=S(()=>({open:this.root.opts.open.current}));get snippetProps(){return m(this.#e)}set snippetProps(e){b(this.#e,e)}#t=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":pe(this.root.nestedOpenCount>0),"data-nested":pe(this.root.parent!==null),...de(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return m(this.#t)}set props(e){b(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},lt=class e{static create(t){return new e(t,$.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=X(this.opts.ref,e=>this.root.cancelNode=e),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=S(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`cancel`)]:``,onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,disabled:this.opts.disabled.current,...this.root.sharedProps,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function ut(n,i){r(i,!0);let a=O(i,`open`,15,!1),o=O(i,`onOpenChange`,3,G),s=O(i,`onOpenChangeComplete`,3,G);rt.create({variant:Z(()=>`alert-dialog`),open:Z(()=>a(),e=>{a(e),o()(e)}),onOpenChangeComplete:Z(()=>s())});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}var dt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),ft=c(`<div><!></div>`);function pt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`level`,3,2),u=y(i,dt),p=at.create({id:Z(()=>s()),level:Z(()=>l()),ref:Z(()=>c(),e=>c(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ft();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var mt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),ht=c(`<button><!></button>`);function gt(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,mt),p=lt.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=ht();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}function _t(n,r){var i=k(),a=R(i);p(a,()=>r.children,n=>{var i=k(),a=R(i);B(a,()=>r.children??t),e(n,i)}),e(n,i)}var vt=new q(`BitsConfig`);function yt(){let e=new bt(null,{});return vt.getOr(e).opts}var bt=class{opts;constructor(e,t){let n=xt(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function xt(e,t){return n=>Z(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function St(e,t){return n=>{let r=yt();return Z(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var Ct=St(e=>e.defaultPortalTo,`body`);function wt(n,o){r(o,!0);let s=Ct(()=>o.to),c=V(),l=S(u);function u(){if(!Ze||o.disabled)return null;let e=null;return e=typeof s.current==`string`?document.querySelector(s.current):s.current,e}let d;function p(){d&&=(A(d),null)}J([()=>m(l),()=>o.disabled],([e,t])=>{if(!e||t){p();return}return d=i(_t,{target:e,props:{children:o.children},context:c}),()=>{p()}});var h=k(),g=R(h),_=n=>{var r=k(),i=R(r);B(i,()=>o.children??t),e(n,r)};a(g,e=>{o.disabled&&e(_)}),e(n,h),f()}var Tt=class{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return H(e,this.eventName,e=>{t(e)},n)}};function Et(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Dt(e,t){return e===t||e.contains(t)}function Ot(e){return e?.ownerDocument??document}function kt(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var At=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],jt=At.join(`,`),Mt=typeof Element>`u`,Nt=Mt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pt=!Mt&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},Ft=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Ft(e.parentNode))},It=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},Lt=function(e,t,n){if(Ft(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(jt));return t&&Nt.call(e,jt)&&r.unshift(e),r=r.filter(n),r},Rt=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Ft(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Rt(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Nt.call(a,jt)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Ft(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Rt(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},zt=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},Bt=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||It(e))&&!zt(e)?0:e.tabIndex},Vt=function(e,t){var n=Bt(e);return n<0&&t&&!zt(e)?0:n},Ht=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ut=function(e){return e.tagName===`INPUT`},Wt=function(e){return Ut(e)&&e.type===`hidden`},Gt=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Kt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},qt=function(e){if(!e.name)return!0;var t=e.form||Pt(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Kt(r,e.form);return!i||i===e},Jt=function(e){return Ut(e)&&e.type===`radio`},Yt=function(e){return Jt(e)&&!qt(e)},Xt=function(e){var t=e&&Pt(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=Pt(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},Zt=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Qt=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=Nt.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(Nt.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=Pt(e);if(s&&!s.shadowRoot&&r(s)===!0)return Zt(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(Xt(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return Zt(e);return!1},$t=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return Nt.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},en=function(e,t){return!(t.disabled||Wt(t)||Qt(t,e)||Gt(t)||$t(t))},tn=function(e,t){return!(Yt(t)||Bt(t)<0||!en(e,t))},nn=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},rn=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Vt(a,i),s=i?rn(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Ht).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},an=function(e,t){return t||={},rn(t.getShadowRoot?Rt([e],t.includeContainer,{filter:tn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:nn}):Lt(e,t.includeContainer,tn.bind(null,t)))},on=function(e,t){return t||={},t.getShadowRoot?Rt([e],t.includeContainer,{filter:en.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Lt(e,t.includeContainer,en.bind(null,t))},sn=At.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),cn=function(e,t){if(t||={},!e)throw Error(`No node provided`);return Nt.call(e,sn)!==!1&&en(t,e)},ln=`data-context-menu-trigger`,un=`data-context-menu-content`;new q(`Menu.Root`),new q(`Menu.Root | Menu.Sub`),new q(`Menu.Content`),new q(`Menu.Group | Menu.RadioGroup`),new q(`Menu.RadioGroup`),new q(`Menu.CheckboxGroup`),new Tt(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),me({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]}),globalThis.bitsDismissableLayers??=new Map;var dn=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=!1;#a=void 0;#o;#s=G;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#o=e.onFocusOutside,h(()=>{this.#a=Ot(this.opts.ref.current)});let t=G,n=null,r=!1,i=()=>{n!=null&&(clearTimeout(n),n=null)},a=()=>{i(),this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),t()};J([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return i(),n=Le(1,()=>{n=null,!(r||!this.opts.ref.current)&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#l())}),a}),he(()=>{r=!0,i(),this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),t()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&ue(()=>{!this.opts.ref.current||this.#h(e.target)||e.target&&!this.#i&&this.#o.current?.(e)})};#l(){return De(H(this.#a,`pointerdown`,De(this.#f,this.#m),{capture:!0}),H(this.#a,`pointerdown`,De(this.#p,this.#d)),H(this.#a,`focusin`,this.#c))}#u=e=>{let t=e;t.defaultPrevented&&(t=hn(e)),this.#e.current(e)};#d=Et(e=>{if(!this.opts.ref.current){this.#s();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||mn(e,this.opts.ref.current);if(!this.#r||this.#_()||!t){this.#s();return}let n=e;if(n.defaultPrevented&&(n=hn(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`){this.#s();return}e.pointerType===`touch`?(this.#s(),this.#s=H(this.#a,`click`,this.#u,{once:!0})):this.#e.current(n)},10);#f=e=>{this.#n[e.type]=!0};#p=e=>{this.#n[e.type]=!1};#m=()=>{this.opts.ref.current&&(this.#r=pn(this.opts.ref.current))};#h=e=>this.opts.ref.current?Dt(this.opts.ref.current,e):!1;#g=Et(()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1},20);#_(){return Object.values(this.#n).some(Boolean)}#v=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#v,onblurcapture:this.#y}};function fn(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function pn(e){let t=[...globalThis.bitsDismissableLayers],n=fn(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function mn(e,t){let n=e.target;if(!tt(n))return!1;let r=!!n.closest(`[${ln}]`),i=!!t.closest(`[${un}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:Ot(n).documentElement.contains(n)&&!Dt(t,n)&&kt(e,t)}function hn(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function gn(n,i){r(i,!0);let a=O(i,`interactOutsideBehavior`,3,`close`),o=O(i,`onInteractOutside`,3,G),s=O(i,`onFocusOutside`,3,G),c=O(i,`isValidEvent`,3,()=>!1),l=dn.create({id:Z(()=>i.id),interactOutsideBehavior:Z(()=>a()),onInteractOutside:Z(()=>o()),enabled:Z(()=>i.enabled),onFocusOutside:Z(()=>s()),isValidEvent:Z(()=>c()),ref:i.ref});var u=k(),d=R(u);B(d,()=>i.children??t,()=>({props:l.props})),e(n,u),f()}globalThis.bitsEscapeLayers??=new Map;var _n=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Xe(this.opts.ref);let t=G;J(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>H(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!vn(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function vn(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function yn(n,i){r(i,!0);let a=O(i,`escapeKeydownBehavior`,3,`close`),o=O(i,`onEscapeKeydown`,3,G);_n.create({escapeKeydownBehavior:Z(()=>a()),onEscapeKeydown:Z(()=>o()),enabled:Z(()=>i.enabled),ref:i.ref});var s=k(),c=R(s);B(c,()=>i.children??t),e(n,s),f()}var bn=class e{static instance;#e=ye([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},xn=class e{#e=!1;#t=null;#n=bn.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;let e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#t.focus()})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(H(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=t.target;if(n){if(e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&cn(n))t.preventDefault(),n.focus();else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus()}}}},{capture:!0}),H(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus(),this.#n.setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?an(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?on(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return J([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),he(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function Sn(n,i){r(i,!0);let a=O(i,`enabled`,3,!1),o=O(i,`trapFocus`,3,!1),s=O(i,`loop`,3,!1),c=O(i,`onCloseAutoFocus`,3,G),l=O(i,`onOpenAutoFocus`,3,G),u=xn.use({enabled:Z(()=>a()),trap:Z(()=>o()),loop:s(),onCloseAutoFocus:Z(()=>c()),onOpenAutoFocus:Z(()=>l()),ref:i.ref});var d=k(),p=R(d);B(p,()=>i.focusScope??t,()=>({props:u.props})),e(n,d),f()}var Cn=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var wn=class e{static create(t){return new e(t)}opts;domContext;#e=G;#t=!1;#n=Cn;#r=Cn;constructor(e){this.opts=e,this.domContext=new Xe(e.ref);let t=G;J(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return De(H(this.domContext.getDocument(),`pointerdown`,this.#o),H(this.domContext.getDocument(),`pointerup`,Ae(this.#s,this.#a)))}#a=e=>{this.#r(e)};#o=e=>{if(!this.#t)return;let t=this.opts.ref.current,n=e.target;!et(t)||!et(n)||!On(this)||!Ke(t,n)||(this.#n(e),!e.defaultPrevented&&(this.#e=En(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=G}},Tn=e=>e.style.userSelect||e.style.webkitUserSelect;function En(e,t){let n=Tn(t),r=Tn(e);return Dn(t,`none`),Dn(e,`text`),()=>{Dn(t,n),Dn(e,r)}}function Dn(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function On(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function kn(n,i){r(i,!0);let a=O(i,`preventOverflowTextSelection`,3,!0),o=O(i,`onPointerDown`,3,G),s=O(i,`onPointerUp`,3,G);wn.create({id:Z(()=>i.id),onPointerDown:Z(()=>o()),onPointerUp:Z(()=>s()),enabled:Z(()=>i.enabled&&a()),ref:i.ref});var c=k(),l=R(c);B(l,()=>i.children??t),e(n,c),f()}globalThis.bitsIdCounter??={current:0};function An(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var jn=class{#e;#t=0;#n=L();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),b(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,m(this.#n)===void 0&&(this.#r=s(()=>{b(this.#n,this.#e(...e),!0)})),h(()=>()=>{this.#i()}),m(this.#n)}},Mn=new ae,Nn=L(null),Pn=null,Fn=null,In=!1,Ln=Z(()=>{for(let e of Mn.values())if(e)return!0;return!1}),Rn=null,zn=new jn(()=>{function e(){document.body.setAttribute(`style`,m(Nn)??``),document.body.style.removeProperty(`--scrollbar-width`),Qe&&Pn?.(),b(Nn,null)}function t(){Fn!==null&&(window.clearTimeout(Fn),Fn=null)}function n(e,n){t(),In=!0,Rn=Date.now();let r=Rn,i=()=>{Fn=null,Rn===r&&(Vn(Mn)?In=!1:(In=!1,n()))},a=e===null?24:e;Fn=window.setTimeout(i,a)}function r(){m(Nn)===null&&Mn.size===0&&!In&&b(Nn,document.body.getAttribute(`style`),!0)}return J(()=>Ln.current,()=>{if(!Ln.current)return;r(),In=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,Qe&&(Pn=H(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),ue(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),he(()=>()=>{Pn?.()}),{get lockMap(){return Mn},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),Bn=class{#e=An();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=zn.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=Z(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),he(()=>{if(this.#r.lockMap.delete(this.#e),Vn(this.#r.lockMap))return;let e=this.#n();this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle()})}))}};function Vn(e){for(let[t,n]of e)if(n)return!0;return!1}function Hn(e,t){r(t,!0);let n=O(t,`preventScroll`,3,!0),i=O(t,`restoreScrollDelay`,3,null);n()&&new Bn(n(),()=>i()),f()}var Un=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`interactOutsideBehavior`,`onCloseAutoFocus`,`onEscapeKeydown`,`onOpenAutoFocus`,`onInteractOutside`,`preventScroll`,`trapFocus`,`restoreScrollDelay`]),Wn=c(`<!> <!>`,1),Gn=c(`<!> <div><!></div>`,1);function Kn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`forceMount`,3,!1),u=O(i,`interactOutsideBehavior`,3,`ignore`),p=O(i,`onCloseAutoFocus`,3,G),h=O(i,`onEscapeKeydown`,3,G),g=O(i,`onOpenAutoFocus`,3,G),_=O(i,`onInteractOutside`,3,G),v=O(i,`preventScroll`,3,!0),b=O(i,`trapFocus`,3,!0),x=O(i,`restoreScrollDelay`,3,null),w=y(i,Un),E=st.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),D=S(()=>Q(w,E.props));var A=k(),M=R(A),ee=n=>{Sn(n,{get ref(){return E.opts.ref},loop:!0,get trapFocus(){return b()},get enabled(){return E.root.opts.open.current},get onCloseAutoFocus(){return p()},onOpenAutoFocus:e=>{g()(e),!e.defaultPrevented&&(e.preventDefault(),Le(0,()=>E.opts.ref.current?.focus()))},focusScope:(n,r)=>{let o=()=>(r?.()).props;yn(n,F(()=>m(D),{get enabled(){return E.root.opts.open.current},get ref(){return E.opts.ref},onEscapeKeydown:e=>{h()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{gn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},get interactOutsideBehavior(){return u()},onInteractOutside:e=>{_()(e),!e.defaultPrevented&&E.root.handleClose()},children:(n,r)=>{kn(n,F(()=>m(D),{get ref(){return E.opts.ref},get enabled(){return E.root.opts.open.current},children:(n,r)=>{var s=k(),c=R(s),l=t=>{var n=Wn(),r=R(n),s=e=>{Hn(e,{get preventScroll(){return v()},get restoreScrollDelay(){return x()}})};a(r,e=>{E.root.opts.open.current&&e(s)});var c=P(r,2);{let e=S(()=>({props:Q(m(D),o()),...E.snippetProps}));B(c,()=>i.child,()=>m(e))}e(t,n)},u=n=>{var r=Gn(),a=R(r);Hn(a,{get preventScroll(){return v()}});var s=P(a,2);C(s,e=>({...e}),[()=>Q(m(D),o())]);var c=T(s);B(c,()=>i.children??t),j(s),e(n,r)};a(c,e=>{i.child?e(l):e(u,-1)}),e(n,s)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};a(M,e=>{(E.shouldRender||l())&&e(ee)}),e(n,A),f()}var qn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),Jn=c(`<div><!></div>`);function Yn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`forceMount`,3,!1),l=O(i,`ref`,15,null),u=y(i,qn),p=ct.create({id:Z(()=>s()),ref:Z(()=>l(),e=>l(e))}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=n=>{var r=k(),o=R(r),s=t=>{var n=k(),r=R(n);{let e=S(()=>({props:Q(m(h)),...p.snippetProps}));B(r,()=>i.child,()=>m(e))}e(t,n)},c=n=>{var r=Jn();C(r,e=>({...e}),[()=>Q(m(h))]);var a=T(r);B(a,()=>i.children??t,()=>p.snippetProps),j(r),e(n,r)};a(o,e=>{i.child?e(s):e(c,-1)}),e(n,r)};a(_,e=>{(p.shouldRender||c())&&e(v)}),e(n,g),f()}var Xn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),Zn=c(`<button><!></button>`);function Qn(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=O(i,`disabled`,3,!1),u=y(i,Xn),p=it.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e)),disabled:Z(()=>!!l())}),h=S(()=>Q(u,p.props));var g=k(),_=R(g),v=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(h)})),e(t,n)},b=n=>{var r=Zn();C(r,()=>({...m(h)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(_,e=>{i.child?e(v):e(b,-1)}),e(n,g),f()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`]),er=c(`<div><!></div>`);function tr(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,$n),u=ot.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=er();C(r,()=>({...m(p)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var nr=me({component:`label`,parts:[`root`]}),rr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=S(()=>({id:this.opts.id.current,[nr.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}},ir=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`for`]),ar=c(`<label><!></label>`);function or(n,i){let o=d();r(i,!0);let s=O(i,`id`,19,()=>Y(o)),c=O(i,`ref`,15,null),l=y(i,ir),u=rr.create({id:Z(()=>s()),ref:Z(()=>c(),e=>c(e))}),p=S(()=>Q(l,u.props,{for:i.for}));var h=k(),g=R(h),_=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(p)})),e(t,n)},v=n=>{var r=ar();C(r,()=>({...m(p),for:i.for}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(g,e=>{i.child?e(_):e(v,-1)}),e(n,h),f()}var sr=me({component:`progress`,parts:[`root`]}),cr=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=X(this.opts.ref)}#e=S(()=>({role:`progressbar`,value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":lr(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?``:void 0,[sr.root]:``,...this.attachment}));get props(){return m(this.#e)}set props(e){b(this.#e,e)}};function lr(e,t){return e===null?`indeterminate`:e===t?`loaded`:`loading`}var ur=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`value`,`max`,`min`,`id`,`ref`]),dr=c(`<div><!></div>`);function fr(n,i){let o=d();r(i,!0);let s=O(i,`value`,3,0),c=O(i,`max`,3,100),l=O(i,`min`,3,0),u=O(i,`id`,19,()=>Y(o)),p=O(i,`ref`,15,null),h=y(i,ur),g=cr.create({value:Z(()=>s()),max:Z(()=>c()),min:Z(()=>l()),id:Z(()=>u()),ref:Z(()=>p(),e=>p(e))}),_=S(()=>Q(h,g.props));var v=k(),b=R(v),x=t=>{var n=k(),r=R(n);B(r,()=>i.child,()=>({props:m(_)})),e(t,n)},w=n=>{var r=dr();C(r,()=>({...m(_)}));var a=T(r);B(a,()=>i.children??t),j(r),e(n,r)};a(b,e=>{i.child?e(x):e(w,-1)}),e(n,v),f()}var pr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function mr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,pr);var o=k(),s=R(o);{let e=S(()=>K(`gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed`,n.class));x(s,()=>or,(t,n)=>{n(t,F({"data-slot":`label`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var hr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),gr=c(`<input/>`);function _r(t,n){r(n,!0);let i=O(n,`ref`,15,null),o=O(n,`value`,15),s=O(n,`files`,15),c=O(n,`data-slot`,3,`input`),l=y(n,hr);var u=k(),d=R(u),p=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:`file`,...l}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),M(r,s),z(r,o),e(t,r)},m=t=>{var r=gr();C(r,e=>({"data-slot":c(),class:e,type:n.type,...l}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),I(r,e=>i(e),()=>i()),z(r,o),e(t,r)};a(d,e=>{n.type===`file`?e(p):e(m,-1)}),e(t,u),f()}var vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`size`]);function yr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`variant`,3,`outline`),o=O(n,`size`,3,`default`),s=y(n,vr);var c=k(),l=R(c);{let e=S(()=>K(se({variant:a(),size:o()}),`cn-alert-dialog-cancel`,n.class));x(l,()=>gt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-cancel`,get class(){return m(e)}},()=>s,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,c),f()}var br=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function xr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,br);var o=k(),s=R(o);{let e=S(()=>K(`bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50`,n.class));x(s,()=>Yn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-overlay`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Sr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Cr(t,n){let r=y(n,Sr);var i=k(),a=R(i);x(a,()=>wt,(e,t)=>{t(e,F(()=>r))}),e(t,i)}var wr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`size`,`portalProps`]),Tr=c(`<!> <!>`,1);function Er(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`size`,3,`default`),o=y(n,wr);Cr(t,F(()=>n.portalProps,{children:(t,r)=>{var s=Tr(),c=R(s);xr(c,{});var l=P(c,2);{let e=S(()=>K(`gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none`,n.class));x(l,()=>Kn,(t,n)=>{n(t,F({"data-slot":`alert-dialog-content`,get"data-size"(){return a()},get class(){return m(e)}},()=>o,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,s)},$$slots:{default:!0}})),f()}var Dr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Or(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Dr);var o=k(),s=R(o);{let e=S(()=>K(`text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,n.class));x(s,()=>tr,(t,n)=>{n(t,F({"data-slot":`alert-dialog-description`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var kr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ar=c(`<div><!></div>`);function jr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,kr);var s=Ar();C(s,e=>({"data-slot":`alert-dialog-footer`,class:e,...o}),[()=>K(`-mx-4 -mb-4 rounded-b-xl border-t bg-muted/50 p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nr=c(`<div><!></div>`);function Pr(n,i){r(i,!0);let a=O(i,`ref`,15,null),o=y(i,Mr);var s=Nr();C(s,e=>({"data-slot":`alert-dialog-header`,class:e,...o}),[()=>K(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,i.class)]);var c=T(s);B(c,()=>i.children??t),j(s),I(s,e=>a(e),()=>a()),e(n,s),f()}var Fr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Ir(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Fr);var o=k(),s=R(o);{let e=S(()=>K(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,n.class));x(s,()=>pt,(t,n)=>{n(t,F({"data-slot":`alert-dialog-title`,get class(){return m(e)}},()=>a,{get ref(){return i()},set ref(e){i(e)}}))})}e(t,o),f()}var Lr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function Rr(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=y(n,Lr);var o=k(),s=R(o);x(s,()=>Qn,(e,t)=>{t(e,F({"data-slot":`alert-dialog-trigger`},()=>a,{get ref(){return i()},set ref(e){i(e)}}))}),e(t,o),f()}var zr=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function Br(t,n){r(n,!0);let i=O(n,`open`,15,!1),a=y(n,zr);var o=k(),s=R(o);x(s,()=>ut,(e,t)=>{t(e,F(()=>a,{get open(){return i()},set open(e){i(e)}}))}),e(t,o),f()}var Vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`max`,`value`]),Hr=c(`<div data-slot="progress-indicator" class="bg-primary size-full flex-1 transition-all"></div>`);function Ur(t,n){r(n,!0);let i=O(n,`ref`,15,null),a=O(n,`max`,3,100),o=y(n,Vr);var s=k(),c=R(s);{let t=S(()=>K(`h-1 rounded-full bg-muted relative flex w-full items-center overflow-x-hidden`,n.class));x(c,()=>fr,(r,s)=>{s(r,F({"data-slot":`progress`,get class(){return m(t)},get value(){return n.value},get max(){return a()}},()=>o,{get ref(){return i()},set ref(e){i(e)},children:(t,r)=>{var i=Hr();g(()=>te(i,`transform: translateX(-${100-100*(n.value??0)/(a()??1)}%)`)),e(t,i)},$$slots:{default:!0}}))})}e(t,s),f()}var Wr=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`duration`,`label`,`variant`,`children`,`position`,`align`,`portal`,`onclick`,`onpress`,`class`,`message`]),Gr=c(`<div><div class="text-xs text-muted-foreground"><!></div> <!></div>`),Kr=c(`<!> <!>`,1);function qr(n,i){r(i,!0);let s=()=>E(m(U),`$countdown`,c),[c,u]=w(),d=O(i,`name`,3,`hold`),p=O(i,`duration`,3,800),x=O(i,`variant`,3,`ghost`),C=O(i,`position`,3,`left`),A=O(i,`align`,3,`center`),M=O(i,`portal`,3,!0),I=y(i,Wr),z=L(!1),V=L(!1),H=L(null),U=L(ne(v(p()))),W=S(()=>Math.round((1-s()/p())*100));h(()=>{s()===0&&se()});function ie(e){ce(e),e.altKey?se(!0):G()}function ae(e){e.key===` `&&G()}function G(){m(z)||(i.onpress?.(),b(z,!0),b(V,!0),N(b(U,re(p(),60),!0),`$countdown`,c),m(H)&&clearTimeout(m(H)))}function oe(){m(z)&&(b(H,setTimeout(()=>{b(V,!1)},m(W)>20?200:1e3),!0),b(z,!1),N(b(U,v(p()),!0),`$countdown`,c))}function se(e=!1){!m(z)&&!e||(i.onclick?.(),b(z,!1),b(H,setTimeout(()=>{b(V,!1),N(b(U,v(p()),!0),`$countdown`,c)},300),!0))}function ce(e){e.preventDefault(),e.stopPropagation()}function le(e,t){if(t)return document.body.appendChild(e),{destroy:()=>e.remove()}}var ue=Kr(),de=R(ue);{let n=S(()=>K(`select-none`,i.class)),r=S(()=>`anchor-name: --${d()};`);fe(de,F({get variant(){return x()}},()=>I,{get class(){return m(n)},onpointerdown:ie,onkeydown:ae,oncontextmenu:ce,onpointerup:oe,onpointerleave:oe,onkeyup:oe,get style(){return m(r)},children:(n,r)=>{var a=k(),o=R(a);B(o,()=>i.children??t),e(n,a)},$$slots:{default:!0}}))}var q=P(de,2),pe=t=>{var n=Gr(),r=T(n),s=T(r),c=t=>{var n=k(),r=R(n);B(r,()=>i.message),e(t,n)},u=t=>{var n=o();g(()=>l(n,i.label)),e(t,n)};a(s,e=>{i.message?e(c):e(u,-1)}),j(r),Ur(P(r,2),{get value(){return m(W)},class:`h-1 [&_div[data-slot=progress-indicator]]:bg-destructive/90 [&_div[data-slot=progress-indicator]]:transition-none`}),j(n),_(n,(e,t)=>le?.(e,t),M),g(e=>{ee(n,1,e),te(n,`position-anchor: --${d()}; position-area: ${C()} ${A()};`)},[()=>D(K(`fixed z-1002 w-fit min-w-26 transition-all ease-in-out space-y-1`,`bg-background/85 p-2 pt-1 rounded-md`,`starting:scale-0`))]),e(t,n)};a(q,e=>{m(V)&&e(pe)}),e(n,ue),f(),u()}var Jr=7e3,Yr=c(`<!> `,1),Xr=c(`<!> <!>`,1),Zr=c(`<p id="introspection-halt-error" class="text-destructive text-sm"> </p>`),Qr=c(` <!>`,1),$r=c(`<!> <div class="grid grid-cols-2 gap-4"><div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-hint"> </p></div> <div class="flex flex-col gap-1.5"><!> <!> <p id="introspection-halt-quiescence-hint"> </p></div></div> <!> <!>`,1);function ei(t,n){r(n,!0);let i=()=>E(Ce,`$configuration`,c),s=()=>E(ie,`$dict`,c),[c,d]=w(),p=S(()=>Pe(i())?i().halt??null:null),h=L(!1),_=L(ne({})),v=L(null),y=L(!1),C=L(!1),O=null,A=S(()=>m(_).duration??(m(p)===null?void 0:ae(600,m(p).duration))),M=S(()=>m(_).quiescence??(m(p)===null?void 0:ae(60,m(p).quiescence))),N=S(()=>m(p)!==null&&re(m(A),m(p).duration)),F=S(()=>m(p)!==null&&re(m(M),m(p).quiescence)),te=S(()=>m(N)&&m(F)),I=S(()=>m(v)!==null);function z(e){U(),b(C,!1),b(_,{},!0)}function B(){!m(te)||m(I)||(b(C,!1),b(v,9,!0),O=setInterval(V,1e3))}function V(){m(v)!==null&&(b(v,m(v)-1),!(m(v)>0)&&(W(),b(y,!0),H()))}async function H(){let e=await Ee(m(A),m(M));b(y,!1),b(C,e instanceof Error),m(C)?U():b(h,!1)}function U(){W(),b(v,null),b(y,!1)}function W(){O!==null&&clearInterval(O),O=null}function re(e,[t,n]){return e!==void 0&&Number.isInteger(e)&&e>=t&&e<=n}function ae(e,[t,n]){return Math.min(n,Math.max(t,e))}var G=k(),oe=R(G),ce=t=>{var n=k(),r=R(n);x(r,()=>Br,(t,n)=>{n(t,{onOpenChange:z,get open(){return m(h)},set open(e){b(h,e,!0)},children:(t,n)=>{var r=Xr(),i=R(r);{let t=S(()=>[se({variant:`ghost`}),`text-destructive hover:text-destructive`]);x(i,()=>Rr,(n,r)=>{r(n,{id:`introspection-halt-button`,get class(){return m(t)},children:(t,n)=>{var r=Yr(),i=R(r);Ie(i,{});var a=P(i);g(()=>l(a,` ${s().nav.halt??``}`)),e(t,r)},$$slots:{default:!0}})})}var c=P(i,2);x(c,()=>Er,(t,n)=>{n(t,{children:(t,n)=>{var r=$r(),i=R(r);x(i,()=>Pr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r);x(i,()=>Ir,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.title)),e(t,r)},$$slots:{default:!0}})});var a=P(i,2);x(a,()=>Or,(t,n)=>{n(t,{children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.description)),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})});var c=P(i,2),d=T(c),f=T(d);mr(f,{for:`introspection-halt-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.interval)),e(t,r)},$$slots:{default:!0}});var h=P(f,2),b=()=>m(A),w=e=>m(_).duration=e;{let e=S(()=>!m(N));_r(h,{id:`introspection-halt-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).duration[0]},get max(){return m(p).duration[1]},step:`1`,get disabled(){return m(I)},get value(){return b()},set value(e){w(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-hint`})}var E=P(h,2),O=T(E,!0);j(E),j(d);var ne=P(d,2),L=T(ne);mr(L,{for:`introspection-halt-quiescence-input`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.quiescence)),e(t,r)},$$slots:{default:!0}});var z=P(L,2),V=()=>m(M),H=e=>m(_).quiescence=e;{let e=S(()=>!m(F));_r(z,{id:`introspection-halt-quiescence-input`,type:`number`,inputmode:`numeric`,get min(){return m(p).quiescence[0]},get max(){return m(p).quiescence[1]},step:`1`,get disabled(){return m(I)},get value(){return V()},set value(e){H(e)},get"aria-invalid"(){return m(e)},"aria-describedby":`introspection-halt-quiescence-hint`})}var W=P(z,2),re=T(W,!0);j(W),j(ne),j(c);var ie=P(c,2),ae=t=>{var n=Zr(),r=T(n,!0);j(n),g(()=>l(r,s().halt.failed)),e(t,n)};a(ie,e=>{m(C)&&e(ae)});var G=P(ie,2);x(G,()=>jr,(t,n)=>{n(t,{children:(t,n)=>{var r=Xr(),i=R(r),c=t=>{fe(t,{id:`introspection-halt-cancel-button`,variant:`outline`,get disabled(){return m(y)},onclick:U,children:(t,n)=>{u();var r=Qr(),i=R(r),a=P(i);Ne(a,{id:`introspection-halt-countdown`,variant:`destructive`,class:`tabular-nums`,children:(t,n)=>{u();var r=o();g(()=>l(r,m(v))),e(t,r)},$$slots:{default:!0}}),g(()=>l(i,`${s().halt.cancel??``} `)),e(t,r)},$$slots:{default:!0}})},d=t=>{var n=k(),r=R(n);x(r,()=>yr,(t,n)=>{n(t,{id:`introspection-halt-cancel-button`,children:(t,n)=>{u();var r=o();g(()=>l(r,s().halt.cancel)),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(i,e=>{m(I)?e(c):e(d,-1)});var f=P(i,2);{let t=S(()=>!m(te)||m(I));qr(f,{id:`introspection-halt-confirm-button`,variant:`destructive`,portal:!1,position:`top`,get duration(){return Jr},get label(){return s().halt.hold},get disabled(){return m(t)},onclick:B,children:(t,n)=>{u();var r=o();g(()=>l(r,s().nav.halt)),e(t,r)},$$slots:{default:!0}})}e(t,r)},$$slots:{default:!0}})}),g((e,t)=>{ee(E,1,D([`text-xs`,m(N)?`text-muted-foreground`:`text-destructive`])),l(O,e),ee(W,1,D([`text-xs`,m(F)?`text-muted-foreground`:`text-destructive`])),l(re,t)},[()=>s().halt.bounds(m(p).duration[0],m(p).duration[1]),()=>s().halt.bounds(m(p).quiescence[0],m(p).quiescence[1])]),e(t,r)},$$slots:{default:!0}})}),e(t,r)},$$slots:{default:!0}})}),e(t,n)};a(oe,e=>{m(p)!==null&&e(ce)}),e(t,G),f(),d()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),ni=c(`<p class="text-muted-foreground py-20 text-center"> </p>`),ri=c(`<section class="flex flex-col gap-2"><div class="text-muted-foreground flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div> <!></section>`),ii=c(`<div></div>`);function ai(t,i){r(i,!0);let o=()=>E(ge,`$nodes`,u),s=()=>E(Oe,`$query`,u),c=()=>E(ve,`$dict`,u),[u,d]=w(),p=y(i,ti),_=new be,v=S(()=>Pe(o())?o():[]),b=S(()=>m(v).map(e=>({node:e,rank:Te(e,s())})).filter(e=>e.rank>0).sort(D));h(()=>{let e=m(b).length===1?Me(m(b)[0].node):null;return xe.set(e===null?null:()=>_.add(e)),()=>xe.set(null)});function D(e,t){return t.rank-e.rank||e.node.namespace.localeCompare(t.node.namespace)||e.node.component.localeCompare(t.node.component)}function O(e){return[{id:`user`,label:c().space.user,of:e.filter(e=>!Se(e.node))},{id:`system`,label:c().space.system,of:e.filter(e=>Se(e.node))}].filter(e=>e.of.length>0)}W(t,{get store(){return ge},awaited:t=>{var r=k(),o=R(r),s=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.empty)),e(t,n)},u=t=>{var n=ni(),r=T(n,!0);j(n),g(()=>l(r,c().nodes.nomatch)),e(t,n)},d=t=>{var r=ii();C(r,()=>({class:[`flex flex-col gap-6`,i.class],...p})),n(r,21,()=>O(m(b)),e=>e.id,(t,r)=>{var i=ri(),a=T(i),o=T(a),s=T(o,!0);j(o);var c=P(o,2);oe(c,{class:`flex-1`}),j(a);var u=P(a,2);x(u,()=>_e,(t,i)=>{i(t,{class:`gap-2`,children:(t,i)=>{var a=k(),o=R(a);n(o,17,()=>m(r).of,e=>e.node.id,(e,t)=>{let n=S(()=>Me(m(t).node));var r=()=>_.has(m(n)),i=e=>e?_.add(m(n)):_.delete(m(n));je(e,{get node(){return m(t).node},get open(){return r()},set open(e){i(e)}})}),e(t,a)},$$slots:{default:!0}})}),j(i),g(()=>l(s,m(r).label)),e(t,i)}),j(r),e(t,r)};a(o,e=>{m(v).length===0?e(s):m(b).length===0?e(u,1):e(d,-1)}),e(t,r)},$$slots:{awaited:!0}}),f(),d()}export{Xe as a,et as i,ei as n,Je as o,_r as r,ai as t};