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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/package.json +5 -5
  2. package/ui/dist/_app/env.js +1 -1
  3. package/ui/dist/_app/immutable/chunks/BD1YlRW0.js +1 -0
  4. package/ui/dist/_app/immutable/chunks/BGFfxzkw.js +1 -0
  5. package/ui/dist/_app/immutable/chunks/BOAbibaf.js +6 -0
  6. package/ui/dist/_app/immutable/chunks/BUuXt4am.js +2 -0
  7. package/ui/dist/_app/immutable/chunks/B__jIxS9.js +1 -0
  8. package/ui/dist/_app/immutable/chunks/CLKsegBr.js +3 -0
  9. package/ui/dist/_app/immutable/chunks/CRzLMJPS.js +1 -0
  10. package/ui/dist/_app/immutable/chunks/D71VbAAP.js +2 -0
  11. package/ui/dist/_app/immutable/chunks/DEufyArO.js +6 -0
  12. package/ui/dist/_app/immutable/chunks/Dj16C-qO.js +1 -0
  13. package/ui/dist/_app/immutable/chunks/MxlBtjyK.js +1 -0
  14. package/ui/dist/_app/immutable/chunks/T6aDAu0j.js +1 -0
  15. package/ui/dist/_app/immutable/chunks/XKyaHtl9.js +1 -0
  16. package/ui/dist/_app/immutable/entry/app.DA9iv2wV.js +2 -0
  17. package/ui/dist/_app/immutable/entry/payload.DSmR2FwN.js +1 -0
  18. package/ui/dist/_app/immutable/entry/start.9DaaOudW.js +2 -0
  19. package/ui/dist/_app/immutable/nodes/0.NKaa8xm4.js +1 -0
  20. package/ui/dist/_app/immutable/nodes/1.B1TN5dxr.js +1 -0
  21. package/ui/dist/_app/immutable/nodes/2.4yW5OIys.js +8 -0
  22. package/ui/dist/_app/immutable/nodes/3.BvU_uyAh.js +1 -0
  23. package/ui/dist/_app/immutable/nodes/4.Cqv8RS9x.js +1 -0
  24. package/ui/dist/_app/immutable/nodes/5.BIAQYZF6.js +1 -0
  25. package/ui/dist/_app/version.json +1 -1
  26. package/ui/dist/index.html +18 -16
  27. package/ui/dist/_app/immutable/chunks/BKLS6E7N.js +0 -1
  28. package/ui/dist/_app/immutable/chunks/CBWKRJPw.js +0 -1
  29. package/ui/dist/_app/immutable/chunks/CReGULOR.js +0 -2
  30. package/ui/dist/_app/immutable/chunks/CjDdIwEP.js +0 -1
  31. package/ui/dist/_app/immutable/chunks/CvpzImRs.js +0 -6
  32. package/ui/dist/_app/immutable/chunks/DB6FDyN4.js +0 -1
  33. package/ui/dist/_app/immutable/chunks/Djzgvszh.js +0 -6
  34. package/ui/dist/_app/immutable/chunks/Dz3pFDN9.js +0 -3
  35. package/ui/dist/_app/immutable/chunks/QWn5Fu7g.js +0 -1
  36. package/ui/dist/_app/immutable/chunks/S1izXW26.js +0 -1
  37. package/ui/dist/_app/immutable/chunks/gDwfFIiF.js +0 -1
  38. package/ui/dist/_app/immutable/chunks/xihTtKlq.js +0 -1
  39. package/ui/dist/_app/immutable/entry/app.Sb72KUFn.js +0 -2
  40. package/ui/dist/_app/immutable/entry/start.q7yYuVLR.js +0 -1
  41. package/ui/dist/_app/immutable/nodes/0.v-sbbV7A.js +0 -1
  42. package/ui/dist/_app/immutable/nodes/1.azM-QPvN.js +0 -1
  43. package/ui/dist/_app/immutable/nodes/2.BllAis6e.js +0 -8
  44. package/ui/dist/_app/immutable/nodes/3.BIIuP24J.js +0 -1
  45. package/ui/dist/_app/immutable/nodes/4.x4jc9hZa.js +0 -1
  46. package/ui/dist/_app/immutable/nodes/5.BA7zeznN.js +0 -1
@@ -0,0 +1,8 @@
1
+ import{t as e}from"../chunks/XKyaHtl9.js";import{A as t,B as n,C as r,D as i,Et as a,G as o,I as s,L as c,N as l,R as u,S as d,T as f,Tt as p,V as m,W as h,_ as g,_t as _,a as v,bt as y,dt as b,et as x,ft as S,g as C,gt as w,ht as T,i as E,jt as D,k as O,l as k,lt as A,m as j,mt as M,n as N,o as P,p as F,q as I,r as L,rt as R,s as ee,t as z,tt as B,vt as V,w as te,xt as H,yt as ne,z as re}from"../chunks/CLKsegBr.js";import{A as ie,D as ae,F as U,M as oe,O as se,T as ce,_ as le,a as ue,b as de,d as fe,f as pe,g as me,h as he,j as ge,m as _e,n as ve,o as ye,p as be,t as xe,u as Se,v as Ce,w as we,y as Te}from"../chunks/BOAbibaf.js";import{a as Ee,i as De,n as Oe,o as ke,r as Ae}from"../chunks/BD1YlRW0.js";import{a as je,t as Me}from"../chunks/Dj16C-qO.js";import{n as Ne}from"../chunks/BUuXt4am.js";import"../chunks/MxlBtjyK.js";import{t as Pe}from"../chunks/B__jIxS9.js";import{$ as Fe,A as Ie,B as Le,F as Re,H as ze,M as Be,N as Ve,P as He,Q as Ue,R as We,U as Ge,V as Ke,W as qe,X as Je,Z as Ye,_t as W,a as Xe,at as Ze,ct as Qe,dt as $e,f as et,ft as tt,gt as nt,i as rt,it,k as G,lt as at,mt as K,ot,p as st,q,r as ct,st as J,tt as Y,ut as lt,z as ut}from"../chunks/DEufyArO.js";import"../chunks/T6aDAu0j.js";function dt(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 ft=new Set([`$$slots`,`$$events`,`$$legacy`]);function pt(e,t){let n=N(t,ft),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`}]];U(e,L({name:`list`},()=>n,{get iconNode(){return r}}))}var mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function ht(e,t){let n=N(t,mt),r=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]];U(e,L({name:`log-out`},()=>n,{get iconNode(){return r}}))}var gt=new Set([`$$slots`,`$$events`,`$$legacy`]);function _t(e,t){let n=N(t,gt),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];U(e,L({name:`search`},()=>n,{get iconNode(){return r}}))}var vt=new Set([`$$slots`,`$$events`,`$$legacy`]);function yt(e,t){let n=N(t,vt),r=[[`path`,{d:`m10.586 5.414-5.172 5.172`}],[`path`,{d:`m18.586 13.414-5.172 5.172`}],[`path`,{d:`M6 12h12`}],[`circle`,{cx:`12`,cy:`20`,r:`2`}],[`circle`,{cx:`12`,cy:`4`,r:`2`}],[`circle`,{cx:`20`,cy:`12`,r:`2`}],[`circle`,{cx:`4`,cy:`12`,r:`2`}]];U(e,L({name:`waypoints`},()=>n,{get iconNode(){return r}}))}function X(e){let t=b(ne(e));return{[it]:!0,[lt]:!0,get current(){return R(t)},set current(e){A(t,e,!0)}}}X.from=ot,X.with=J,X.flatten=Ze,X.readonly=tt,X.isBox=Qe,X.isWritableBox=at;function bt(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var xt=[Be,Le,We],St=[Re,ut,`End`];[...xt,...St];function Ct(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Ve:He,vertical:Be}[t]}function wt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?He:Ve,vertical:Re}[t]}function Tt(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:Ct(e,t),prevKey:wt(e,t)}}var Et=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}=Tt(bt(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&&Ae(t)&&t.focus()}},Dt=18,Ot=40,kt=`${Ot}px`,At=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function jt({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=b(!1),o=b(!1),s=b(!1);function c(){let e=n.current;return e!==`none`&&e===`increase-width`&&R(a)&&R(o)}function l(){let r=e.current,o=t.current;if(!r||!o||R(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-Dt,f=u;(i.querySelectorAll(At).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(A(a,!0),A(s,!0))}return B(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=Ee(t).innerWidth-t.getBoundingClientRect().right;A(o,e>=Ot)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),B(()=>{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(()=>{A(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(u)}}),{get hasPwmBadge(){return R(a)},get willPushPwmBadge(){return c()},PWM_BADGE_SPACE_WIDTH:kt}}var Mt=`^\\d+$`,Nt=qe({component:`pin-input`,parts:[`root`,`cell`]}),Pt=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],Ft=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=b(!1);#t=$e(!1);#n=b(null);#r=b(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=b(ne({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 De(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=jt({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),O(()=>{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),R(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=o(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],()=>{Lt(()=>{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&&(A(this.#n,t,!0),A(this.#r,n,!0),R(this.#o).prev=[t,n,r])},this.domContext)}),B(()=>{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;Pt.includes(t)||e.ctrlKey||e.metaKey||t&&R(this.#a)&&!R(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,[Nt.root]:``,style:R(this.#l),...this.attachment}));get rootProps(){return R(this.#u)}set rootProps(e){A(this.#u,e)}#d=S(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return R(this.#d)}set inputWrapperProps(e){A(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;`;Rt(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),Rt(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),Rt(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),Rt(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; } }`),Rt(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){A(this.#n,null),A(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=R(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;A(this.#n,d,!0),A(this.#r,f,!0),R(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);t.length>0&&R(this.#a)&&!R(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),A(this.#n,e,!0),A(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&&R(this.#a)&&!R(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),A(this.#n,s,!0),A(this.#r,c,!0)};onmouseover=e=>{A(this.#e,!0)};onmouseleave=e=>{A(this.#e,!1)};onblur=e=>{R(this.#o).willSyntheticBlur?R(this.#o).willSyntheticBlur=!1:this.#t.current=!1};#h=S(()=>({id:this.opts.inputId.current,style:R(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":R(this.#n),"data-pin-input-input-mse":R(this.#r),inputmode:this.opts.inputmode.current,pattern:R(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 R(this.#h)}set inputProps(e){A(this.#h,e)}#g=S(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&R(this.#n)!==null&&R(this.#r)!==null&&(R(this.#n)===R(this.#r)&&t===R(this.#n)||t>=R(this.#n)&&t<R(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:R(this.#g),isFocused:this.#t.current,isHovering:R(this.#e)}));get snippetProps(){return R(this.#_)}set snippetProps(e){A(this.#_,e)}},It=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,[Nt.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return R(this.#e)}set props(e){A(this.#e,e)}};function Lt(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function Rt(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var zt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Bt=u(`<div><!> <div><input/></div></div>`);function Vt(e,r){let i=n();a(r,!0);let o=z(r,`id`,19,()=>G(i)),c=z(r,`inputId`,19,()=>`${G(i)}-input`),l=z(r,`ref`,15,null),u=z(r,`inputRef`,15,null),d=z(r,`maxlength`,3,6),f=z(r,`textalign`,3,`left`),m=z(r,`inputmode`,3,`numeric`),h=z(r,`onComplete`,3,Ie),g=z(r,`pushPasswordManagerStrategy`,3,`increase-width`),_=z(r,`class`,3,``),v=z(r,`autocomplete`,3,`one-time-code`),y=z(r,`disabled`,3,!1),b=z(r,`value`,15,``),x=z(r,`onValueChange`,3,Ie),C=N(r,zt),w=Ft.create({id:J(()=>o()),ref:J(()=>l(),e=>l(e)),inputRef:J(()=>u(),e=>u(e)),inputId:J(()=>c()),autocomplete:J(()=>v()),maxLength:J(()=>d()),textAlign:J(()=>f()),disabled:J(()=>y()),inputmode:J(()=>m()),pattern:J(()=>r.pattern),onComplete:J(()=>h()),value:J(()=>b(),e=>{b(e),x()(e)}),pushPasswordManagerStrategy:J(()=>g()),pasteTransformer:J(()=>r.pasteTransformer)}),E=S(()=>Y(C,w.inputProps)),O=S(()=>Y(w.rootProps,{class:_()})),k=S(()=>Y(w.inputWrapperProps,{}));var A=Bt();F(A,()=>({...R(O)}));var j=T(A);t(j,()=>r.children??D,()=>w.snippetProps);var M=V(j,2);F(M,()=>({...R(k)}));var P=T(M);F(P,()=>({...R(E)}),void 0,void 0,void 0,void 0,!0),H(M),H(A),s(e,A),p()}var Ht=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),Ut=u(`<div><!></div>`);function Wt(e,r){let o=n();a(r,!0);let l=z(r,`id`,19,()=>G(o)),u=z(r,`ref`,15,null),d=N(r,Ht),f=It.create({id:J(()=>l()),ref:J(()=>u(),e=>u(e)),cell:J(()=>r.cell)}),m=S(()=>Y(d,f.props));var h=c(),g=w(h),_=e=>{var n=c(),i=w(n);t(i,()=>r.child,()=>({props:R(m)})),s(e,n)},v=e=>{var n=Ut();F(n,()=>({...R(m)}));var i=T(n);t(i,()=>r.children??D),H(n),s(e,n)};i(g,e=>{r.child?e(_):e(v,-1)}),s(e,h),p()}var Gt=qe({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),Kt=new Ue(`Tabs.Root`),qt=class e{static create(t){return Kt.set(new e(t))}opts;attachment;rovingFocusGroup;#e=b(ne([]));get triggerIds(){return R(this.#e)}set triggerIds(e){A(this.#e,e,!0)}valueToTriggerId=new Fe;valueToContentId=new Fe;constructor(e){this.opts=e,this.attachment=q(e.ref),this.rovingFocusGroup=new Et({candidateAttr:Gt.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,[Gt.root]:``,...this.attachment}));get props(){return R(this.#t)}set props(e){A(this.#t,e)}},Jt=class e{static create(t){return new e(t,Kt.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,[Gt.list]:``,"data-disabled":Ke(R(this.#e)),...this.attachment}));get props(){return R(this.#t)}set props(e){A(this.#t,e)}},Yt=class e{static create(t){return new e(t,Kt.get())}opts;root;attachment;#e=b(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)),B(()=>{this.root.triggerIds.length,R(this.#t)||!this.root.opts.value.current?A(this.#e,0):A(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`||R(this.#n)||this.#i()}onclick(e){R(this.#n)||this.#i()}onkeydown(e){R(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":Zt(R(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Ke(R(this.#n)),"aria-selected":ze(R(this.#t)),"aria-controls":R(this.#r),[Gt.trigger]:``,disabled:Ge(R(this.#n)),tabindex:R(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return R(this.#a)}set props(e){A(this.#a,e)}},Xt=class e{static create(t){return new e(t,Kt.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(!R(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":Zt(R(this.#e)),"aria-labelledby":R(this.#t),"data-orientation":this.root.opts.orientation.current,[Gt.content]:``,...this.attachment}));get props(){return R(this.#n)}set props(e){A(this.#n,e)}};function Zt(e){return e?`active`:`inactive`}var Qt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),$t=u(`<div><!></div>`);function en(e,r){let o=n();a(r,!0);let l=z(r,`id`,19,()=>G(o)),u=z(r,`ref`,15,null),d=z(r,`value`,15,``),f=z(r,`onValueChange`,3,Ie),m=z(r,`orientation`,3,`horizontal`),h=z(r,`loop`,3,!0),g=z(r,`activationMode`,3,`automatic`),_=z(r,`disabled`,3,!1),v=N(r,Qt),y=qt.create({id:J(()=>l()),value:J(()=>d(),e=>{d(e),f()(e)}),orientation:J(()=>m()),loop:J(()=>h()),activationMode:J(()=>g()),disabled:J(()=>_()),ref:J(()=>u(),e=>u(e))}),b=S(()=>Y(v,y.props));var x=c(),C=w(x),E=e=>{var n=c(),i=w(n);t(i,()=>r.child,()=>({props:R(b)})),s(e,n)},O=e=>{var n=$t();F(n,()=>({...R(b)}));var i=T(n);t(i,()=>r.children??D),H(n),s(e,n)};i(C,e=>{r.child?e(E):e(O,-1)}),s(e,x),p()}var tn=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),nn=u(`<div><!></div>`);function rn(e,r){let o=n();a(r,!0);let l=z(r,`id`,19,()=>G(o)),u=z(r,`ref`,15,null),d=N(r,tn),f=Xt.create({value:J(()=>r.value),id:J(()=>l()),ref:J(()=>u(),e=>u(e))}),m=S(()=>Y(d,f.props));var h=c(),g=w(h),_=e=>{var n=c(),i=w(n);t(i,()=>r.child,()=>({props:R(m)})),s(e,n)},v=e=>{var n=nn();F(n,()=>({...R(m)}));var i=T(n);t(i,()=>r.children??D),H(n),s(e,n)};i(g,e=>{r.child?e(_):e(v,-1)}),s(e,h),p()}var an=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),on=u(`<div><!></div>`);function sn(e,r){let o=n();a(r,!0);let l=z(r,`id`,19,()=>G(o)),u=z(r,`ref`,15,null),d=N(r,an),f=Jt.create({id:J(()=>l()),ref:J(()=>u(),e=>u(e))}),m=S(()=>Y(d,f.props));var h=c(),g=w(h),_=e=>{var n=c(),i=w(n);t(i,()=>r.child,()=>({props:R(m)})),s(e,n)},v=e=>{var n=on();F(n,()=>({...R(m)}));var i=T(n);t(i,()=>r.children??D),H(n),s(e,n)};i(g,e=>{r.child?e(_):e(v,-1)}),s(e,h),p()}var cn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),ln=u(`<button><!></button>`);function un(e,r){let o=n();a(r,!0);let l=z(r,`disabled`,3,!1),u=z(r,`id`,19,()=>G(o)),d=z(r,`type`,3,`button`),f=z(r,`ref`,15,null),m=N(r,cn),h=Yt.create({id:J(()=>u()),disabled:J(()=>l()??!1),value:J(()=>r.value),ref:J(()=>f(),e=>f(e))}),g=S(()=>Y(m,h.props,{type:d()}));var _=c(),v=w(_),y=e=>{var n=c(),i=w(n);t(i,()=>r.child,()=>({props:R(g)})),s(e,n)},b=e=>{var n=ln();F(n,()=>({...R(g)}));var i=T(n);t(i,()=>r.children??D),H(n),s(e,n)};i(v,e=>{r.child?e(y):e(b,-1)}),s(e,_),p()}var dn={"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=I(ve,e=>dn[e]),fn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),pn=u(`<div><!></div>`);function mn(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=N(n,fn);var o=pn();F(o,e=>({"data-slot":`card-content`,class:e,...i}),[()=>W(`px-(--card-spacing)`,n.class)]);var c=T(o);t(c,()=>n.children??D),H(o),k(o,e=>r(e),()=>r()),s(e,o),p()}var hn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),gn=u(`<p><!></p>`);function _n(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=N(n,hn);var o=gn();F(o,e=>({"data-slot":`card-description`,class:e,...i}),[()=>W(`text-sm text-muted-foreground`,n.class)]);var c=T(o);t(c,()=>n.children??D),H(o),k(o,e=>r(e),()=>r()),s(e,o),p()}var vn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),yn=u(`<div><!></div>`);function bn(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=N(n,vn);var o=yn();F(o,e=>({"data-slot":`card-footer`,class:e,...i}),[()=>W(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,n.class)]);var c=T(o);t(c,()=>n.children??D),H(o),k(o,e=>r(e),()=>r()),s(e,o),p()}var xn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Sn=u(`<div><!></div>`);function Cn(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=N(n,xn);var o=Sn();F(o,e=>({"data-slot":`card-header`,class:e,...i}),[()=>W(`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]`,n.class)]);var c=T(o);t(c,()=>n.children??D),H(o),k(o,e=>r(e),()=>r()),s(e,o),p()}var wn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Tn=u(`<div><!></div>`);function En(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=N(n,wn);var o=Tn();F(o,e=>({"data-slot":`card-title`,class:e,...i}),[()=>W(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,n.class)]);var c=T(o);t(c,()=>n.children??D),H(o),k(o,e=>r(e),()=>r()),s(e,o),p()}var Dn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),On=u(`<div><!></div>`);function kn(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=z(n,`size`,3,`default`),o=N(n,Dn);var c=On();F(c,e=>({"data-slot":`card`,"data-size":i(),class:e,...o}),[()=>W(`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`,n.class)]);var l=T(c);t(l,()=>n.children??D),H(c),k(c,e=>r(e),()=>r()),s(e,c),p()}var An=u(`<div><!></div>`);function jn(e,n){a(n,!0);let r=b(!1);async function i(){A(r,!0),await new Promise(e=>setTimeout(e,500)),A(r,!1)}var o={shake:i},c=An(),l=T(c);return t(l,()=>n.children),H(c),x(()=>C(c,1,g([n.class,R(r)&&`shake`]),`svelte-alh7mr`)),s(e,c),p(o)}var Mn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nn=u(`<div><!></div>`);function Pn(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=N(n,Mn);var o=Nn();F(o,e=>({"data-slot":`input-otp-group`,class:e,...i}),[()=>W(`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`,n.class)]);var c=T(o);t(c,()=>n.children??D),H(o),k(o,e=>r(e),()=>r()),s(e,o),p()}var Fn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),In=u(`<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>`),Ln=u(` <!>`,1);function Rn(e,t){a(t,!0);let n=z(t,`ref`,15,null),r=N(t,Fn);var o=c(),u=w(o);{let e=S(()=>W(`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`,t.class));d(u,()=>Wt,(a,o)=>{o(a,L({get cell(){return t.cell},"data-slot":`input-otp-slot`,get class(){return R(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{y();var r=Ln(),a=w(r),o=V(a),c=e=>{var t=In();s(e,t)};i(o,e=>{t.cell.hasFakeCaret&&e(c)}),x(()=>l(a,`${t.cell.char??``} `)),s(e,r)},$$slots:{default:!0}}))})}s(e,o),p()}var zn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function Bn(e,t){a(t,!0);let n=z(t,`ref`,15,null),r=z(t,`value`,15,``),i=N(t,zn);var o=c(),l=w(o);{let e=S(()=>W(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,t.class));d(l,()=>Vt,(t,a)=>{a(t,L({"data-slot":`input-otp`,spellcheck:!1,get class(){return R(e)}},()=>i,{get ref(){return n()},set ref(e){n(e)},get value(){return r()},set value(e){r(e)}}))})}s(e,o),p()}var Vn=u(`<div class="w-full flex items-center"><!></div>`);function Hn(e,t){a(t,!0);let n=()=>P(Z,`$dict`,r),[r,o]=v(),l=z(t,`ref`,15,null),u=z(t,`mode`,11,`password`),m=z(t,`password`,15,``),h=z(t,`otp`,15,``);var g=Vn(),_=T(g),y=e=>{ke(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return n().auth.password},class:`placeholder:text-sm`,get value(){return m()},set value(e){m(e)}})},b=e=>{var t=c(),n=w(t);{let e=(e,t)=>{let n=()=>(t?.()).cells;var r=c(),i=w(r);d(i,()=>Pn,(e,t)=>{t(e,{children:(e,t)=>{var r=c(),i=w(r);te(i,17,()=>n().slice(0,6),f,(e,t)=>{var n=c(),r=w(n);d(r,()=>Rn,(e,n)=>{n(e,{get cell(){return R(t)},class:`size-[40px] bg-background`})}),s(e,n)}),s(e,r)},$$slots:{default:!0}})}),s(e,r)};d(n,()=>Bn,(t,n)=>{n(t,{maxlength:6,get pattern(){return Mt},required:!0,get value(){return h()},set value(e){h(e)},children:e,$$slots:{default:!0}})})}s(e,t)};i(_,e=>{u()===`password`?e(y):e(b,-1)}),H(g),k(g,e=>l(e),()=>l()),s(e,g),p(),o()}var Un=u(`<!> <span class="sr-only"> </span>`,1),Wn=u(`<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 Gn(e,t){a(t,!0);let n=()=>P(Z,`$dict`,o),[o,u]=v(),d=b(!1),f=b(``),g=b(``),y=b(``),C=b(null),E=b(`password`),D=b(void 0);async function O(){R(g).length===0?R(E)===`password`?await N():await F():await j()}async function j(){A(d,!0);let e=t.account===void 0?await M():await me(t.account.id,{username:R(f),password:R(g)});A(d,!1),e instanceof Error&&await I()}async function M(){let e=await le(R(f),R(g));return e instanceof Error||ce(e)?.status===201&&t.oncreate?.(e),e}async function N(){A(d,!0);let e=t.account===void 0?await _e(R(f)):await be(t.account.id,R(f));A(d,!1),!(e instanceof Error)&&(A(E,`otp`),requestAnimationFrame(()=>L()))}async function F(){if(R(f).length===0){console.error(`username is required`);return}if(R(y).length!==6){await I();return}A(d,!0);let e=await he(R(f),R(y));if(A(d,!1),e instanceof Error)A(y,``),await I();else return ce(e)?.status===201&&t.oncreate?.(e),e}async function I(){await R(D)?.shake(),L()}function L(){ye&&R(C)?.querySelector(`input`)?.focus()}var ee=Wn(),z=S(()=>dt(O)),B=T(ee),te=T(B);{let e=S(()=>R(E)===`otp`||void 0);ke(te,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return R(e)},get autofocus(){return ye},get placeholder(){return n().auth.email},get value(){return R(f)},set value(e){A(f,e,!0)}})}var ne=V(te,2),re=T(ne),ie=T(re);k(jn(ie,{class:`w-full`,children:(e,t)=>{Hn(e,{get mode(){return R(E)},get ref(){return R(C)},set ref(e){A(C,e,!0)},get password(){return R(g)},set password(e){A(g,e,!0)},get otp(){return R(y)},set otp(e){A(y,e,!0)}})},$$slots:{default:!0}}),e=>A(D,e,!0),()=>R(D));var ae=V(ie,2);K(ae,{size:`icon-lg`,type:`submit`,children:(e,t)=>{var r=Un(),a=w(r),o=e=>{Xe(e,{})},c=e=>{ct(e,{})};i(a,e=>{R(d)?e(o):e(c,-1)});var u=V(a,2),f=_(u,!0);x(()=>l(f,n().auth.login)),s(e,r)},$$slots:{default:!0}}),H(re);var U=V(re,2),oe=T(U),se=e=>{var t=c(),i=w(t);r(i,()=>n().auth.passwordBlank),s(e,t)},ue=e=>{var t=m();x(()=>l(t,n().auth.otpInstructions)),s(e,t)};i(oe,e=>{R(E)===`password`?e(se):e(ue,-1)}),H(U),H(ne),H(B),H(ee),h(`submit`,ee,function(...e){R(z)?.apply(this,e)}),s(e,ee),p(),u()}var Kn=u(`<h2> </h2>`),qn=u(`<!> <!>`,1);function Jn(e,t){a(t,!0);let n=()=>P(Z,`$dict`,r),[r,i]=v();var o=c(),u=w(o);{let e=S(()=>W(`pt-4 gap-4 bg-background/75`,t.class));d(u,()=>kn,(r,i)=>{i(r,{get class(){return R(e)},children:(e,r)=>{var i=qn(),a=w(i);d(a,()=>Cn,(e,t)=>{t(e,{class:`gap-0`,children:(e,t)=>{var r=qn(),i=w(r);d(i,()=>En,(e,t)=>{t(e,{children:(e,t)=>{var r=Kn(),i=_(r,!0);x(()=>l(i,n().auth.passwordTitle)),s(e,r)},$$slots:{default:!0}})});var a=V(i,2);d(a,()=>_n,(e,t)=>{t(e,{children:(e,t)=>{y();var r=m();x(()=>l(r,n().auth.passwordDescription)),s(e,r)},$$slots:{default:!0}})}),s(e,r)},$$slots:{default:!0}})});var o=V(a,2);d(o,()=>mn,(e,n)=>{n(e,{children:(e,n)=>{Gn(e,{get account(){return t.account},get oncreate(){return t.oncreate}})},$$slots:{default:!0}})}),s(e,i)},$$slots:{default:!0}})})}s(e,o),p(),i()}function Yn(e){Gn(e,{})}var Xn=new Set([`$$slots`,`$$events`,`$$legacy`]);function Zn(e,t){let n=N(t,Xn),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`m9 12 2 2 4-4`}]];U(e,L({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var Qn=new Set([`$$slots`,`$$events`,`$$legacy`]);function $n(e,t){let n=N(t,Qn),r=[[`path`,{d:`m2 2 20 20`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`}]];U(e,L({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var er=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),tr=u(`<div><!></div>`);function nr(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=N(n,er);var o=tr();F(o,e=>({"data-slot":`alert-description`,class:e,...i}),[()=>W(`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`,n.class)]);var c=T(o);t(c,()=>n.children??D),H(o),k(o,e=>r(e),()=>r()),s(e,o),p()}var rr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),ir=u(`<div><!></div>`);function ar(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=N(n,rr);var o=ir();F(o,e=>({"data-slot":`alert-title`,class:e,...i}),[()=>W(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,n.class)]);var c=T(o);t(c,()=>n.children??D),H(o),k(o,e=>r(e),()=>r()),s(e,o),p()}var or=nt({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`}}),sr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),cr=u(`<div><!></div>`);function lr(e,n){a(n,!0);let r=z(n,`ref`,15,null),i=z(n,`variant`,3,`default`),o=N(n,sr);var c=cr();F(c,e=>({"data-slot":`alert`,role:`alert`,class:e,...o}),[()=>W(or({variant:i()}),n.class)]);var l=T(c);t(l,()=>n.children??D),H(c),k(c,e=>r(e),()=>r()),s(e,c),p()}var ur=new Set([`$$slots`,`$$events`,`$$legacy`]);function dr(e,t){let n=N(t,ur),r=[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`}],[`path`,{d:`M2 16h.01`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`}]];U(e,L({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var fr=u(`<!> `,1),pr=u(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function mr(e,t){a(t,!0);let n=()=>P(Z,`$dict`,r),[r,o]=v(),c=b(!1);async function u(){A(c,!0),await Se(),A(c,!1)}var d=pr(),f=T(d),m=_(f,!0),h=V(f,2);K(h,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:u,children:(e,t)=>{var r=fr(),a=w(r),o=e=>{Xe(e,{})},u=e=>{dr(e,{})};i(a,e=>{R(c)?e(o):e(u,-1)});var d=V(a);x(()=>l(d,` ${n().auth.signin??``}`)),s(e,r)},$$slots:{default:!0}}),H(d),x(()=>l(m,n().auth.alreadyHaveAccount)),s(e,d),p(),o()}var hr=u(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function gr(e,t){a(t,!0);let n=()=>P(Z,`$dict`,r),[r,o]=v(),l=S(()=>t.account?.name??``),u=b(!1);async function d(){let e=R(l).trim();if(e.length===0)return;A(u,!0);let n=await fe(e,t.account?.id);A(u,!1),!(n instanceof Error)&&t.oncreate?.(n)}var f=hr(),m=S(()=>dt(d)),g=T(f),_=T(g),y=T(_);ke(y,{id:`name`,type:`text`,get placeholder(){return n().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return ye},get value(){return R(l)},set value(e){A(l,e)}});var C=V(y,2);K(C,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(e,t)=>{var n=c(),r=w(n),a=e=>{Xe(e,{})},o=e=>{ct(e,{})};i(r,e=>{R(u)?e(a):e(o,-1)}),s(e,n)},$$slots:{default:!0}}),H(_),H(g),H(f),x(()=>g.disabled=t.disabled),h(`submit`,f,function(...e){R(m)?.apply(this,e)}),s(e,f),p(),o()}var _r=u(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),vr=u(`<h2> </h2>`),yr=u(`<!> <!>`,1),br=u(`<!> <!> <!>`,1),xr=u(`<p> </p> <!>`,1),Sr=u(`<div class="space-y-4"><!> <!></div>`);function Cr(e,t){a(t,!0);let n=()=>P(Z,`$dict`,r),[r,o]=v(),u=e=>{var t=_r(),r=T(t),i=V(r),a=_(i,!0);H(t),x(()=>{l(r,`${n().auth.passkeysDescription??``} `),j(i,`href`,f),l(a,n().auth.learnMore)}),s(e,t)},f=ue?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var h=Sr(),g=T(h);{let e=S(()=>W(`gap-4 bg-background/75`,pe&&`pt-4`,t.class));d(g,()=>kn,(r,a)=>{a(r,{get class(){return R(e)},children:(e,r)=>{var a=yr(),o=w(a),f=e=>{var r=yr(),i=w(r);d(i,()=>Cn,(e,t)=>{t(e,{class:`gap-0`,children:(e,t)=>{var r=c(),i=w(r);d(i,()=>En,(e,t)=>{t(e,{children:(e,t)=>{var r=vr(),i=_(r,!0);x(()=>l(i,n().auth.signupTitle)),s(e,r)},$$slots:{default:!0}})}),s(e,r)},$$slots:{default:!0}})});var a=V(i,2);d(a,()=>mn,(e,n)=>{n(e,{children:(e,n)=>{gr(e,{get account(){return t.account},get oncreate(){return t.oncreate}})},$$slots:{default:!0}})}),s(e,r)};i(o,e=>{pe&&e(f)});var p=V(o,2);d(p,()=>bn,(e,t)=>{t(e,{children:(e,t)=>{var r=c(),a=w(r),o=e=>{var t=c(),r=w(t);d(r,()=>lr,(e,t)=>{t(e,{children:(e,t)=>{var r=br(),i=w(r);Zn(i,{color:`green`});var a=V(i,2);d(a,()=>ar,(e,t)=>{t(e,{children:(e,t)=>{y();var r=m();x(()=>l(r,n().auth.betterSecurity)),s(e,r)},$$slots:{default:!0}})});var o=V(a,2);d(o,()=>nr,(e,t)=>{t(e,{children:(e,t)=>{u(e)},$$slots:{default:!0}})}),s(e,r)},$$slots:{default:!0}})}),s(e,t)},f=e=>{var t=c(),r=w(t);d(r,()=>lr,(e,t)=>{t(e,{children:(e,t)=>{var r=br(),i=w(r);$n(i,{color:`red`,class:`animate-pulse`});var a=V(i,2);d(a,()=>ar,(e,t)=>{t(e,{children:(e,t)=>{y();var r=m();x(()=>l(r,n().auth.passkeysNotSupported)),s(e,r)},$$slots:{default:!0}})});var o=V(a,2);d(o,()=>nr,(e,t)=>{t(e,{children:(e,t)=>{var r=xr(),i=w(r),a=_(i,!0),o=V(i,2);u(o),x(()=>l(a,n().auth.passkeysWarning)),s(e,r)},$$slots:{default:!0}})}),s(e,r)},$$slots:{default:!0}})}),s(e,t)};i(a,e=>{pe?e(o):e(f,-1)}),s(e,r)},$$slots:{default:!0}})}),s(e,a)},$$slots:{default:!0}})})}var b=V(g,2),C=e=>{mr(e,{})};i(b,e=>{pe&&!t.account&&e(C)}),H(h),s(e,h),p(),o()}var wr=u(`<!> <!> `,1);function Tr(e,t){a(t,!0);let n=()=>P(Z,`$dict`,r),[r,i]=v();async function o(e){let n=e.currentTarget;n.disabled=!0,await Se(t.account.id),n.disabled=!1}K(e,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:o,children:(e,t)=>{var r=wr(),i=w(r);dr(i,{class:`size-5 x-icon`});var a=V(i,2);Xe(a,{class:`x-spinner`});var o=V(a);x(()=>l(o,` ${n().auth.refresh.continue??``}`)),s(e,r)},$$slots:{default:!0}}),p(),i()}var Er=re(`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M19.84 10.2273C19.84 9.5182 19.7764 8.8364 19.6582 8.1818H10.24V12.05H15.6218C15.39 13.3 14.6855 14.3591 13.6264 15.0682V17.5773H16.8582C18.7491 15.8364 19.84 13.2727 19.84 10.2273Z" fill="#4285F4"></path><path d="M10.24 20C12.94 20 15.2036 19.1045 16.8581 17.5773L13.6263 15.0682C12.7309 15.6682 11.5854 16.0227 10.24 16.0227C7.6354 16.0227 5.4309 14.2636 4.6445 11.9H1.3036V14.4909C2.9491 17.7591 6.3309 20 10.24 20Z" fill="#34A853"></path><path d="M4.6445 11.9C4.4445 11.3 4.3309 10.6591 4.3309 10C4.3309 9.3409 4.4445 8.7 4.6445 8.1V5.5091H1.3036C0.6264 6.8591 0.24 8.3864 0.24 10C0.24 11.6136 0.6264 13.1409 1.3036 14.4909L4.6445 11.9Z" fill="#FBBC04"></path><path d="M10.24 3.9773C11.7081 3.9773 13.0263 4.4818 14.0627 5.4727L16.9309 2.6045C15.1991 0.9909 12.9354 0 10.24 0C6.3309 0 2.9491 2.2409 1.3036 5.5091L4.6445 8.1C5.4309 5.7364 7.6354 3.9773 10.24 3.9773Z" fill="#E94235"></path></svg>`);function Dr(e,t){var n=Er();x(()=>C(n,0,g(t.class))),s(e,n)}var Or=re(`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill="currentColor" viewBox="0 0 814 1000"><path d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"></path></svg>`);function kr(e,t){a(t,!0);var n=Or(),r=_(n);x(e=>{C(n,0,e),j(r,`fill`,t.fill)},[()=>g(W(`size-5 -mt-[3px]`,t.class))]),s(e,n),p()}var Ar={google:Dr,apple:kr},jr=u(`<!> <!> <!>`,1);function Mr(e,n){a(n,!0);let r=S(()=>Ar[n.idp]);async function i(e){let t=e.currentTarget;t.disabled=!0,await Te(n.idp,n.account?.id),t.disabled=!1}{let a=S(()=>n.children?`default`:`icon`),o=S(()=>W(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,n.class));K(e,{variant:`outline`,get size(){return R(a)},onclick:i,get class(){return R(o)},children:(e,i)=>{var a=jr(),o=w(a);d(o,()=>R(r),(e,t)=>{t(e,{class:`x-icon`})});var c=V(o,2);Xe(c,{class:`x-spinner`});var l=V(c,2);t(l,()=>n.children??D),s(e,a)},$$slots:{default:!0}})}p()}var Nr=u(`<div class="flex gap-2"><!> <!></div>`);function Pr(e,t){a(t,!0);var n=Nr(),r=T(n),o=e=>{Mr(e,{idp:`google`,get account(){return t.account}})};i(r,e=>{de.google.client&&e(o)});var c=V(r,2),l=e=>{Mr(e,{idp:`apple`,get account(){return t.account}})};i(c,e=>{de.apple.client&&e(l)}),H(n),s(e,n),p()}function Fr(e,t){a(t,!0);let n=()=>P(Z,`$dict`,r),[r,i]=v(),o={google:`Google`,apple:`Apple`};Mr(e,{get idp(){return t.idp},class:`w-full`,children:(e,r)=>{y();var i=m();x(e=>l(i,e),[()=>n().auth.continueWith(o[t.idp])]),s(e,i)},$$slots:{default:!0}}),p(),i()}var Ir=u(`<!> <!>`,1);function Lr(e,n){var r=c(),i=w(r);d(i,()=>kn,(e,r)=>{r(e,{class:`w-full`,children:(e,r)=>{var i=Ir(),a=w(i);d(a,()=>Cn,(e,t)=>{t(e,{children:(e,t)=>{var r=Ir(),i=w(r);d(i,()=>En,(e,t)=>{t(e,{children:(e,t)=>{y();var r=m();x(()=>l(r,n.title)),s(e,r)},$$slots:{default:!0}})});var a=V(i,2);d(a,()=>_n,(e,t)=>{t(e,{children:(e,t)=>{y();var r=m();x(()=>l(r,n.description)),s(e,r)},$$slots:{default:!0}})}),s(e,r)},$$slots:{default:!0}})});var o=V(a,2);d(o,()=>mn,(e,r)=>{r(e,{class:`flex flex-col`,children:(e,r)=>{var i=c(),a=w(i);t(a,()=>n.action),s(e,i)},$$slots:{default:!0}})}),s(e,i)},$$slots:{default:!0}})}),s(e,r)}var Rr=u(`<!> `,1),zr=u(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function Br(e,t){a(t,!0);let n=()=>P(Z,`$dict`,r),[r,o]=v();O(()=>{t.method===null&&Ce()});var u=zr(),d=T(u);{let e=e=>{var n=c(),r=w(n),a=e=>{Tr(e,{get account(){return t.account}})},o=e=>{Yn(e,{})},l=e=>{Fr(e,{idp:`apple`})},u=e=>{Fr(e,{idp:`google`})};i(r,e=>{t.method===`passkey`?e(a):t.method===`password`?e(o,1):t.method===`apple`?e(l,2):t.method===`google`&&e(u,3)}),s(e,n)},r=S(()=>n().auth.refresh.description(t.account.name));Lr(d,{get title(){return n().auth.refresh.title},get description(){return R(r)},action:e,$$slots:{action:!0}})}var f=V(d,2);K(f,{variant:`outline`,get onclick(){return Ce},children:(e,t)=>{var r=Rr(),i=w(r);ht(i,{});var a=V(i);x(()=>l(a,` ${n().auth.signout??``}`)),s(e,r)},$$slots:{default:!0}}),H(u),s(e,u),p(),o()}var Vr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Hr(e,t){let n=N(t,Vr),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`}]];U(e,L({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var Ur=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Wr(e,t){a(t,!0);let n=z(t,`ref`,15,null),r=N(t,Ur);var i=c(),o=w(i);{let e=S(()=>W(`text-sm flex-1 outline-none`,t.class));d(o,()=>rn,(t,i)=>{i(t,L({"data-slot":`tabs-content`,get class(){return R(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}s(e,i),p()}var Gr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Kr(e,t){a(t,!0);let n=z(t,`ref`,15,null),r=N(t,Gr);var i=c(),o=w(i);{let e=S(()=>W(`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`,t.class));d(o,()=>un,(t,i)=>{i(t,L({"data-slot":`tabs-trigger`,get class(){return R(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}s(e,i),p()}var qr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function Jr(e,t){a(t,!0);let n=z(t,`ref`,15,null),r=z(t,`value`,15,``),i=N(t,qr);var o=c(),l=w(o);{let e=S(()=>W(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,t.class));d(l,()=>en,(t,a)=>{a(t,L({"data-slot":`tabs`,get class(){return R(e)}},()=>i,{get ref(){return n()},set ref(e){n(e)},get value(){return r()},set value(e){r(e)}}))})}s(e,o),p()}var Yr=nt({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`}}),Xr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function Zr(e,t){a(t,!0);let n=z(t,`ref`,15,null),r=z(t,`variant`,3,`default`),i=N(t,Xr);var o=c(),l=w(o);{let e=S(()=>W(Yr({variant:r()}),t.class));d(l,()=>sn,(t,a)=>{a(t,L({"data-slot":`tabs-list`,get"data-variant"(){return r()},get class(){return R(e)}},()=>i,{get ref(){return n()},set ref(e){n(e)}}))})}s(e,o),p()}var Qr=u(`<!> `,1),$r=u(`<!> <!>`,1),ei=u(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function ti(e,t){a(t,!0);let n=()=>P(Z,`$dict`,r),[r,i]=v(),o=b(null);function u(e){requestAnimationFrame(()=>{R(o)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let f=b(`passkey`);O(()=>{A(f,pe?`passkey`:`password`,!0)});var m=c(),h=w(m);{let e=S(()=>W(`w-full`,t.class));d(h,()=>Jr,(r,i)=>{i(r,{get class(){return R(e)},onValueChange:u,get value(){return R(f)},set value(e){A(f,e,!0)},get ref(){return R(o)},set ref(e){A(o,e,!0)},children:(e,r)=>{var i=ei(),a=w(i),o=T(a);d(o,()=>Zr,(e,t)=>{t(e,{children:(e,t)=>{var r=$r(),i=w(r);d(i,()=>Kr,(e,t)=>{t(e,{value:`passkey`,"data-marker":`passkey-tab`,children:(e,t)=>{var r=Qr(),i=w(r);dr(i,{color:`var(--muted-foreground)`});var a=V(i);x(()=>l(a,` ${n().auth.passkey??``}`)),s(e,r)},$$slots:{default:!0}})});var a=V(i,2);d(a,()=>Kr,(e,t)=>{t(e,{value:`password`,id:`iam-email-tab`,children:(e,t)=>{var r=Qr(),i=w(r);Hr(i,{color:`var(--muted-foreground)`});var a=V(i);x(()=>l(a,` ${n().auth.email??``}`)),s(e,r)},$$slots:{default:!0}})}),s(e,r)},$$slots:{default:!0}})}),Pr(V(o,2),{get account(){return t.account}}),H(a);var c=V(a,2);d(c,()=>Wr,(e,n)=>{n(e,{value:`passkey`,children:(e,n)=>{Cr(e,{get account(){return t.account},oncreate:e=>t.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var u=V(c,2);d(u,()=>Wr,(e,n)=>{n(e,{value:`password`,children:(e,n)=>{Jn(e,{get account(){return t.account},oncreate:e=>t.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),s(e,i)},$$slots:{default:!0}})})}s(e,m),p(),i()}var ni=u(`<div class="flex items-center justify-center h-screen"><!></div>`),ri=u(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function ii(e,n){a(n,!0);let r=()=>P(ae,`$iam`,f),o=()=>P(ge,`$method`,f),l=()=>P(se,`$authenticated`,f),u=()=>P(ie,`$greeting`,f),d=()=>P(oe,`$processing`,f),[f,m]=v(),h=e=>{var t=c(),a=w(t),l=e=>{Br(e,{get account(){return r()},get method(){return o()}})},u=e=>{{let t=S(()=>W(`scale-0 transition-transform`,`scale-100`));ti(e,{get class(){return R(t)},get account(){return n.account},get oncreate(){return n.oncreate}})}};i(a,e=>{r()?e(l):e(u,-1)}),s(e,t)};var g=c(),_=w(g),y=e=>{var r=c(),i=w(r);t(i,()=>n.children),s(e,r)},b=e=>{var t=ni(),n=T(t);Xe(n,{}),H(t),s(e,t)},x=e=>{var r=c(),i=w(r);t(i,()=>n.screen,()=>({authentication:h})),s(e,r)},C=e=>{var t=ri(),n=T(t);h(n),H(t),s(e,t)};i(_,e=>{l()?e(y):u()||d()?e(b,1):n.screen?e(x,2):e(C,-1)}),s(e,g),p(),m()}function ai(e,t){return!!(e.dev!==void 0&&e.dev===!1||e.beta!==void 0&&e.beta===oi()||e.debug!==void 0&&e.debug===si()||e.role!==void 0&&t?.roles!==void 0&&ci(t.roles,e.role))}function oi(){return typeof window<`u`&&window.location.hostname.startsWith(`beta.`)}function si(){return oi()}function ci(e,t){for(let n of e)if(n===t||t.startsWith(n+`:`))return!0;return!1}var li=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`denied`]),ui=u(`<div class="flex justify-center pt-[14vh]"><!></div>`);function di(e,n){a(n,!0);let r=()=>P(ae,`$account`,l),o=()=>P(Z,`$dict`,l),[l,u]=v(),d=N(n,li),f=S(()=>ai(d,r())),m=S(()=>r()?.id??``);var h=c(),g=w(h),_=e=>{var r=c(),i=w(r);t(i,()=>n.children),s(e,r)},y=e=>{var r=c(),i=w(r);t(i,()=>n.denied),s(e,r)},b=e=>{var t=ui(),n=T(t);{let e=S(()=>R(m).slice(0,8));rt(n,{get text(){return R(m)},get label(){return R(e)},get"aria-label"(){return o().auth.copyId},variant:`outline`,class:`font-mono`})}H(t),s(e,t)};i(g,e=>{R(f)?e(_):n.denied===void 0?R(m)!==``&&e(b,2):e(y,1)}),s(e,h),p(),u()}var fi=e(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Q=e((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),pi=e((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),mi=e(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),hi=e(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),gi=e((e=>{var t=Q().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),_i=e((e=>{var t=Q().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),vi=e((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),yi=e((e=>{var t=pi(),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}}})),bi=e((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),xi=e((e=>{var t=bi();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}})),Si=e(((e,t)=>{var n=xi();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})),Ci=e((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),wi=e((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
2
+ ]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),$=e((e=>{var t=Ci(),n=wi();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}}})),Ti=e((e=>{var t=Q(),n=yi(),r=pi(),i=$(),a=Ci(),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}})),Ei=e((e=>{var t=Q(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),Di=e(((e,t)=>{var n=$();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),Oi=e(((e,t)=>{var n=$(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t=0;for(;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),ki=e(((e,t)=>{var n=$();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),Ai=e(((e,t)=>{var n=$(),r=Q();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t=0;for(;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
3
+ Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),ji=e(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),Mi=e((e=>{var t=$(),n=Di(),r=Oi(),i=ki(),a=Ai(),o=wi(),s=Q(),c=ji();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()))}})),Ni=e((e=>{var t=Q(),n=pi(),r=mi(),i=hi(),a=gi(),o=_i(),s=vi(),c=yi(),l=Si(),u=Ti(),d=Ei(),f=$(),p=Mi();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)}})),Pi=e((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||(e.color={});let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),Fi=e((e=>{var t=Pi();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)}})),Ii=e((e=>{var t=Pi();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
8
+ `;return typeof a==`function`&&a(null,p),p}}));e((e=>{var t=fi(),n=Ni(),r=Fi(),i=Ii();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)})}))(),Ar.google,Ar.apple;var Li=u(`<a><!> <span class="hidden md:inline"> </span></a>`),Ri=u(`<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 zi(e,n){a(n,!0);let r=()=>P(et,`$only`,u),i=()=>P(xe,`$dict`,u),o=()=>P(st,`$query`,u),[u,f]=v();Ne(()=>st.set(``));let D=b(null);function O(e){e.key===`Enter`&&r()?.()}function k(e){e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),R(D)?.focus(),R(D)?.select())}let N=S(()=>[{id:`map`,href:je(`/(private)`),label:i().nav.map,Icon:yt},{id:`list`,href:je(`list/`),label:i().nav.list,Icon:pt}]),F=S(()=>R(N).map(e=>e.href).filter(e=>Me.url.pathname.startsWith(e)).reduce((e,t)=>t.length>e.length?t:e,``));h(`keydown`,M,k),ii(e,{children:(e,r)=>{var a=Ri(),u=T(a),f=T(u),p=T(f),h=_(p,!0),v=V(p,2);te(v,21,()=>R(N),e=>e.id,(e,t)=>{let n=S(()=>R(t).href===R(F));var r=Li(),i=T(r);d(i,()=>R(t).Icon,(e,t)=>{t(e,{class:`size-4`})});var a=V(i,2),o=_(a,!0);H(r),x(()=>{j(r,`id`,`nav-${R(t).id}-link`),j(r,`href`,R(t).href),j(r,`aria-current`,R(n)?`page`:void 0),j(r,`aria-label`,R(t).label),C(r,1,g([`inline-flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm transition-colors`,R(n)?`bg-muted font-medium`:`text-muted-foreground hover:text-foreground`])),l(o,R(t).label)}),s(e,r)}),H(v),H(f);var b=V(f,2),k=T(b);_t(k,{class:`text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-3.5 -translate-y-1/2`});var M=V(k,2);ke(M,{id:`nav-filter-input`,type:`search`,onkeydown:O,get"aria-label"(){return i().nav.filter},class:`ps-8 pe-3 md:pe-14 [&::-webkit-search-cancel-button]:hidden`,get ref(){return R(D)},set ref(e){A(D,e,!0)},get value(){return E(),o()},set value(e){ee(st,e)}});var P=V(M,2);Pe(P,{class:`absolute end-2 top-1/2 hidden -translate-y-1/2 md:inline-flex`,children:(e,t)=>{y();var n=m();x(()=>l(n,ue?`⌘K`:`Ctrl K`)),s(e,n)},$$slots:{default:!0}}),H(b);var I=V(b,2),L=T(I);di(L,{role:`system:halt`,denied:e=>{},children:(e,t)=>{Oe(e,{})},$$slots:{denied:!0,default:!0}});var z=V(L,2);K(z,{id:`iam-logout-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return i().nav.signout},class:`text-destructive hover:text-destructive`,get onclick(){return Ce},children:(e,t)=>{ht(e,{})},$$slots:{default:!0}}),H(I),H(u);var B=V(u,2);di(T(B),{role:`system:introspection`,children:(e,r)=>{var i=c(),a=w(i);t(a,()=>n.children),s(e,i)},$$slots:{default:!0}}),H(B),H(a),x(()=>l(h,we.title)),s(e,a)},$$slots:{default:!0}}),p(),f()}export{zi as component};
@@ -0,0 +1 @@
1
+ import"../chunks/CLKsegBr.js";import"../chunks/T6aDAu0j.js";import{t as e}from"../chunks/D71VbAAP.js";function t(t){e(t,{class:`h-full`})}export{t as component};
@@ -0,0 +1 @@
1
+ import{Et as e,Tt as t,ft as n,rt as r}from"../chunks/CLKsegBr.js";import{t as i}from"../chunks/Dj16C-qO.js";import"../chunks/MxlBtjyK.js";import{n as a,t as o}from"../chunks/D71VbAAP.js";function s(s,c){e(c,!0);let l=n(()=>a(i.params.id??``));o(s,{class:`h-full`,get focus(){return r(l)}}),t()}export{s as component};
@@ -0,0 +1 @@
1
+ import{I as e,R as t,ht as n,xt as r}from"../chunks/CLKsegBr.js";import{t as i}from"../chunks/BD1YlRW0.js";import"../chunks/T6aDAu0j.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":"1792759264135"}
1
+ {"version":"1793035395711"}
@@ -16,16 +16,18 @@
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.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
- <link href="/.introspection/_app/immutable/chunks/xihTtKlq.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">
19
+ <link href="/.introspection/_app/immutable/entry/start.9DaaOudW.js" rel="modulepreload">
20
+ <link href="/.introspection/_app/immutable/entry/payload.DSmR2FwN.js" rel="modulepreload">
21
+ <link href="/.introspection/_app/immutable/chunks/CRzLMJPS.js" rel="modulepreload">
22
+ <link href="/.introspection/_app/immutable/chunks/BGFfxzkw.js" rel="modulepreload">
23
+ <link href="/.introspection/_app/immutable/chunks/BUuXt4am.js" rel="modulepreload">
24
+ <link href="/.introspection/_app/immutable/chunks/CLKsegBr.js" rel="modulepreload">
25
+ <link href="/.introspection/_app/immutable/chunks/Dj16C-qO.js" rel="modulepreload">
26
+ <link href="/.introspection/_app/immutable/entry/app.DA9iv2wV.js" rel="modulepreload">
27
+ <link href="/.introspection/_app/immutable/nodes/0.NKaa8xm4.js" rel="modulepreload">
28
+ <link href="/.introspection/_app/immutable/chunks/XKyaHtl9.js" rel="modulepreload">
29
+ <link href="/.introspection/_app/immutable/chunks/BOAbibaf.js" rel="modulepreload">
30
+ <link href="/.introspection/_app/immutable/chunks/MxlBtjyK.js" rel="modulepreload">
29
31
  <link href="/.introspection/_app/env.js" rel="modulepreload">
30
32
 
31
33
  <link href="/.introspection/_app/immutable/assets/0.lZd8PDGB.css" rel="stylesheet">
@@ -34,8 +36,9 @@
34
36
  <div style="display: contents">
35
37
  <script>
36
38
  {
37
- __sveltekit_li1qes = {
39
+ __sveltekit_upcxcn = {
38
40
  base: "/.introspection",
41
+ version: "1793035395711",
39
42
  assets: "/.introspection",
40
43
  env: null
41
44
  };
@@ -43,12 +46,11 @@
43
46
  const element = document.currentScript.parentElement;
44
47
 
45
48
  import("/.introspection/_app/env.js").then(({ env }) => {
46
- __sveltekit_li1qes.env = env;
49
+ __sveltekit_upcxcn.env = env;
47
50
 
48
- Promise.all([
49
- import("/.introspection/_app/immutable/entry/start.q7yYuVLR.js"),
50
- import("/.introspection/_app/immutable/entry/app.Sb72KUFn.js")
51
- ]).then(([kit, app]) => {
51
+ import("/.introspection/_app/immutable/entry/start.9DaaOudW.js").then(async (kit) => {
52
+ kit.init(__sveltekit_upcxcn);
53
+ const app = await import("/.introspection/_app/immutable/entry/app.DA9iv2wV.js");
52
54
  kit.start(app, element);
53
55
  });
54
56
  });
@@ -1 +0,0 @@
1
- import"./gDwfFIiF.js";
@@ -1 +0,0 @@
1
- import{A as e,At as t,Ct as n,M as r,St as i,a,d as o,et as s,i as c,kt as l,s as u,x as d}from"./Dz3pFDN9.js";import"./xihTtKlq.js";import{O as f}from"./Djzgvszh.js";var p=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),m=r(`<kbd><!></kbd>`);function h(r,h){n(h,!0);let g=c(h,`ref`,15,null),_=a(h,p);var v=m();o(v,e=>({"data-slot":`kbd`,class:e,..._}),[()=>f(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,h.class)]);var y=s(v);d(y,()=>h.children??t),l(v),u(v,e=>g(e),()=>g()),e(r,v),i()}export{h as t};
@@ -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"./Dz3pFDN9.js";import{s as oe,t as se}from"./gDwfFIiF.js";import"./QWn5Fu7g.js";import"./xihTtKlq.js";import{F as ce,I as le,N as ue,c as de,l as fe}from"./CvpzImRs.js";import"./BKLS6E7N.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"./Djzgvszh.js";import{t as Fe}from"./CBWKRJPw.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}else{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}}else{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)(r=n[o]).name===t?(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=!1;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"./Dz3pFDN9.js";import{a as e}from"./gDwfFIiF.js";var t={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};export{t};
@@ -1,6 +0,0 @@
1
- import{A as e,At as t,C as n,Ct as r,E as i,I as a,L as o,M as s,Mt as c,N as l,St as u,V as d,_t as f,a as p,bt as m,ct as h,d as g,dt as _,et as v,ft as y,gt as b,ht as x,i as S,j as C,jt as ee,kt as w,nt as T,o as E,tt as D,vt as O,w as te,x as k,y as ne}from"./Dz3pFDN9.js";import{t as re}from"./QWn5Fu7g.js";import"./xihTtKlq.js";var ie=class{store;values;request;revalidate;stale;timestamp=0;constructor(e){this.store=O(null),this.values=e.values,this.request=e.get,this.revalidate=e.revalidate??oe.revalidate,this.stale=e.stale??oe.stale,e.persist!==void 0&&this.persist(e.persist),e.bind!==void 0&&this.bind(e.bind)}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}add(e){this.values?.set(e.id,e),this.store.update(t=>t===null||t instanceof Error?[e]:t.find(t=>t.id===e.id)===void 0?[e,...t]:t)}get(e,t){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.get(e,t)}extract(e){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.extract(e)}delete(e){this.values?.delete(e),this.store.update(t=>t===null||t instanceof Error?t:t.filter(t=>t.id!==e))}set(e,t){this.store.update(n=>{if(n===null||n instanceof Error)return[e];let r=n.findIndex(t=>t.id===e.id);return r===-1?t?.add===!0?[e,...n]:n:(n[r]=e,n)}),this.values?.set(e.id,e)}update(e,t,n){if(this.values===void 0)throw Error(`Collection: values is not defined`);let r=this.values.extract(e);if(r===null)return;let i=t(r)??r;this.set(i,n)}sync(){return(this.timestamp===0||this.timestamp+this.revalidate<Date.now())&&(this.stale||this.clear(),this.refresh()),this}async fetch(){return await this.refresh(),this}replace(e){let t=e;if(this.store.set(t),this.timestamp=Date.now(),this.values!==void 0)for(let e of t)this.values.set(e.id,e)}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error?this.store.set(e):this.replace(e)}persist(e){if(typeof window>`u`)return;let t=this.load(e);if(t!==null&&(this.store.set(t),this.values?.persistent===!1))for(let e of t)this.values.set(e.id,e);this.store.subscribe(t=>{t instanceof Error||(t===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t)))})}load(e){if(typeof window>`u`)return null;let t=localStorage.getItem(e);if(t===null)return null;try{let n=JSON.parse(t);return Array.isArray(n)?n:(console.error(`Storage value for ${e} is not an array:`,n),null)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}clear(){this.store.set(null),this.values?.clear(),this.timestamp=0}};function ae(e){return new ie(e)}var oe={revalidate:3e5,stale:!1},se=class{persistent;values={};fetch;revalidate;permanent;stale;persist;ready=!1;dumping=null;constructor(e){this.fetch=e.get,this.revalidate=e.revalidate??A.revalidate,this.permanent=e.permanent??A.permanent,this.stale=e.stale??A.stale,this.persist=e.persist,this.persistent=this.persist!==void 0,this.load(),e.bind!==void 0&&this.bind(e.bind)}set(e,t,n){let r=t,i=this.values[e]??(this.values[e]=this.create(r));return n?.stash===!0?this.stash(e):delete i.stash,i.store.set(r),!(r instanceof Error)&&this.ready&&n?.stash!==!0&&this.dump(),this.values[e].store}reset(e){let t=this.values[e]?.stash;return t===void 0?this.extract(e):(t===null?this.delete(e):this.set(e,t),t)}get(e,t){this.ready=!0;let n=this.values[e]??=this.create();return this.fetch===void 0||t?.fetch===!1||(n.timestamp===0||n.timestamp+this.revalidate<Date.now())&&(this.stale||n.store.set(null),n.timestamp=Date.now(),this.fetch(e).then(t=>this.set(e,t))),n.store}extract(e){if(this.values[e]===void 0)return null;let t=b(this.values[e].store);return t instanceof Error?null:t}delete(e){if(!(e in this.values))return;let t=this.values[e];t.store.set(null),t.timestamp=0,delete t.stash,this.dump()}clear(){for(let e of Object.keys(this.values))this.delete(e);this.ready=!1}create(e){return{store:O(e??null),timestamp:this.permanent&&e!==void 0?Date.now():0}}stash(e){let t=this.values[e];if(t.stash!==void 0){console.warn(`Stash overlap, skipping`);return}let n=this.get(e,{fetch:!1});t.stash??=b(n)}dump(e=!0){if(this.persist===void 0||typeof window>`u`)return;if(e){this.dumping??=setTimeout(()=>this.dump(!1),ce);return}this.dumping=null;let t={};for(let[e,n]of Object.entries(this.values)){let r=n.stash??b(n.store);r!==null&&!(r instanceof Error)&&(t[e]=r)}Object.keys(t).length===0?localStorage.removeItem(this.persist):localStorage.setItem(this.persist,JSON.stringify(t))}load(){if(this.persist===void 0||typeof window>`u`)return;let e=localStorage.getItem(this.persist);if(e!==null)try{let t=JSON.parse(e);if(typeof t!=`object`||!t){console.error(`Storage value for ${this.persist} is not an object:`,t);return}for(let[e,n]of Object.entries(t))this.set(e,n)}catch(e){console.error(`Invalid storage value for ${this.persist}`,e)}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}},ce=100,A={revalidate:3e5,permanent:!1,stale:!1};function le(e={}){return new se(e)}var ue=class{store;default;request;revalidate;timestamp=0;constructor(e){this.default=e.default??null,this.request=e.get,this.revalidate=e.revalidate??pe.revalidate,this.store=e.persist===void 0||typeof window>`u`?O(this.default):de(e.persist,this.default,e.session),e.bind&&this.bind(e.bind)}set(e){this.store.set(e)}update(e){this.store.update(t=>e(t))}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}extract(){return b(this.store)}sync(){this.request!==void 0&&this.timestamp+this.revalidate<Date.now()&&this.refresh()}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error||this.set(e)}bind(e){e.subscribe(e=>{e===null&&this.store.set(this.default)})}};function j(e={}){return new ue(e)}function de(e,t,n){let r=O(fe(e)??t),i=n?`sessionStorage`:`localStorage`;return r.subscribe(t=>{t===null?window[i].removeItem(e):window[i].setItem(e,JSON.stringify(t))}),r}function fe(e){let t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}var pe={revalidate:3e5};function me(e,t){return new Promise(n=>{let r=!1,i=null;i=e.subscribe(e=>{t(e)&&(i?.(),r=!0,n(e))}),r&&i?.()})}function he(e){return me(e,e=>e!==null&&!(e instanceof Error))}function ge(...e){return x(e,(e,t)=>{let n=e.find(e=>e instanceof Error);n?t(n):e.some(e=>e===null)?t(null):t([...e])})}var _e={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},ve=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ye=Symbol(`lucide-context`),be=()=>m(ye),xe=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),Se=l(`<svg><!><!></svg>`);function M(i,a){r(a,!0);let o=be()??{},s=S(a,`color`,19,()=>o.color??`currentColor`),c=S(a,`size`,19,()=>o.size??24),l=S(a,`strokeWidth`,19,()=>o.strokeWidth??2),f=S(a,`absoluteStrokeWidth`,19,()=>o.absoluteStrokeWidth??!1),m=S(a,`iconNode`,19,()=>[]),_=p(a,xe),y=h(()=>f()?Number(l())*24/Number(c()):l());var b=Se();g(b,e=>({..._e,...e,..._,width:c(),height:c(),stroke:s(),"stroke-width":d(y),class:[`lucide-icon lucide`,o.class,a.name&&`lucide-${a.name}`,a.class]}),[()=>!a.children&&!ve(_)&&{"aria-hidden":`true`}]);var x=v(b);n(x,17,m,te,(t,n)=>{var r=h(()=>ee(d(n),2));let i=()=>d(r)[0],a=()=>d(r)[1];var o=C(),s=D(o);ne(s,i,!0,(e,t)=>{g(e,()=>({...a()}))}),e(t,o)});var E=T(x);k(E,()=>a.children??t),w(b),e(i,b),u()}var Ce=new Set([`$$slots`,`$$events`,`$$legacy`]);function N(e,t){let n=p(t,Ce),r=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]];M(e,E({name:`loader-circle`},()=>n,{get iconNode(){return r}}))}var we=new Set([`$$slots`,`$$events`,`$$legacy`]);function Te(e,t){let n=p(t,we),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]];M(e,E({name:`rotate-ccw`},()=>n,{get iconNode(){return r}}))}var Ee=s(`<div class="m-auto flex flex-col items-center gap-4"><span class="text-destructive">Something went terribly wrong</span> <button class="p-4 border border-muted-foreground hover:bg-muted cursor-pointer rounded-md flex items-center gap-2"><!></button></div>`);function De(t,n){let r=()=>y(n.store,`$store`,a),[a,s]=_(),c=S(n,`silent`,3,!1);var l=C(),u=D(l),d=t=>{var r=C(),a=D(r),o=t=>{var r=C(),i=D(r);k(i,()=>n.waiting),e(t,r)},s=e=>{N(e,{class:`animate-spin m-auto text-muted-foreground`})};i(a,e=>{n.waiting?e(o):c()||e(s,1)}),e(t,r)},f=t=>{var a=C(),s=D(a),l=t=>{var i=C(),a=D(i);k(a,()=>n.error,r),e(t,i)},u=t=>{var n=Ee(),r=T(v(n),2);Te(v(r),{size:16}),w(r),w(n),o(`click`,r,()=>window.location.reload()),e(t,n)};i(s,e=>{n.error?e(l):c()||e(u,1)}),e(t,a)},p=t=>{var i=C(),a=D(i);k(a,()=>n.awaited,r),e(t,i)};i(u,e=>{r()===null?e(d):r()instanceof Error?e(f,1):e(p,-1)}),e(t,l),s()}a([`click`]);var P=j({persist:`auth:account`}),F=j({persist:`auth:challenge`,bind:P}),I=j({persist:`auth:method`}),Oe=O(!1),ke=O(!1),Ae=x([F,P,Oe],([e,t,n])=>e!==null&&t!==null&&n===!1);function je(e){P.extract()?.id!==e.id&&P.set(null),P.set(e)}function L(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var R=c((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Err=void 0,e.Err=class extends Error{code;name=`Error`;message=``;cause;constructor(e,t){super(),this.code=e,delete this.stack,Object.defineProperty(this,"name",{enumerable:!1}),typeof t==`string`?(this.message=t,Object.defineProperty(this,"cause",{enumerable:!1})):(Object.defineProperty(this,"message",{enumerable:!1}),Object.defineProperty(this,"cause",{enumerable:t!==void 0,value:t}))}}}))();async function Me(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get(`content-type`);if(!n||!~n.indexOf(`multipart/`))return e;let r=n.indexOf(`boundary=`),i=`-`;if(~r){let e=r+9,t=n.indexOf(`;`,e);i=n.slice(e,t>-1?t:void 0).trim().replace(/"/g,``)}return async function*(e,t,n){let r,i,a,o=new TextDecoder(`utf8`),s=e.getReader(),c=!n||!n.multiple,l=t.length,u=``,d=[];try{let e;e:for(;!(e=await s.read()).done;){let n=o.decode(e.value,{stream:!0});r=u.length,u+=n;let s=n.indexOf(t);for(~s?r+=s:r=u.indexOf(t),d=[];~r;){let e=u.slice(0,r),n=u.slice(r+l);if(i){let t=e.indexOf(`\r
2
- \r
3
- `)+4,r=e.lastIndexOf(`\r
4
- `,t),i=!1,o=e.slice(t,r>-1?void 0:r),s=String(e.slice(0,t)).trim().split(`\r
5
- `),l={},u=s.length;for(;a=s[--u];a=a.split(`: `),l[a.shift().toLowerCase()]=a.join(`: `));if(a=l[`content-type`],a&&~a.indexOf(`application/json`))try{o=JSON.parse(o),i=!0}catch{}if(a={headers:l,body:o,json:i},c?yield a:d.push(a),n.slice(0,2)===`--`)break e}else t=`\r
6
- `+t,i=l+=2;u=n,r=u.indexOf(t)}d.length&&(yield d)}}finally{d.length&&(yield d),await s.cancel()}}(e.body,`--${i}`,t)}var Ne=Object.defineProperty,Pe=(e,t)=>{for(var n in t)Ne(e,n,{get:t[n],enumerable:!0})},Fe=Symbol(`meta`);function Ie(e){return e[Fe]??null}function Le(e,t){Object.defineProperty(e,Fe,{value:t,writable:!1,enumerable:!1,configurable:!1})}var Re=class{origin;events;sleep;fetch=fetch.bind(globalThis);challenge=null;constructor(e){this.origin=e.origin,this.events=e.events,e.sleep!==void 0&&(this.sleep=JSON.stringify(e.sleep))}async json(e,t){let n=this.setup(t),r=await this.request(e,n),i=r.headers.get(`content-type`)===`application/json`?await r.json():await r.text();return typeof i==`object`&&i&&Le(i,{status:r.status,headers:r.headers}),r.ok?(this.events.emit(`response`,{status:r.status,headers:r.headers}),i):(this.events.emit(`error`,{code:r.status,body:i}),new R.Err(r.status,i))}async multipart(e,t){let n=this.setup(t),r=await this.request(e,n);if(!r.ok)return new R.Err(r.status,{body:await r.text()});let i=await Me(r),a=await i.next();if(n.debug&&console.debug(`Multipart ACK`,{path:e,body:a.value.body}),JSON.parse(a.value.body)!==`ACK`)throw Error(`No ACK`);return(async function*(){for await(let t of i){n.debug&&console.debug(`Multipart chunk`,{path:e,body:t.body});let r=JSON.parse(t.body);if(r===`FIN`)return;yield r}})()}async octets(e,t){let n=await this.multipart(e,t);if(n instanceof Error)return n;let r=(await n.next()).value,i=L();return(async()=>{await new Promise(e=>setTimeout(e,0));for await(let r of n){let n=r.status===`completed`?r.error?new R.Err(r.error.code??`UNKNOWN`,r.error.message):r.output:new R.Err(`EXCEPTION`);t?.debug&&console.debug(`Emitting octets step`,{path:e,step:r.step,payload:n}),i.emit(r.step,n)}i.off(`*`)})(),[r,i]}authenticate(e){this.challenge=e}use(e){this.fetch=e}setup(e){if(e??={},e.headers??={},e.headers.accept??=`application/json`,this.sleep!==void 0&&(e.headers.sleep=this.sleep),e.credentials===`include`&&e.headers.authorization===void 0){if(this.challenge===null)throw Error(`Credentials must be set before sending authenticated request`);e.headers.authorization=this.challenge,delete e.credentials}return e.body!==void 0&&(e.method??=`POST`,e.body instanceof File||e.body instanceof ReadableStream?(e.duplex=`half`,e.headers[`content-type`]??=e.body.type??`application/octet-stream`):(e.body=JSON.stringify(e.body),e.headers[`content-type`]??=`application/json`)),e}async request(e,t){let n=new URL(e,this.origin),r=await this.fetch(n.href,t),i=r.headers.get(`authorization`);return i!==null&&(this.challenge=i,this.events.emit(`challenge`,i)),r}},ze=class{agent;path;init;constructor(e){this.agent=e.agent,this.path=e.path,this.init=e.init}async json(e,t){return await this.request(`json`,e,t)}async octets(e,t){return await this.request(`octets`,e,t)}async multipart(e,t){return await this.request(`multipart`,e,t)}async request(e,t,n){let r=typeof t==`string`?t:``;n=typeof t==`string`?n:t;let i=this.abs(r),a=Object.assign({},this.init,n);if(e===`json`)return await this.agent.json(i,a);if(e===`octets`)return await this.agent.octets(i,a);if(e===`multipart`)return await this.agent.multipart(i,a);throw Error(`Invalid method: ${e}`)}abs(e){let t=new URL(this.path,`https://void`),n=new URL(e,t);return n.pathname.endsWith(`/`)||(n.pathname+=`/`),n.pathname+n.search}},Be=class{events;agent;constructor(e){this.events=L(),this.agent=new Re({origin:e.origin,events:this.events,sleep:e.sleep})}resource(e,t){return new ze({agent:this.agent,path:e,init:t})}authenticate(e){this.agent.authenticate(e)}use(e){this.agent.use(e)}};function Ve(e){return typeof e==`string`&&(e={origin:e}),new Be(e)}Pe({},{format:()=>Ue,test:()=>He});function He(e){return/^[[(]\d+\.\.\d+[\])]{1}$/.test(e)}function Ue(e,t){let[n,r]=t.slice(1,-1).split(`..`);return[`${e}${t.startsWith(`(`)?`>`:`>=`}${n}`,`${e}${t.endsWith(`)`)?`<`:`<=`}${r}`]}var We={title:`Introspection`,description:`The map of a Toa application`},Ge=8e3,Ke=(()=>{if(typeof window>`u`)return``;let{protocol:e,hostname:t,origin:n}=window.location;return Ye(t)?`${e}//${t}:${Ge}`:n})(),qe=8003;function Je(e){if(typeof window>`u`)return``;let{protocol:t,hostname:n}=window.location;return`${Ye(n)?`${t}//${n}:${qe}`:``}/.configuration/${e}/`}function Ye(e){return e===`localhost`||e===`127.0.0.1`||e===`[::1]`||e.startsWith(`192.168.`)||e.startsWith(`172.16.`)||e.startsWith(`10.`)}var Xe=`1`;(()=>{let e=new Date(Number.parseInt(re)),t=e.getFullYear(),n=new Date(t,0,1).getTime(),r=new Date(t+1,0,1).getTime();return`${Xe}.${(t+(e.getTime()-n)/(r-n)).toFixed(4)}`})();var z=Ve({origin:Ke,sleep:void 0});console.info(`Origin connected`,Ke,`no sleep`);var Ze=z.resource(`/identity/`);async function B(e){let t={method:`GET`};return e!==void 0&&(t.headers={authorization:e},t.credentials=`include`),Ze.json(t)}var Qe=z.resource(`/identity/basic/`,{credentials:`include`});async function $e(e,t){return await Qe.json(e,{method:`POST`,body:t})}var et=z.resource(`/accounts/otp/`);async function V(e,t){return typeof e==`string`?await et.json(e,{method:`POST`,body:t,credentials:`include`}):await et.json({method:`POST`,body:e})}var tt=z.resource(`/identity/passkeys/`);async function nt(e,t){return typeof e==`string`?await tt.json(e,{method:`POST`,body:t,credentials:`include`}):await tt.json({method:`POST`,body:e})}var rt=z.resource(`/identity/federation/`,{credentials:`include`});async function it(e,t){return await rt.json(e,{method:`POST`,body:t})}async function H(){let e=F.extract();if(e===null)return;let t=await B(e);if(t instanceof Error)return t;je(t)}function U(e,t){return e instanceof Error||(je(e),I.set(t)),e}var at=j({persist:`auth:oidc:nonce`});function ot(e,t){let{client:n,endpoint:r,type:i,scope:a}=e;if(n===void 0||n===``)throw Error(`Client ID is required`);let o=st(),s=new URLSearchParams({client_id:n,redirect_uri:window.location.origin+`/`,response_type:i,response_mode:`fragment`,scope:a,state:btoa(JSON.stringify({idp:t})),nonce:o});at.set(o),window.location.href=r+`?`+s}function st(){return window.crypto?.randomUUID?.()??Math.random().toString(16).slice(2)}var ct=globalThis.__sveltekit_li1qes.env,lt={apple:{iss:`https://appleid.apple.com`,endpoint:`https://appleid.apple.com/auth/authorize`,type:`code`,scope:`openid`,client:ct.PUBLIC_APPLE_CLIENT_ID},google:{iss:`https://accounts.google.com`,endpoint:`https://accounts.google.com/o/oauth2/v2/auth`,type:`id_token`,scope:`openid profile`,client:ct.PUBLIC_GOOGLE_CLIENT_ID}};async function ut(e){await dt();let t=await new Promise(t=>{window.google.accounts.oauth2.initCodeClient({client_id:e.client,scope:e.scope,ux_mode:`popup`,state:btoa(JSON.stringify({idp:`google`})),redirect_uri:window.location.origin+`/`,callback:async e=>{t(e)}}).requestCode()});return t?.code===void 0?Error(`NO_RESPONSE`,{cause:t}):t.code}function dt(){return new Promise((e,t)=>{if(window.google?.accounts?.oauth2!==void 0)return e(void 0);let n=document.createElement(`script`);n.src=`https://accounts.google.com/gsi/client`,n.async=!0,n.onload=()=>e(void 0),n.onerror=t,document.head.appendChild(n)})}var W=typeof window<`u`&&window;async function ft(e){await pt(e);let t=await W.AppleID.auth.signIn().catch(e=>e);return t instanceof Error?t:t?.authorization===void 0?Error(`No authentication response received`,{cause:t}):t.authorization.code}function pt(e){if(W.AppleID===void 0)return new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`,r.async=!0,r.onload=()=>{W.AppleID.auth.init({clientId:e.client,scope:e.scope,redirectURI:window.location.origin,state:btoa(JSON.stringify({idp:`apple`})),usePopup:!0}),t(void 0)},r.onerror=n,document.head.appendChild(r)})}var mt={apple:ft,google:ut};async function ht(e,t){let n=await gt(e);return n instanceof Error?n:t===void 0?vt(e,n):_t(t,n)}async function gt(e){let t=mt[e]??ot,n=lt[e],r=await t(n,e);if(r instanceof Error)return console.error(`Authentication failed`,r),r;if(r===void 0)throw Error(`No authentication code received, redirect flow is not supported`);let i={code:r,iss:n.iss,for:window.location.origin};return btoa(JSON.stringify(i))}async function _t(e,t){let n=await it(e,{scheme:`code`,credentials:t});if(n instanceof Error)return n;H()}async function vt(e,t){return U(await B(`Code `+t),e)}function yt(){P.set(null)}async function bt(e,t){return U(await B(`Basic `+btoa(`${e}:${t}`)),`password`)}async function xt(e,t){return await $e(e,t)}async function St(e,t){let n=await xt(e,t);if(n instanceof Error)return n;H()}async function Ct(e){return V({email:e})}async function wt(e,t){return await V(e,{email:t})}async function Tt(e,t){return U(await B(`OTP `+btoa(`${e}:${t}`)),`password`)}var Et=z.resource(`/identity/passkeys/challenges/`);async function Dt(e,t){let n={type:e};return t===void 0?await Et.json(`.`,{method:`POST`,body:n}):await Et.json(t,{method:`POST`,body:n})}var Ot=z.resource(`/identity/passkeys/`);async function kt(e){return await Ot.json(e,{credentials:`include`})}async function At(){return await kt((await he(P)).id)}ae({get:At,persist:`identity:passkeys`,bind:P,stale:!0});function G(e){let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function jt(e){return new TextEncoder().encode(e).buffer}function K(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function Mt({id:e,transports:t}){return{id:G(e),type:`public-key`,transports:t}}async function Nt(e,t){let n={challenge:G(t.challenge),timeout:t.timeout,authenticatorSelection:t.authenticatorSelection,pubKeyCredParams:t.pubKeyCredParams,rp:{name:`app`},user:{id:jt(e.id),name:e.name,displayName:e.name},excludeCredentials:t.excludeCredentials.map(Mt)};return await navigator.credentials.create({publicKey:n}).catch(e=>e)}async function Pt(e){let t={timeout:e.timeout,challenge:G(e.challenge),allowCredentials:e.allowCredentials.map(Mt),userVerification:e.userVerification};return await navigator.credentials.get({publicKey:t})}async function Ft(e,t){let n=await Dt(`creation`,t);if(n instanceof Error)return n;let r=await Nt({id:n.identity,name:e},n);if(r instanceof Error)return r;if(r===null)throw Error(`No credential is created`);return{key:It(r,e),identity:n.identity}}function It(e,t){let n=e.response,r=n.getAuthenticatorData(),i=n.getTransports(),a=n.getPublicKeyAlgorithm(),o=n.getPublicKey(),s=e.getClientExtensionResults();if(o===null)throw Error(`No public key is created`);return{id:e.id,type:e.type,response:{attestationObject:K(n.attestationObject),clientDataJSON:K(n.clientDataJSON),authenticatorData:K(r),transports:i,publicKeyAlgorithm:a,publicKey:K(o)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:s,label:t}}async function Lt(e){let t=await Dt(`request`,e);if(t instanceof Error)return t;let n=Date.now(),r=await Pt(t).catch(e=>e);return r instanceof Error?r.name===`NotAllowedError`&&Date.now()-n<50?new zt:r:r===null?Error(`No credential given`):Rt(r)}function Rt(e){let t=e.response;return{id:e.id,type:e.type,response:{authenticatorData:K(t.authenticatorData),clientDataJSON:K(t.clientDataJSON),signature:K(t.signature),userHandle:t.userHandle===null?null:K(t.userHandle)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:e.getClientExtensionResults()}}var zt=class extends Error{constructor(){super(),this.name=this.constructor.name}},Bt=typeof window>`u`||window.PublicKeyCredential!==void 0;async function Vt(e,t){let n=await Ft(e,t);if(n instanceof Error)return console.error(`Credential creation failed`,n),n;let r=await nt(n.identity,n.key);if(r instanceof Error)return console.error(`Credential registration failed`,r),r;let i=F.extract();return i===null?Error(`Unauthenticated`):U(await B(i),`passkey`)}async function Ht(e){let t=await Lt(e);if(t instanceof Error)return console.error(`Credential request failed`,t),t;let n=await nt(t);if(n instanceof Error)return console.error(`Credential verification failed`,n),n;let r=F.extract();return r===null?Error(`Unauthenticated`):U(await B(r),`passkey`)}function Ut(e){if(document.startViewTransition===void 0)return Promise.resolve(e?.());let t=e!==void 0;return t&&Xt(),new Promise(n=>{let r=document.startViewTransition(async()=>{Kt(),n(await e?.())});r.finished.then(i,i),r.ready.catch(Wt);function i(){t&&Zt(),J()}})}function Wt(){}function Gt(e){if(!(e.type===`popstate`&&e.event.hasUAVisualTransition)&&document.startViewTransition!==void 0)return new Promise(t=>{let n=document.startViewTransition({types:[`route`],update:async()=>{Kt(),t(),await e.complete}});n.finished.then(J,J),n.ready.catch(Wt)})}var q=null;function Kt(){if(q===null)return;let e=q.el.style.viewTransitionName===q.name;q.el.style.viewTransitionName=e?``:q.name,q.el.style.viewTransitionClass=e?``:q.classes??``}function J(){q!==null&&q.el.style.viewTransitionName===q.name&&(qt(q),q=null)}function qt(e){e.el.style.viewTransitionName=``,e.el.style.viewTransitionClass=``}var Jt=O(!1),Y=new Set;function Yt(e,t){let n={node:e,options:t,original:{name:e.style.viewTransitionName,classes:e.style.viewTransitionClass}};return Y.add(n),{destroy:()=>Y.delete(n)}}function Xt(){Jt.set(!0);for(let e of Y)e.original={name:e.node.style.viewTransitionName,classes:e.node.style.viewTransitionClass},e.node.style.viewTransitionName=e.options.name,e.options.classes!==void 0&&(e.node.style.viewTransitionClass=e.options.classes)}function Zt(){for(let e of Y)e.original!==void 0&&(e.node.style.viewTransitionName=e.original.name,e.node.style.viewTransitionClass=e.original.classes);Jt.set(!1)}navigator.userAgent.toLowerCase().includes(`windows`);var Qt=/mac ?os|ios|ipad ?os/i.test(navigator.userAgentData?.platform??``)||/(Mac|iPhone|iPad|iPod)/.test(navigator.userAgent);/android/i.test(navigator.userAgent),/(iPhone|iPad|iPod)/.test(navigator.userAgent),/^((?!chrome|android).)*safari/i.test(navigator.userAgent),`ontouchstart`in window,window.matchMedia(`(display-mode: standalone)`).matches,/PWAShell/i.test(navigator.userAgent),navigator.userAgent.match(/PWAShell\/(\S+)/)?.[1];var $t=!(`ontouchstart`in window);[`en-US`,`en-LR`,`en-MM`].includes(navigator.language),[`en-US`,`en-GB`,`en-CA`,`en-AU`,`en-NZ`,`en-IE`,`en-IN`,`en-LR`,`en-MM`].includes(navigator.language);function en(e=navigator.userAgent){return[/FBAN|FBAV|FB_IAB/i,/Instagram/i,/Twitter/i,/Line/i,/LinkedIn/i,/Snapchat/i,/WhatsApp/i,/WeChat/i,/Messenger/i,/QQ/i,/Reddit/i,/Puffin/i,/TikTok/i,/musical.ly/i,/YouTube/i,/Pinterest/i,/Discord/i,/Telegram/i,/Viber/i,/Slack/i,/Signal/i,/KakaoTalk/i,/Baidu/i].some(t=>t.test(e))||(()=>{let t=RegExp(`(${[`WebView`,`(iPhone|iPod|iPad)(?!.*Safari/)`,`Android.*(wv)`,`(AppleWebKit)(?!.*Safari)`].join(`|`)})`,`ig`);return e.match(t)!==null})()||`TelegramWebviewProxy`in window||`TelegramWebviewProxyProto`in window||`TelegramWebview`in window}en(navigator.userAgent);var tn=new URLSearchParams;new URLSearchParams;function nn(e){return tn.get(e)}function rn(e,t=24){return f(e,n=>{let r=Date.now(),i=setInterval(()=>a(),1e3/t);function a(){let t=e-(Date.now()-r);t>0?n(t):(n(0),clearInterval(i))}return a(),()=>clearInterval(i)})}var an={"en-US":{native:`English`,locale:`en-US`,dir:`ltr`,nav:{list:`List`,map:`Map`,signout:`Sign out`,filter:`Filter components`,halt:`HALT`},halt:{title:`Suspend operations`,description:`All systems will be inoperative for the interval you give, then resume automatically.`,interval:`Duration`,cancel:`Cancel`,hold:`Hold to halt`,bounds:(e,t)=>`${e}–${t} seconds`,quiescence:`Quiescence`,failed:`The halt request wasn’t accepted. Try again.`}}},on=[`en-US`];function sn(e){return on.some(t=>t.startsWith(e))}function X(e){return on.find(t=>t.startsWith(e))??`en-US`}var Z=c((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.format=o,e.parse=s;var t=/^[\u0009\u0020-\u007e\u0080-\u00ff]*$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/[\\"]/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,a=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function o(e){let{type:t,parameters:r}=e;if(!t||!i.test(t))throw TypeError(`Invalid type: ${t}`);let a=t;if(r)for(let e of Object.keys(r)){if(!n.test(e))throw TypeError(`Invalid parameter name: ${e}`);a+=`; ${e}=${y(r[e])}`}return a}function s(e,t){let n=t?.comma===!0?m:65536,r=e.length,i=_(e,t?.start??0,r),o=i;i=g(e,i,r,n);let s=v(e,o,i),c=e.slice(o,s).toLowerCase();return t?.parameters===!1?{type:c,index:i,parameters:new a}:h(e,c,i,r,n)}var c=32,l=9,u=59,d=61,f=34,p=92,m=44;function h(e,t,n,r,i){let o=new a;parameter:for(;n<r&&e.charCodeAt(n)!==i;){n=_(e,n+1,r);let t=n;for(;n<r;){let a=e.charCodeAt(n);if(a===i)break parameter;if(a===u)continue parameter;if(a===d){let a=v(e,t,n),s=e.slice(t,a).toLowerCase();if(n=_(e,n+1,r),n<r&&e.charCodeAt(n)===f){n++;let t=``;for(;n<r;){let a=e.charCodeAt(n++);if(a===f){n=g(e,n,r,i),o[s]===void 0&&(o[s]=t);break}t+=a===p&&n<r?e[n++]:String.fromCharCode(a)}continue parameter}let c=n;if(n=g(e,n,r,i),o[s]===void 0){let t=v(e,c,n);o[s]=e.slice(c,t)}continue parameter}n++}}return{type:t,index:n,parameters:o}}function g(e,t,n,r){for(;t<n;){let n=e.charCodeAt(t);if(n===u||n===r)break;t++}return t}function _(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==c&&n!==l)break;t++}return t}function v(e,t,n){for(;n>t;){let t=e.charCodeAt(n-1);if(t!==c&&t!==l)break;n--}return n}function y(e){if(n.test(e))return e;if(t.test(e))return`"${e.replace(r,`\\$&`)}"`;throw TypeError(`Invalid parameter value: ${e}`)}})),Q=c(((e,t)=>{var n=Z();t.exports=r;function r(e){for(var t=[],r=0;r<e.length;){var a=i(e,r),o=n.parse(e,{comma:!0,start:a});o.type=e.slice(a,a+o.type.length),t.push(o),r=o.index+1}return t}function i(e,t){for(var n=t;e.charCodeAt(n)===32||e.charCodeAt(n)===9;)n++;return n}})),cn=c(((e,t)=>{var n=Q();t.exports=s,t.exports.preferredCharsets=s;function r(e){for(var t=n(e),r=0,a=0;r<t.length;r++){var o=i(t[r],r);o&&(t[a++]=o)}return t.length=a,t}function i(e,t){return e.type?{charset:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.charset.toLowerCase()===e.toLowerCase())r|=1;else if(t.charset!==`*`)return null;return{i:n,o:t.i,q:t.q,s:r}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.charset}function u(e){return e.q>0}})),ln=c(((e,t)=>{var n=Q();t.exports=s,t.exports.preferredEncodings=s;function r(e){for(var t=n(e),r=!1,a=1,s=0,c=0;s<t.length;s++){var l=i(t[s],s);l&&(t[c++]=l,r||=o(`identity`,l),a=Math.min(a,l.q||1))}return r||(t[c++]={encoding:`identity`,q:a,i:s}),t.length=c,t}function i(e,t){return e.type?{encoding:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={encoding:e,o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.encoding.toLowerCase()===e.toLowerCase())r|=1;else if(t.encoding!==`*`)return null;return{encoding:e,i:n,o:t.i,q:t.q,s:r}}function s(e,t,n){var i=r(e||``),o=n?function(e,t){if(e.q!==t.q)return t.q-e.q;var r=n.indexOf(e.encoding),i=n.indexOf(t.encoding);return r===-1&&i===-1?t.s-e.s||e.o-t.o||e.i-t.i:r!==-1&&i!==-1?r-i:r===-1?1:-1}:c;if(!t)return i.filter(u).sort(o).map(l);var s=t.map(function(e,t){return a(e,i,t)});return s.filter(u).sort(o).map(function(e){return t[s.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function l(e){return e.encoding}function u(e){return e.q>0}})),un=c(((e,t)=>{var n=Z(),r=Q();t.exports=c,t.exports.preferredLanguages=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){if(!e.type)return null;var n=e.type.indexOf(`-`);return{prefix:n===-1?e.type:e.type.slice(0,n),suffix:n===-1?void 0:e.type.slice(n+1),q:e.parameters.q?parseFloat(e.parameters.q):1,i:t,full:e.type}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0);if(!i)return null;var o=0;if(t.full.toLowerCase()===i.full.toLowerCase())o|=4;else if(t.prefix.toLowerCase()===i.full.toLowerCase())o|=2;else if(t.full.toLowerCase()===i.prefix.toLowerCase())o|=1;else if(t.full!==`*`)return null;return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.full}function d(e){return e.q>0}})),dn=c(((e,t)=>{var n=Z(),r=Q();t.exports=c,t.exports.preferredMediaTypes=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){var n=e.type.indexOf(`/`);if(n===-1)return null;var r=e.parameters.q?parseFloat(e.parameters.q):1;return delete e.parameters.q,{type:e.type.slice(0,n),subtype:e.type.slice(n+1),params:e.parameters,q:r,i:t}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0),o=0;if(!i)return null;if(t.type.toLowerCase()==i.type.toLowerCase())o|=4;else if(t.type!=`*`)return null;if(t.subtype.toLowerCase()==i.subtype.toLowerCase())o|=2;else if(t.subtype!=`*`)return null;var s=Object.keys(t.params);if(s.length>0){if(s.every(function(e){return t.params[e]==`*`||(t.params[e]||``).toLowerCase()==(i.params[e]||``).toLowerCase()}))o|=1;else return null}return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*/*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.type+`/`+e.subtype}function d(e){return e.q>0}}));c(((e,t)=>{var n=cn(),r=ln(),i=un(),a=dn();t.exports=o,t.exports.Negotiator=o;function o(e){if(!(this instanceof o))return new o(e);this.request=e}o.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},o.prototype.charsets=function(e){return n(this.request.headers[`accept-charset`],e)},o.prototype.encoding=function(e,t){var n=this.encodings(e,t);return n&&n[0]},o.prototype.encodings=function(e,t){var n=t||{};return r(this.request.headers[`accept-encoding`],e,n.preferred)},o.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},o.prototype.languages=function(e){return i(this.request.headers[`accept-language`],e)},o.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},o.prototype.mediaTypes=function(e){return a(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes}))();var fn=`en-US`,pn=j({persist:`intl:selected`}),$=x([P,pn],([e,t])=>t?X(t):mn()||(e?.locale!==void 0&&sn(e.locale)?X(e.locale):fn));x(P,e=>e?.grammar??`none`);function mn(){if(typeof navigator<`u`){for(let e of navigator.languages)if(sn(e))return X(e)}return null}var hn=x($,e=>an[e]);export{ke as A,Je as C,P as D,L as E,M as F,ge as I,j as L,Oe as M,De as N,Ae as O,N as P,le as R,z as S,Ie as T,bt as _,Qt as a,lt as b,Ut as c,Vt as d,Bt as f,St as g,Tt as h,nn as i,I as j,F as k,Yt as l,Ct as m,$ as n,$t as o,wt as p,rn as r,Gt as s,hn as t,Ht as u,yt as v,We as w,H as x,ht as y,ae as z};