@toa.io/extensions.introspection 1.0.0-alpha.301 → 1.0.0-alpha.302

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 (25) hide show
  1. package/package.json +5 -5
  2. package/ui/dist/_app/immutable/chunks/{BDRJQFUk.js → BlQ5CQh6.js} +1 -1
  3. package/ui/dist/_app/immutable/chunks/{CGZgCQ0J.js → BsIaOH3-.js} +1 -1
  4. package/ui/dist/_app/immutable/chunks/{B5PRVWfI.js → CSrZe6FM.js} +1 -1
  5. package/ui/dist/_app/immutable/chunks/{CE3aSUX-.js → CzYZBKhm.js} +1 -1
  6. package/ui/dist/_app/immutable/chunks/D8gKk35O.js +1 -0
  7. package/ui/dist/_app/immutable/chunks/DgJrKTj2.js +1 -0
  8. package/ui/dist/_app/immutable/chunks/{BFYXOxPR.js → DsPgkdIr.js} +1 -1
  9. package/ui/dist/_app/immutable/chunks/{CgfHzBvj.js → ZDaBUEHo.js} +1 -1
  10. package/ui/dist/_app/immutable/chunks/{Dqbc1omj.js → uvCKiOkQ.js} +2 -2
  11. package/ui/dist/_app/immutable/entry/{app.P7H9tMki.js → app.a1tMy4oU.js} +2 -2
  12. package/ui/dist/_app/immutable/entry/start.Do_SBBkf.js +1 -0
  13. package/ui/dist/_app/immutable/nodes/{0.BaNYYxtb.js → 0.BZbEcSBT.js} +1 -1
  14. package/ui/dist/_app/immutable/nodes/{1.mxwmM__k.js → 1.D8Gto8IE.js} +1 -1
  15. package/ui/dist/_app/immutable/nodes/{2.BYOYSrgv.js → 2.CufwcsVF.js} +1 -1
  16. package/ui/dist/_app/immutable/nodes/3.r-xPO6NP.js +1 -0
  17. package/ui/dist/_app/immutable/nodes/4.B7N0R83c.js +1 -0
  18. package/ui/dist/_app/immutable/nodes/{5.GUqD00Ah.js → 5.CzkdfjWO.js} +1 -1
  19. package/ui/dist/_app/version.json +1 -1
  20. package/ui/dist/index.html +12 -12
  21. package/ui/dist/_app/immutable/chunks/BoR-5hPQ.js +0 -1
  22. package/ui/dist/_app/immutable/chunks/aGqeFZO3.js +0 -1
  23. package/ui/dist/_app/immutable/entry/start.uniV3qVq.js +0 -1
  24. package/ui/dist/_app/immutable/nodes/3.NPaFltQ1.js +0 -1
  25. package/ui/dist/_app/immutable/nodes/4.DCMqfsxW.js +0 -1
@@ -1,6 +1,6 @@
1
- import{$ as e,A as t,C as n,Dt as r,E as i,Et as a,F as o,O as s,P as c,Q as l,Tt as u,_t as d,a as f,d as p,et as m,ft as h,ht as g,i as _,j as v,k as y,lt as b,mt as x,o as S,ot as ee,pt as C,ut as w,vt as te,w as ne,wt as T,x as E,y as re,z as D}from"./PUjOYRcs.js";import{t as ie}from"./BoR-5hPQ.js";import"./xihTtKlq.js";var ae=class{store;values;request;revalidate;stale;timestamp=0;constructor(e){this.store=x(null),this.values=e.values,this.request=e.get,this.revalidate=e.revalidate??se.revalidate,this.stale=e.stale??se.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 oe(e){return new ae(e)}var se={revalidate:3e5,stale:!1},ce=class{persistent;values={};fetch;revalidate;permanent;stale;persist;ready=!1;dumping=null;constructor(e){this.fetch=e.get,this.revalidate=e.revalidate??O.revalidate,this.permanent=e.permanent??O.permanent,this.stale=e.stale??O.stale,this.persist=e.persist,this.persistent=this.persist!==void 0,this.load(),e.bind!==void 0&&this.bind(e.bind)}set(e,t,n){let r=t,i=this.values[e]??(this.values[e]=this.create(r));return n?.stash===!0?this.stash(e):delete i.stash,i.store.set(r),!(r instanceof Error)&&this.ready&&n?.stash!==!0&&this.dump(),this.values[e].store}reset(e){let t=this.values[e]?.stash;return t===void 0?this.extract(e):(t===null?this.delete(e):this.set(e,t),t)}get(e,t){this.ready=!0;let n=this.values[e]??=this.create();return this.fetch===void 0||t?.fetch===!1||(n.timestamp===0||n.timestamp+this.revalidate<Date.now())&&(this.stale||n.store.set(null),n.timestamp=Date.now(),this.fetch(e).then(t=>this.set(e,t))),n.store}extract(e){if(this.values[e]===void 0)return null;let t=C(this.values[e].store);return t instanceof Error?null:t}delete(e){if(!(e in this.values))return;let t=this.values[e];t.store.set(null),t.timestamp=0,delete t.stash,this.dump()}clear(){for(let e of Object.keys(this.values))this.delete(e);this.ready=!1}create(e){return{store:x(e??null),timestamp:this.permanent&&e!==void 0?Date.now():0}}stash(e){let t=this.values[e];if(t.stash!==void 0){console.warn(`Stash overlap, skipping`);return}let n=this.get(e,{fetch:!1});t.stash??=C(n)}dump(e=!0){if(this.persist===void 0||typeof window>`u`)return;if(e){this.dumping??=setTimeout(()=>this.dump(!1),le);return}this.dumping=null;let t={};for(let[e,n]of Object.entries(this.values)){let r=n.stash??C(n.store);r!==null&&!(r instanceof Error)&&(t[e]=r)}Object.keys(t).length===0?localStorage.removeItem(this.persist):localStorage.setItem(this.persist,JSON.stringify(t))}load(){if(this.persist===void 0||typeof window>`u`)return;let e=localStorage.getItem(this.persist);if(e!==null)try{let t=JSON.parse(e);if(typeof t!=`object`||!t){console.error(`Storage value for ${this.persist} is not an object:`,t);return}for(let[e,n]of Object.entries(t))this.set(e,n)}catch(e){console.error(`Invalid storage value for ${this.persist}`,e)}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}},le=100,O={revalidate:3e5,permanent:!1,stale:!1};function ue(e={}){return new ce(e)}var de=class{store;default;request;revalidate;timestamp=0;constructor(e){this.default=e.default??null,this.request=e.get,this.revalidate=e.revalidate??me.revalidate,this.store=e.persist===void 0||typeof window>`u`?x(this.default):fe(e.persist,this.default,e.session),e.bind&&this.bind(e.bind)}set(e){this.store.set(e)}update(e){this.store.update(t=>e(t))}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}extract(){return C(this.store)}sync(){this.request!==void 0&&this.timestamp+this.revalidate<Date.now()&&this.refresh()}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error||this.set(e)}bind(e){e.subscribe(e=>{e===null&&this.store.set(this.default)})}};function k(e={}){return new de(e)}function fe(e,t,n){let r=x(pe(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 pe(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 me={revalidate:3e5};function he(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 ge(e){return he(e,e=>e!==null&&!(e instanceof Error))}function _e(...e){return h(e,(e,t)=>{let n=e.find(e=>e instanceof Error);n?t(n):e.some(e=>e===null)?t(null):t([...e])})}var ve={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`},ye=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},be=Symbol(`lucide-context`),xe=()=>g(be),Se=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),Ce=v(`<svg><!><!></svg>`);function A(t,r){te(r,!0);let i=xe()??{},o=_(r,`color`,19,()=>i.color??`currentColor`),c=_(r,`size`,19,()=>i.size??24),h=_(r,`strokeWidth`,19,()=>i.strokeWidth??2),g=_(r,`absoluteStrokeWidth`,19,()=>i.absoluteStrokeWidth??!1),v=_(r,`iconNode`,19,()=>[]),b=f(r,Se),x=ee(()=>g()?Number(h())*24/Number(c()):h());var S=Ce();p(S,e=>({...ve,...e,...b,width:c(),height:c(),stroke:o(),"stroke-width":D(x),class:[`lucide-icon lucide`,i.class,r.name&&`lucide-${r.name}`,r.class]}),[()=>!r.children&&!ye(b)&&{"aria-hidden":`true`}]);var C=l(S);n(C,17,v,ne,(t,n)=>{var r=ee(()=>a(D(n),2));let i=()=>D(r)[0],o=()=>D(r)[1];var c=y(),l=e(c);re(l,i,!0,(e,t)=>{p(e,()=>({...o()}))}),s(t,c)});var w=m(C);E(w,()=>r.children??u),T(S),s(t,S),d()}var we=new Set([`$$slots`,`$$events`,`$$legacy`]);function j(e,t){let n=f(t,we),r=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]];A(e,S({name:`loader-circle`},()=>n,{get iconNode(){return r}}))}var Te=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ee(e,t){let n=f(t,Te),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`}]];A(e,S({name:`rotate-ccw`},()=>n,{get iconNode(){return r}}))}var De=t(`<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 Oe(t,n){let r=()=>w(n.store,`$store`,a),[a,c]=b(),u=_(n,`silent`,3,!1);var d=y(),f=e(d),p=t=>{var r=y(),a=e(r),o=t=>{var r=y(),i=e(r);E(i,()=>n.waiting),s(t,r)},c=e=>{j(e,{class:`animate-spin m-auto text-muted-foreground`})};i(a,e=>{n.waiting?e(o):u()||e(c,1)}),s(t,r)},h=t=>{var a=y(),c=e(a),d=t=>{var i=y(),a=e(i);E(a,()=>n.error,r),s(t,i)},f=e=>{var t=De(),n=m(l(t),2);Ee(l(n),{size:16}),T(n),T(t),o(`click`,n,()=>window.location.reload()),s(e,t)};i(c,e=>{n.error?e(d):u()||e(f,1)}),s(t,a)},g=t=>{var i=y(),a=e(i);E(a,()=>n.awaited,r),s(t,i)};i(f,e=>{r()===null?e(p):r()instanceof Error?e(h,1):e(g,-1)}),s(t,d),c()}c([`click`]);var M=k({persist:`auth:account`}),N=k({persist:`auth:challenge`,bind:M}),P=k({persist:`auth:method`}),F=x(!1),ke=x(!1),Ae=h([N,M,F],([e,t,n])=>e!==null&&t!==null&&n===!1);function I(e){M.extract()?.id!==e.id&&M.set(null),M.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=r((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 je(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
1
+ import{$ as e,A as t,C as n,Dt as r,E as i,Et as a,F as o,O as s,P as c,Q as l,Tt as u,_t as d,a as f,d as p,et as m,ft as h,ht as g,i as _,j as v,k as y,lt as b,mt as x,o as S,ot as ee,pt as C,ut as w,vt as te,w as ne,wt as T,x as E,y as re,z as D}from"./PUjOYRcs.js";import{t as ie}from"./DgJrKTj2.js";import"./xihTtKlq.js";var ae=class{store;values;request;revalidate;stale;timestamp=0;constructor(e){this.store=x(null),this.values=e.values,this.request=e.get,this.revalidate=e.revalidate??se.revalidate,this.stale=e.stale??se.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 oe(e){return new ae(e)}var se={revalidate:3e5,stale:!1},ce=class{persistent;values={};fetch;revalidate;permanent;stale;persist;ready=!1;dumping=null;constructor(e){this.fetch=e.get,this.revalidate=e.revalidate??O.revalidate,this.permanent=e.permanent??O.permanent,this.stale=e.stale??O.stale,this.persist=e.persist,this.persistent=this.persist!==void 0,this.load(),e.bind!==void 0&&this.bind(e.bind)}set(e,t,n){let r=t,i=this.values[e]??(this.values[e]=this.create(r));return n?.stash===!0?this.stash(e):delete i.stash,i.store.set(r),!(r instanceof Error)&&this.ready&&n?.stash!==!0&&this.dump(),this.values[e].store}reset(e){let t=this.values[e]?.stash;return t===void 0?this.extract(e):(t===null?this.delete(e):this.set(e,t),t)}get(e,t){this.ready=!0;let n=this.values[e]??=this.create();return this.fetch===void 0||t?.fetch===!1||(n.timestamp===0||n.timestamp+this.revalidate<Date.now())&&(this.stale||n.store.set(null),n.timestamp=Date.now(),this.fetch(e).then(t=>this.set(e,t))),n.store}extract(e){if(this.values[e]===void 0)return null;let t=C(this.values[e].store);return t instanceof Error?null:t}delete(e){if(!(e in this.values))return;let t=this.values[e];t.store.set(null),t.timestamp=0,delete t.stash,this.dump()}clear(){for(let e of Object.keys(this.values))this.delete(e);this.ready=!1}create(e){return{store:x(e??null),timestamp:this.permanent&&e!==void 0?Date.now():0}}stash(e){let t=this.values[e];if(t.stash!==void 0){console.warn(`Stash overlap, skipping`);return}let n=this.get(e,{fetch:!1});t.stash??=C(n)}dump(e=!0){if(this.persist===void 0||typeof window>`u`)return;if(e){this.dumping??=setTimeout(()=>this.dump(!1),le);return}this.dumping=null;let t={};for(let[e,n]of Object.entries(this.values)){let r=n.stash??C(n.store);r!==null&&!(r instanceof Error)&&(t[e]=r)}Object.keys(t).length===0?localStorage.removeItem(this.persist):localStorage.setItem(this.persist,JSON.stringify(t))}load(){if(this.persist===void 0||typeof window>`u`)return;let e=localStorage.getItem(this.persist);if(e!==null)try{let t=JSON.parse(e);if(typeof t!=`object`||!t){console.error(`Storage value for ${this.persist} is not an object:`,t);return}for(let[e,n]of Object.entries(t))this.set(e,n)}catch(e){console.error(`Invalid storage value for ${this.persist}`,e)}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}},le=100,O={revalidate:3e5,permanent:!1,stale:!1};function ue(e={}){return new ce(e)}var de=class{store;default;request;revalidate;timestamp=0;constructor(e){this.default=e.default??null,this.request=e.get,this.revalidate=e.revalidate??me.revalidate,this.store=e.persist===void 0||typeof window>`u`?x(this.default):fe(e.persist,this.default,e.session),e.bind&&this.bind(e.bind)}set(e){this.store.set(e)}update(e){this.store.update(t=>e(t))}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}extract(){return C(this.store)}sync(){this.request!==void 0&&this.timestamp+this.revalidate<Date.now()&&this.refresh()}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error||this.set(e)}bind(e){e.subscribe(e=>{e===null&&this.store.set(this.default)})}};function k(e={}){return new de(e)}function fe(e,t,n){let r=x(pe(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 pe(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 me={revalidate:3e5};function he(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 ge(e){return he(e,e=>e!==null&&!(e instanceof Error))}function _e(...e){return h(e,(e,t)=>{let n=e.find(e=>e instanceof Error);n?t(n):e.some(e=>e===null)?t(null):t([...e])})}var ve={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`},ye=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},be=Symbol(`lucide-context`),xe=()=>g(be),Se=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),Ce=v(`<svg><!><!></svg>`);function A(t,r){te(r,!0);let i=xe()??{},o=_(r,`color`,19,()=>i.color??`currentColor`),c=_(r,`size`,19,()=>i.size??24),h=_(r,`strokeWidth`,19,()=>i.strokeWidth??2),g=_(r,`absoluteStrokeWidth`,19,()=>i.absoluteStrokeWidth??!1),v=_(r,`iconNode`,19,()=>[]),b=f(r,Se),x=ee(()=>g()?Number(h())*24/Number(c()):h());var S=Ce();p(S,e=>({...ve,...e,...b,width:c(),height:c(),stroke:o(),"stroke-width":D(x),class:[`lucide-icon lucide`,i.class,r.name&&`lucide-${r.name}`,r.class]}),[()=>!r.children&&!ye(b)&&{"aria-hidden":`true`}]);var C=l(S);n(C,17,v,ne,(t,n)=>{var r=ee(()=>a(D(n),2));let i=()=>D(r)[0],o=()=>D(r)[1];var c=y(),l=e(c);re(l,i,!0,(e,t)=>{p(e,()=>({...o()}))}),s(t,c)});var w=m(C);E(w,()=>r.children??u),T(S),s(t,S),d()}var we=new Set([`$$slots`,`$$events`,`$$legacy`]);function j(e,t){let n=f(t,we),r=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]];A(e,S({name:`loader-circle`},()=>n,{get iconNode(){return r}}))}var Te=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ee(e,t){let n=f(t,Te),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`}]];A(e,S({name:`rotate-ccw`},()=>n,{get iconNode(){return r}}))}var De=t(`<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 Oe(t,n){let r=()=>w(n.store,`$store`,a),[a,c]=b(),u=_(n,`silent`,3,!1);var d=y(),f=e(d),p=t=>{var r=y(),a=e(r),o=t=>{var r=y(),i=e(r);E(i,()=>n.waiting),s(t,r)},c=e=>{j(e,{class:`animate-spin m-auto text-muted-foreground`})};i(a,e=>{n.waiting?e(o):u()||e(c,1)}),s(t,r)},h=t=>{var a=y(),c=e(a),d=t=>{var i=y(),a=e(i);E(a,()=>n.error,r),s(t,i)},f=e=>{var t=De(),n=m(l(t),2);Ee(l(n),{size:16}),T(n),T(t),o(`click`,n,()=>window.location.reload()),s(e,t)};i(c,e=>{n.error?e(d):u()||e(f,1)}),s(t,a)},g=t=>{var i=y(),a=e(i);E(a,()=>n.awaited,r),s(t,i)};i(f,e=>{r()===null?e(p):r()instanceof Error?e(h,1):e(g,-1)}),s(t,d),c()}c([`click`]);var M=k({persist:`auth:account`}),N=k({persist:`auth:challenge`,bind:M}),P=k({persist:`auth:method`}),F=x(!1),ke=x(!1),Ae=h([N,M,F],([e,t,n])=>e!==null&&t!==null&&n===!1);function I(e){M.extract()?.id!==e.id&&M.set(null),M.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=r((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 je(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
2
  \r
3
3
  `)+4,r=e.lastIndexOf(`\r
4
4
  `,t),i=!1,o=e.slice(t,r>-1?void 0:r),s=String(e.slice(0,t)).trim().split(`\r
5
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 Me=Object.defineProperty,Ne=(e,t)=>{for(var n in t)Me(e,n,{get:t[n],enumerable:!0})},Pe=Symbol(`meta`);function Fe(e){return e[Pe]??null}function Ie(e,t){Object.defineProperty(e,Pe,{value:t,writable:!1,enumerable:!1,configurable:!1})}var Le=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&&Ie(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 je(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}},Re=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}},ze=class{events;agent;constructor(e){this.events=L(),this.agent=new Le({origin:e.origin,events:this.events,sleep:e.sleep})}resource(e,t){return new Re({agent:this.agent,path:e,init:t})}authenticate(e){this.agent.authenticate(e)}use(e){this.agent.use(e)}};function Be(e){return typeof e==`string`&&(e={origin:e}),new ze(e)}Ne({},{format:()=>He,test:()=>Ve});function Ve(e){return/^[[(]\d+\.\.\d+[\])]{1}$/.test(e)}function He(e,t){let[n,r]=t.slice(1,-1).split(`..`);return[`${e}${t.startsWith(`(`)?`>`:`>=`}${n}`,`${e}${t.endsWith(`)`)?`<`:`<=`}${r}`]}var Ue={title:`Introspection`,description:`The map of a Toa application`},We=8e3,Ge=(()=>{if(typeof window>`u`)return``;let{protocol:e,hostname:t,origin:n}=window.location;return Je(t)?`${e}//${t}:${We}`:n})(),Ke=8003;function qe(e){if(typeof window>`u`)return``;let{protocol:t,hostname:n}=window.location;return`${Je(n)?`${t}//${n}:${Ke}`:``}/.configuration/${e}/`}function Je(e){return e===`localhost`||e===`127.0.0.1`||e===`[::1]`||e.startsWith(`192.168.`)||e.startsWith(`172.16.`)||e.startsWith(`10.`)}var Ye=`1`;(()=>{let e=new Date(Number.parseInt(ie)),t=e.getFullYear(),n=new Date(t,0,1).getTime(),r=new Date(t+1,0,1).getTime();return`${Ye}.${(t+(e.getTime()-n)/(r-n)).toFixed(4)}`})();var z=Be({origin:Ge,sleep:void 0});console.info(`Origin connected`,Ge,`no sleep`);var Xe=z.resource(`/accounts/echo/`);async function B(e){let t={method:`GET`};return e!==void 0&&(t.headers={authorization:e},t.credentials=`include`),Xe.json(t)}var Ze=z.resource(`/identity/basic/`,{credentials:`include`});async function Qe(e,t){return await Ze.json(e,{method:`POST`,body:t})}var $e=z.resource(`/accounts/otp/`);async function et(e,t){return typeof e==`string`?await $e.json(e,{method:`POST`,body:t,credentials:`include`}):await $e.json({method:`POST`,body:e})}var tt=z.resource(`/accounts/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 V(){let e=N.extract();if(e===null)return;let t=await B(e);if(t instanceof Error)return t;I(t)}function H(e,t){return e instanceof Error?e:(I(e),P.set(t),e)}var at=k({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_j7ovbl.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 U=typeof window<`u`&&window;async function ft(e){await pt(e);let t=await U.AppleID.auth.signIn().catch(e=>e);return t instanceof Error?t:t?.authorization===void 0?Error(`No authentication response received`,{cause:t}):t.authorization.code}function pt(e){if(U.AppleID===void 0)return new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`,r.async=!0,r.onload=()=>{U.AppleID.auth.init({clientId:e.client,scope:e.scope,redirectURI:window.location.origin,state:btoa(JSON.stringify({idp:`apple`})),usePopup:!0}),t(void 0)},r.onerror=n,document.head.appendChild(r)})}var 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;V()}async function vt(e,t){return H(await B(`Code `+t),e)}function yt(){M.set(null)}async function bt(e,t){return H(await B(`Basic `+btoa(`${e}:${t}`)),`password`)}async function xt(e,t){return await Qe(e,t)}async function St(e,t){let n=await xt(e,t);if(n instanceof Error)return n;V()}async function Ct(e){return et({email:e})}async function wt(e,t){return await et(e,{email:t})}async function Tt(e,t){return H(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 ge(M)).id)}oe({get:At,persist:`identity:passkeys`,bind:M,stale:!0});function W(e){let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function jt(e){return new TextEncoder().encode(e).buffer}function G(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function Mt({id:e,transports:t}){return{id:W(e),type:`public-key`,transports:t}}async function Nt(e,t){let n={challenge:W(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:W(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:G(n.attestationObject),clientDataJSON:G(n.clientDataJSON),authenticatorData:G(r),transports:i,publicKeyAlgorithm:a,publicKey:G(o)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:s,label:t}}async function 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:G(t.authenticatorData),clientDataJSON:G(t.clientDataJSON),signature:G(t.signature),userHandle:t.userHandle===null?null:G(t.userHandle)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:e.getClientExtensionResults()}}var 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);return r instanceof Error&&console.error(`Credential registration failed`,r),H(r,`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);return n instanceof Error&&console.error(`Credential verification failed`,n),H(n,`passkey`)}function Ut(e){if(document.startViewTransition===void 0)return Promise.resolve(e?.());let t=e!==void 0;return t&&Yt(),new Promise(n=>{let r=document.startViewTransition(async()=>{q(),n(await e?.())});r.finished.then(i,i),r.ready.catch(Wt);function i(){t&&Xt(),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()=>{q(),t(),await e.complete}});n.finished.then(J,J),n.ready.catch(Wt)})}var K=null;function q(){if(K===null)return;let e=K.el.style.viewTransitionName===K.name;K.el.style.viewTransitionName=e?``:K.name,K.el.style.viewTransitionClass=e?``:K.classes??``}function J(){K!==null&&K.el.style.viewTransitionName===K.name&&(Kt(K),K=null)}function Kt(e){e.el.style.viewTransitionName=``,e.el.style.viewTransitionClass=``}var qt=x(!1),Y=new Set;function Jt(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 Yt(){qt.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 Xt(){for(let e of Y)e.original!==void 0&&(e.node.style.viewTransitionName=e.original.name,e.node.style.viewTransitionClass=e.original.classes);qt.set(!1)}navigator.userAgent.toLowerCase().includes(`windows`);var Zt=/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 Qt=!(`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 $t(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}$t(navigator.userAgent);var en=new URLSearchParams;new URLSearchParams;function tn(e){return en.get(e)}var nn={"en-US":{native:`English`,locale:`en-US`,dir:`ltr`,nav:{list:`List`,map:`Map`,signout:`Sign out`,filter:`Filter components`}}},rn=[`en-US`];function an(e){return rn.some(t=>t.startsWith(e))}function X(e){return rn.find(t=>t.startsWith(e))??`en-US`}var Z=r((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}if(a===p&&n<r){t+=e[n++];continue}t+=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=r(((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}})),on=r(((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}})),sn=r(((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}})),cn=r(((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}})),ln=r(((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}}));r(((e,t)=>{var n=on(),r=sn(),i=cn(),a=ln();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 un=`en-US`,dn=k({persist:`intl:selected`}),$=h([M,dn],([e,t])=>t?X(t):fn()||(e?.locale!==void 0&&an(e.locale)?X(e.locale):un));h(M,e=>e?.grammar??`none`);function fn(){if(typeof navigator<`u`){for(let e of navigator.languages)if(an(e))return X(e)}return null}var pn=h($,e=>nn[e]);export{P as A,Ue as C,Ae as D,M as E,_e as F,ue as I,oe as L,Oe as M,j as N,N as O,A as P,qe as S,L as T,yt as _,Qt as a,V as b,Jt as c,Bt as d,wt as f,bt as g,St as h,Zt as i,F as j,ke as k,Ht as l,Tt as m,$ as n,Gt as o,Ct as p,tn as r,Ut as s,pn as t,Vt as u,ht as v,Fe as w,z as x,lt as y};
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 Me=Object.defineProperty,Ne=(e,t)=>{for(var n in t)Me(e,n,{get:t[n],enumerable:!0})},Pe=Symbol(`meta`);function Fe(e){return e[Pe]??null}function Ie(e,t){Object.defineProperty(e,Pe,{value:t,writable:!1,enumerable:!1,configurable:!1})}var Le=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&&Ie(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 je(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}},Re=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}},ze=class{events;agent;constructor(e){this.events=L(),this.agent=new Le({origin:e.origin,events:this.events,sleep:e.sleep})}resource(e,t){return new Re({agent:this.agent,path:e,init:t})}authenticate(e){this.agent.authenticate(e)}use(e){this.agent.use(e)}};function Be(e){return typeof e==`string`&&(e={origin:e}),new ze(e)}Ne({},{format:()=>He,test:()=>Ve});function Ve(e){return/^[[(]\d+\.\.\d+[\])]{1}$/.test(e)}function He(e,t){let[n,r]=t.slice(1,-1).split(`..`);return[`${e}${t.startsWith(`(`)?`>`:`>=`}${n}`,`${e}${t.endsWith(`)`)?`<`:`<=`}${r}`]}var Ue={title:`Introspection`,description:`The map of a Toa application`},We=8e3,Ge=(()=>{if(typeof window>`u`)return``;let{protocol:e,hostname:t,origin:n}=window.location;return Je(t)?`${e}//${t}:${We}`:n})(),Ke=8003;function qe(e){if(typeof window>`u`)return``;let{protocol:t,hostname:n}=window.location;return`${Je(n)?`${t}//${n}:${Ke}`:``}/.configuration/${e}/`}function Je(e){return e===`localhost`||e===`127.0.0.1`||e===`[::1]`||e.startsWith(`192.168.`)||e.startsWith(`172.16.`)||e.startsWith(`10.`)}var Ye=`1`;(()=>{let e=new Date(Number.parseInt(ie)),t=e.getFullYear(),n=new Date(t,0,1).getTime(),r=new Date(t+1,0,1).getTime();return`${Ye}.${(t+(e.getTime()-n)/(r-n)).toFixed(4)}`})();var z=Be({origin:Ge,sleep:void 0});console.info(`Origin connected`,Ge,`no sleep`);var Xe=z.resource(`/accounts/echo/`);async function B(e){let t={method:`GET`};return e!==void 0&&(t.headers={authorization:e},t.credentials=`include`),Xe.json(t)}var Ze=z.resource(`/identity/basic/`,{credentials:`include`});async function Qe(e,t){return await Ze.json(e,{method:`POST`,body:t})}var $e=z.resource(`/accounts/otp/`);async function et(e,t){return typeof e==`string`?await $e.json(e,{method:`POST`,body:t,credentials:`include`}):await $e.json({method:`POST`,body:e})}var tt=z.resource(`/accounts/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 V(){let e=N.extract();if(e===null)return;let t=await B(e);if(t instanceof Error)return t;I(t)}function H(e,t){return e instanceof Error?e:(I(e),P.set(t),e)}var at=k({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_gwxuca.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 U=typeof window<`u`&&window;async function ft(e){await pt(e);let t=await U.AppleID.auth.signIn().catch(e=>e);return t instanceof Error?t:t?.authorization===void 0?Error(`No authentication response received`,{cause:t}):t.authorization.code}function pt(e){if(U.AppleID===void 0)return new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`,r.async=!0,r.onload=()=>{U.AppleID.auth.init({clientId:e.client,scope:e.scope,redirectURI:window.location.origin,state:btoa(JSON.stringify({idp:`apple`})),usePopup:!0}),t(void 0)},r.onerror=n,document.head.appendChild(r)})}var 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;V()}async function vt(e,t){return H(await B(`Code `+t),e)}function yt(){M.set(null)}async function bt(e,t){return H(await B(`Basic `+btoa(`${e}:${t}`)),`password`)}async function xt(e,t){return await Qe(e,t)}async function St(e,t){let n=await xt(e,t);if(n instanceof Error)return n;V()}async function Ct(e){return et({email:e})}async function wt(e,t){return await et(e,{email:t})}async function Tt(e,t){return H(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 ge(M)).id)}oe({get:At,persist:`identity:passkeys`,bind:M,stale:!0});function W(e){let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function jt(e){return new TextEncoder().encode(e).buffer}function G(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function Mt({id:e,transports:t}){return{id:W(e),type:`public-key`,transports:t}}async function Nt(e,t){let n={challenge:W(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:W(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:G(n.attestationObject),clientDataJSON:G(n.clientDataJSON),authenticatorData:G(r),transports:i,publicKeyAlgorithm:a,publicKey:G(o)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:s,label:t}}async function 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:G(t.authenticatorData),clientDataJSON:G(t.clientDataJSON),signature:G(t.signature),userHandle:t.userHandle===null?null:G(t.userHandle)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:e.getClientExtensionResults()}}var 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);return r instanceof Error&&console.error(`Credential registration failed`,r),H(r,`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);return n instanceof Error&&console.error(`Credential verification failed`,n),H(n,`passkey`)}function Ut(e){if(document.startViewTransition===void 0)return Promise.resolve(e?.());let t=e!==void 0;return t&&Yt(),new Promise(n=>{let r=document.startViewTransition(async()=>{q(),n(await e?.())});r.finished.then(i,i),r.ready.catch(Wt);function i(){t&&Xt(),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()=>{q(),t(),await e.complete}});n.finished.then(J,J),n.ready.catch(Wt)})}var K=null;function q(){if(K===null)return;let e=K.el.style.viewTransitionName===K.name;K.el.style.viewTransitionName=e?``:K.name,K.el.style.viewTransitionClass=e?``:K.classes??``}function J(){K!==null&&K.el.style.viewTransitionName===K.name&&(Kt(K),K=null)}function Kt(e){e.el.style.viewTransitionName=``,e.el.style.viewTransitionClass=``}var qt=x(!1),Y=new Set;function Jt(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 Yt(){qt.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 Xt(){for(let e of Y)e.original!==void 0&&(e.node.style.viewTransitionName=e.original.name,e.node.style.viewTransitionClass=e.original.classes);qt.set(!1)}navigator.userAgent.toLowerCase().includes(`windows`);var Zt=/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 Qt=!(`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 $t(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}$t(navigator.userAgent);var en=new URLSearchParams;new URLSearchParams;function tn(e){return en.get(e)}var nn={"en-US":{native:`English`,locale:`en-US`,dir:`ltr`,nav:{list:`List`,map:`Map`,signout:`Sign out`,filter:`Filter components`}}},rn=[`en-US`];function an(e){return rn.some(t=>t.startsWith(e))}function X(e){return rn.find(t=>t.startsWith(e))??`en-US`}var Z=r((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}if(a===p&&n<r){t+=e[n++];continue}t+=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=r(((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}})),on=r(((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}})),sn=r(((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}})),cn=r(((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}})),ln=r(((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}}));r(((e,t)=>{var n=on(),r=sn(),i=cn(),a=ln();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 un=`en-US`,dn=k({persist:`intl:selected`}),$=h([M,dn],([e,t])=>t?X(t):fn()||(e?.locale!==void 0&&an(e.locale)?X(e.locale):un));h(M,e=>e?.grammar??`none`);function fn(){if(typeof navigator<`u`){for(let e of navigator.languages)if(an(e))return X(e)}return null}var pn=h($,e=>nn[e]);export{P as A,Ue as C,Ae as D,M as E,_e as F,ue as I,oe as L,Oe as M,j as N,N as O,A as P,qe as S,L as T,yt as _,Qt as a,V as b,Jt as c,Bt as d,wt as f,bt as g,St as h,Zt as i,F as j,ke as k,Ht as l,Tt as m,$ as n,Gt as o,Ct as p,tn as r,Ut as s,pn as t,Vt as u,ht as v,Fe as w,z as x,lt as y};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.introspection/_app/immutable/nodes/0.BaNYYxtb.js","/.introspection/_app/immutable/chunks/PUjOYRcs.js","/.introspection/_app/immutable/chunks/B5PRVWfI.js","/.introspection/_app/immutable/chunks/BoR-5hPQ.js","/.introspection/_app/immutable/chunks/xihTtKlq.js","/.introspection/_app/immutable/chunks/Dqbc1omj.js","/.introspection/_app/immutable/chunks/CgfHzBvj.js","/.introspection/_app/immutable/chunks/aGqeFZO3.js","/.introspection/_app/immutable/assets/0.DG1WW3yI.css","/.introspection/_app/immutable/nodes/1.mxwmM__k.js","/.introspection/_app/immutable/nodes/2.BYOYSrgv.js","/.introspection/_app/immutable/chunks/CGZgCQ0J.js","/.introspection/_app/immutable/chunks/BFYXOxPR.js","/.introspection/_app/immutable/chunks/DINmginf.js","/.introspection/_app/immutable/chunks/CE3aSUX-.js","/.introspection/_app/immutable/assets/2.BghF56l_.css","/.introspection/_app/immutable/nodes/3.NPaFltQ1.js","/.introspection/_app/immutable/chunks/BDRJQFUk.js","/.introspection/_app/immutable/nodes/4.DCMqfsxW.js","/.introspection/_app/immutable/nodes/5.GUqD00Ah.js"])))=>i.map(i=>d[i]);
2
- import{$ as e,A as t,D as n,E as r,J as i,N as a,O as o,Q as s,V as c,Y as l,_t as u,at as d,b as f,et as p,i as m,k as h,n as g,ot as _,q as v,r as y,rt as b,s as x,vt as S,wt as C,z as w}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function k(e){return e.match(/^[0-9a-f]{32}$/)}var A={id:k},j=t(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),M=t(`<!> <!>`,1);function N(t,y){S(y,!0);let T=m(y,`components`,23,()=>[]),E=m(y,`data_0`,3,null),D=m(y,`data_1`,3,null),O=m(y,`data_2`,3,null);l(()=>y.stores.page.set(y.page)),i(()=>{y.stores,y.page,y.constructors,T(),y.form,E(),D(),O(),y.stores.page.notify()});let k=d(!1),A=d(!1),N=d(null);g(()=>{let e=y.stores.page.subscribe(()=>{w(k)&&(b(A,!0),c().then(()=>{b(N,document.title||`untitled page`,!0)}))});return b(k,!0),e});let P=_(()=>y.constructors[2]);var F=M(),I=e(F),L=t=>{let n=_(()=>y.constructors[0]);var i=h(),a=e(i);f(a,()=>w(n),(t,n)=>{x(n(t,{get data(){return E()},get form(){return y.form},get params(){return y.page.params},children:(t,n)=>{var i=h(),a=e(i),s=t=>{let n=_(()=>y.constructors[1]);var r=h(),i=e(r);f(i,()=>w(n),(t,n)=>{x(n(t,{get data(){return D()},get form(){return y.form},get params(){return y.page.params},children:(t,n)=>{var r=h(),i=e(r);f(i,()=>w(P),(e,t)=>{x(t(e,{get data(){return O()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[2]=e,()=>T()?.[2])}),o(t,r)},$$slots:{default:!0}}),e=>T()[1]=e,()=>T()?.[1])}),o(t,r)},c=t=>{let n=_(()=>y.constructors[1]);var r=h(),i=e(r);f(i,()=>w(n),(e,t)=>{x(t(e,{get data(){return D()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),o(t,r)};r(a,e=>{y.constructors[2]?e(s):e(c,-1)}),o(t,i)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),o(t,i)},R=t=>{let n=_(()=>y.constructors[0]);var r=h(),i=e(r);f(i,()=>w(n),(e,t)=>{x(t(e,{get data(){return E()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),o(t,r)};r(I,e=>{y.constructors[1]?e(L):e(R,-1)});var z=p(I,2),B=e=>{var t=j(),i=s(t),c=e=>{var t=a();v(()=>n(t,w(N))),o(e,t)};r(i,e=>{w(A)&&e(c)}),C(t),o(e,t)};r(z,e=>{w(k)&&e(B)}),o(t,F),u()}var P=y(N),F=[()=>O(()=>import(`../nodes/0.BaNYYxtb.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>O(()=>import(`../nodes/1.mxwmM__k.js`),__vite__mapDeps([9,1,4,6,2,3]),import.meta.url),()=>O(()=>import(`../nodes/2.BYOYSrgv.js`),__vite__mapDeps([10,1,2,3,4,5,11,12,6,7,13,14,15]),import.meta.url),()=>O(()=>import(`../nodes/3.NPaFltQ1.js`),__vite__mapDeps([16,1,4,13,17,2,3,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/4.DCMqfsxW.js`),__vite__mapDeps([18,1,4,6,2,3,17,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/5.GUqD00Ah.js`),__vite__mapDeps([19,1,4,11,5,3,12,13]),import.meta.url)],I=[],L={"/(private)":[3,[2]],"/(private)/list":[5,[2]],"/(private)/[id]":[4,[2]]},R={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},z=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.decode])),B=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.encode])),V=!1,H=(e,t)=>z[e](t),U=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{H as decode,z as decoders,L as dictionary,B as encoders,U as get_error_template,V as hash,R as hooks,A as matchers,F as nodes,P as root,I as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.introspection/_app/immutable/nodes/0.BZbEcSBT.js","/.introspection/_app/immutable/chunks/PUjOYRcs.js","/.introspection/_app/immutable/chunks/CSrZe6FM.js","/.introspection/_app/immutable/chunks/DgJrKTj2.js","/.introspection/_app/immutable/chunks/xihTtKlq.js","/.introspection/_app/immutable/chunks/uvCKiOkQ.js","/.introspection/_app/immutable/chunks/ZDaBUEHo.js","/.introspection/_app/immutable/chunks/D8gKk35O.js","/.introspection/_app/immutable/assets/0.DG1WW3yI.css","/.introspection/_app/immutable/nodes/1.D8Gto8IE.js","/.introspection/_app/immutable/nodes/2.CufwcsVF.js","/.introspection/_app/immutable/chunks/BsIaOH3-.js","/.introspection/_app/immutable/chunks/DsPgkdIr.js","/.introspection/_app/immutable/chunks/DINmginf.js","/.introspection/_app/immutable/chunks/CzYZBKhm.js","/.introspection/_app/immutable/assets/2.BghF56l_.css","/.introspection/_app/immutable/nodes/3.r-xPO6NP.js","/.introspection/_app/immutable/chunks/BlQ5CQh6.js","/.introspection/_app/immutable/nodes/4.B7N0R83c.js","/.introspection/_app/immutable/nodes/5.CzkdfjWO.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,A as t,D as n,E as r,J as i,N as a,O as o,Q as s,V as c,Y as l,_t as u,at as d,b as f,et as p,i as m,k as h,n as g,ot as _,q as v,r as y,rt as b,s as x,vt as S,wt as C,z as w}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function k(e){return e.match(/^[0-9a-f]{32}$/)}var A={id:k},j=t(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),M=t(`<!> <!>`,1);function N(t,y){S(y,!0);let T=m(y,`components`,23,()=>[]),E=m(y,`data_0`,3,null),D=m(y,`data_1`,3,null),O=m(y,`data_2`,3,null);l(()=>y.stores.page.set(y.page)),i(()=>{y.stores,y.page,y.constructors,T(),y.form,E(),D(),O(),y.stores.page.notify()});let k=d(!1),A=d(!1),N=d(null);g(()=>{let e=y.stores.page.subscribe(()=>{w(k)&&(b(A,!0),c().then(()=>{b(N,document.title||`untitled page`,!0)}))});return b(k,!0),e});let P=_(()=>y.constructors[2]);var F=M(),I=e(F),L=t=>{let n=_(()=>y.constructors[0]);var i=h(),a=e(i);f(a,()=>w(n),(t,n)=>{x(n(t,{get data(){return E()},get form(){return y.form},get params(){return y.page.params},children:(t,n)=>{var i=h(),a=e(i),s=t=>{let n=_(()=>y.constructors[1]);var r=h(),i=e(r);f(i,()=>w(n),(t,n)=>{x(n(t,{get data(){return D()},get form(){return y.form},get params(){return y.page.params},children:(t,n)=>{var r=h(),i=e(r);f(i,()=>w(P),(e,t)=>{x(t(e,{get data(){return O()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[2]=e,()=>T()?.[2])}),o(t,r)},$$slots:{default:!0}}),e=>T()[1]=e,()=>T()?.[1])}),o(t,r)},c=t=>{let n=_(()=>y.constructors[1]);var r=h(),i=e(r);f(i,()=>w(n),(e,t)=>{x(t(e,{get data(){return D()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),o(t,r)};r(a,e=>{y.constructors[2]?e(s):e(c,-1)}),o(t,i)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),o(t,i)},R=t=>{let n=_(()=>y.constructors[0]);var r=h(),i=e(r);f(i,()=>w(n),(e,t)=>{x(t(e,{get data(){return E()},get form(){return y.form},get params(){return y.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),o(t,r)};r(I,e=>{y.constructors[1]?e(L):e(R,-1)});var z=p(I,2),B=e=>{var t=j(),i=s(t),c=e=>{var t=a();v(()=>n(t,w(N))),o(e,t)};r(i,e=>{w(A)&&e(c)}),C(t),o(e,t)};r(z,e=>{w(k)&&e(B)}),o(t,F),u()}var P=y(N),F=[()=>O(()=>import(`../nodes/0.BZbEcSBT.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>O(()=>import(`../nodes/1.D8Gto8IE.js`),__vite__mapDeps([9,1,4,6,2,3]),import.meta.url),()=>O(()=>import(`../nodes/2.CufwcsVF.js`),__vite__mapDeps([10,1,2,3,4,5,11,12,6,7,13,14,15]),import.meta.url),()=>O(()=>import(`../nodes/3.r-xPO6NP.js`),__vite__mapDeps([16,1,4,13,17,2,3,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/4.B7N0R83c.js`),__vite__mapDeps([18,1,4,6,2,3,17,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/5.CzkdfjWO.js`),__vite__mapDeps([19,1,4,11,5,3,12,13]),import.meta.url)],I=[],L={"/(private)":[3,[2]],"/(private)/list":[5,[2]],"/(private)/[id]":[4,[2]]},R={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},z=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.decode])),B=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.encode])),V=!1,H=(e,t)=>z[e](t),U=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{H as decode,z as decoders,L as dictionary,B as encoders,U as get_error_template,V as hash,R as hooks,A as matchers,F as nodes,P as root,I as server_loads};
@@ -0,0 +1 @@
1
+ import{o as e,r as t}from"../chunks/CSrZe6FM.js";export{e as load_css,t as start};
@@ -1 +1 @@
1
- import{$ as e,A as t,J as n,O as r,Ot as i,W as a,X as o,_t as s,f as c,k as l,lt as u,mt as d,ot as f,q as p,ut as m,v as h,vt as g,x as _,z as v}from"../chunks/PUjOYRcs.js";import{n as y}from"../chunks/B5PRVWfI.js";import"../chunks/BoR-5hPQ.js";import"../chunks/xihTtKlq.js";import{C as b,D as x,E as S,O as C,T as w,b as T,o as E,r as D,t as O,x as k}from"../chunks/Dqbc1omj.js";import{t as A}from"../chunks/CgfHzBvj.js";import"../chunks/aGqeFZO3.js";var j=w();j.on(`*`,(e,t)=>{t===void 0?console.debug(e):console.debug(e,t)});var M=d({status:`disconnected`,events:[]});j.on(`*`,(e,t)=>{M.update(n=>(n.events.push({label:e,payload:t}),n.events=n.events.slice(-128),n))});function N(e){M.update(t=>(t.status=e,(e===`connected`||e===`disconnected`)&&t.events.push({label:e}),t))}function P(){M.update(()=>({status:`disconnected`,events:[]}))}var F=k.resource(`/presence/`);async function I(e,t){return await F.multipart(e,{credentials:`include`,...t})}var L=null,R=null;async function z(e){if(L!==null&&L!==e&&V(),L!==e)for(L=e;L===e;){N(`connecting`);let t=await B(e).catch(e=>e);t!==void 0&&(t.name===`AbortError`?console.debug(`Realtime connection aborted`):(console.warn(`Realtime connection exception`,t),await new Promise(e=>setTimeout(e,3e3))))}}async function B(e){R=new AbortController;let t=R.signal,n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=await I(e,{signal:t,body:{timezone:n}});if(r instanceof Error)throw N(`disconnected`),r;console.debug(`Realtime connected`,e),N(`connected`);for await(let e of r)H(e);console.debug(`Realtime connection lost`,e)}function V(){if(L!==null){if(L=null,R===null)throw Error(`Realtime controller is NULL`);R.abort(),P()}}function H(e){typeof e==`string`?j.emit(`heartbeat`):j.emit(e.event,e.data)}function U(){x.subscribe(e=>{let t=S.extract();e?z(t.id):V()})}function W(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function G(){let e=D(`challenge`);return e===null?null:W(e)}function K(){k.events.on(`challenge`,e=>C.set(e)),k.events.on(`error`,e=>{e.code===401&&C.set(null)}),C.subscribe(e=>k.authenticate(e));let e=G();e!==null&&C.set(e),T()}var q=i({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>J});K(),U();var J=`always`,Y=t(`<meta name="description"/>`);function X(t,i){g(i,!0);let d=()=>m(O,`$dict`,x),[x,S]=u(),C=f(()=>A.data.meta?.title??b.title),w=f(()=>A.data.meta?.description??b.description);y(E),n(()=>{document.dir=d().dir});var T=l();h(`12qhfyh`,e=>{var t=Y();p(()=>c(t,`content`,v(w))),a(()=>{o.title=v(C)??``}),r(e,t)});var D=e(T);_(D,()=>i.children),r(t,T),s(),S()}export{X as component,q as universal};
1
+ import{$ as e,A as t,J as n,O as r,Ot as i,W as a,X as o,_t as s,f as c,k as l,lt as u,mt as d,ot as f,q as p,ut as m,v as h,vt as g,x as _,z as v}from"../chunks/PUjOYRcs.js";import{n as y}from"../chunks/CSrZe6FM.js";import"../chunks/DgJrKTj2.js";import"../chunks/xihTtKlq.js";import{C as b,D as x,E as S,O as C,T as w,b as T,o as E,r as D,t as O,x as k}from"../chunks/uvCKiOkQ.js";import{t as A}from"../chunks/ZDaBUEHo.js";import"../chunks/D8gKk35O.js";var j=w();j.on(`*`,(e,t)=>{t===void 0?console.debug(e):console.debug(e,t)});var M=d({status:`disconnected`,events:[]});j.on(`*`,(e,t)=>{M.update(n=>(n.events.push({label:e,payload:t}),n.events=n.events.slice(-128),n))});function N(e){M.update(t=>(t.status=e,(e===`connected`||e===`disconnected`)&&t.events.push({label:e}),t))}function P(){M.update(()=>({status:`disconnected`,events:[]}))}var F=k.resource(`/presence/`);async function I(e,t){return await F.multipart(e,{credentials:`include`,...t})}var L=null,R=null;async function z(e){if(L!==null&&L!==e&&V(),L!==e)for(L=e;L===e;){N(`connecting`);let t=await B(e).catch(e=>e);t!==void 0&&(t.name===`AbortError`?console.debug(`Realtime connection aborted`):(console.warn(`Realtime connection exception`,t),await new Promise(e=>setTimeout(e,3e3))))}}async function B(e){R=new AbortController;let t=R.signal,n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=await I(e,{signal:t,body:{timezone:n}});if(r instanceof Error)throw N(`disconnected`),r;console.debug(`Realtime connected`,e),N(`connected`);for await(let e of r)H(e);console.debug(`Realtime connection lost`,e)}function V(){if(L!==null){if(L=null,R===null)throw Error(`Realtime controller is NULL`);R.abort(),P()}}function H(e){typeof e==`string`?j.emit(`heartbeat`):j.emit(e.event,e.data)}function U(){x.subscribe(e=>{let t=S.extract();e?z(t.id):V()})}function W(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function G(){let e=D(`challenge`);return e===null?null:W(e)}function K(){k.events.on(`challenge`,e=>C.set(e)),k.events.on(`error`,e=>{e.code===401&&C.set(null)}),C.subscribe(e=>k.authenticate(e));let e=G();e!==null&&C.set(e),T()}var q=i({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>J});K(),U();var J=`always`,Y=t(`<meta name="description"/>`);function X(t,i){g(i,!0);let d=()=>m(O,`$dict`,x),[x,S]=u(),C=f(()=>A.data.meta?.title??b.title),w=f(()=>A.data.meta?.description??b.description);y(E),n(()=>{document.dir=d().dir});var T=l();h(`12qhfyh`,e=>{var t=Y();p(()=>c(t,`content`,v(w))),a(()=>{o.title=v(C)??``}),r(e,t)});var D=e(T);_(D,()=>i.children),r(t,T),s(),S()}export{X as component,q as universal};
@@ -1 +1 @@
1
- import{$ as e,A as t,D as n,O as r,Q as i,_t as a,et as o,q as s,vt as c,wt as l}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/CgfHzBvj.js";var d=t(`<h1> </h1> <p> </p>`,1);function f(t,f){c(f,!0);var p=d(),m=e(p),h=i(m,!0);l(m);var g=o(m,2),_=i(g,!0);l(g),s(()=>{n(h,u.status),n(_,u.error?.message)}),r(t,p),a()}export{f as component};
1
+ import{$ as e,A as t,D as n,O as r,Q as i,_t as a,et as o,q as s,vt as c,wt as l}from"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/ZDaBUEHo.js";var d=t(`<h1> </h1> <p> </p>`,1);function f(t,f){c(f,!0);var p=d(),m=e(p),h=i(m,!0);l(m);var g=o(m,2),_=i(g,!0);l(g),s(()=>{n(h,u.status),n(_,u.error?.message)}),r(t,p),a()}export{f as component};
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,C as n,Ct as r,D as i,Dt as a,E as o,I as s,J as c,L as l,M as u,N as d,O as f,Q as p,S as m,Tt as h,Z as g,_t as _,a as v,at as y,b,ct as x,d as S,dt as C,et as w,f as T,ft as E,h as ee,i as D,j as O,k,l as A,lt as j,m as M,n as N,o as P,ot as F,q as I,rt as L,s as R,tt as te,u as ne,ut as z,vt as B,w as re,wt as V,x as H,z as U}from"../chunks/PUjOYRcs.js";import{n as ie,s as ae}from"../chunks/B5PRVWfI.js";import"../chunks/BoR-5hPQ.js";import"../chunks/xihTtKlq.js";import{A as oe,C as se,D as ce,E as le,P as W,_ as ue,a as de,d as fe,f as pe,g as me,h as he,i as ge,j as _e,k as ve,l as ye,m as be,n as xe,p as Se,t as Ce,u as we,v as Te,w as Ee,y as De}from"../chunks/Dqbc1omj.js";import"../chunks/CGZgCQ0J.js";import{t as Oe}from"../chunks/CgfHzBvj.js";import"../chunks/aGqeFZO3.js";import{$ as ke,A as Ae,B as je,D as G,E as K,F as Me,G as q,H as Ne,I as Pe,J as Fe,K as Ie,L as Le,M as Re,O as ze,P as Be,Q as Ve,R as He,U as Ue,V as J,W as We,X as Ge,Y,Z as Ke,a as X,et as qe,i as Je,it as Ye,j as Xe,k as Ze,m as Qe,o as $e,p as et,q as tt,r as nt,tt as rt,x as it,z as at}from"../chunks/BFYXOxPR.js";import"../chunks/DINmginf.js";import{t as ot}from"../chunks/CE3aSUX-.js";function st(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 ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function lt(e,t){let n=v(t,ct),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`}]];W(e,P({name:`list`},()=>n,{get iconNode(){return r}}))}var ut=new Set([`$$slots`,`$$events`,`$$legacy`]);function dt(e,t){let n=v(t,ut),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`}]];W(e,P({name:`log-out`},()=>n,{get iconNode(){return r}}))}var ft=new Set([`$$slots`,`$$events`,`$$legacy`]);function pt(e,t){let n=v(t,ft),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];W(e,P({name:`search`},()=>n,{get iconNode(){return r}}))}var mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function ht(e,t){let n=v(t,mt),r=[[`path`,{d:`m10.586 5.414-5.172 5.172`}],[`path`,{d:`m18.586 13.414-5.172 5.172`}],[`path`,{d:`M6 12h12`}],[`circle`,{cx:`12`,cy:`20`,r:`2`}],[`circle`,{cx:`12`,cy:`4`,r:`2`}],[`circle`,{cx:`20`,cy:`12`,r:`2`}],[`circle`,{cx:`4`,cy:`12`,r:`2`}]];W(e,P({name:`waypoints`},()=>n,{get iconNode(){return r}}))}function Z(e){let t=y(te(e));return{[Ie]:!0,[Ve]:!0,get current(){return U(t)},set current(e){L(t,e,!0)}}}Z.from=Fe,Z.with=Y,Z.flatten=tt,Z.readonly=qe,Z.isBox=Ge,Z.isWritableBox=Ke;var gt=1,_t=9,vt=11;function yt(e){return rt(e)&&e.nodeType===gt&&typeof e.nodeName==`string`}function bt(e){return rt(e)&&e.nodeType===_t}function xt(e){return rt(e)&&e.constructor?.name===`VisualViewport`}function St(e){return rt(e)&&e.nodeType!==void 0}function Ct(e){return St(e)&&e.nodeType===vt&&`host`in e}function wt(e){return bt(e)?e:xt(e)?e.document:e?.ownerDocument??document}function Tt(e){return Ct(e)?Tt(e.host):bt(e)?e.defaultView??window:yt(e)?e.ownerDocument?.defaultView??window:window}function Et(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Dt=class{element;#e=F(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return U(this.#e)}set root(e){L(this.#e,e)}constructor(e){this.element=typeof e==`function`?Y(e):e}getDocument=()=>wt(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Et(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function Ot(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var kt=[Ze,Pe,Be],At=[Re,Me,`End`];[...kt,...At];function jt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Ae:Xe,vertical:Ze}[t]}function Mt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Xe:Ae,vertical:Re}[t]}function Nt(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:jt(e,t),prevKey:Mt(e,t)}}var Pt=typeof document<`u`;Ft();function Ft(){return Pt&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function It(e){return e instanceof HTMLElement}var Lt=class{#e;#t=Z(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}=Nt(Ot(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Be]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?Xe:Ze,t=s===`ArrowUp`?Ae: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||!It(t)||t.focus()}},Rt=18,zt=40,Bt=`${zt}px`,Vt=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function Ht({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=y(!1),o=y(!1),s=y(!1);function l(){let e=n.current;return e!==`none`&&e===`increase-width`&&U(a)&&U(o)}function u(){let r=e.current,o=t.current;if(!r||!o||U(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-Rt,f=u;(i.querySelectorAll(Vt).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(L(a,!0),L(s,!0))}return c(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=Tt(t).innerWidth-t.getBoundingClientRect().right;L(o,e>=zt)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),c(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(u,0),o=setTimeout(u,2e3),c=setTimeout(u,5e3),l=setTimeout(()=>{L(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(l)}}),{get hasPwmBadge(){return U(a)},get willPushPwmBadge(){return l()},PWM_BADGE_SPACE_WIDTH:Bt}}var Ut=`^\\d+$`,Wt=je({component:`pin-input`,parts:[`root`,`cell`]}),Gt=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],Kt=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=y(!1);#t=ke(!1);#n=y(null);#r=y(null);#i=new Ne(()=>this.opts.value.current??``);#a=F(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=y(te({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=J(this.opts.ref),this.inputAttachment=J(this.opts.inputRef),this.domContext=new Dt(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=Ht({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),N(()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;this.#c.value.current!==e.value&&(this.opts.value.current=e.value),U(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=l(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()}}),Ue([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{Jt(()=>{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&&(L(this.#n,t,!0),L(this.#r,n,!0),U(this.#o).prev=[t,n,r])},this.domContext)}),c(()=>{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;Gt.includes(t)||e.ctrlKey||e.metaKey||t&&U(this.#a)&&!U(this.#a).test(t)&&e.preventDefault()};#l=F(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=F(()=>({id:this.opts.id.current,[Wt.root]:``,style:U(this.#l),...this.attachment}));get rootProps(){return U(this.#u)}set rootProps(e){L(this.#u,e)}#d=F(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return U(this.#d)}set inputWrapperProps(e){L(this.#d,e)}#f=F(()=>({position:`absolute`,inset:0,width:this.#s.willPushPwmBadge?`calc(100% + ${this.#s.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:this.#s.willPushPwmBadge?`inset(0 ${this.#s.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:this.opts.textAlign.current,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--bits-pin-input-root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}));#p(){let e=this.domContext.getDocument(),t=e.createElement(`style`);if(t.id=`pin-input-style`,e.head.appendChild(t),t.sheet){let e=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;Yt(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),Yt(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),Yt(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),Yt(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; } }`),Yt(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){L(this.#n,null),L(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=U(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;L(this.#n,d,!0),L(this.#r,f,!0),U(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&U(this.#a)&&!U(this.#a).test(t)){e.preventDefault();return}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),L(this.#n,e,!0),L(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&&U(this.#a)&&!U(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),L(this.#n,s,!0),L(this.#r,c,!0)};onmouseover=e=>{L(this.#e,!0)};onmouseleave=e=>{L(this.#e,!1)};onblur=e=>{if(U(this.#o).willSyntheticBlur){U(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=F(()=>({id:this.opts.inputId.current,style:U(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":U(this.#n),"data-pin-input-input-mse":U(this.#r),inputmode:this.opts.inputmode.current,pattern:U(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:at(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 U(this.#h)}set inputProps(e){L(this.#h,e)}#g=F(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&U(this.#n)!==null&&U(this.#r)!==null&&(U(this.#n)===U(this.#r)&&t===U(this.#n)||t>=U(this.#n)&&t<U(this.#r)),r=this.opts.value.current[t]===void 0?null:this.opts.value.current[t];return{char:r,isActive:n,hasFakeCaret:n&&r===null}}));#_=F(()=>({cells:U(this.#g),isFocused:this.#t.current,isHovering:U(this.#e)}));get snippetProps(){return U(this.#_)}set snippetProps(e){L(this.#_,e)}},qt=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=J(this.opts.ref)}#e=F(()=>({id:this.opts.id.current,[Wt.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return U(this.#e)}set props(e){L(this.#e,e)}};function Jt(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function Yt(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var Xt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Zt=t(`<div><!> <div><input/></div></div>`);function Qt(e,t){let n=u();B(t,!0);let r=D(t,`id`,19,()=>G(n)),i=D(t,`inputId`,19,()=>`${G(n)}-input`),a=D(t,`ref`,15,null),o=D(t,`inputRef`,15,null),s=D(t,`maxlength`,3,6),c=D(t,`textalign`,3,`left`),l=D(t,`inputmode`,3,`numeric`),d=D(t,`onComplete`,3,ze),m=D(t,`pushPasswordManagerStrategy`,3,`increase-width`),g=D(t,`class`,3,``),y=D(t,`autocomplete`,3,`one-time-code`),b=D(t,`disabled`,3,!1),x=D(t,`value`,15,``),C=D(t,`onValueChange`,3,ze),T=v(t,Xt),E=Kt.create({id:Y(()=>r()),ref:Y(()=>a(),e=>a(e)),inputRef:Y(()=>o(),e=>o(e)),inputId:Y(()=>i()),autocomplete:Y(()=>y()),maxLength:Y(()=>s()),textAlign:Y(()=>c()),disabled:Y(()=>b()),inputmode:Y(()=>l()),pattern:Y(()=>t.pattern),onComplete:Y(()=>d()),value:Y(()=>x(),e=>{x(e),C()(e)}),pushPasswordManagerStrategy:Y(()=>m()),pasteTransformer:Y(()=>t.pasteTransformer)}),ee=F(()=>q(T,E.inputProps)),O=F(()=>q(E.rootProps,{class:g()})),k=F(()=>q(E.inputWrapperProps,{}));var A=Zt();S(A,()=>({...U(O)}));var j=p(A);H(j,()=>t.children??h,()=>E.snippetProps);var M=w(j,2);S(M,()=>({...U(k)}));var N=p(M);S(N,()=>({...U(ee)}),void 0,void 0,void 0,void 0,!0),V(M),V(A),f(e,A),_()}var $t=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),en=t(`<div><!></div>`);function tn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,$t),c=qt.create({id:Y(()=>i()),ref:Y(()=>a(),e=>a(e)),cell:Y(()=>n.cell)}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=en();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var nn=je({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),rn=new We(`Tabs.Root`),an=class e{static create(t){return rn.set(new e(t))}opts;attachment;rovingFocusGroup;#e=y(te([]));get triggerIds(){return U(this.#e)}set triggerIds(e){L(this.#e,e,!0)}valueToTriggerId=new Ye;valueToContentId=new Ye;constructor(e){this.opts=e,this.attachment=J(e.ref),this.rovingFocusGroup=new Lt({candidateAttr:nn.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(e,t){return this.triggerIds.push(e),this.valueToTriggerId.set(t,e),()=>{this.triggerIds=this.triggerIds.filter(t=>t!==e),this.valueToTriggerId.delete(t)}}registerContent(e,t){return this.valueToContentId.set(t,e),()=>{this.valueToContentId.delete(t)}}setValue(e){this.opts.value.current=e}#t=F(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[nn.root]:``,...this.attachment}));get props(){return U(this.#t)}set props(e){L(this.#t,e)}},on=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=F(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref)}#t=F(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[nn.list]:``,"data-disabled":Le(U(this.#e)),...this.attachment}));get props(){return U(this.#t)}set props(e){L(this.#t,e)}},sn=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=y(0);#t=F(()=>this.root.opts.value.current===this.opts.value.current);#n=F(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=F(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref),Ue([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),c(()=>{this.root.triggerIds.length,U(this.#t)||!this.root.opts.value.current?L(this.#e,0):L(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`||U(this.#n)||this.#i()}onclick(e){U(this.#n)||this.#i()}onkeydown(e){if(!U(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=F(()=>({id:this.opts.id.current,role:`tab`,"data-state":ln(U(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Le(U(this.#n)),"aria-selected":He(U(this.#t)),"aria-controls":U(this.#r),[nn.trigger]:``,disabled:at(U(this.#n)),tabindex:U(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return U(this.#a)}set props(e){L(this.#a,e)}},cn=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=F(()=>this.root.opts.value.current===this.opts.value.current);#t=F(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref),Ue([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=F(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:at(!U(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":ln(U(this.#e)),"aria-labelledby":U(this.#t),"data-orientation":this.root.opts.orientation.current,[nn.content]:``,...this.attachment}));get props(){return U(this.#n)}set props(e){L(this.#n,e)}};function ln(e){return e?`active`:`inactive`}var un=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),dn=t(`<div><!></div>`);function fn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=D(n,`value`,15,``),c=D(n,`onValueChange`,3,ze),l=D(n,`orientation`,3,`horizontal`),d=D(n,`loop`,3,!0),m=D(n,`activationMode`,3,`automatic`),g=D(n,`disabled`,3,!1),y=v(n,un),b=an.create({id:Y(()=>i()),value:Y(()=>s(),e=>{s(e),c()(e)}),orientation:Y(()=>l()),loop:Y(()=>d()),activationMode:Y(()=>m()),disabled:Y(()=>g()),ref:Y(()=>a(),e=>a(e))}),x=F(()=>q(y,b.props));var C=k(),w=e(C),T=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(x)})),f(t,r)},E=e=>{var t=dn();S(t,()=>({...U(x)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(w,e=>{n.child?e(T):e(E,-1)}),f(t,C),_()}var pn=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),mn=t(`<div><!></div>`);function hn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,pn),c=cn.create({value:Y(()=>n.value),id:Y(()=>i()),ref:Y(()=>a(),e=>a(e))}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=mn();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var gn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),_n=t(`<div><!></div>`);function vn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,gn),c=on.create({id:Y(()=>i()),ref:Y(()=>a(),e=>a(e))}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=_n();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var yn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),bn=t(`<button><!></button>`);function xn(t,n){let r=u();B(n,!0);let i=D(n,`disabled`,3,!1),a=D(n,`id`,19,()=>G(r)),s=D(n,`type`,3,`button`),c=D(n,`ref`,15,null),l=v(n,yn),d=sn.create({id:Y(()=>a()),disabled:Y(()=>i()??!1),value:Y(()=>n.value),ref:Y(()=>c(),e=>c(e))}),m=F(()=>q(l,d.props,{type:s()}));var g=k(),y=e(g),b=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(m)})),f(t,r)},x=e=>{var t=bn();S(t,()=>({...U(m)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(y,e=>{n.child?e(b):e(x,-1)}),f(t,g),_()}var Sn={"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`}}}},Q=E(xe,e=>Sn[e]),Cn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),wn=t(`<div><!></div>`);function Tn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Cn);var i=wn();S(i,e=>({"data-slot":`card-content`,class:e,...r}),[()=>K(`px-(--card-spacing)`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var En=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Dn=t(`<p><!></p>`);function On(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,En);var i=Dn();S(i,e=>({"data-slot":`card-description`,class:e,...r}),[()=>K(`text-sm text-muted-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),An=t(`<div><!></div>`);function jn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,kn);var i=An();S(i,e=>({"data-slot":`card-footer`,class:e,...r}),[()=>K(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Mn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nn=t(`<div><!></div>`);function Pn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Mn);var i=Nn();S(i,e=>({"data-slot":`card-header`,class:e,...r}),[()=>K(`gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Fn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),In=t(`<div><!></div>`);function Ln(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Fn);var i=In();S(i,e=>({"data-slot":`card-title`,class:e,...r}),[()=>K(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Rn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),zn=t(`<div><!></div>`);function Bn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=D(t,`size`,3,`default`),i=v(t,Rn);var a=zn();S(a,e=>({"data-slot":`card`,"data-size":r(),class:e,...i}),[()=>K(`gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,t.class)]);var o=p(a);H(o,()=>t.children??h),V(a),R(a,e=>n(e),()=>n()),f(e,a),_()}var Vn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),Hn=t(`<input/>`);function Un(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15),a=D(n,`files`,15),s=D(n,`data-slot`,3,`input`),c=v(n,Vn);var l=k(),u=e(l),d=e=>{var t=Hn();S(t,e=>({"data-slot":s(),class:e,type:`file`,...c}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),R(t,e=>r(e),()=>r()),A(t,a),ne(t,i),f(e,t)},p=e=>{var t=Hn();S(t,e=>({"data-slot":s(),class:e,type:n.type,...c}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),R(t,e=>r(e),()=>r()),ne(t,i),f(e,t)};o(u,e=>{n.type===`file`?e(d):e(p,-1)}),f(t,l),_()}var Wn=t(`<div><!></div>`);function Gn(e,t){B(t,!0);let n=y(!1);async function r(){L(n,!0),await new Promise(e=>setTimeout(e,500)),L(n,!1)}var i={shake:r},a=Wn(),o=p(a);return H(o,()=>t.children),V(a),I(()=>M(a,1,ee([t.class,U(n)&&`shake`]),`svelte-alh7mr`)),f(e,a),_(i)}var Kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qn=t(`<div><!></div>`);function Jn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Kn);var i=qn();S(i,e=>({"data-slot":`input-otp-group`,class:e,...r}),[()=>K(`rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Xn=t(`<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>`),Zn=t(` <!>`,1);function Qn(t,n){B(n,!0);let a=D(n,`ref`,15,null),s=v(n,Yn);var c=k(),l=e(c);{let t=F(()=>K(`size-8 border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex items-center justify-center data-[active=true]:z-10`,n.class));b(l,()=>tn,(c,l)=>{l(c,P({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return U(t)}},()=>s,{get ref(){return a()},set ref(e){a(e)},children:(t,a)=>{r();var s=Zn(),c=e(s),l=w(c),u=e=>{var t=Xn();f(e,t)};o(l,e=>{n.cell.hasFakeCaret&&e(u)}),I(()=>i(c,`${n.cell.char??``} `)),f(t,s)},$$slots:{default:!0}}))})}f(t,c),_()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function er(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15,``),a=v(n,$n);var o=k(),s=e(o);{let e=F(()=>K(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));b(s,()=>Qt,(t,n)=>{n(t,P({"data-slot":`input-otp`,spellcheck:!1,get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}f(t,o),_()}var tr=t(`<div class="w-full flex items-center"><!></div>`);function nr(t,r){B(r,!0);let i=()=>z(Q,`$dict`,a),[a,s]=j(),c=D(r,`ref`,15,null),l=D(r,`mode`,11,`password`),u=D(r,`password`,15,``),d=D(r,`otp`,15,``);var m=tr(),h=p(m),g=e=>{Un(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return i().auth.password},class:`placeholder:text-sm`,get value(){return u()},set value(e){u(e)}})},v=t=>{var r=k(),i=e(r);{let t=(t,r)=>{let i=()=>(r?.()).cells;var a=k(),o=e(a);b(o,()=>Jn,(t,r)=>{r(t,{children:(t,r)=>{var a=k(),o=e(a);n(o,17,()=>i().slice(0,6),re,(t,n)=>{var r=k(),i=e(r);b(i,()=>Qn,(e,t)=>{t(e,{get cell(){return U(n)},class:`size-[40px] bg-background`})}),f(t,r)}),f(t,a)},$$slots:{default:!0}})}),f(t,a)};b(i,()=>er,(e,n)=>{n(e,{maxlength:6,get pattern(){return Ut},required:!0,get value(){return d()},set value(e){d(e)},children:t,$$slots:{default:!0}})})}f(t,r)};o(h,e=>{l()===`password`?e(g):e(v,-1)}),V(m),R(m,e=>c(e),()=>c()),f(t,m),_(),s()}var rr=t(`<!> <span class="sr-only"> </span>`,1),ir=t(`<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 ar(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,c]=j(),l=y(!1),u=y(``),h=y(``),g=y(``),v=y(null),b=y(`password`),x=y(void 0);async function S(){U(h).length===0?U(b)===`password`?await E():await ee():await C()}async function C(){L(l,!0);let e=n.account===void 0?await T():await he(n.account.id,{username:U(u),password:U(h)});L(l,!1),e instanceof Error&&await D()}async function T(){let e=await me(U(u),U(h));return e instanceof Error||Ee(e)?.status===201&&n.oncreate?.(e),e}async function E(){L(l,!0);let e=n.account===void 0?await Se(U(u)):await pe(n.account.id,U(u));L(l,!1),!(e instanceof Error)&&(L(b,`otp`),requestAnimationFrame(()=>O()))}async function ee(){if(U(u).length===0){console.error(`username is required`);return}if(U(g).length!==6){await D();return}L(l,!0);let e=await be(U(u),U(g));if(L(l,!1),e instanceof Error){L(g,``),await D();return}return Ee(e)?.status===201&&n.oncreate?.(e),e}async function D(){await U(x)?.shake(),O()}function O(){de&&U(v)?.querySelector(`input`)?.focus()}var A=ir(),M=F(()=>st(S)),N=p(A),P=p(N);{let e=F(()=>U(b)===`otp`||void 0);Un(P,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return U(e)},get autofocus(){return de},get placeholder(){return r().auth.email},get value(){return U(u)},set value(e){L(u,e,!0)}})}var te=w(P,2),ne=p(te),re=p(ne);R(Gn(re,{class:`w-full`,children:(e,t)=>{nr(e,{get mode(){return U(b)},get ref(){return U(v)},set ref(e){L(v,e,!0)},get password(){return U(h)},set password(e){L(h,e,!0)},get otp(){return U(g)},set otp(e){L(g,e,!0)}})},$$slots:{default:!0}}),e=>L(x,e,!0),()=>U(x));var H=w(re,2);X(H,{size:`icon-lg`,type:`submit`,children:(t,n)=>{var a=rr(),s=e(a),c=e=>{$e(e,{})},u=e=>{nt(e,{})};o(s,e=>{U(l)?e(c):e(u,-1)});var d=w(s,2),m=p(d,!0);V(d),I(()=>i(m,r().auth.login)),f(t,a)},$$slots:{default:!0}}),V(ne);var ie=w(ne,2),ae=p(ie),oe=t=>{var n=k(),i=e(n);m(i,()=>r().auth.passwordBlank),f(t,n)},se=e=>{var t=d();I(()=>i(t,r().auth.otpInstructions)),f(e,t)};o(ae,e=>{U(b)===`password`?e(oe):e(se,-1)}),V(ie),V(te),V(N),V(A),s(`submit`,A,function(...e){U(M)?.apply(this,e)}),f(t,A),_(),c()}var or=t(`<h2> </h2>`),sr=t(`<!> <!>`,1);function cr(t,n){B(n,!0);let a=()=>z(Q,`$dict`,o),[o,s]=j();var c=k(),l=e(c);{let t=F(()=>K(`pt-4 gap-4 bg-background/75`,n.class));b(l,()=>Bn,(o,s)=>{s(o,{get class(){return U(t)},children:(t,o)=>{var s=sr(),c=e(s);b(c,()=>Pn,(t,n)=>{n(t,{class:`gap-0`,children:(t,n)=>{var o=sr(),s=e(o);b(s,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{var n=or(),r=p(n,!0);V(n),I(()=>i(r,a().auth.passwordTitle)),f(e,n)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>On,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.passwordDescription)),f(e,n)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})});var l=w(c,2);b(l,()=>Tn,(e,t)=>{t(e,{children:(e,t)=>{ar(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),f(t,s)},$$slots:{default:!0}})})}f(t,c),_(),s()}function lr(e){ar(e,{})}var ur=new Set([`$$slots`,`$$events`,`$$legacy`]);function dr(e,t){let n=v(t,ur),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`}]];W(e,P({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var fr=new Set([`$$slots`,`$$events`,`$$legacy`]);function pr(e,t){let n=v(t,fr),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`}]];W(e,P({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),hr=t(`<div><!></div>`);function gr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,mr);var i=hr();S(i,e=>({"data-slot":`alert-description`,class:e,...r}),[()=>K(`text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var _r=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),vr=t(`<div><!></div>`);function yr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,_r);var i=vr();S(i,e=>({"data-slot":`alert-title`,class:e,...r}),[()=>K(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var br=it({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`}}),xr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),Sr=t(`<div><!></div>`);function Cr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=D(t,`variant`,3,`default`),i=v(t,xr);var a=Sr();S(a,e=>({"data-slot":`alert`,role:`alert`,class:e,...i}),[()=>K(br({variant:r()}),t.class)]);var o=p(a);H(o,()=>t.children??h),V(a),R(a,e=>n(e),()=>n()),f(e,a),_()}var wr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tr(e,t){let n=v(t,wr),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`}]];W(e,P({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var Er=t(`<!> `,1),Dr=t(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function Or(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,s]=j(),c=y(!1);async function l(){L(c,!0),await ye(),L(c,!1)}var u=Dr(),d=p(u),m=p(d,!0);V(d);var h=w(d,2);X(h,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:l,children:(t,n)=>{var a=Er(),s=e(a),l=e=>{$e(e,{})},u=e=>{Tr(e,{})};o(s,e=>{U(c)?e(l):e(u,-1)});var d=w(s);I(()=>i(d,` ${r().auth.signin??``}`)),f(t,a)},$$slots:{default:!0}}),V(u),I(()=>i(m,r().auth.alreadyHaveAccount)),f(t,u),_(),s()}var kr=t(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function Ar(t,n){B(n,!0);let r=()=>z(Q,`$dict`,i),[i,a]=j(),c=F(()=>n.account?.name??``),l=y(!1);async function u(){let e=U(c).trim();if(e.length===0)return;L(l,!0);let t=await we(e,n.account?.id);L(l,!1),!(t instanceof Error)&&n.oncreate?.(t)}var d=kr(),m=F(()=>st(u)),h=p(d),g=p(h),v=p(g);Un(v,{id:`name`,type:`text`,get placeholder(){return r().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return de},get value(){return U(c)},set value(e){L(c,e)}});var b=w(v,2);X(b,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(t,n)=>{var r=k(),i=e(r),a=e=>{$e(e,{})},s=e=>{nt(e,{})};o(i,e=>{U(l)?e(a):e(s,-1)}),f(t,r)},$$slots:{default:!0}}),V(g),V(h),V(d),I(()=>h.disabled=n.disabled),s(`submit`,d,function(...e){U(m)?.apply(this,e)}),f(t,d),_(),a()}var jr=t(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),Mr=t(`<h2> </h2>`),Nr=t(`<!> <!>`,1),Pr=t(`<!> <!> <!>`,1),Fr=t(`<p> </p> <!>`,1),Ir=t(`<div class="space-y-4"><!> <!></div>`);function Lr(t,n){B(n,!0);let a=()=>z(Q,`$dict`,s),[s,c]=j(),l=e=>{var t=jr(),n=p(t),r=w(n),o=p(r,!0);V(r),V(t),I(()=>{i(n,`${a().auth.passkeysDescription??``} `),T(r,`href`,u),i(o,a().auth.learnMore)}),f(e,t)},u=ge?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var m=Ir(),h=p(m);{let t=F(()=>K(`gap-4 bg-background/75`,fe&&`pt-4`,n.class));b(h,()=>Bn,(s,c)=>{c(s,{get class(){return U(t)},children:(t,s)=>{var c=Nr(),u=e(c),m=t=>{var r=Nr(),o=e(r);b(o,()=>Pn,(t,n)=>{n(t,{class:`gap-0`,children:(t,n)=>{var r=k(),o=e(r);b(o,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{var n=Mr(),r=p(n,!0);V(n),I(()=>i(r,a().auth.signupTitle)),f(e,n)},$$slots:{default:!0}})}),f(t,r)},$$slots:{default:!0}})});var s=w(o,2);b(s,()=>Tn,(e,t)=>{t(e,{children:(e,t)=>{Ar(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),f(t,r)};o(u,e=>{fe&&e(m)});var h=w(u,2);b(h,()=>jn,(t,n)=>{n(t,{children:(t,n)=>{var s=k(),c=e(s),u=t=>{var n=k(),o=e(n);b(o,()=>Cr,(t,n)=>{n(t,{children:(t,n)=>{var o=Pr(),s=e(o);dr(s,{color:`green`});var c=w(s,2);b(c,()=>yr,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.betterSecurity)),f(e,n)},$$slots:{default:!0}})});var u=w(c,2);b(u,()=>gr,(e,t)=>{t(e,{children:(e,t)=>{l(e)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,n)},m=t=>{var n=k(),o=e(n);b(o,()=>Cr,(t,n)=>{n(t,{children:(t,n)=>{var o=Pr(),s=e(o);pr(s,{color:`red`,class:`animate-pulse`});var c=w(s,2);b(c,()=>yr,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.passkeysNotSupported)),f(e,n)},$$slots:{default:!0}})});var u=w(c,2);b(u,()=>gr,(t,n)=>{n(t,{children:(t,n)=>{var r=Fr(),o=e(r),s=p(o,!0);V(o);var c=w(o,2);l(c),I(()=>i(s,a().auth.passkeysWarning)),f(t,r)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,n)};o(c,e=>{fe?e(u):e(m,-1)}),f(t,s)},$$slots:{default:!0}})}),f(t,c)},$$slots:{default:!0}})})}var g=w(h,2),v=e=>{Or(e,{})};o(g,e=>{fe&&!n.account&&e(v)}),V(m),f(t,m),_(),c()}var Rr=t(`<!> <!> `,1);function zr(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,o]=j();async function s(e){let t=e.currentTarget;t.disabled=!0,await ye(n.account.id),t.disabled=!1}X(t,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:s,children:(t,n)=>{var a=Rr(),o=e(a);Tr(o,{class:`size-5 x-icon`});var s=w(o,2);$e(s,{class:`x-spinner`});var c=w(s);I(()=>i(c,` ${r().auth.refresh.continue??``}`)),f(t,a)},$$slots:{default:!0}}),_(),o()}var Br=O(`<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 Vr(e,t){var n=Br();I(()=>M(n,0,ee(t.class))),f(e,n)}var Hr=O(`<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 Ur(e,t){B(t,!0);var n=Hr(),r=p(n);V(n),I(e=>{M(n,0,e),T(r,`fill`,t.fill)},[()=>ee(K(`size-5 -mt-[3px]`,t.class))]),f(e,n),_()}var Wr={google:Vr,apple:Ur},Gr=t(`<!> <!> <!>`,1);function Kr(t,n){B(n,!0);let r=F(()=>Wr[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=F(()=>n.children?`default`:`icon`),o=F(()=>K(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,n.class));X(t,{variant:`outline`,get size(){return U(a)},onclick:i,get class(){return U(o)},children:(t,i)=>{var a=Gr(),o=e(a);b(o,()=>U(r),(e,t)=>{t(e,{class:`x-icon`})});var s=w(o,2);$e(s,{class:`x-spinner`});var c=w(s,2);H(c,()=>n.children??h),f(t,a)},$$slots:{default:!0}})}_()}var qr=t(`<div class="flex gap-2"><!> <!></div>`);function Jr(e,t){B(t,!0);var n=qr(),r=p(n),i=e=>{Kr(e,{idp:`google`,get account(){return t.account}})};o(r,e=>{De.google.client&&e(i)});var a=w(r,2),s=e=>{Kr(e,{idp:`apple`,get account(){return t.account}})};o(a,e=>{De.apple.client&&e(s)}),V(n),f(e,n),_()}function Yr(e,t){B(t,!0);let n=()=>z(Q,`$dict`,a),[a,o]=j(),s={google:`Google`,apple:`Apple`};Kr(e,{get idp(){return t.idp},class:`w-full`,children:(e,a)=>{r();var o=d();I(e=>i(o,e),[()=>n().auth.continueWith(s[t.idp])]),f(e,o)},$$slots:{default:!0}}),_(),o()}var Xr=t(`<!> <!>`,1);function Zr(t,n){var a=k(),o=e(a);b(o,()=>Bn,(t,a)=>{a(t,{class:`w-full`,children:(t,a)=>{var o=Xr(),s=e(o);b(s,()=>Pn,(t,a)=>{a(t,{children:(t,a)=>{var o=Xr(),s=e(o);b(s,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{r();var a=d();I(()=>i(a,n.title)),f(e,a)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>On,(e,t)=>{t(e,{children:(e,t)=>{r();var a=d();I(()=>i(a,n.description)),f(e,a)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>Tn,(t,r)=>{r(t,{class:`flex flex-col`,children:(t,r)=>{var i=k(),a=e(i);H(a,()=>n.action),f(t,i)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,a)}var Qr=t(`<!> `,1),$r=t(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function ei(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,s]=j();N(()=>{n.method===null&&ue()});var c=$r(),l=p(c);{let t=t=>{var r=k(),i=e(r),a=e=>{zr(e,{get account(){return n.account}})},s=e=>{lr(e,{})},c=e=>{Yr(e,{idp:`apple`})},l=e=>{Yr(e,{idp:`google`})};o(i,e=>{n.method===`passkey`?e(a):n.method===`password`?e(s,1):n.method===`apple`?e(c,2):n.method===`google`&&e(l,3)}),f(t,r)},i=F(()=>r().auth.refresh.description(n.account.name));Zr(l,{get title(){return r().auth.refresh.title},get description(){return U(i)},action:t,$$slots:{action:!0}})}var u=w(l,2);X(u,{variant:`outline`,get onclick(){return ue},children:(t,n)=>{var a=Qr(),o=e(a);dt(o,{});var s=w(o);I(()=>i(s,` ${r().auth.signout??``}`)),f(t,a)},$$slots:{default:!0}}),V(c),f(t,c),_(),s()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`]);function ni(e,t){let n=v(t,ti),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`}]];W(e,P({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ri=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ii(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=v(n,ri);var a=k(),o=e(a);{let e=F(()=>K(`text-sm flex-1 outline-none`,n.class));b(o,()=>hn,(t,n)=>{n(t,P({"data-slot":`tabs-content`,get class(){return U(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,a),_()}var ai=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function oi(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=v(n,ai);var a=k(),o=e(a);{let e=F(()=>K(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,n.class));b(o,()=>xn,(t,n)=>{n(t,P({"data-slot":`tabs-trigger`,get class(){return U(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,a),_()}var si=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function ci(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15,``),a=v(n,si);var o=k(),s=e(o);{let e=F(()=>K(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));b(s,()=>fn,(t,n)=>{n(t,P({"data-slot":`tabs`,get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}f(t,o),_()}var li=it({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`}}),ui=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function di(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`variant`,3,`default`),a=v(n,ui);var o=k(),s=e(o);{let e=F(()=>K(li({variant:i()}),n.class));b(s,()=>vn,(t,n)=>{n(t,P({"data-slot":`tabs-list`,get"data-variant"(){return i()},get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,o),_()}var fi=t(`<!> `,1),pi=t(`<!> <!>`,1),mi=t(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function hi(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,o]=j(),s=y(null);function c(e){requestAnimationFrame(()=>{U(s)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let l=y(`passkey`);N(()=>{L(l,fe?`passkey`:`password`,!0)});var u=k(),d=e(u);{let t=F(()=>K(`w-full`,n.class));b(d,()=>ci,(a,o)=>{o(a,{get class(){return U(t)},onValueChange:c,get value(){return U(l)},set value(e){L(l,e,!0)},get ref(){return U(s)},set ref(e){L(s,e,!0)},children:(t,a)=>{var o=mi(),s=e(o),c=p(s);b(c,()=>di,(t,n)=>{n(t,{children:(t,n)=>{var a=pi(),o=e(a);b(o,()=>oi,(t,n)=>{n(t,{value:`passkey`,"data-marker":`passkey-tab`,children:(t,n)=>{var a=fi(),o=e(a);Tr(o,{color:`var(--muted-foreground)`});var s=w(o);I(()=>i(s,` ${r().auth.passkey??``}`)),f(t,a)},$$slots:{default:!0}})});var s=w(o,2);b(s,()=>oi,(t,n)=>{n(t,{value:`password`,id:`iam-email-tab`,children:(t,n)=>{var a=fi(),o=e(a);ni(o,{color:`var(--muted-foreground)`});var s=w(o);I(()=>i(s,` ${r().auth.email??``}`)),f(t,a)},$$slots:{default:!0}})}),f(t,a)},$$slots:{default:!0}})}),Jr(w(c,2),{get account(){return n.account}}),V(s);var l=w(s,2);b(l,()=>ii,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Lr(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var u=w(l,2);b(u,()=>ii,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{cr(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})})}f(t,u),_(),o()}var gi=t(`<div class="flex items-center justify-center h-screen"><!></div>`),_i=t(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function vi(t,n){B(n,!0);let r=()=>z(le,`$iam`,l),i=()=>z(oe,`$method`,l),a=()=>z(ce,`$authenticated`,l),s=()=>z(ve,`$greeting`,l),c=()=>z(_e,`$processing`,l),[l,u]=j(),d=t=>{var a=k(),s=e(a),c=e=>{ei(e,{get account(){return r()},get method(){return i()}})},l=e=>{{let t=F(()=>K(`scale-0 transition-transform`,`scale-100`));hi(e,{get class(){return U(t)},get account(){return n.account},get oncreate(){return n.oncreate}})}};o(s,e=>{r()?e(c):e(l,-1)}),f(t,a)};var m=k(),h=e(m),g=t=>{var r=k(),i=e(r);H(i,()=>n.children),f(t,r)},v=e=>{var t=gi(),n=p(t);$e(n,{}),V(t),f(e,t)},y=t=>{var r=k(),i=e(r);H(i,()=>n.screen,()=>({authentication:d})),f(t,r)},b=e=>{var t=_i(),n=p(t);d(n),V(t),f(e,t)};o(h,e=>{a()?e(g):s()||c()?e(v,1):n.screen?e(y,2):e(b,-1)}),f(t,m),_(),u()}function yi(e,t){return!!(e.dev!==void 0&&e.dev===!1||e.beta!==void 0&&e.beta===bi()||e.debug!==void 0&&e.debug===xi()||e.role!==void 0&&t?.roles!==void 0&&Si(t.roles,e.role))}function bi(){return typeof window<`u`&&window.location.hostname.startsWith(`beta.`)}function xi(){return bi()}function Si(e,t){for(let n of e)if(n===t||t.startsWith(n+`:`))return!0;return!1}var Ci=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`denied`]),wi=t(`<div class="flex justify-center pt-[14vh]"><!></div>`);function Ti(t,n){B(n,!0);let r=()=>z(le,`$account`,a),i=()=>z(Q,`$dict`,a),[a,s]=j(),c=v(n,Ci),l=F(()=>yi(c,r())),u=F(()=>r()?.id??``);var d=k(),m=e(d),h=t=>{var r=k(),i=e(r);H(i,()=>n.children),f(t,r)},g=t=>{var r=k(),i=e(r);H(i,()=>n.denied),f(t,r)},y=e=>{var t=wi(),n=p(t);{let e=F(()=>U(u).slice(0,8));Je(n,{get text(){return U(u)},get label(){return U(e)},get"aria-label"(){return i().auth.copyId},variant:`outline`,class:`font-mono`})}V(t),f(e,t)};o(m,e=>{U(l)?e(h):n.denied===void 0?U(u)!==``&&e(y,2):e(g,1)}),f(t,d),_(),s()}var Ei=a(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),$=a((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)}})),Di=a((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}}})),Oi=a(((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})),ki=a(((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})),Ai=a((e=>{var t=$().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}})),ji=a((e=>{var t=$().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Mi=a((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}})),Ni=a((e=>{var t=Di(),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}}})),Pi=a((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]]}})),Fi=a((e=>{var t=Pi();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}})),Ii=a(((e,t)=>{var n=Fi();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})),Li=a((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Ri=a((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
1
+ import{$ as e,A as t,C as n,Ct as r,D as i,Dt as a,E as o,I as s,J as c,L as l,M as u,N as d,O as f,Q as p,S as m,Tt as h,Z as g,_t as _,a as v,at as y,b,ct as x,d as S,dt as C,et as w,f as T,ft as E,h as ee,i as D,j as O,k,l as A,lt as j,m as M,n as N,o as P,ot as F,q as I,rt as L,s as R,tt as te,u as ne,ut as z,vt as B,w as re,wt as V,x as H,z as U}from"../chunks/PUjOYRcs.js";import{n as ie,s as ae}from"../chunks/CSrZe6FM.js";import"../chunks/DgJrKTj2.js";import"../chunks/xihTtKlq.js";import{A as oe,C as se,D as ce,E as le,P as W,_ as ue,a as de,d as fe,f as pe,g as me,h as he,i as ge,j as _e,k as ve,l as ye,m as be,n as xe,p as Se,t as Ce,u as we,v as Te,w as Ee,y as De}from"../chunks/uvCKiOkQ.js";import"../chunks/BsIaOH3-.js";import{t as Oe}from"../chunks/ZDaBUEHo.js";import"../chunks/D8gKk35O.js";import{$ as ke,A as Ae,B as je,D as G,E as K,F as Me,G as q,H as Ne,I as Pe,J as Fe,K as Ie,L as Le,M as Re,O as ze,P as Be,Q as Ve,R as He,U as Ue,V as J,W as We,X as Ge,Y,Z as Ke,a as X,et as qe,i as Je,it as Ye,j as Xe,k as Ze,m as Qe,o as $e,p as et,q as tt,r as nt,tt as rt,x as it,z as at}from"../chunks/DsPgkdIr.js";import"../chunks/DINmginf.js";import{t as ot}from"../chunks/CzYZBKhm.js";function st(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 ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function lt(e,t){let n=v(t,ct),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`}]];W(e,P({name:`list`},()=>n,{get iconNode(){return r}}))}var ut=new Set([`$$slots`,`$$events`,`$$legacy`]);function dt(e,t){let n=v(t,ut),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`}]];W(e,P({name:`log-out`},()=>n,{get iconNode(){return r}}))}var ft=new Set([`$$slots`,`$$events`,`$$legacy`]);function pt(e,t){let n=v(t,ft),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];W(e,P({name:`search`},()=>n,{get iconNode(){return r}}))}var mt=new Set([`$$slots`,`$$events`,`$$legacy`]);function ht(e,t){let n=v(t,mt),r=[[`path`,{d:`m10.586 5.414-5.172 5.172`}],[`path`,{d:`m18.586 13.414-5.172 5.172`}],[`path`,{d:`M6 12h12`}],[`circle`,{cx:`12`,cy:`20`,r:`2`}],[`circle`,{cx:`12`,cy:`4`,r:`2`}],[`circle`,{cx:`20`,cy:`12`,r:`2`}],[`circle`,{cx:`4`,cy:`12`,r:`2`}]];W(e,P({name:`waypoints`},()=>n,{get iconNode(){return r}}))}function Z(e){let t=y(te(e));return{[Ie]:!0,[Ve]:!0,get current(){return U(t)},set current(e){L(t,e,!0)}}}Z.from=Fe,Z.with=Y,Z.flatten=tt,Z.readonly=qe,Z.isBox=Ge,Z.isWritableBox=Ke;var gt=1,_t=9,vt=11;function yt(e){return rt(e)&&e.nodeType===gt&&typeof e.nodeName==`string`}function bt(e){return rt(e)&&e.nodeType===_t}function xt(e){return rt(e)&&e.constructor?.name===`VisualViewport`}function St(e){return rt(e)&&e.nodeType!==void 0}function Ct(e){return St(e)&&e.nodeType===vt&&`host`in e}function wt(e){return bt(e)?e:xt(e)?e.document:e?.ownerDocument??document}function Tt(e){return Ct(e)?Tt(e.host):bt(e)?e.defaultView??window:yt(e)?e.ownerDocument?.defaultView??window:window}function Et(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Dt=class{element;#e=F(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return U(this.#e)}set root(e){L(this.#e,e)}constructor(e){this.element=typeof e==`function`?Y(e):e}getDocument=()=>wt(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Et(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function Ot(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var kt=[Ze,Pe,Be],At=[Re,Me,`End`];[...kt,...At];function jt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Ae:Xe,vertical:Ze}[t]}function Mt(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Xe:Ae,vertical:Re}[t]}function Nt(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:jt(e,t),prevKey:Mt(e,t)}}var Pt=typeof document<`u`;Ft();function Ft(){return Pt&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function It(e){return e instanceof HTMLElement}var Lt=class{#e;#t=Z(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}=Nt(Ot(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Be]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?Xe:Ze,t=s===`ArrowUp`?Ae: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||!It(t)||t.focus()}},Rt=18,zt=40,Bt=`${zt}px`,Vt=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function Ht({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=y(!1),o=y(!1),s=y(!1);function l(){let e=n.current;return e!==`none`&&e===`increase-width`&&U(a)&&U(o)}function u(){let r=e.current,o=t.current;if(!r||!o||U(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-Rt,f=u;(i.querySelectorAll(Vt).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(L(a,!0),L(s,!0))}return c(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=Tt(t).innerWidth-t.getBoundingClientRect().right;L(o,e>=zt)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),c(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(u,0),o=setTimeout(u,2e3),c=setTimeout(u,5e3),l=setTimeout(()=>{L(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(l)}}),{get hasPwmBadge(){return U(a)},get willPushPwmBadge(){return l()},PWM_BADGE_SPACE_WIDTH:Bt}}var Ut=`^\\d+$`,Wt=je({component:`pin-input`,parts:[`root`,`cell`]}),Gt=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],Kt=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=y(!1);#t=ke(!1);#n=y(null);#r=y(null);#i=new Ne(()=>this.opts.value.current??``);#a=F(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=y(te({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=J(this.opts.ref),this.inputAttachment=J(this.opts.inputRef),this.domContext=new Dt(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=Ht({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),N(()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;this.#c.value.current!==e.value&&(this.opts.value.current=e.value),U(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=l(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()}}),Ue([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{Jt(()=>{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&&(L(this.#n,t,!0),L(this.#r,n,!0),U(this.#o).prev=[t,n,r])},this.domContext)}),c(()=>{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;Gt.includes(t)||e.ctrlKey||e.metaKey||t&&U(this.#a)&&!U(this.#a).test(t)&&e.preventDefault()};#l=F(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=F(()=>({id:this.opts.id.current,[Wt.root]:``,style:U(this.#l),...this.attachment}));get rootProps(){return U(this.#u)}set rootProps(e){L(this.#u,e)}#d=F(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return U(this.#d)}set inputWrapperProps(e){L(this.#d,e)}#f=F(()=>({position:`absolute`,inset:0,width:this.#s.willPushPwmBadge?`calc(100% + ${this.#s.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:this.#s.willPushPwmBadge?`inset(0 ${this.#s.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:this.opts.textAlign.current,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--bits-pin-input-root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}));#p(){let e=this.domContext.getDocument(),t=e.createElement(`style`);if(t.id=`pin-input-style`,e.head.appendChild(t),t.sheet){let e=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;Yt(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),Yt(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),Yt(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),Yt(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; } }`),Yt(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){L(this.#n,null),L(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=U(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;L(this.#n,d,!0),L(this.#r,f,!0),U(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&U(this.#a)&&!U(this.#a).test(t)){e.preventDefault();return}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),L(this.#n,e,!0),L(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&&U(this.#a)&&!U(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),L(this.#n,s,!0),L(this.#r,c,!0)};onmouseover=e=>{L(this.#e,!0)};onmouseleave=e=>{L(this.#e,!1)};onblur=e=>{if(U(this.#o).willSyntheticBlur){U(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=F(()=>({id:this.opts.inputId.current,style:U(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":U(this.#n),"data-pin-input-input-mse":U(this.#r),inputmode:this.opts.inputmode.current,pattern:U(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:at(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 U(this.#h)}set inputProps(e){L(this.#h,e)}#g=F(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&U(this.#n)!==null&&U(this.#r)!==null&&(U(this.#n)===U(this.#r)&&t===U(this.#n)||t>=U(this.#n)&&t<U(this.#r)),r=this.opts.value.current[t]===void 0?null:this.opts.value.current[t];return{char:r,isActive:n,hasFakeCaret:n&&r===null}}));#_=F(()=>({cells:U(this.#g),isFocused:this.#t.current,isHovering:U(this.#e)}));get snippetProps(){return U(this.#_)}set snippetProps(e){L(this.#_,e)}},qt=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=J(this.opts.ref)}#e=F(()=>({id:this.opts.id.current,[Wt.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return U(this.#e)}set props(e){L(this.#e,e)}};function Jt(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function Yt(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var Xt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Zt=t(`<div><!> <div><input/></div></div>`);function Qt(e,t){let n=u();B(t,!0);let r=D(t,`id`,19,()=>G(n)),i=D(t,`inputId`,19,()=>`${G(n)}-input`),a=D(t,`ref`,15,null),o=D(t,`inputRef`,15,null),s=D(t,`maxlength`,3,6),c=D(t,`textalign`,3,`left`),l=D(t,`inputmode`,3,`numeric`),d=D(t,`onComplete`,3,ze),m=D(t,`pushPasswordManagerStrategy`,3,`increase-width`),g=D(t,`class`,3,``),y=D(t,`autocomplete`,3,`one-time-code`),b=D(t,`disabled`,3,!1),x=D(t,`value`,15,``),C=D(t,`onValueChange`,3,ze),T=v(t,Xt),E=Kt.create({id:Y(()=>r()),ref:Y(()=>a(),e=>a(e)),inputRef:Y(()=>o(),e=>o(e)),inputId:Y(()=>i()),autocomplete:Y(()=>y()),maxLength:Y(()=>s()),textAlign:Y(()=>c()),disabled:Y(()=>b()),inputmode:Y(()=>l()),pattern:Y(()=>t.pattern),onComplete:Y(()=>d()),value:Y(()=>x(),e=>{x(e),C()(e)}),pushPasswordManagerStrategy:Y(()=>m()),pasteTransformer:Y(()=>t.pasteTransformer)}),ee=F(()=>q(T,E.inputProps)),O=F(()=>q(E.rootProps,{class:g()})),k=F(()=>q(E.inputWrapperProps,{}));var A=Zt();S(A,()=>({...U(O)}));var j=p(A);H(j,()=>t.children??h,()=>E.snippetProps);var M=w(j,2);S(M,()=>({...U(k)}));var N=p(M);S(N,()=>({...U(ee)}),void 0,void 0,void 0,void 0,!0),V(M),V(A),f(e,A),_()}var $t=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),en=t(`<div><!></div>`);function tn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,$t),c=qt.create({id:Y(()=>i()),ref:Y(()=>a(),e=>a(e)),cell:Y(()=>n.cell)}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=en();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var nn=je({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),rn=new We(`Tabs.Root`),an=class e{static create(t){return rn.set(new e(t))}opts;attachment;rovingFocusGroup;#e=y(te([]));get triggerIds(){return U(this.#e)}set triggerIds(e){L(this.#e,e,!0)}valueToTriggerId=new Ye;valueToContentId=new Ye;constructor(e){this.opts=e,this.attachment=J(e.ref),this.rovingFocusGroup=new Lt({candidateAttr:nn.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(e,t){return this.triggerIds.push(e),this.valueToTriggerId.set(t,e),()=>{this.triggerIds=this.triggerIds.filter(t=>t!==e),this.valueToTriggerId.delete(t)}}registerContent(e,t){return this.valueToContentId.set(t,e),()=>{this.valueToContentId.delete(t)}}setValue(e){this.opts.value.current=e}#t=F(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[nn.root]:``,...this.attachment}));get props(){return U(this.#t)}set props(e){L(this.#t,e)}},on=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=F(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref)}#t=F(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[nn.list]:``,"data-disabled":Le(U(this.#e)),...this.attachment}));get props(){return U(this.#t)}set props(e){L(this.#t,e)}},sn=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=y(0);#t=F(()=>this.root.opts.value.current===this.opts.value.current);#n=F(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=F(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref),Ue([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),c(()=>{this.root.triggerIds.length,U(this.#t)||!this.root.opts.value.current?L(this.#e,0):L(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`||U(this.#n)||this.#i()}onclick(e){U(this.#n)||this.#i()}onkeydown(e){if(!U(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=F(()=>({id:this.opts.id.current,role:`tab`,"data-state":ln(U(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Le(U(this.#n)),"aria-selected":He(U(this.#t)),"aria-controls":U(this.#r),[nn.trigger]:``,disabled:at(U(this.#n)),tabindex:U(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return U(this.#a)}set props(e){L(this.#a,e)}},cn=class e{static create(t){return new e(t,rn.get())}opts;root;attachment;#e=F(()=>this.root.opts.value.current===this.opts.value.current);#t=F(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=J(e.ref),Ue([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=F(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:at(!U(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":ln(U(this.#e)),"aria-labelledby":U(this.#t),"data-orientation":this.root.opts.orientation.current,[nn.content]:``,...this.attachment}));get props(){return U(this.#n)}set props(e){L(this.#n,e)}};function ln(e){return e?`active`:`inactive`}var un=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),dn=t(`<div><!></div>`);function fn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=D(n,`value`,15,``),c=D(n,`onValueChange`,3,ze),l=D(n,`orientation`,3,`horizontal`),d=D(n,`loop`,3,!0),m=D(n,`activationMode`,3,`automatic`),g=D(n,`disabled`,3,!1),y=v(n,un),b=an.create({id:Y(()=>i()),value:Y(()=>s(),e=>{s(e),c()(e)}),orientation:Y(()=>l()),loop:Y(()=>d()),activationMode:Y(()=>m()),disabled:Y(()=>g()),ref:Y(()=>a(),e=>a(e))}),x=F(()=>q(y,b.props));var C=k(),w=e(C),T=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(x)})),f(t,r)},E=e=>{var t=dn();S(t,()=>({...U(x)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(w,e=>{n.child?e(T):e(E,-1)}),f(t,C),_()}var pn=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),mn=t(`<div><!></div>`);function hn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,pn),c=cn.create({value:Y(()=>n.value),id:Y(()=>i()),ref:Y(()=>a(),e=>a(e))}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=mn();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var gn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),_n=t(`<div><!></div>`);function vn(t,n){let r=u();B(n,!0);let i=D(n,`id`,19,()=>G(r)),a=D(n,`ref`,15,null),s=v(n,gn),c=on.create({id:Y(()=>i()),ref:Y(()=>a(),e=>a(e))}),l=F(()=>q(s,c.props));var d=k(),m=e(d),g=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(l)})),f(t,r)},y=e=>{var t=_n();S(t,()=>({...U(l)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(m,e=>{n.child?e(g):e(y,-1)}),f(t,d),_()}var yn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),bn=t(`<button><!></button>`);function xn(t,n){let r=u();B(n,!0);let i=D(n,`disabled`,3,!1),a=D(n,`id`,19,()=>G(r)),s=D(n,`type`,3,`button`),c=D(n,`ref`,15,null),l=v(n,yn),d=sn.create({id:Y(()=>a()),disabled:Y(()=>i()??!1),value:Y(()=>n.value),ref:Y(()=>c(),e=>c(e))}),m=F(()=>q(l,d.props,{type:s()}));var g=k(),y=e(g),b=t=>{var r=k(),i=e(r);H(i,()=>n.child,()=>({props:U(m)})),f(t,r)},x=e=>{var t=bn();S(t,()=>({...U(m)}));var r=p(t);H(r,()=>n.children??h),V(t),f(e,t)};o(y,e=>{n.child?e(b):e(x,-1)}),f(t,g),_()}var Sn={"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`}}}},Q=E(xe,e=>Sn[e]),Cn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),wn=t(`<div><!></div>`);function Tn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Cn);var i=wn();S(i,e=>({"data-slot":`card-content`,class:e,...r}),[()=>K(`px-(--card-spacing)`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var En=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Dn=t(`<p><!></p>`);function On(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,En);var i=Dn();S(i,e=>({"data-slot":`card-description`,class:e,...r}),[()=>K(`text-sm text-muted-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),An=t(`<div><!></div>`);function jn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,kn);var i=An();S(i,e=>({"data-slot":`card-footer`,class:e,...r}),[()=>K(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Mn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Nn=t(`<div><!></div>`);function Pn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Mn);var i=Nn();S(i,e=>({"data-slot":`card-header`,class:e,...r}),[()=>K(`gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Fn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),In=t(`<div><!></div>`);function Ln(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Fn);var i=In();S(i,e=>({"data-slot":`card-title`,class:e,...r}),[()=>K(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Rn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),zn=t(`<div><!></div>`);function Bn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=D(t,`size`,3,`default`),i=v(t,Rn);var a=zn();S(a,e=>({"data-slot":`card`,"data-size":r(),class:e,...i}),[()=>K(`gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,t.class)]);var o=p(a);H(o,()=>t.children??h),V(a),R(a,e=>n(e),()=>n()),f(e,a),_()}var Vn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),Hn=t(`<input/>`);function Un(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15),a=D(n,`files`,15),s=D(n,`data-slot`,3,`input`),c=v(n,Vn);var l=k(),u=e(l),d=e=>{var t=Hn();S(t,e=>({"data-slot":s(),class:e,type:`file`,...c}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),R(t,e=>r(e),()=>r()),A(t,a),ne(t,i),f(e,t)},p=e=>{var t=Hn();S(t,e=>({"data-slot":s(),class:e,type:n.type,...c}),[()=>K(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),R(t,e=>r(e),()=>r()),ne(t,i),f(e,t)};o(u,e=>{n.type===`file`?e(d):e(p,-1)}),f(t,l),_()}var Wn=t(`<div><!></div>`);function Gn(e,t){B(t,!0);let n=y(!1);async function r(){L(n,!0),await new Promise(e=>setTimeout(e,500)),L(n,!1)}var i={shake:r},a=Wn(),o=p(a);return H(o,()=>t.children),V(a),I(()=>M(a,1,ee([t.class,U(n)&&`shake`]),`svelte-alh7mr`)),f(e,a),_(i)}var Kn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qn=t(`<div><!></div>`);function Jn(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,Kn);var i=qn();S(i,e=>({"data-slot":`input-otp-group`,class:e,...r}),[()=>K(`rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var Yn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Xn=t(`<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>`),Zn=t(` <!>`,1);function Qn(t,n){B(n,!0);let a=D(n,`ref`,15,null),s=v(n,Yn);var c=k(),l=e(c);{let t=F(()=>K(`size-8 border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex items-center justify-center data-[active=true]:z-10`,n.class));b(l,()=>tn,(c,l)=>{l(c,P({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return U(t)}},()=>s,{get ref(){return a()},set ref(e){a(e)},children:(t,a)=>{r();var s=Zn(),c=e(s),l=w(c),u=e=>{var t=Xn();f(e,t)};o(l,e=>{n.cell.hasFakeCaret&&e(u)}),I(()=>i(c,`${n.cell.char??``} `)),f(t,s)},$$slots:{default:!0}}))})}f(t,c),_()}var $n=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function er(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15,``),a=v(n,$n);var o=k(),s=e(o);{let e=F(()=>K(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));b(s,()=>Qt,(t,n)=>{n(t,P({"data-slot":`input-otp`,spellcheck:!1,get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}f(t,o),_()}var tr=t(`<div class="w-full flex items-center"><!></div>`);function nr(t,r){B(r,!0);let i=()=>z(Q,`$dict`,a),[a,s]=j(),c=D(r,`ref`,15,null),l=D(r,`mode`,11,`password`),u=D(r,`password`,15,``),d=D(r,`otp`,15,``);var m=tr(),h=p(m),g=e=>{Un(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return i().auth.password},class:`placeholder:text-sm`,get value(){return u()},set value(e){u(e)}})},v=t=>{var r=k(),i=e(r);{let t=(t,r)=>{let i=()=>(r?.()).cells;var a=k(),o=e(a);b(o,()=>Jn,(t,r)=>{r(t,{children:(t,r)=>{var a=k(),o=e(a);n(o,17,()=>i().slice(0,6),re,(t,n)=>{var r=k(),i=e(r);b(i,()=>Qn,(e,t)=>{t(e,{get cell(){return U(n)},class:`size-[40px] bg-background`})}),f(t,r)}),f(t,a)},$$slots:{default:!0}})}),f(t,a)};b(i,()=>er,(e,n)=>{n(e,{maxlength:6,get pattern(){return Ut},required:!0,get value(){return d()},set value(e){d(e)},children:t,$$slots:{default:!0}})})}f(t,r)};o(h,e=>{l()===`password`?e(g):e(v,-1)}),V(m),R(m,e=>c(e),()=>c()),f(t,m),_(),s()}var rr=t(`<!> <span class="sr-only"> </span>`,1),ir=t(`<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 ar(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,c]=j(),l=y(!1),u=y(``),h=y(``),g=y(``),v=y(null),b=y(`password`),x=y(void 0);async function S(){U(h).length===0?U(b)===`password`?await E():await ee():await C()}async function C(){L(l,!0);let e=n.account===void 0?await T():await he(n.account.id,{username:U(u),password:U(h)});L(l,!1),e instanceof Error&&await D()}async function T(){let e=await me(U(u),U(h));return e instanceof Error||Ee(e)?.status===201&&n.oncreate?.(e),e}async function E(){L(l,!0);let e=n.account===void 0?await Se(U(u)):await pe(n.account.id,U(u));L(l,!1),!(e instanceof Error)&&(L(b,`otp`),requestAnimationFrame(()=>O()))}async function ee(){if(U(u).length===0){console.error(`username is required`);return}if(U(g).length!==6){await D();return}L(l,!0);let e=await be(U(u),U(g));if(L(l,!1),e instanceof Error){L(g,``),await D();return}return Ee(e)?.status===201&&n.oncreate?.(e),e}async function D(){await U(x)?.shake(),O()}function O(){de&&U(v)?.querySelector(`input`)?.focus()}var A=ir(),M=F(()=>st(S)),N=p(A),P=p(N);{let e=F(()=>U(b)===`otp`||void 0);Un(P,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return U(e)},get autofocus(){return de},get placeholder(){return r().auth.email},get value(){return U(u)},set value(e){L(u,e,!0)}})}var te=w(P,2),ne=p(te),re=p(ne);R(Gn(re,{class:`w-full`,children:(e,t)=>{nr(e,{get mode(){return U(b)},get ref(){return U(v)},set ref(e){L(v,e,!0)},get password(){return U(h)},set password(e){L(h,e,!0)},get otp(){return U(g)},set otp(e){L(g,e,!0)}})},$$slots:{default:!0}}),e=>L(x,e,!0),()=>U(x));var H=w(re,2);X(H,{size:`icon-lg`,type:`submit`,children:(t,n)=>{var a=rr(),s=e(a),c=e=>{$e(e,{})},u=e=>{nt(e,{})};o(s,e=>{U(l)?e(c):e(u,-1)});var d=w(s,2),m=p(d,!0);V(d),I(()=>i(m,r().auth.login)),f(t,a)},$$slots:{default:!0}}),V(ne);var ie=w(ne,2),ae=p(ie),oe=t=>{var n=k(),i=e(n);m(i,()=>r().auth.passwordBlank),f(t,n)},se=e=>{var t=d();I(()=>i(t,r().auth.otpInstructions)),f(e,t)};o(ae,e=>{U(b)===`password`?e(oe):e(se,-1)}),V(ie),V(te),V(N),V(A),s(`submit`,A,function(...e){U(M)?.apply(this,e)}),f(t,A),_(),c()}var or=t(`<h2> </h2>`),sr=t(`<!> <!>`,1);function cr(t,n){B(n,!0);let a=()=>z(Q,`$dict`,o),[o,s]=j();var c=k(),l=e(c);{let t=F(()=>K(`pt-4 gap-4 bg-background/75`,n.class));b(l,()=>Bn,(o,s)=>{s(o,{get class(){return U(t)},children:(t,o)=>{var s=sr(),c=e(s);b(c,()=>Pn,(t,n)=>{n(t,{class:`gap-0`,children:(t,n)=>{var o=sr(),s=e(o);b(s,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{var n=or(),r=p(n,!0);V(n),I(()=>i(r,a().auth.passwordTitle)),f(e,n)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>On,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.passwordDescription)),f(e,n)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})});var l=w(c,2);b(l,()=>Tn,(e,t)=>{t(e,{children:(e,t)=>{ar(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),f(t,s)},$$slots:{default:!0}})})}f(t,c),_(),s()}function lr(e){ar(e,{})}var ur=new Set([`$$slots`,`$$events`,`$$legacy`]);function dr(e,t){let n=v(t,ur),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`}]];W(e,P({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var fr=new Set([`$$slots`,`$$events`,`$$legacy`]);function pr(e,t){let n=v(t,fr),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`}]];W(e,P({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var mr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),hr=t(`<div><!></div>`);function gr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,mr);var i=hr();S(i,e=>({"data-slot":`alert-description`,class:e,...r}),[()=>K(`text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var _r=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),vr=t(`<div><!></div>`);function yr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=v(t,_r);var i=vr();S(i,e=>({"data-slot":`alert-title`,class:e,...r}),[()=>K(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class)]);var a=p(i);H(a,()=>t.children??h),V(i),R(i,e=>n(e),()=>n()),f(e,i),_()}var br=it({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`}}),xr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),Sr=t(`<div><!></div>`);function Cr(e,t){B(t,!0);let n=D(t,`ref`,15,null),r=D(t,`variant`,3,`default`),i=v(t,xr);var a=Sr();S(a,e=>({"data-slot":`alert`,role:`alert`,class:e,...i}),[()=>K(br({variant:r()}),t.class)]);var o=p(a);H(o,()=>t.children??h),V(a),R(a,e=>n(e),()=>n()),f(e,a),_()}var wr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Tr(e,t){let n=v(t,wr),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`}]];W(e,P({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var Er=t(`<!> `,1),Dr=t(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function Or(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,s]=j(),c=y(!1);async function l(){L(c,!0),await ye(),L(c,!1)}var u=Dr(),d=p(u),m=p(d,!0);V(d);var h=w(d,2);X(h,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:l,children:(t,n)=>{var a=Er(),s=e(a),l=e=>{$e(e,{})},u=e=>{Tr(e,{})};o(s,e=>{U(c)?e(l):e(u,-1)});var d=w(s);I(()=>i(d,` ${r().auth.signin??``}`)),f(t,a)},$$slots:{default:!0}}),V(u),I(()=>i(m,r().auth.alreadyHaveAccount)),f(t,u),_(),s()}var kr=t(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function Ar(t,n){B(n,!0);let r=()=>z(Q,`$dict`,i),[i,a]=j(),c=F(()=>n.account?.name??``),l=y(!1);async function u(){let e=U(c).trim();if(e.length===0)return;L(l,!0);let t=await we(e,n.account?.id);L(l,!1),!(t instanceof Error)&&n.oncreate?.(t)}var d=kr(),m=F(()=>st(u)),h=p(d),g=p(h),v=p(g);Un(v,{id:`name`,type:`text`,get placeholder(){return r().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return de},get value(){return U(c)},set value(e){L(c,e)}});var b=w(v,2);X(b,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(t,n)=>{var r=k(),i=e(r),a=e=>{$e(e,{})},s=e=>{nt(e,{})};o(i,e=>{U(l)?e(a):e(s,-1)}),f(t,r)},$$slots:{default:!0}}),V(g),V(h),V(d),I(()=>h.disabled=n.disabled),s(`submit`,d,function(...e){U(m)?.apply(this,e)}),f(t,d),_(),a()}var jr=t(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),Mr=t(`<h2> </h2>`),Nr=t(`<!> <!>`,1),Pr=t(`<!> <!> <!>`,1),Fr=t(`<p> </p> <!>`,1),Ir=t(`<div class="space-y-4"><!> <!></div>`);function Lr(t,n){B(n,!0);let a=()=>z(Q,`$dict`,s),[s,c]=j(),l=e=>{var t=jr(),n=p(t),r=w(n),o=p(r,!0);V(r),V(t),I(()=>{i(n,`${a().auth.passkeysDescription??``} `),T(r,`href`,u),i(o,a().auth.learnMore)}),f(e,t)},u=ge?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var m=Ir(),h=p(m);{let t=F(()=>K(`gap-4 bg-background/75`,fe&&`pt-4`,n.class));b(h,()=>Bn,(s,c)=>{c(s,{get class(){return U(t)},children:(t,s)=>{var c=Nr(),u=e(c),m=t=>{var r=Nr(),o=e(r);b(o,()=>Pn,(t,n)=>{n(t,{class:`gap-0`,children:(t,n)=>{var r=k(),o=e(r);b(o,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{var n=Mr(),r=p(n,!0);V(n),I(()=>i(r,a().auth.signupTitle)),f(e,n)},$$slots:{default:!0}})}),f(t,r)},$$slots:{default:!0}})});var s=w(o,2);b(s,()=>Tn,(e,t)=>{t(e,{children:(e,t)=>{Ar(e,{get account(){return n.account},get oncreate(){return n.oncreate}})},$$slots:{default:!0}})}),f(t,r)};o(u,e=>{fe&&e(m)});var h=w(u,2);b(h,()=>jn,(t,n)=>{n(t,{children:(t,n)=>{var s=k(),c=e(s),u=t=>{var n=k(),o=e(n);b(o,()=>Cr,(t,n)=>{n(t,{children:(t,n)=>{var o=Pr(),s=e(o);dr(s,{color:`green`});var c=w(s,2);b(c,()=>yr,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.betterSecurity)),f(e,n)},$$slots:{default:!0}})});var u=w(c,2);b(u,()=>gr,(e,t)=>{t(e,{children:(e,t)=>{l(e)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,n)},m=t=>{var n=k(),o=e(n);b(o,()=>Cr,(t,n)=>{n(t,{children:(t,n)=>{var o=Pr(),s=e(o);pr(s,{color:`red`,class:`animate-pulse`});var c=w(s,2);b(c,()=>yr,(e,t)=>{t(e,{children:(e,t)=>{r();var n=d();I(()=>i(n,a().auth.passkeysNotSupported)),f(e,n)},$$slots:{default:!0}})});var u=w(c,2);b(u,()=>gr,(t,n)=>{n(t,{children:(t,n)=>{var r=Fr(),o=e(r),s=p(o,!0);V(o);var c=w(o,2);l(c),I(()=>i(s,a().auth.passkeysWarning)),f(t,r)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,n)};o(c,e=>{fe?e(u):e(m,-1)}),f(t,s)},$$slots:{default:!0}})}),f(t,c)},$$slots:{default:!0}})})}var g=w(h,2),v=e=>{Or(e,{})};o(g,e=>{fe&&!n.account&&e(v)}),V(m),f(t,m),_(),c()}var Rr=t(`<!> <!> `,1);function zr(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,o]=j();async function s(e){let t=e.currentTarget;t.disabled=!0,await ye(n.account.id),t.disabled=!1}X(t,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:s,children:(t,n)=>{var a=Rr(),o=e(a);Tr(o,{class:`size-5 x-icon`});var s=w(o,2);$e(s,{class:`x-spinner`});var c=w(s);I(()=>i(c,` ${r().auth.refresh.continue??``}`)),f(t,a)},$$slots:{default:!0}}),_(),o()}var Br=O(`<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 Vr(e,t){var n=Br();I(()=>M(n,0,ee(t.class))),f(e,n)}var Hr=O(`<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 Ur(e,t){B(t,!0);var n=Hr(),r=p(n);V(n),I(e=>{M(n,0,e),T(r,`fill`,t.fill)},[()=>ee(K(`size-5 -mt-[3px]`,t.class))]),f(e,n),_()}var Wr={google:Vr,apple:Ur},Gr=t(`<!> <!> <!>`,1);function Kr(t,n){B(n,!0);let r=F(()=>Wr[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=F(()=>n.children?`default`:`icon`),o=F(()=>K(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,n.class));X(t,{variant:`outline`,get size(){return U(a)},onclick:i,get class(){return U(o)},children:(t,i)=>{var a=Gr(),o=e(a);b(o,()=>U(r),(e,t)=>{t(e,{class:`x-icon`})});var s=w(o,2);$e(s,{class:`x-spinner`});var c=w(s,2);H(c,()=>n.children??h),f(t,a)},$$slots:{default:!0}})}_()}var qr=t(`<div class="flex gap-2"><!> <!></div>`);function Jr(e,t){B(t,!0);var n=qr(),r=p(n),i=e=>{Kr(e,{idp:`google`,get account(){return t.account}})};o(r,e=>{De.google.client&&e(i)});var a=w(r,2),s=e=>{Kr(e,{idp:`apple`,get account(){return t.account}})};o(a,e=>{De.apple.client&&e(s)}),V(n),f(e,n),_()}function Yr(e,t){B(t,!0);let n=()=>z(Q,`$dict`,a),[a,o]=j(),s={google:`Google`,apple:`Apple`};Kr(e,{get idp(){return t.idp},class:`w-full`,children:(e,a)=>{r();var o=d();I(e=>i(o,e),[()=>n().auth.continueWith(s[t.idp])]),f(e,o)},$$slots:{default:!0}}),_(),o()}var Xr=t(`<!> <!>`,1);function Zr(t,n){var a=k(),o=e(a);b(o,()=>Bn,(t,a)=>{a(t,{class:`w-full`,children:(t,a)=>{var o=Xr(),s=e(o);b(s,()=>Pn,(t,a)=>{a(t,{children:(t,a)=>{var o=Xr(),s=e(o);b(s,()=>Ln,(e,t)=>{t(e,{children:(e,t)=>{r();var a=d();I(()=>i(a,n.title)),f(e,a)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>On,(e,t)=>{t(e,{children:(e,t)=>{r();var a=d();I(()=>i(a,n.description)),f(e,a)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})});var c=w(s,2);b(c,()=>Tn,(t,r)=>{r(t,{class:`flex flex-col`,children:(t,r)=>{var i=k(),a=e(i);H(a,()=>n.action),f(t,i)},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})}),f(t,a)}var Qr=t(`<!> `,1),$r=t(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function ei(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,s]=j();N(()=>{n.method===null&&ue()});var c=$r(),l=p(c);{let t=t=>{var r=k(),i=e(r),a=e=>{zr(e,{get account(){return n.account}})},s=e=>{lr(e,{})},c=e=>{Yr(e,{idp:`apple`})},l=e=>{Yr(e,{idp:`google`})};o(i,e=>{n.method===`passkey`?e(a):n.method===`password`?e(s,1):n.method===`apple`?e(c,2):n.method===`google`&&e(l,3)}),f(t,r)},i=F(()=>r().auth.refresh.description(n.account.name));Zr(l,{get title(){return r().auth.refresh.title},get description(){return U(i)},action:t,$$slots:{action:!0}})}var u=w(l,2);X(u,{variant:`outline`,get onclick(){return ue},children:(t,n)=>{var a=Qr(),o=e(a);dt(o,{});var s=w(o);I(()=>i(s,` ${r().auth.signout??``}`)),f(t,a)},$$slots:{default:!0}}),V(c),f(t,c),_(),s()}var ti=new Set([`$$slots`,`$$events`,`$$legacy`]);function ni(e,t){let n=v(t,ti),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`}]];W(e,P({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ri=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ii(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=v(n,ri);var a=k(),o=e(a);{let e=F(()=>K(`text-sm flex-1 outline-none`,n.class));b(o,()=>hn,(t,n)=>{n(t,P({"data-slot":`tabs-content`,get class(){return U(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,a),_()}var ai=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function oi(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=v(n,ai);var a=k(),o=e(a);{let e=F(()=>K(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,n.class));b(o,()=>xn,(t,n)=>{n(t,P({"data-slot":`tabs-trigger`,get class(){return U(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,a),_()}var si=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function ci(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`value`,15,``),a=v(n,si);var o=k(),s=e(o);{let e=F(()=>K(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));b(s,()=>fn,(t,n)=>{n(t,P({"data-slot":`tabs`,get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)},get value(){return i()},set value(e){i(e)}}))})}f(t,o),_()}var li=it({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`}}),ui=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function di(t,n){B(n,!0);let r=D(n,`ref`,15,null),i=D(n,`variant`,3,`default`),a=v(n,ui);var o=k(),s=e(o);{let e=F(()=>K(li({variant:i()}),n.class));b(s,()=>vn,(t,n)=>{n(t,P({"data-slot":`tabs-list`,get"data-variant"(){return i()},get class(){return U(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}f(t,o),_()}var fi=t(`<!> `,1),pi=t(`<!> <!>`,1),mi=t(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function hi(t,n){B(n,!0);let r=()=>z(Q,`$dict`,a),[a,o]=j(),s=y(null);function c(e){requestAnimationFrame(()=>{U(s)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let l=y(`passkey`);N(()=>{L(l,fe?`passkey`:`password`,!0)});var u=k(),d=e(u);{let t=F(()=>K(`w-full`,n.class));b(d,()=>ci,(a,o)=>{o(a,{get class(){return U(t)},onValueChange:c,get value(){return U(l)},set value(e){L(l,e,!0)},get ref(){return U(s)},set ref(e){L(s,e,!0)},children:(t,a)=>{var o=mi(),s=e(o),c=p(s);b(c,()=>di,(t,n)=>{n(t,{children:(t,n)=>{var a=pi(),o=e(a);b(o,()=>oi,(t,n)=>{n(t,{value:`passkey`,"data-marker":`passkey-tab`,children:(t,n)=>{var a=fi(),o=e(a);Tr(o,{color:`var(--muted-foreground)`});var s=w(o);I(()=>i(s,` ${r().auth.passkey??``}`)),f(t,a)},$$slots:{default:!0}})});var s=w(o,2);b(s,()=>oi,(t,n)=>{n(t,{value:`password`,id:`iam-email-tab`,children:(t,n)=>{var a=fi(),o=e(a);ni(o,{color:`var(--muted-foreground)`});var s=w(o);I(()=>i(s,` ${r().auth.email??``}`)),f(t,a)},$$slots:{default:!0}})}),f(t,a)},$$slots:{default:!0}})}),Jr(w(c,2),{get account(){return n.account}}),V(s);var l=w(s,2);b(l,()=>ii,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Lr(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var u=w(l,2);b(u,()=>ii,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{cr(e,{get account(){return n.account},oncreate:e=>n.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),f(t,o)},$$slots:{default:!0}})})}f(t,u),_(),o()}var gi=t(`<div class="flex items-center justify-center h-screen"><!></div>`),_i=t(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function vi(t,n){B(n,!0);let r=()=>z(le,`$iam`,l),i=()=>z(oe,`$method`,l),a=()=>z(ce,`$authenticated`,l),s=()=>z(ve,`$greeting`,l),c=()=>z(_e,`$processing`,l),[l,u]=j(),d=t=>{var a=k(),s=e(a),c=e=>{ei(e,{get account(){return r()},get method(){return i()}})},l=e=>{{let t=F(()=>K(`scale-0 transition-transform`,`scale-100`));hi(e,{get class(){return U(t)},get account(){return n.account},get oncreate(){return n.oncreate}})}};o(s,e=>{r()?e(c):e(l,-1)}),f(t,a)};var m=k(),h=e(m),g=t=>{var r=k(),i=e(r);H(i,()=>n.children),f(t,r)},v=e=>{var t=gi(),n=p(t);$e(n,{}),V(t),f(e,t)},y=t=>{var r=k(),i=e(r);H(i,()=>n.screen,()=>({authentication:d})),f(t,r)},b=e=>{var t=_i(),n=p(t);d(n),V(t),f(e,t)};o(h,e=>{a()?e(g):s()||c()?e(v,1):n.screen?e(y,2):e(b,-1)}),f(t,m),_(),u()}function yi(e,t){return!!(e.dev!==void 0&&e.dev===!1||e.beta!==void 0&&e.beta===bi()||e.debug!==void 0&&e.debug===xi()||e.role!==void 0&&t?.roles!==void 0&&Si(t.roles,e.role))}function bi(){return typeof window<`u`&&window.location.hostname.startsWith(`beta.`)}function xi(){return bi()}function Si(e,t){for(let n of e)if(n===t||t.startsWith(n+`:`))return!0;return!1}var Ci=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`denied`]),wi=t(`<div class="flex justify-center pt-[14vh]"><!></div>`);function Ti(t,n){B(n,!0);let r=()=>z(le,`$account`,a),i=()=>z(Q,`$dict`,a),[a,s]=j(),c=v(n,Ci),l=F(()=>yi(c,r())),u=F(()=>r()?.id??``);var d=k(),m=e(d),h=t=>{var r=k(),i=e(r);H(i,()=>n.children),f(t,r)},g=t=>{var r=k(),i=e(r);H(i,()=>n.denied),f(t,r)},y=e=>{var t=wi(),n=p(t);{let e=F(()=>U(u).slice(0,8));Je(n,{get text(){return U(u)},get label(){return U(e)},get"aria-label"(){return i().auth.copyId},variant:`outline`,class:`font-mono`})}V(t),f(e,t)};o(m,e=>{U(l)?e(h):n.denied===void 0?U(u)!==``&&e(y,2):e(g,1)}),f(t,d),_(),s()}var Ei=a(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),$=a((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)}})),Di=a((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}}})),Oi=a(((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})),ki=a(((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})),Ai=a((e=>{var t=$().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}})),ji=a((e=>{var t=$().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Mi=a((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}})),Ni=a((e=>{var t=Di(),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}}})),Pi=a((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]]}})),Fi=a((e=>{var t=Pi();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}})),Ii=a(((e,t)=>{var n=Fi();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})),Li=a((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Ri=a((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
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)}})),zi=a((e=>{var t=Li(),n=Ri();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}}})),Bi=a((e=>{var t=$(),n=Ni(),r=Di(),i=zi(),a=Li(),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}})),Vi=a((e=>{var t=$(),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}})),Hi=a(((e,t)=>{var n=zi();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})),Ui=a(((e,t)=>{var n=zi(),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;for(t=0;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})),Wi=a(((e,t)=>{var n=zi();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})),Gi=a(((e,t)=>{var n=zi(),r=$();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;for(t=0;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
3
  Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),Ki=a(((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)})),qi=a((e=>{var t=zi(),n=Hi(),r=Ui(),i=Wi(),a=Gi(),o=Ri(),s=$(),c=Ki();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
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()))}})),Ji=a((e=>{var t=$(),n=Di(),r=Oi(),i=ki(),a=Ai(),o=ji(),s=Mi(),c=Ni(),l=Ii(),u=Bi(),d=Vi(),f=zi(),p=qi();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(`
@@ -0,0 +1 @@
1
+ import"../chunks/PUjOYRcs.js";import"../chunks/xihTtKlq.js";import"../chunks/DINmginf.js";import{t as e}from"../chunks/BlQ5CQh6.js";function t(t){e(t,{class:`h-full`})}export{t as component};