1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17919,34267,75830,86318,42727,25913,36270,37960,11308,53145,80202,91918,23797,72226,3853,45266,46925,42488,91764,24515,69334,89947,14035,19869,56500,12704,36552,18331,86916,66024,79172,e=>{"use strict";let t;var r=e.i(33716),n=e.i(71645),i=e.i(43476),l=e.i(34008);function s({className:e,children:t,...r}){return(0,i.jsx)("div",{className:(0,l.cn)("stack-scope animate-pulse rounded-md bg-primary/10",e),...r,children:(0,i.jsx)("div",{className:"invisible inline",children:t})})}e.s(["Skeleton",0,s],34267);var a=e.i(95144),o=e.i(81140),c=e.i(20783);function d(e){var t;let r,l=(t=e,(r=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var l;let e,s,a=(l=r,(s=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(s=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),o=function(e,t){let r={...t};for(let n in t){let i=e[n],l=t[n];/^on[A-Z]/.test(n)?i&&l?r[n]=(...e)=>{let t=l(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...l}:"className"===n&&(r[n]=[i,l].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(o.ref=t?(0,c.composeRefs)(t,a):a),n.cloneElement(r,o)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${t}.SlotClone`,r),s=n.forwardRef((e,t)=>{let{children:r,...s}=e,a=n.Children.toArray(r),o=a.find(f);if(o){let e=o.props.children,r=a.map(t=>t!==o?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(l,{...s,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,i.jsx)(l,{...s,ref:t,children:r})});return s.displayName=`${e}.Slot`,s}var u=Symbol("radix.slottable");function f(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}function p(e){let t=e+"CollectionProvider",[r,l]=function(e,t=[]){let r=[],l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return l.scopeName=e,[function(t,l){let s=n.createContext(l),a=r.length;r=[...r,l];let o=t=>{let{scope:r,children:l,...o}=t,c=r?.[e]?.[a]||s,d=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(c.Provider,{value:d,children:l})};return o.displayName=t+"Provider",[o,function(r,i){let o=i?.[e]?.[a]||s,c=n.useContext(o);if(c)return c;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(l,...t)]}(t),[s,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:r}=e,l=n.default.useRef(null),a=n.default.useRef(new Map).current;return(0,i.jsx)(s,{scope:t,itemMap:a,collectionRef:l,children:r})};o.displayName=t;let u=e+"CollectionSlot",f=d(u),p=n.default.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=a(u,r),s=(0,c.useComposedRefs)(t,l.collectionRef);return(0,i.jsx)(f,{ref:s,children:n})});p.displayName=u;let m=e+"CollectionItemSlot",h="data-radix-collection-item",g=d(m),v=n.default.forwardRef((e,t)=>{let{scope:r,children:l,...s}=e,o=n.default.useRef(null),d=(0,c.useComposedRefs)(t,o),u=a(m,r);return n.default.useEffect(()=>(u.itemMap.set(o,{ref:o,...s}),()=>void u.itemMap.delete(o))),(0,i.jsx)(g,{...{[h]:""},ref:d,children:l})});return v.displayName=m,[{Provider:o,Slot:p,ItemSlot:v},function(t){let r=a(e+"CollectionConsumer",t);return n.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},l]}var m=new WeakMap;function h(e,t){var r,n;let i,l,s;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,i=r.length,(s=(l=g(n))>=0?l:i+l)<0||s>=i?-1:s);return -1===a?void 0:e[a]}function g(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],m.set(this,!0)}set(e,t){return m.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),l=this.#e.length,s=g(e),a=s>=0?s:l+s,o=a<0||a>=l?-1:a;if(o===this.size||i&&o===this.size-1||-1===o)return this.set(t,r),this;let c=this.size+ +!i;s<0&&a++;let d=[...this.#e],u=!1;for(let e=a;
1e<c;e++)if(a===e){let l=d[e];d[e]===t&&(l=d[e+1]),i&&this.delete(t),n=this.get(l),this.set(t,r)}else{u||d[e-1]!==t||(u=!0);let r=d[u?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=h(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=h(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return h(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,p],75830);var v=e.i(10772),y=e.i(48425),x=e.i(30207),w=e.i(69340),b=n.createContext(void 0);function C(e){let t=n.useContext(b);return e||t||"ltr"}e.s(["useDirection",0,C],86318);var j="rovingFocusGroup.onEntryFocus",k={bubbles:!1,cancelable:!0},S="RovingFocusGroup",[N,E,A]=p(S),[R,F]=function(e,t=[]){let r=[],l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return l.scopeName=e,[function(t,l){let s=n.createContext(l),a=r.length;r=[...r,l];let o=t=>{let{scope:r,children:l,...o}=t,c=r?.[e]?.[a]||s,d=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(c.Provider,{value:d,children:l})};return o.displayName=t+"Provider",[o,function(r,i){let o=i?.[e]?.[a]||s,c=n.useContext(o);if(c)return c;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(l,...t)]}(S,[A]),[M,_]=R(S),V=n.forwardRef((e,t)=>(0,i.jsx)(N.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,i.jsx)(N.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,i.jsx)(L,{...e,ref:t})})}));V.displayName=S;var L=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:l,loop:s=!1,dir:a,currentTabStopId:d,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,...h}=e,g=n.useRef(null),v=(0,c.useComposedRefs)(t,g),b=C(a),[N,A]=(0,w.useControllableState)({prop:d,defaultProp:u??null,onChange:f,caller:S}),[R,F]=n.useState(!1),_=(0,x.useCallbackRef)(p),V=E(r),L=n.useRef(!1),[P,I]=n.useState(0);return n.useEffect(()=>{let e=g.current;if(e)return e.addEventListener(j,_),()=>e.removeEventListener(j,_)},[_]),(0,i.jsx)(M,{scope:r,orientation:l,dir:b,loop:s,currentTabStopId:N,onItemFocus:n.useCallback(e=>A(e),[A]),onItemShiftTab:n.useCallback(()=>F(!0),[]),onFocusableItemAdd:n.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>I(e=>e-1),[]),children:(0,i.jsx)(y.Primitive.div,{tabIndex:R||0===P?-1:0,"data-orientation":l,...h,ref:v,style:{outline:"none",...e.style},onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,o.composeEventHandlers)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(j,k);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=V().filter(e=>
1e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===N),...e].filter(Boolean).map(e=>e.ref.current),m)}}L.current=!1}),onBlur:(0,o.composeEventHandlers)(e.onBlur,()=>F(!1))})})}),P="RovingFocusGroupItem",I=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:l=!0,active:s=!1,tabStopId:a,children:c,...d}=e,u=(0,v.useId)(),f=a||u,p=_(P,r),m=p.currentTabStopId===f,h=E(r),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:w}=p;return n.useEffect(()=>{if(l)return g(),()=>x()},[l,g,x]),(0,i.jsx)(N.ItemSlot,{scope:r,id:f,focusable:l,active:s,children:(0,i.jsx)(y.Primitive.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,e=>{l?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return O[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let l=i.indexOf(e.currentTarget);i=p.loop?(r=i,n=l+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(l+1)}setTimeout(()=>T(i))}}),children:"function"==typeof c?c({isCurrentTabStop:m,hasTabStop:null!=w}):c})})});I.displayName=P;var O={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",0,I,"Root",0,V,"createRovingFocusGroupScope",0,F],42727);var D=e.i(96626),B="Tabs",[z,H]=function(e,t=[]){let r=[],l=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return l.scopeName=e,[function(t,l){let s=n.createContext(l),a=r.length;r=[...r,l];let o=t=>{let{scope:r,children:l,...o}=t,c=r?.[e]?.[a]||s,d=n.useMemo(()=>o,Object.values(o));return(0,i.jsx)(c.Provider,{value:d,children:l})};return o.displayName=t+"Provider",[o,function(r,i){let o=i?.[e]?.[a]||s,c=n.useContext(o);if(c)return c;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(l,...t)]}(B,[F]),$=F(),[W,U]=z(B),Z=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:l,defaultValue:s,orientation:a="horizontal",dir:o,activationMode:c="automatic",...d}=e,u=C(o),[f,p]=(0,w.useControllableState)({prop:n,onChange:l,defaultProp:s??"",caller:B});return(0,i.jsx)(W,{scope:r,baseId:(0,v.useId)(),value:f,onValueChange:p,orientation:a,dir:u,activationMode:c,children:(0,i.jsx)(y.Primitive.div,{dir:u,"data-orientation":a,...d,ref:t})})});Z.displayName=B;var G="TabsList",K=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...l}=e,s=U(G,r),a=$(r);return(0,i.jsx)(V,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:n,children:(0,i.jsx)(y.Primitive.div,{role:"tablist","aria-orientation":s.orientation,...l,ref:t})})});K.displayName=G;var q="TabsTrigger",X=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:l=!1,...s}=e,a=U(q,r),c=$(r),d=Q(a.baseId,n),u=ee(a.baseId,n),f=n===a.value;return(0,i.jsx)(I,{asChild:!0,...c,focusable:!l,active:f,children:(0,i.jsx)(y.Primitive.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:d,...s,ref:t,onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,e=>{l||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(n)}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>
1{[" ","Enter"].includes(e.key)&&a.onValueChange(n)}),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==a.activationMode;f||l||!e||a.onValueChange(n)})})})});X.displayName=q;var Y="TabsContent",J=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:l,forceMount:s,children:a,...o}=e,c=U(Y,r),d=Q(c.baseId,l),u=ee(c.baseId,l),f=l===c.value,p=n.useRef(f);return n.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,i.jsx)(D.Presence,{present:s||f,children:({present:r})=>(0,i.jsx)(y.Primitive.div,{"data-state":f?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&a})})});function Q(e,t){return`${e}-trigger-${t}`}function ee(e,t){return`${e}-content-${t}`}J.displayName=Y;let et=(0,a.forwardRefIfNeeded)(({className:e,...t},r)=>(0,i.jsx)(K,{ref:r,className:(0,l.cn)("stack-scope inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));et.displayName=K.displayName;let er=(0,a.forwardRefIfNeeded)(({className:e,...t},r)=>(0,i.jsx)(X,{ref:r,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));er.displayName=X.displayName;let en=(0,a.forwardRefIfNeeded)(({className:e,...t},r)=>(0,i.jsx)(J,{ref:r,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));en.displayName=J.displayName;var ei=e.i(7670);let el=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,es=ei.clsx,ea=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return es(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:l}=t,s=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],n=null==l?void 0:l[e];if(null===t)return null;let s=el(t)||el(n);return i[e][s]}),a=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return es(e,s,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...a}[t]):({...l,...a})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};e.s(["cva",0,ea],25913);let eo=ea("stack-scope text-md",{variants:{type:{h1:"text-3xl font-bold",h2:"text-2xl font-semibold",h3:"text-xl font-medium",h4:"text-lg font-medium",p:"text-md",label:"text-sm",footnote:"text-xs",div:"text-md"},variant:{primary:"text-black dark:text-white",secondary:"text-zinc-600 dark:text-zinc-400",destructive:"text-destructive",success:"text-green-500"}},defaultVariants:{type:"p",variant:"primary"}}),ec=(0,a.forwardRefIfNeeded)(({className:e,type:t,variant:r,...n},s)=>(0,i.jsx)(("footnote"===t||"label"===t?"p":t)||"p",{className:(0,l.cn)(eo({type:t,variant:r,className:e})),ref:s,...n}));ec.displayName="Typography",e.s(["Typography",0,ec],36270);var ed=e.i(98756),eu=e.i(7394);function ef(){let e=n.default.useContext(eu.TranslationContext);if(!e)throw Error("Translation context not found; did you forget to wrap your app in a <StackProvider />?");return{t:(t,r)=>{let{quetzalKeys:n,quetzalLocale:i}=e,l=i.get(n.get(t)??void 0)??t;for(let[e,t]of Object.entries(r||{}))l=l.replace(`{${e}}`,t);return l}}}e.s(["useTranslation",0,ef],37960);var ep=e.i(84069);function em({children:e,fullPage:t}){let r=`stack-full-page-container-${(0,n.useId)()}`,l=`(([id]) => { 2 const el = document.getElementById(id); 3 if (!el) { 4 // component is not full page 5 return; 6 } 7 const offset = el.getBoundingClientRect().top + document.documentElement.scrollTop; 8 el.style.minHeight = \`calc(100vh - \${offset}px)\`; 9 })(${JSON.stringify([r])})`;return t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{suppressHydrationWarning:!0,id:r,style:{minHeight:"100vh",alignSelf:"stretch",flexGrow:1,display:"flex",justifyContent:"center",alignItems:"center"},className:"stack-scope",children:e}),(0,i.jsx)(ep.SsrScript,{script:l})]}):(0,i.jsx)(i.Fragment,{children:e})}e.s(["MaybeFullPage",0,em],11308),e.i(47167);var eh=e=>e instanceof Date,eg=e=>null==e,ev=e=>!eg(e)&&!Array.isArray(e)&&"object"==typeof e&&!eh(e),ey="u">typeof window&&void 0!==window.HTMLElement&&"u">typeof document;function ex(e){let t;if(e instanceof Date)return new Date(e);let r="u">typeof FileList&&e instanceof FileList;if(ey&&(e instanceof Blob||r))return e;let n=Array.isArray(e);if(!n&&!(ev(e)&&ev(t=e.constructor&&e.constructor.prototype)&&t.hasOwnProperty("isPrototypeOf")))return e;let i=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=ex(e[t]));return i}var ew=e=>void 0===e,eb=e=>Array.isArray(e)?e.filter(Boolean):[],eC=e=>eb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ej=(e,t,r)=>{if(!t||!ev(e))return r;let n=(/^\w*$/.test(t)?[t]:eC(t)).reduce((e,t)=>
9eg(e)?e:e[t],e);return ew(n)||n===e?ew(e[t])?r:e[t]:n},ek=e=>"function"==typeof e,eS=(e,t,r)=>{let n=-1,i=/^\w*$/.test(t)?[t]:eC(t),l=i.length,s=l-1;for(;++n<l;){let t=i[n],l=r;if(n!==s){let r=e[t];l=ev(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=l,e=e[t]}};let eN="trigger",eE="onChange",eA="onSubmit",eR="maxLength",eF="minLength",eM="pattern",e_="required",eV="validate",eL="form",eP="root";n.default.createContext(null).displayName="HookFormControlContext";let eI="u">typeof window?n.default.useLayoutEffect:n.default.useEffect;var eO=e=>"string"==typeof e,eT=e=>eg(e)||"object"!=typeof e;function eD(e,t,r=new WeakSet){if(eT(e)||eT(t))return Object.is(e,t);if(eh(e)&&eh(t))return Object.is(e.getTime(),t.getTime());let n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;if(r.has(e)||r.has(t))return!0;for(let l of(r.add(e),r.add(t),n)){let n=e[l];if(!i.includes(l))return!1;if("ref"!==l){let e=t[l];if(eh(n)&&eh(e)||(ev(n)||Array.isArray(n))&&(ev(e)||Array.isArray(e))?!eD(n,e,r):!Object.is(n,e))return!1}}return!0}n.default.createContext(null).displayName="HookFormContext";var eB=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},ez=e=>Array.isArray(e)?e:[e],eH=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},e$=e=>ev(e)&&!Object.keys(e).length,eW=e=>{if(!ey)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},eU=e=>eW(e)&&e.isConnected;function eZ(e,t){let r=Array.isArray(t)?t:/^\w*$/.test(t)?[t]:eC(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=ew(e)?n++:e[t[n++]];return e}(e,r),i=r.length-1,l=r[i];return n&&delete n[l],0!==i&&(ev(n)&&e$(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!ew(e[t]))return!1;return!0}(n))&&eZ(e,r.slice(0,-1)),e}function eG(e){return Array.isArray(e)||ev(e)&&!(e=>{for(let t in e)if(ek(e[t]))return!0;return!1})(e)}function eK(e,t={}){for(let r in e){let n=e[r];eG(n)?(t[r]=Array.isArray(n)?[]:{},eK(n,t[r])):ew(n)||(t[r]=!0)}return t}function eq(e,t,r){for(let n in r||(r=eK(t)),e){let i=e[n];if(eG(i))ew(t)||eT(r[n])?r[n]=eK(i,Array.isArray(i)?[]:{}):eq(i,eg(t)?{}:t[n],r[n]);else{let e=t[n];r[n]=!eD(i,e)}}return r}let eX={value:!1,isValid:!1},eY={value:!0,isValid:!0};var eJ=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ew(e[0].attributes.value)?ew(e[0].value)||""===e[0].value?eY:{value:e[0].value,isValid:!0}:eY:eX}return eX},eQ=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>ew(e)?e:t?""===e?NaN:e?+e:e:r&&eO(e)?new Date(e):n?n(e):e;let e0={isValid:!1,value:null};var e1=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,e0):e0;function e2(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?e1(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?eJ(e.refs).value:eQ(ew(t.value)?e.ref.value:t.value,e)}var e5=e=>ew(e)?e:e instanceof RegExp?e.source:ev(e)?e.value instanceof RegExp?e.value.source:e.value:e,e3=e=>({isOnSubmit:!e||e===eA,isOnBlur:"onBlur"===e,isOnChange:e===eE,isOnAll:"all"===e,isOnTouch:"onTouched"===e});let e6="AsyncFunction";var e4=e=>!!e&&!!e.validate&&!!(ek(e.validate)&&e.validate.constructor.name===e6||ev(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===e6)),e7=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let e8=(e,t,r,n)=>{for(let i of r||Object.keys(e)){let r=ej(e,i);if(r){let{_f:e,...l}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n)return!0;else if(e.ref&&t(e.ref,e.name)&&!n)return!0;else if(e8(l,t))break}else if(ev(l)&&e8(l,t))break}}};function e9(e,t,r){let n=ej(e,r);if(n||/^\w*$/.test(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),l=ej(t,n),s=ej(e,n);if(l&&!Array.isArray(l)&&r!==n)break;if(s&&s.type)return{name:n,error:s};if(s&&s.root&&s.root.type)return{name:`${n}.root`,error:s.root};i.pop()}return{name:r}}var te=(e,t,r)=>{let n=ez(ej(e,r));return eS(n,eP,t[r]),eS(e,r,n),e};function tt(e,t,r="validate"){if(eO(e)||Array.isArray(e)&&e.every(eO)||"boolean"==typeof e&&!e)return{type:r,message:eO(e)?e:"",ref:t}}var tr=e=>!ev(e)||e instanceof RegExp?{value:e,message:""}:e,tn=async(e,t,r,n,i,l)=>{let{ref:s,refs:a,required:o,maxLength:c,minLength:d,min:u,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:v}=e._f,y=ej(r,h);if(!v||t.has(h))return{};let x=a?a[0]:s,w=e=>{i&&x.reportValidity&&(x.setCustomValidity("boolean"==typeof e?"":e||""),x.reportValidity())},b={}
9,C="radio"===s.type,j="checkbox"===s.type,k=(g||"file"===s.type)&&ew(s.value)&&ew(y)||eW(s)&&""===s.value||""===y||Array.isArray(y)&&!y.length,S=eB.bind(null,h,n,b),N=(e,t,r,n=eR,i=eF)=>{let l=e?t:r;b[h]={type:e?n:i,message:l,ref:s,...S(e?n:i,l)}};if(l?!Array.isArray(y)||!y.length:o&&(!(C||j)&&(k||eg(y))||"boolean"==typeof y&&!y||j&&!eJ(a).isValid||C&&!e1(a).isValid)){let{value:e,message:t}=eO(o)?{value:!!o,message:o}:tr(o);if(e&&(b[h]={type:e_,message:t,ref:x,...S(e_,t)},!n))return w(t),b}if(!k&&(!eg(u)||!eg(f))){let e,t,r=tr(f),i=tr(u);if(eg(y)||isNaN(y)){let n=s.valueAsDate||new Date(y),l=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,o="week"==s.type;eO(r.value)&&y&&(e=a?l(y)>l(r.value):o?y>r.value:n>new Date(r.value)),eO(i.value)&&y&&(t=a?l(y)<l(i.value):o?y<i.value:n<new Date(i.value))}else{let n=s.valueAsNumber||(y?+y:y);eg(r.value)||(e=n>r.value),eg(i.value)||(t=n<i.value)}if((e||t)&&(N(!!e,r.message,i.message,"max","min"),!n))return w(b[h].message),b}if((c||d)&&!k&&(eO(y)||l&&Array.isArray(y))){let e=tr(c),t=tr(d),r=!eg(e.value)&&y.length>+e.value,i=!eg(t.value)&&y.length<+t.value;if((r||i)&&(N(r,e.message,t.message),!n))return w(b[h].message),b}if(p&&!k&&eO(y)){let{value:e,message:t}=tr(p);if(e instanceof RegExp&&!y.match(e)&&(b[h]={type:eM,message:t,ref:s,...S(eM,t)},!n))return w(t),b}if(m){if(ek(m)){let e=tt(await m(y,r),x);if(e&&(b[h]={...e,...S(eV,e.message)},!n))return w(e.message),b}else if(ev(m)){let e={};for(let t in m){if(!e$(e)&&!n)break;let i=tt(await m[t](y,r),x,t);i&&(e={...i,...S(t,i.message)},w(i.message),n&&(b[h]=e))}if(!e$(e)&&(b[h]={ref:x,...e},!n))return b}}return w(!0),b};let ti={mode:eA,reValidateMode:eE,shouldFocusError:!0};function tl(e={}){let t=n.default.useRef(void 0),r=n.default.useRef(void 0),[i,l]=n.default.useState({isDirty:!1,isValidating:!1,isLoading:ek(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ek(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!ek(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:r,...n}=function(e={}){let t,r={...ti,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ek(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},i={},l=(ev(r.defaultValues)||ev(r.values))&&ex(r.defaultValues||r.values)||{},s=r.shouldUnregister?{}:ex(l),a={action:!1,mount:!1,watch:!1,keepIsValid:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c=0,d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={...d},f={...u},p={array:eH(),state:eH()},m="all"===r.criteriaMode,h=async e=>{if(!a.keepIsValid&&!r.disabled&&(u.isValid||f.isValid||e)){let e;r.resolver?(e=e$((await w()).errors),g()):e=await j({fields:i,onlyCheckValid:!0,eventType:"valid"}),e!==n.isValid&&p.state.next({isValid:e})}},g=(e,t)=>{!r.disabled&&(u.isValidating||u.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(o.mount)).forEach(e=>{e&&(t?eS(n.validatingFields,e,t):eZ(n.validatingFields,e))}),p.state.next({validatingFields:n.validatingFields,isValidating:!e$(n.validatingFields)}))},v=e=>{let t=eq(l,s),r=e.substring(0,e.search(/\.\d+(\.|$)/))||e;eS(n.dirtyFields,r,ej(t,r))},y=(e,t,r,n)=>{let o=ej(i,e);if(o){let i=ej(s,e,ew(r)?ej(l,e):r);ew(i)||n&&n.defaultChecked||t?eS(s,e,t?i:e2(o._f)):N(e,i),a.mount&&!a.action&&h()}},x=(e,t,i,s,a)=>{let o=!1,c=!1,d={name:e};if(!r.disabled){if(!i||s){(u.isDirty||f.isDirty)&&(c=n.isDirty,n.isDirty=d.isDirty=k(),o=c!==d.isDirty);let r=eD(ej(l,e),t);c=!!ej(n.dirtyFields,e),r?eZ(n.dirtyFields,e):eS(n.dirtyFields,e,!0),d.dirtyFields=n.dirtyFields,o=o||(u.dirtyFields||f.dirtyFields)&&!r!==c}if(i){let t=ej(n.touchedFields,e);t||(eS(n.touchedFields,e,i),d.touchedFields=n.touchedFields,o=o||(u.touchedFields||f.touchedFields)&&t!==i)}o&&a&&p.state.next(d)}return o?d:{}},w=async e=>(g(e,!0),await r.resolver(s,r.context,((e,t,r,n)=>{let i={};for(let r of e){let e=ej(t,r);e&&eS(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}})(e||o.mount,i,r.criteriaMode,r.shouldUseNativeValidation))),b=async e=>{let{errors:t}=await w(e);if(g(e),e)for(let r of e){let e=ej(t,r);e?eS(n.errors,r,e):eZ(n.errors,r)}else n.errors=t;return t},C=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:s,formState:n,name:t,eventType:r});if(ev(i))for(let e in i)i[e]&&P(`${eL}.${e}`,{message:eO(i.message)?i.message:"",type:eV});else eO(i)||!i?P(eL,{message:i||"",type:eV}):L(eL);return i}return!0},j=async({fields:t,onlyCheckValid:i,name:l,eventType:a,context:c={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(c.runRootValidation=!0,!await C({name:l,eventType:a}))&&(c.valid=!1,i))return c.valid;for(let l in t){let d=t[l];if(d){let{_f:t,...f}=d;if(t){let l=o.array.has(t.name),a=d._f&&e4(d._f);a&&u.validatingFields&&g([t.name],!0);let f=await tn(d,o.disabled,s,m,r.shouldUseNativeValidation&&!i,l);if(a&&u.validatingFields&&g([t.name]),f[t.name]&&(c.valid=!1,i)||(i||(ej(f,t.name)?l?te(n.errors,f,t.name):eS(n.errors,t.name,f[t.name]):eZ(n.errors,t.name)),e.shouldUseNativeValidation&&f[t.name]))break}e$(f)||await j({context:c,onlyCheckValid:i,fields:f,name:l,eventType:a})}}return c.valid},k=(e,t)=>!r.disabled&&(e&&t&&eS(s,e,t),!eD(_(),l)),S=(e,t,r)=>{var n,i;return n=o,i={...a.mount?s:ew(t)?l:eO(e)?{[e]:t}:t},eO(e)?(r&&n.watch.add(e),ej(i,e,t)):Array.isArray(e)?e.map(e=>(r&&n.watch.add(e),ej(i,e))):(r&&(n.watchAll=!0),i)},N=(e,t,r={})=>{let n=ej(i,e),l=t;if(n){let r=n._f;r&&(r.disabled||eS(s,e,eQ(t,r)),l=eW(r.ref)&&eg(t)?"":t,"select-multiple"===r.ref.type?[...r.ref.options].forEac
9h(e=>e.selected=l.includes(e.value)):r.refs?"checkbox"===r.ref.type?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(l)?e.checked=!!l.find(t=>t===e.value):e.checked=l===e.value||!!l)}):r.refs.forEach(e=>e.checked=e.value===l):"file"===r.ref.type?r.ref.value="":(r.ref.value=l,r.ref.type||p.state.next({name:e,values:ex(s)})))}(r.shouldDirty||r.shouldTouch)&&x(e,l,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&M(e)},E=(e,t,r)=>{for(let n in t){if(!t.hasOwnProperty(n))return;let l=t[n],s=e+"."+n,a=ej(i,s);(o.array.has(e)||ev(l)||a&&!a._f)&&!eh(l)?E(s,l,r):N(s,l,r)}},A=(e,t,r={})=>{let l=ej(i,e),c=o.array.has(e),d=ex(t);eS(s,e,d),c?(p.array.next({name:e,values:ex(s)}),(u.isDirty||u.dirtyFields||f.isDirty||f.dirtyFields)&&r.shouldDirty&&(v(e),p.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:k(e,d)}))):!l||l._f||eg(d)?N(e,d,r):E(e,d,r),e7(e,o)?p.state.next({...n,name:e,values:ex(s)}):p.state.next({name:a.mount?e:void 0,values:ex(s)})},R=async l=>{a.mount=!0;let d=l.target,v=d.name,y=!0,b=ej(i,v),k=e=>{y=Number.isNaN(e)||eh(e)&&isNaN(e.getTime())||eD(e,ej(s,v,e))},S=e3(r.mode),N=e3(r.reValidateMode);if(b){let a,I,O,T,D=d.type?e2(b._f):ev(a=l)&&a.target?"checkbox"===a.target.type?a.target.checked:a.target.value:a,B="blur"===l.type||"focusout"===l.type,z=!((T=b._f).mount&&(T.required||T.min||T.max||T.maxLength||T.minLength||T.pattern||T.validate))&&!e.validate&&!r.resolver&&!ej(n.errors,v)&&!b._f.deps||(E=B,A=ej(n.touchedFields,v),R=n.isSubmitted,F=N,!(_=S).isOnAll&&(!R&&_.isOnTouch?!(A||E):(R?F.isOnBlur:_.isOnBlur)?!E:(R?!F.isOnChange:!_.isOnChange)||E)),H=e7(v,o,B);eS(s,v,D),B?d&&d.readOnly||(b._f.onBlur&&b._f.onBlur(l),t&&t(0)):b._f.onChange&&b._f.onChange(l);let $=x(v,D,B),W=!e$($)||H;if(B||p.state.next({name:v,type:l.type,values:ex(s)}),z)return(u.isValid||f.isValid)&&("onBlur"===r.mode?B&&h():B||h()),W&&p.state.next({name:v,...H?{}:$});if(!r.resolver&&e.validate&&await C({name:v,eventType:l.type}),!B&&H&&p.state.next({...n}),r.resolver){let{errors:e}=await w([v]);if(g([v]),k(D),y){let t=e9(n.errors,i,v),r=e9(e,i,t.name||v);I=r.error,v=r.name,O=e$(e)}}else g([v],!0),I=(await tn(b,o.disabled,s,m,r.shouldUseNativeValidation))[v],g([v]),k(D),y&&(I?O=!1:(u.isValid||f.isValid)&&(O=await j({fields:i,onlyCheckValid:!0,name:v,eventType:l.type})));if(y){b._f.deps&&(!Array.isArray(b._f.deps)||b._f.deps.length>0)&&M(b._f.deps);var E,A,R,F,_,V=v,L=O,P=I;let e=ej(n.errors,V),i=(u.isValid||f.isValid)&&"boolean"==typeof L&&n.isValid!==L;if(r.delayError&&P){let e;e=()=>{eS(n.errors,V,P),p.state.next({errors:n.errors})},(t=t=>{clearTimeout(c),c=setTimeout(e,t)})(r.delayError)}else clearTimeout(c),t=null,P?eS(n.errors,V,P):eZ(n.errors,V);if((P?!eD(e,P):e)||!e$($)||i){let e={...$,...i&&"boolean"==typeof L?{isValid:L}:{},errors:n.errors,name:V};n={...n,...e},p.state.next(e)}}}},F=(e,t)=>{if(ej(n.errors,t)&&e.focus)return e.focus(),1},M=async(e,t={})=>{let l,s,a=ez(e);if(r.resolver){let t=await b(ew(e)?e:a);l=e$(t),s=e?!a.some(e=>ej(t,e)):l}else e?((s=(await Promise.all(a.map(async e=>{let t=ej(i,e);return await j({fields:t&&t._f?{[e]:t}:t,eventType:eN})}))).every(Boolean))||n.isValid)&&h():s=l=await j({fields:i,name:e,eventType:eN});return p.state.next({...!eO(e)||(u.isValid||f.isValid)&&l!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:l}:{},errors:n.errors}),t.shouldFocus&&!s&&e8(i,F,e?a:o.mount),s},_=(e,t)=>{let r={...a.mount?s:l};return t&&(r=function e(t,r){let n={};for(let i in t)if(t.hasOwnProperty(i)){let l=t[i],s=r[i];if(l&&ev(l)&&s){let t=e(l,s);ev(t)&&(n[i]=t)}else t[i]&&(n[i]=s)}return n}(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),ew(e)?r:eO(e)?ej(r,e):e.map(e=>ej(r,e))},V=(e,t)=>({invalid:!!ej((t||n).errors,e),isDirty:!!ej((t||n).dirtyFields,e),error:ej((t||n).errors,e),isValidating:!!ej(n.validatingFields,e),isTouched:!!ej((t||n).touchedFields,e)}),L=e=>{let t=e?ez(e):void 0;null==t||t.forEach(e=>eZ(n.errors,e)),t?t.forEach(e=>{p.state.next({name:e,errors:n.errors})}):p.state.next({errors:{}})},P=(e,t,r)=>{let l=(ej(i,e,{_f:{}})._f||{}).ref,{ref:s,message:a,type:o,...c}=ej(n.errors,e)||{};eS(n.errors,e,{...c,...t,ref:l}),p.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&l&&l.focus&&l.focus()},I=e=>p.state.subscribe({next:t=>{let r,i,a;r=e.name,i=t.name,a=e.exact,(!r||!i||r===i||ez(r).some(e=>e&&(a?e===i:e.startsWith(i)||i.startsWith(e))))&&((e,t,r,n)=>{r(e);let{name:i,...l}=e;return e$(l)||Object.keys(l).length>=Object.keys(t).length||Object.keys(l).find(e=>t[e]===(!n||"all"))})(t,e.formState||u,W,e.reRenderRoot)&&e.callback({values:{...s},...n,...t,defaultValues:l})}}).unsubscribe,O=(e,t={})=>{for(let a of e?ez(e):o.mount)o.mount.delete(a),o.array.delete(a),t.keepValue||(eZ(i,a),eZ(s,a)),t.keepError||eZ(n.errors,a),t.keepDirty||eZ(n.dirtyFields,a),t.keepTouched||eZ(n.touchedFields,a),t.keepIsValidating||eZ(n.validatingFields,a),r.shouldUnregister||t.keepDefaultValue||eZ(l,a);p.state.next({values:ex(s)}),p.state.next({...n,...!t.keepDirty?{}:{isDirty:k()}}),t.keepIsValid||h()},T=({disabled:e,name:t})=>{if("boolean"==typeof e&&a.mount||e||o.disabled.has(t)){let r=o.disabled.has(t);e?o.disabled.add(t):o.disabled.delete(t),!!e!==r&&a.mount&&!a.action&&h()}},D=(e,t={})=>{let n=ej(i,e),s="boolean"==typeof t.disabled||"boolean"==typeof r.disabled,c=!o.registerName.has(e)&&n&&!n._f.mount;return(eS(i,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),o.mount.add(e),n&&!c)?T({disabled:"boolean"==typeof t.disabled?t.disabled:r.disabled,name:e}):y(e,!0,t.value),{...s?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:e5(t.min),max:e5(t.max),minLength:e5(t.minLength),maxLength:e5(t.maxLength),pattern:e5(t.pattern)}:{}
9,name:e,onChange:R,onBlur:R,ref:s=>{if(s){let r;o.registerName.add(e),D(e,t),o.registerName.delete(e),n=ej(i,e);let a=ew(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,c="radio"===(r=a).type||"checkbox"===r.type,d=n._f.refs||[];(c?d.find(e=>e===a):a===n._f.ref)||(eS(i,e,{_f:{...n._f,...c?{refs:[...d.filter(eU),a,...Array.isArray(ej(l,e))?[{}]:[]],ref:{type:a.type,name:e}}:{ref:a}}}),y(e,!1,void 0,a))}else{let l;(n=ej(i,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(l=o.array,!e.split(".").some((e,t,r)=>!isNaN(Number(e))&&l.has(r.slice(0,t).join(".")))||!a.action)&&o.unMount.add(e)}}}},B=()=>r.shouldFocusError&&e8(i,F,o.mount),z=(e,t)=>async l=>{let a;l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let c=ex(s);if(p.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await w();g(),n.errors=e,c=ex(t)}else await j({fields:i,eventType:"submit"});if(o.disabled.size)for(let e of o.disabled)eZ(c,e);if(eZ(n.errors,eP),e$(n.errors)){p.state.next({errors:{}});try{await e(c,l)}catch(e){a=e}}else t&&await t({...n.errors},l),B(),setTimeout(B);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:e$(n.errors)&&!a,submitCount:n.submitCount+1,errors:n.errors}),a)throw a},H=(e,t={})=>{let c=e?ex(e):l,d=ex(c),f=e$(e),m=f?l:d;if(t.keepDefaultValues||(l=c),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...o.mount,...Object.keys(eq(l,s))]))){let t=ej(n.dirtyFields,e),r=ej(s,e),i=ej(m,e);t&&!ew(r)?eS(m,e,r):t||ew(i)||A(e,i)}else{if(ey&&ew(e))for(let e of o.mount){let t=ej(i,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(eW(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of o.mount)A(e,ej(m,e));else i={}}s=r.shouldUnregister?t.keepDefaultValues?ex(l):{}:ex(m),p.array.next({values:{...m}}),p.state.next({values:{...m}})}o={mount:t.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!e$(m),a.watch=!!r.shouldUnregister,a.keepIsValid=!!t.keepIsValid,a.action=!1,t.keepErrors||(n.errors={}),p.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!f&&(t.keepDirty?n.isDirty:!!(t.keepDefaultValues&&!eD(e,l))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:f?{}:t.keepDirtyValues?t.keepDefaultValues&&s?eq(l,s):n.dirtyFields:t.keepDefaultValues&&e?eq(l,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1,defaultValues:l})},$=(e,t)=>H(ek(e)?e(s):e,{...r.resetOptions,...t}),W=e=>{n={...n,...e}},U={control:{register:D,unregister:O,getFieldState:V,handleSubmit:z,setError:P,_subscribe:I,_runSchema:w,_updateIsValidating:g,_focusError:B,_getWatch:S,_getDirty:k,_setValid:h,_setFieldArray:(e,t=[],l,o,c=!0,d=!0)=>{if(o&&l&&!r.disabled){if(a.action=!0,d&&Array.isArray(ej(i,e))){let t=l(ej(i,e),o.argA,o.argB);c&&eS(i,e,t)}if(d&&Array.isArray(ej(n.errors,e))){let t,r=l(ej(n.errors,e),o.argA,o.argB);c&&eS(n.errors,e,r),eb(ej(t=n.errors,e)).length||eZ(t,e)}if((u.touchedFields||f.touchedFields)&&d&&Array.isArray(ej(n.touchedFields,e))){let t=l(ej(n.touchedFields,e),o.argA,o.argB);c&&eS(n.touchedFields,e,t)}(u.dirtyFields||f.dirtyFields)&&v(e),p.state.next({name:e,isDirty:k(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else eS(s,e,t)},_setDisabledField:T,_setErrors:e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>eb(ej(a.mount?s:l,e,r.shouldUnregister?ej(l,e,[]):[])),_reset:H,_resetDefaultValues:()=>ek(r.defaultValues)&&r.defaultValues().then(e=>{$(e,r.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of o.unMount){let t=ej(i,e);t&&(t._f.refs?t._f.refs.every(e=>!eU(e)):!eU(t._f.ref))&&O(e)}o.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(p.state.next({disabled:e}),e8(i,(t,r)=>{let n=ej(i,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEac
9h(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:p,_proxyFormState:u,get _fields(){return i},get _formValues(){return s},get _state(){return a},set _state(value){a=value},get _defaultValues(){return l},get _names(){return o},set _names(value){o=value},get _formState(){return n},get _options(){return r},set _options(value){r={...r,...value}}},subscribe:e=>(a.mount=!0,f={...f,...e.formState},I({...e,formState:{...d,...e.formState}})),trigger:M,register:D,handleSubmit:z,watch:(e,t)=>ek(e)?p.state.subscribe({next:r=>"values"in r&&e(S(void 0,t),r)}):S(e,t,!0),setValue:A,getValues:_,reset:$,resetField:(e,t={})=>{ej(i,e)&&(ew(t.defaultValue)?A(e,ex(ej(l,e))):(A(e,t.defaultValue),eS(l,e,ex(t.defaultValue))),t.keepTouched||eZ(n.touchedFields,e),t.keepDirty||(eZ(n.dirtyFields,e),n.isDirty=t.defaultValue?k(e,ex(ej(l,e))):k()),!t.keepError&&(eZ(n.errors,e),u.isValid&&h()),p.state.next({...n}))},clearErrors:L,unregister:O,setError:P,setFocus:(e,t={})=>{let r=ej(i,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&ek(e.select)&&e.select()})}},getFieldState:V};return{...U,formControl:U}}(e);t.current={...n,formState:i}}let s=t.current.control;return s._options=e,eI(()=>{let e=s._subscribe({formState:s._proxyFormState,callback:()=>l({...s._formState}),reRenderRoot:!0});return l(e=>({...e,isReady:!0})),s._formState.isReady=!0,e},[s]),n.default.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),n.default.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),n.default.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),n.default.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),n.default.useEffect(()=>{if(s._proxyFormState.isDirty){let e=s._getDirty();e!==i.isDirty&&s._subjects.state.next({isDirty:e})}},[s,i.isDirty]),n.default.useEffect(()=>{var t;e.values&&!eD(e.values,r.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),(null==(t=s._options.resetOptions)?void 0:t.keepIsValid)||s._setValid(),r.current=e.values,l(e=>({...e}))):s._resetDefaultValues()},[s,e.values]),n.default.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=n.default.useMemo(()=>((e,t,r=!0)=>{let n={defaultValues:t._defaultValues};for(let i in e)Object.defineProperty(n,i,{get:()=>("all"!==t._proxyFormState[i]&&(t._proxyFormState[i]=!r||"all"),e[i])});return n})(i,s),[s,i]),t.current}e.s(["appendErrors",0,eB,"get",0,ej,"set",0,eS,"useForm",0,tl],53145);let ts=(e,t,r)=>{if(e&&"reportValidity"in e){let n=ej(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},ta=(e,t)=>{for(let r in t.fields){let n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?ts(n.ref,r,e):n&&n.refs&&n.refs.forEach(t=>ts(t,r,e))}},to=(e,t)=>{let r=tc(t);return e.some(e=>tc(e).match(`^${r}\\.\\d+`))};function tc(e){return e.replace(/\]|\[/g,"")}function td(e,t,r){return void 0===r&&(r={}),function(n,i,l){try{return Promise.resolve(function(s){try{var a=(null!=t&&t.context,Promise.resolve(e["sync"===r.mode?"validateSync":"validate"](n,Object.assign({abortEarly:!1},t,{context:i}))).then(function(e){return l.shouldUseNativeValidation&&ta({},l),{values:r.raw?Object.assign({},n):e,errors:{}}}))}catch(e){return s(e)}return a&&a.then?a.then(void 0,s):a}(function(e){var t;if(!e.inner)throw e;return{values:{},errors:((e,t)=>{t.shouldUseNativeValidation&&ta(e,t);let r={};for(let n in e){let i=ej(t.fields,n),l=Object.assign(e[n]||{},{ref:i&&i.ref});if(to(t.names||Object.keys(e),n)){let e=Object.assign({},ej(r,n));eS(e,"root",l),eS(r,n,e)}else eS(r,n,l)}return r})((t=!l.shouldUseNativeValidation&&"all"===l.criteriaMode,(e.inner||[]).reduce(function(e,r){if(e[r.path]||(e[r.path]={message:r.message,type:r.type}),t){var n=e[r.path].types,i=n&&n[r.type];e[r.path]=eB(r.path,t,e,r.type,i?[].concat(i,r.message):r.message)}return e},{})),l)}}))}catch(e){return Promise.reject(e)}}}e.s(["yupResolver",0,td],80202);var tu=e.i(88689),tf=Symbol.for("react.lazy"),tp=n[" use ".trim().toString()];function tm(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===tf&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function th(e){var t;let r,l=(t=e,(r=n.forwardRef((e,t)=>
9{let{children:r,...i}=e;if(tm(r)&&"function"==typeof tp&&(r=tp(r._payload)),n.isValidElement(r)){var l;let e,s,a=(l=r,(s=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(s=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),o=function(e,t){let r={...t};for(let n in t){let i=e[n],l=t[n];/^on[A-Z]/.test(n)?i&&l?r[n]=(...e)=>{let t=l(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...l}:"className"===n&&(r[n]=[i,l].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(o.ref=t?(0,c.composeRefs)(t,a):a),n.cloneElement(r,o)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${t}.SlotClone`,r),s=n.forwardRef((e,t)=>{let{children:r,...s}=e;tm(r)&&"function"==typeof tp&&(r=tp(r._payload));let a=n.Children.toArray(r),o=a.find(tx);if(o){let e=o.props.children,r=a.map(t=>t!==o?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(l,{...s,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,i.jsx)(l,{...s,ref:t,children:r})});return s.displayName=`${e}.Slot`,s}var tg=th("Slot"),tv=Symbol("radix.slottable"),ty=((t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e})).displayName="Slottable.Slottable",t.__radixId=tv,t);function tx(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tv}e.s(["Slot",0,tg,"Slottable",0,ty,"createSlot",0,th],91918);var tw=e.i(28202);function tb(e,t){let[r,i]=n.default.useState(void 0),[l,s]=n.default.useState(0);return[n.default.useCallback(async(...t)=>{s(e=>e+1);try{return await e(...t)}catch(e){throw i(e),e}finally{s(e=>e-1)}},t),l>0,r]}function tC(e,t){if(null==e)return{};var r,n,i={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}e.s(["useAsyncCallback",0,tb],23797);var tj=["color"],tk=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tj);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),tS=["color"],tN=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tS);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),tE=["color"],tA=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tE);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}
9),tR=["color"],tF=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tR);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),tM=["color"],t_=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tM);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),tV=["color"],tL=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tV);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),tP=["color"],tI=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tP);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),tO=["color"],tT=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tO);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M5 7.5C5 7.22386 5.22386 7 5.5 7H9.5C9.77614 7 10 7.22386 10 7.5C10 7.77614 9.77614 8 9.5 8H5.5C5.22386 8 5 7.77614 5 7.5Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),tD=["color"],tB=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tD);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:void 0===r?"currentColor":r}))}),tz=["color"],tH=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tz);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}
9),t$=["color"],tW=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,t$);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M10 6.5C10 8.433 8.433 10 6.5 10C4.567 10 3 8.433 3 6.5C3 4.567 4.567 3 6.5 3C8.433 3 10 4.567 10 6.5ZM9.30884 10.0159C8.53901 10.6318 7.56251 11 6.5 11C4.01472 11 2 8.98528 2 6.5C2 4.01472 4.01472 2 6.5 2C8.98528 2 11 4.01472 11 6.5C11 7.56251 10.6318 8.53901 10.0159 9.30884L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L9.30884 10.0159Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),tU=["color"],tZ=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tU);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),tG=["color"],tK=(0,n.forwardRef)(function(e,t){var r=e.color,i=tC(e,tG);return(0,n.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),(0,n.createElement)("path",{d:"M1.84998 7.49998C1.84998 4.66458 4.05979 1.84998 7.49998 1.84998C10.2783 1.84998 11.6515 3.9064 12.2367 5H10.5C10.2239 5 10 5.22386 10 5.5C10 5.77614 10.2239 6 10.5 6H13.5C13.7761 6 14 5.77614 14 5.5V2.5C14 2.22386 13.7761 2 13.5 2C13.2239 2 13 2.22386 13 2.5V4.31318C12.2955 3.07126 10.6659 0.849976 7.49998 0.849976C3.43716 0.849976 0.849976 4.18537 0.849976 7.49998C0.849976 10.8146 3.43716 14.15 7.49998 14.15C9.44382 14.15 11.0622 13.3808 12.2145 12.2084C12.8315 11.5806 13.3133 10.839 13.6418 10.0407C13.7469 9.78536 13.6251 9.49315 13.3698 9.38806C13.1144 9.28296 12.8222 9.40478 12.7171 9.66014C12.4363 10.3425 12.0251 10.9745 11.5013 11.5074C10.5295 12.4963 9.16504 13.15 7.49998 13.15C4.05979 13.15 1.84998 10.3354 1.84998 7.49998Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))});e.s(["CaretSortIcon",0,tk,"CheckIcon",0,tN,"ChevronDownIcon",0,tA,"ChevronLeftIcon",0,tF,"ChevronRightIcon",0,t_,"ChevronUpIcon",0,tL,"Cross2Icon",0,tI,"DashIcon",0,tT,"DotFilledIcon",0,tB,"DotsHorizontalIcon",0,tH,"MagnifyingGlassIcon",0,tW,"MixerHorizontalIcon",0,tZ,"ReloadIcon",0,tK],72226);let tq=(0,a.forwardRefIfNeeded)(({size:e=15,...t},r)=>(0,i.jsx)("span",{ref:r,...t,className:(0,l.cn)("stack-scope",t.className),children:(0,i.jsx)(tK,{className:"animate-spin",width:e,height:e})}));tq.displayName="Spinner",e.s(["Spinner",0,tq],3853);let tX=ea("stack-scope inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",plain:""},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9",plain:""}},defaultVariants:{variant:"default",size:"default"}}),tY=(0,a.forwardRefIfNeeded)(({className:e,variant:t,size:r,asChild:n=!1,...s},a)=>(0,i.jsx)(n?tg:"button",{className:(0,l.cn)(tX({variant:t,size:r,className:e})),ref:a,...s}));tY.displayName="Button";let tJ=(0,a.forwardRefIfNeeded)(({onClick:e,loading:t,loadingStyle:n="spinner",children:s,size:a,...o},c)=>{let[d,u]=tb(async t=>{await e?.(t)},[e]),f=t||u;return(0,i.jsxs)(tY,{...o,ref:c,disabled:o.disabled||f,onClick:e=>(0,r.runAsynchronouslyWithAlert)(d(e)),size:a,className:(0,l.cn)("relative",f&&"[&>:not(.stack-button-do-not-hide-when-siblings-are)]:invisible",o.className),children:["spinner"===n&&(0,i.jsx)(tq,{className:(0,l.cn)("absolute inset-0 flex items-center justify-center stack-button-do-not-hide-when-siblings-are",!f&&"invisible")}),(0,i.jsx)(ty,{children:"string"==typeof s?(0,i.jsx)("span",{children:s}):s})]})});tJ.displayName="Button",e.s(["Button",0,tJ],45266);let tQ=(0,a.forwardRefIfNeeded)(({className:e,type:t,prefixItem:r,...n},s)=>{let a="stack-scope flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50";return r?(0,i.jsxs)("div",{className:"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1",children:[(0,i.jsx)("div",{className:"flex self-stretch justify-center items-center text-muted-foreground pl-3 select-none bg-muted/70 pr-3 border-r border-input rounded-l-md",children:r}),(0,i.jsx)("input",{type:t,className:(0,l.cn)(a,"rounded-l-none",e),ref:s,...n})]}):(0,i.jsx)("div",{className:"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1",children:(0,i.jsx)("input",{type:t,className:(0,l.cn)(a,e),ref:s,...n})})});tQ.displayName="Input",(0,a.forwardRefIfNeeded)(({delay:e=500,defaultValue:t,...r},l)=>{let[s,a]=n.default.useState(t??""),o=n.default.useRef(null);return(0,i.jsx)(tQ,{ref:l,...r,value:s,onChange:t=>{a(t.target.value),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{r.onChange?.(t)},e)}})}).displayName="DelayedInput",e.s(["Input",0,tQ],46925),e.i(74080);var t0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
9{let r=th(`Primitive.${t}`),l=n.forwardRef((e,n)=>{let{asChild:l,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l?r:t,{...s,ref:n})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),t1=n.forwardRef((e,t)=>(0,i.jsx)(t0.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));t1.displayName="Label";let t2=ea("stack-scope text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-gray-600 dark:text-gray-400"),t5=(0,a.forwardRefIfNeeded)(({className:e,...t},r)=>(0,i.jsx)("label",{ref:r,className:(0,l.cn)(t2(),e),...t}));t5.displayName=t1.displayName,(0,a.forwardRefIfNeeded)(({className:e,...t},r)=>(0,i.jsx)("span",{ref:r,className:(0,l.cn)(t2(),e),...t})).displayName=t1.displayName,e.s(["Label",0,t5],42488);let t3=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},t6=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var t4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let t7=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:s,iconNode:a,...o},c)=>(0,n.createElement)("svg",{ref:c,...t4,width:t,height:t,stroke:e,strokeWidth:i?24*Number(r)/Number(t):r,className:t6("lucide",l),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(o)&&{"aria-hidden":"true"},...o},[...a.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(s)?s:[s]])),t8=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...i},l)=>(0,n.createElement)(t7,{ref:l,iconNode:t,className:t6(`lucide-${t3(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...i}));return r.displayName=t3(e),r};e.s(["default",0,t8],91764);let t9=t8("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),re=t8("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),rt=(0,a.forwardRefIfNeeded)(({className:e,...t},r)=>{let[s,a]=(0,n.useState)(!1);return(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(tQ,{type:s?"text":"password",className:(0,l.cn)("stack-scope hide-password-toggle pr-10",e),ref:r,...t}),(0,i.jsx)(tJ,{type:"button",variant:"ghost",size:"sm",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",onClick:()=>a(e=>!e),disabled:t.disabled,"aria-label":s?"Hide password":"Show password",tabIndex:-1,children:s?(0,i.jsx)(t9,{className:"h-4 w-4","aria-hidden":"true"}):(0,i.jsx)(re,{className:"h-4 w-4","aria-hidden":"true"})})]})});function rr({text:e}){return e?(0,i.jsx)("div",{className:"text-red-500 text-sm mt-1",children:e}):null}rt.displayName="PasswordInput",e.s(["PasswordInput",0,rt],24515),e.s(["FormWarningText",0,rr],69334);var rn=e.i(22016);function ri(e){return(0,i.jsx)(rn.default,{href:e.href,target:e.target,className:e.className,prefetch:e.prefetch,onClick:e.onClick,children:e.children})}function rl(e){return(0,i.jsx)(ri,{...e,className:(0,l.cn)("underline font-medium",e.className),children:e.children})}function rs(){let{t:e}=ef(),{register:t,handleSubmit:l,setError:s,formState:{errors:a}}=tl({resolver:td((0,tu.yupObject)({email:(0,tu.strictEmailSchema)(e("Please enter a valid email")).defined().nonEmpty(e("Please enter your email")),password:tu.passwordSchema.defined().nonEmpty(e("Please enter your password"))}))}),o=(0,ed.useStackApp)(),[c,d]=(0,n.useState)(!1),u=async e=>{d(!0);try{let{email:t,password:r}=e,n=await o.signInWithCredential({email:t,password:r});"error"===n.status&&s("email",{type:"manual",message:n.error.message})}finally{d(!1)}};return(0,i.jsxs)("form",{className:"flex flex-col items-stretch stack-scope",onSubmit:e=>(0,r.runAsynchronouslyWithAlert)(l(u)(e)),noValidate:!0,children:[(0,i.jsx)(t5,{htmlFor:"email",className:"mb-1",children:e("Email")}),(0,i.jsx)(tQ,{id:"email",type:"email",autoComplete:"email",...t("email")}),(0,i.jsx)(rr,{text:a.email?.message?.toString()}),(0,i.jsx)(t5,{htmlFor:"password",className:"mt-4 mb-1",children:e("Password")}),(0,i.jsx)(rt,{id:"password",autoComplete:"current-password",...t("password")}),(0,i.jsx)(rr,{text:a.password?.message?.toString()}),(0,i.jsx)(rl,{href:o.urls.forgotPassword,className:"mt-1 text-sm",children:e("Forgot password?")}),(0,i.jsx)(tJ,{type:"submit",className:"mt-6",loading:c,children:e("Sign In")})]})}e.s(["StyledLink",0,rl],89947),e.i(13155);var ra=e.i(20145);function ro(e){return e.length<8?new ra.KnownErrors.PasswordTooShort(8):e.length>70?new ra.KnownErrors.PasswordTooLong(70):void 0}e.s(["getPasswordError",0,ro],14035);var rc=e.i(99683);function rd(e){let{t}=ef(),{register:l,handleSubmit:s,setError:a,formState:{errors:o},clearErrors:c}=tl({resolver:td((0,tu.yupObject)({email:(0,tu.strictEmailSchema)(t("Please enter a valid email")).defined().nonEmpty(t("Please enter your email")),password:tu.passwordSchema.defined().nonEmpty(t("Please enter your password")).test({name:"is-valid-password",test:(e,t)=>
9{let r=ro(e);return!r||t.createError({message:r.message})}}),...!e.noPasswordRepeat&&{passwordRepeat:tu.passwordSchema.nullable().oneOf([rc.ref("password"),"",null],t("Passwords do not match")).nonEmpty(t("Please repeat your password"))}}))}),d=(0,ed.useStackApp)(),[u,f]=(0,n.useState)(!1),p=async e=>{f(!0);try{let{email:t,password:r}=e,n=await d.signUpWithCredential({email:t,password:r});"error"===n.status&&a("email",{type:"manual",message:n.error.message})}finally{f(!1)}},m=l("password"),h=l("passwordRepeat");return(0,i.jsxs)("form",{className:"flex flex-col items-stretch stack-scope",onSubmit:e=>(0,r.runAsynchronouslyWithAlert)(s(p)(e)),noValidate:!0,children:[(0,i.jsx)(t5,{htmlFor:"email",className:"mb-1",children:t("Email")}),(0,i.jsx)(tQ,{id:"email",type:"email",autoComplete:"email",...l("email")}),(0,i.jsx)(rr,{text:o.email?.message?.toString()}),(0,i.jsx)(t5,{htmlFor:"password",className:"mt-4 mb-1",children:t("Password")}),(0,i.jsx)(rt,{id:"password",autoComplete:"new-password",...m,onChange:e=>{c("password"),c("passwordRepeat"),(0,r.runAsynchronously)(m.onChange(e))}}),(0,i.jsx)(rr,{text:o.password?.message?.toString()}),!e.noPasswordRepeat&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t5,{htmlFor:"repeat-password",className:"mt-4 mb-1",children:t("Repeat Password")}),(0,i.jsx)(rt,{id:"repeat-password",...h,onChange:e=>{c("password"),c("passwordRepeat"),(0,r.runAsynchronously)(h.onChange(e))}}),(0,i.jsx)(rr,{text:o.passwordRepeat?.message?.toString()})]}),(0,i.jsx)(tJ,{type:"submit",className:"mt-6",loading:u,children:t("Sign Up")})]})}var ru=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=th(`Primitive.${t}`),l=n.forwardRef((e,n)=>{let{asChild:l,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l?r:t,{...s,ref:n})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),rf="horizontal",rp=["horizontal","vertical"],rm=n.forwardRef((e,t)=>{var r;let{decorative:n,orientation:l=rf,...s}=e,a=(r=l,rp.includes(r))?l:rf;return(0,i.jsx)(ru.div,{"data-orientation":a,...n?{role:"none"}:{"aria-orientation":"vertical"===a?a:void 0,role:"separator"},...s,ref:t})});rm.displayName="Separator";let rh=(0,a.forwardRefIfNeeded)(({className:e,orientation:t="horizontal",decorative:r=!0,...n},s)=>(0,i.jsx)(rm,{ref:s,decorative:r,orientation:t,className:(0,l.cn)("stack-scope shrink-0 bg-border","horizontal"===t?"h-[1px] w-full":"h-full w-[1px]",e),...n}));function rg({text:e}){return(0,i.jsxs)("div",{className:"flex items-center justify-center my-6 stack-scope",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(rh,{})}),(0,i.jsx)("div",{className:"mx-2 text-sm text-zinc-500",children:e}),(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(rh,{})})]})}rh.displayName=rm.displayName,e.s(["Separator",0,rh],19869);var rv=Object.defineProperty,ry=Object.defineProperties,rx=Object.getOwnPropertyDescriptors,rw=Object.getOwnPropertySymbols,rb=Object.prototype.hasOwnProperty,rC=Object.prototype.propertyIsEnumerable,rj=(e,t,r)=>t in e?rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rk=n.createContext({}),rS=n.forwardRef((e,t)=>{let r;var i,l,s,a,o,{value:c,onChange:d,maxLength:u,textAlign:f="left",pattern:p,placeholder:m,inputMode:h="numeric",onComplete:g,pushPasswordManagerStrategy:v="increase-width",pasteTransformer:y,containerClassName:x,noScriptCSSFallback:w=rE,render:b,children:C}=e,j=((e,t)=>{var r={};for(var n in e)rb.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&rw)for(var n of rw(e))0>t.indexOf(n)&&rC.call(e,n)&&(r[n]=e[n]);return r})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[k,S]=n.useState("string"==typeof j.defaultValue?j.defaultValue:""),N=null!=c?c:k,E=(r=n.useRef(),n.useEffect(()=>{r.current=N}),r.current),A=n.useCallback(e=>{null==d||d(e),S(e)},[d]),R=n.useMemo(()=>p?"string"==typeof p?new RegExp(p):p:null,[p]),F=n.useRef(null),M=n.useRef(null),_=n.useRef({value:N,onChange:A,isIOS:"u">typeof window&&(null==(l=null==(i=null==window?void 0:window.CSS)?void 0:i.supports)?void 0:l.call(i,"-webkit-touch-callout","none"))}),V=n.useRef({prev:[null==(s=F.current)?void 0:s.selectionStart,null==(a=F.current)?void 0:a.selectionEnd,null==(o=F.current)?void 0:o.selectionDirection]});n.useImperativeHandle(t,()=>F.current,[]),n.useEffect(()=>{let e=F.current,t=M.current;if(!e||!t)return;function r(){if(document.activeElement!==e){D(null),z(null);return}let t=e.selectionStart,r=e.selectionEnd,n=e.selectionDirection,i=e.maxLength,l=e.value,s=V.current.prev,a=-1,o=-1,c;if(0!==l.length&&null!==t&&null!==r){let e=t===r,n=t===l.length&&l.length<i;if(e&&!n){if(0===t)a=0,o=1,c="forward";else if(t===i)a=t-1,o=t,c="backward";else if(i>1&&l.length>1){let e=0;if(null!==s[0]&&null!==s[1]){c=t<s[1]?"backward":"forward";let r=s[0]===s[1]&&s[0]<i;"backward"!==c||r||(e=-1)}a=e+t,o=e+t+1}}-1!==a&&-1!==o&&a!==o&&F.current.setSelectionRange(a,o,c)}let d=-1!==a?a:t,u=-1!==o?o:r,f=null!=c?c:n;D(d),z(u),V.current.prev=[d,u,f]}if(_.current.value!==e.value&&_.current.onChange(e.value),V.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",r,{capture:!0}),r(),document.activeElement===e&&O(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="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;";rN(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),rN(e.sheet,`[data-input-otp]:autofill { ${t} }`),rN(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }
9`),rN(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),rN(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let n=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};n();let i=new ResizeObserver(n);return i.observe(e),()=>{document.removeEventListener("selectionchange",r,{capture:!0}),i.disconnect()}},[]);let[L,P]=n.useState(!1),[I,O]=n.useState(!1),[T,D]=n.useState(null),[B,z]=n.useState(null);n.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,r,n;null==(e=F.current)||e.dispatchEvent(new Event("input"));let i=null==(t=F.current)?void 0:t.selectionStart,l=null==(r=F.current)?void 0:r.selectionEnd,s=null==(n=F.current)?void 0:n.selectionDirection;null!==i&&null!==l&&(D(i),z(l),V.current.prev=[i,l,s])},0),setTimeout(e,10),setTimeout(e,50)},[N,I]),n.useEffect(()=>{void 0!==E&&N!==E&&E.length<u&&N.length===u&&(null==g||g(N))},[u,g,E,N]);let H=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:i}){let[l,s]=n.useState(!1),[a,o]=n.useState(!1),[c,d]=n.useState(!1),u=n.useMemo(()=>"none"!==r&&("increase-width"===r||"experimental-no-flickering"===r)&&l&&a,[l,a,r]),f=n.useCallback(()=>{let n=e.current,i=t.current;if(!n||!i||c||"none"===r)return;let l=n.getBoundingClientRect().left+n.offsetWidth,a=n.getBoundingClientRect().top+n.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(l-18,a)===n||(s(!0),d(!0))},[e,t,c,r]);return n.useEffect(()=>{let t=e.current;if(!t||"none"===r)return;function n(){o(window.innerWidth-t.getBoundingClientRect().right>=40)}n();let i=setInterval(n,1e3);return()=>{clearInterval(i)}},[e,r]),n.useEffect(()=>{let e=i||document.activeElement===t.current;if("none"===r||!e)return;let n=setTimeout(f,0),l=setTimeout(f,2e3),s=setTimeout(f,5e3),a=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(n),clearTimeout(l),clearTimeout(s),clearTimeout(a)}},[t,i,r,f]),{hasPWMBadge:l,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:M,inputRef:F,pushPasswordManagerStrategy:v,isFocused:I}),$=n.useCallback(e=>{let t=e.currentTarget.value.slice(0,u);t.length>0&&R&&!R.test(t)?e.preventDefault():("string"==typeof E&&t.length<E.length&&document.dispatchEvent(new Event("selectionchange")),A(t))},[u,A,E,R]),W=n.useCallback(()=>{var e;if(F.current){let t=Math.min(F.current.value.length,u-1),r=F.current.value.length;null==(e=F.current)||e.setSelectionRange(t,r),D(t),z(r)}O(!0)},[u]),U=n.useCallback(e=>{var t,r;let n=F.current;if(!y&&(!_.current.isIOS||!e.clipboardData||!n))return;let i=e.clipboardData.getData("text/plain"),l=y?y(i):i;e.preventDefault();let s=null==(t=F.current)?void 0:t.selectionStart,a=null==(r=F.current)?void 0:r.selectionEnd,o=(s!==a?N.slice(0,s)+l+N.slice(a):N.slice(0,s)+l+N.slice(s)).slice(0,u);if(o.length>0&&R&&!R.test(o))return;n.value=o,A(o);let c=Math.min(o.length,u-1),d=o.length;n.setSelectionRange(c,d),D(c),z(d)},[u,A,R,N]),Z=n.useMemo(()=>({position:"relative",cursor:j.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[j.disabled]),G=n.useMemo(()=>({position:"absolute",inset:0,width:H.willPushPWMBadge?`calc(100% + ${H.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:H.willPushPWMBadge?`inset(0 ${H.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:f,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(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[H.PWM_BADGE_SPACE_WIDTH,H.willPushPWMBadge,f]),K=n.useMemo(()=>n.createElement("input",ry(((e,t)=>{for(var r in t||(t={}))rb.call(t,r)&&rj(e,r,t[r]);if(rw)for(var r of rw(t))rC.call(t,r)&&rj(e,r,t[r]);return e})({autoComplete:j.autoComplete||"one-time-code"},j),rx({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===N.length||void 0,"data-input-otp-mss":T,"data-input-otp-mse":B,inputMode:h,pattern:null==R?void 0:R.source,"aria-placeholder":m,style:G,maxLength:u,value:N,ref:F,onPaste:e=>{var t;U(e),null==(t=j.onPaste)||t.call(j,e)},onChange:$,onMouseOver:e=>{var t;P(!0),null==(t=j.onMouseOver)||t.call(j,e)},onMouseLeave:e=>{var t;P(!1),null==(t=j.onMouseLeave)||t.call(j,e)},onFocus:e=>{var t;W(),null==(t=j.onFocus)||t.call(j,e)},onBlur:e=>{var t;O(!1),null==(t=j.onBlur)||t.call(j,e)}}))),[$,W,U,h,G,u,B,T,j,null==R?void 0:R.source,N]),q=n.useMemo(()=>({slots:Array.from({length:u}).map((e,t)=>{var r;let n=I&&null!==T&&null!==B&&(T===B&&t===T||t>=T&&t<B),i=void 0!==N[t]?N[t]:null;return{char:i,placeholderChar:void 0!==N[0]?null:null!=(r=null==m?void 0:m[t])?r:null,isActive:n,hasFakeCaret:n&&null===i}}),isFocused:I,isHovering:!j.disabled&&L}),[I,L,u,B,T,j.disabled,N]),X=n.useMemo(()=>b?b(q):n.createElement(rk.Provider,{value:q},C),[C,q,b]);return n.createElement(n.Fragment,null,null!==w&&n.createElement("noscript",null,n.createElement("style",null,w)),n.createElement("div",{ref:M,"data-input-otp-container":!0,style:Z,className:x},X,n.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},K)))});function rN(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}rS.displayName="Input";var rE=` 10[data-input-otp] { 11 --nojs-bg: white !important; 12 --nojs-fg: black !important; 13 14 background-color: var(--nojs-bg) !important; 15 color: var(--nojs-fg) !important; 16 caret-color: var(--nojs-fg) !important; 17 letter-spacing: .25em !important; 18 text-align: center !important; 19 border: 1px solid var(--nojs-fg) !important; 20 border-radius: 4px !important; 21 width: 100% !important; 22} 23@media (prefers-color-scheme: dark) { 24 [data-input-otp] { 25 --nojs-bg: black !important; 26 --nojs-fg: white !important; 27 } 28}`;let rA=(0,a.forwardRefIfNeeded)(({className:e,containerClassName:t,...r},n)=>(0,i.jsx)(rS,{ref:n,containerClassName:(0,l.cn)("stack-scope flex items-center gap-2 has-[:disabled]:opacity-50",t),className:(0,l.cn)("disabled:cursor-not-allowed",e),...r}));rA.displayName="InputOTP";let rR=(0,a.forwardRefIfNeeded)(({className:e,...t},r)=>(0,i.jsx)("div",{ref:r,className:(0,l.cn)("flex items-center gap-1",e),...t}));rR.displayName="InputOTPGroup";let rF=(0,a.forwardRefIfNeeded)(({index:e,className:t,size:r="default",...s},a)=>{let{char:o,hasFakeCaret:c,isActive:d}=n.default.useContext(rk).slots[e];return(0,i.jsxs)("div",{ref:a,className:(0,l.cn)("relative flex h-9 w-9 items-center justify-center border border-input text-sm rounded-md","lg"===r?"h-10 w-10 text-lg font-medium":"",d&&"z-10 ring-1 ring-ring",t),...s,children:[o,c&&(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,i.jsx)("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});function rM(e){let{t}
28=ef(),[r,l]=(0,n.useState)(""),[s,a]=(0,n.useState)(!1),o=(0,ed.useStackApp)(),[c,d]=(0,n.useState)(null);return(0,n.useEffect)(()=>{6!==r.length||s||(a(!0),o.signInWithMagicLink(r+e.nonce).then(e=>{if("error"===e.status)if(ra.KnownErrors.VerificationCodeError.isInstance(e.error))d(t("Invalid code"));else if(ra.KnownErrors.InvalidTotpCode.isInstance(e.error))d(t("Invalid TOTP code"));else throw e.error}).catch(e=>console.error(e)).finally(()=>{a(!1),l("")})),0!==r.length&&6!==r.length&&d(null)},[r,s]),(0,i.jsxs)("div",{className:"flex flex-col items-stretch stack-scope",children:[(0,i.jsxs)("form",{className:"w-full flex flex-col items-center mb-2",children:[(0,i.jsx)(ec,{className:"mb-2",children:t("Enter the code from your email")}),(0,i.jsx)(rA,{maxLength:6,type:"text",inputMode:"text",pattern:"^[a-zA-Z0-9]+$",value:r,onChange:e=>l(e.toUpperCase()),disabled:s,children:(0,i.jsx)(rR,{children:[0,1,2,3,4,5].map(e=>(0,i.jsx)(rF,{index:e,size:"lg"},e))})}),c&&(0,i.jsx)(rr,{text:c})]}),(0,i.jsx)(tJ,{variant:"link",onClick:e.onBack,className:"underline",children:t("Cancel")})]})}function r_(){let{t:e}=ef(),t=(0,ed.useStackApp)(),[l,s]=(0,n.useState)(!1),[a,o]=(0,n.useState)(null),{register:c,handleSubmit:d,setError:u,formState:{errors:f}}=tl({resolver:td((0,tu.yupObject)({email:(0,tu.strictEmailSchema)(e("Please enter a valid email")).defined().nonEmpty(e("Please enter your email"))}))}),p=async r=>{s(!0);try{let{email:e}=r,n=await t.sendMagicLinkEmail(e);if("error"===n.status)return void u("email",{type:"manual",message:n.error.message});o(n.data.nonce)}catch(t){if(ra.KnownErrors.SignUpNotEnabled.isInstance(t))u("email",{type:"manual",message:e("New account registration is not allowed")});else throw t}finally{s(!1)}};return a?(0,i.jsx)(rM,{nonce:a,onBack:()=>o(null)}):(0,i.jsxs)("form",{className:"flex flex-col items-stretch stack-scope",onSubmit:e=>(0,r.runAsynchronouslyWithAlert)(d(p)(e)),noValidate:!0,children:[(0,i.jsx)(t5,{htmlFor:"email",className:"mb-1",children:e("Email")}),(0,i.jsx)(tQ,{id:"email",type:"email",autoComplete:"email",...c("email")}),(0,i.jsx)(rr,{text:f.email?.message?.toString()}),(0,i.jsx)(tJ,{type:"submit",className:"mt-6",loading:l,children:e("Send email")})]})}function rV({fullPage:e=!1,...t}){return(0,i.jsx)(em,{fullPage:e,children:(0,i.jsxs)("div",{className:"text-center stack-scope flex flex-col gap-4",style:{maxWidth:"380px",flexBasis:"380px",padding:e?"1rem":0},children:[(0,i.jsx)(ec,{type:"h3",children:t.title}),t.children,(t.primaryButtonText||t.secondaryButtonText)&&(0,i.jsxs)("div",{className:"flex justify-center gap-4 my-5",children:[t.secondaryButtonText&&(0,i.jsx)(tJ,{variant:"secondary",onClick:t.secondaryAction,children:t.secondaryButtonText}),t.primaryButtonText&&(0,i.jsx)(tJ,{onClick:t.primaryAction,children:t.primaryButtonText})]})]})})}function rL({type:e,fullPage:t=!1}){let r,n=(0,ed.useStackApp)(),{t:l}=ef(),s=null,a=null,o=null,c=null,d=null;switch(e){case"signedIn":r=l("You are already signed in"),c=()=>n.redirectToHome(),d=()=>n.redirectToSignOut(),a=l("Go home"),o=l("Sign out");break;case"signedOut":r=l("You are not currently signed in."),c=()=>n.redirectToSignIn(),a=l("Sign in");break;case"signUpDisabled":r=l("Sign up for new users is not enabled at the moment."),c=()=>n.redirectToHome(),d=()=>n.redirectToSignIn(),a=l("Go home"),o=l("Sign in");break;case"emailSent":r=l("Email sent!"),s=l("If the user with this e-mail address exists, an e-mail was sent to your inbox. Make sure to check your spam folder."),c=()=>n.redirectToHome(),a=l("Go home");break;case"passwordReset":r=l("Password reset successfully!"),s=l("Your password has been reset. You can now sign in with your new password."),c=()=>n.redirectToSignIn({noRedirectBack:!0}),a=l("Sign in");break;case"unknownError":r=l("An unknown error occurred"),s=l("Please try again and if the problem persists, contact support."),c=()=>n.redirectToHome(),a=l("Go home")}return(0,i.jsx)(rV,{title:r,fullPage:t,primaryButtonText:a,primaryAction:c,secondaryButtonText:o||void 0,secondaryAction:d||void 0,children:s&&(0,i.jsx)(ec,{children:s})})}function rP({iconSize:e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:[(0,i.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,i.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,i.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,i.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"}),(0,i.jsx)("path",{fill:"none",d:"M1 1h22v22H1z"})]})}function rI({iconSize:e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 512 512",children:(0,i.jsx)("path",{fill:"#FFFFFF",d:"M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5V334.2H141.4V256h52.8V222.3c0-87.1 39.4-127.5 125-127.5c16.2 0 44.2 3.2 55.7 6.4V172c-6-.6-16.5-1-29.6-1c-42 0-58.2 15.9-58.2 57.2V256h83.6l-14.4 78.2H287V510.1C413.8 494.8 512 386.9 512 256h0z"})})}function rO({iconSize:e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 496 512",children:(0,i.jsx)("path",{fill:"#FFFFFF",d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"})})}function rT({iconSize:e}){return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 21 21",children:[(0,i.jsx)("title",{children:"MS-SymbolLockup"}),(0,i.jsx)("path",{fill:"#f25022",d:"M1 1h9v9H1z"}),(0,i.jsx)("path",{fill:"#00a4ef",d:"M1 11h9v9H1z"}),(0,i.jsx)("path",{fill:"#7fba00",d:"M11 1h9v9h-9z"}),(0,i.jsx)("path",{fill:"#ffb900",d:"M11 11h9v9h-9z"})]})}function rD({iconSize:e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 496 512",children:(0,i.jsx)("path",{fill:"#ffffff",d:"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"})})}function rB({iconSize:e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 127.14 96.36",children:(0,i.jsx)("path",{fill:"#fff",d:"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.
286.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z"})})}function rz({iconSize:e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 -10 256 256",version:"1.1",preserveAspectRatio:"xMidYMid",children:(0,i.jsxs)("g",{children:[(0,i.jsx)("path",{d:"M128.07485,236.074667 L128.07485,236.074667 L175.17885,91.1043048 L80.9708495,91.1043048 L128.07485,236.074667 L128.07485,236.074667 Z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M128.07485,236.074423 L80.9708495,91.104061 L14.9557638,91.104061 L128.07485,236.074423 L128.07485,236.074423 Z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M14.9558857,91.1044267 L14.9558857,91.1044267 L0.641828571,135.159589 C-0.663771429,139.17757 0.766171429,143.57955 4.18438095,146.06275 L128.074971,236.074789 L14.9558857,91.1044267 L14.9558857,91.1044267 Z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M14.9558857,91.1045486 L80.9709714,91.1045486 L52.6000762,3.79026286 C51.1408762,-0.703146667 44.7847619,-0.701927619 43.3255619,3.79026286 L14.9558857,91.1045486 L14.9558857,91.1045486 Z",fill:"#E24329"}),(0,i.jsx)("path",{d:"M128.07485,236.074423 L175.17885,91.104061 L241.193935,91.104061 L128.07485,236.074423 L128.07485,236.074423 Z",fill:"#FC6D26"}),(0,i.jsx)("path",{d:"M241.193935,91.1044267 L241.193935,91.1044267 L255.507992,135.159589 C256.813592,139.17757 255.38365,143.57955 251.96544,146.06275 L128.07485,236.074789 L241.193935,91.1044267 L241.193935,91.1044267 Z",fill:"#FCA326"}),(0,i.jsx)("path",{d:"M241.193935,91.1045486 L175.17885,91.1045486 L203.549745,3.79026286 C205.008945,-0.703146667 211.365059,-0.701927619 212.824259,3.79026286 L241.193935,91.1045486 L241.193935,91.1045486 Z",fill:"#E24329"})]})})}function rH({iconSize:e}){return(0,i.jsxs)("svg",{preserveAspectRatio:"xMidYMid",xmlns:"http://www.w3.org/2000/svg",viewBox:"-0.9662264221278978 -0.5824607696358868 257.93281329857973 230.8324730411935",width:e,height:e,children:[(0,i.jsxs)("linearGradient",{id:"a",x1:"108.633%",x2:"46.927%",y1:"13.818%",y2:"78.776%",children:[(0,i.jsx)("stop",{offset:".18",stopColor:"#0052cc"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2684ff"})]}),(0,i.jsxs)("g",{fill:"none",children:[(0,i.jsx)("path",{d:"M101.272 152.561h53.449l12.901-75.32H87.06z"}),(0,i.jsx)("path",{d:"M8.308 0A8.202 8.202 0 0 0 .106 9.516l34.819 211.373a11.155 11.155 0 0 0 10.909 9.31h167.04a8.202 8.202 0 0 0 8.201-6.89l34.82-213.752a8.202 8.202 0 0 0-8.203-9.514zm146.616 152.768h-53.315l-14.436-75.42h80.67z",fill:"#2684ff"}),(0,i.jsx)("path",{d:"M244.61 77.242h-76.916l-12.909 75.36h-53.272l-62.902 74.663a11.105 11.105 0 0 0 7.171 2.704H212.73a8.196 8.196 0 0 0 8.196-6.884z",fill:"url(#a)"})]})]})}function r$({iconSize:e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",height:e,width:e,viewBox:"0 0 310 310",children:(0,i.jsxs)("g",{id:"XMLID_801_",children:[(0,i.jsx)("path",{id:"XMLID_802_",d:"M72.16,99.73H9.927c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5H72.16c2.762,0,5-2.238,5-5V104.73 C77.16,101.969,74.922,99.73,72.16,99.73z"}),(0,i.jsx)("path",{id:"XMLID_803_",d:"M41.066,0.341C18.422,0.341,0,18.743,0,41.362C0,63.991,18.422,82.4,41.066,82.4 c22.626,0,41.033-18.41,41.033-41.038C82.1,18.743,63.692,0.341,41.066,0.341z"}),(0,i.jsx)("path",{id:"XMLID_804_",d:"M230.454,94.761c-24.995,0-43.472,10.745-54.679,22.954V104.73c0-2.761-2.238-5-5-5h-59.599 c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5h62.097c2.762,0,5-2.238,5-5v-98.918c0-33.333,9.054-46.319,32.29-46.319 c25.306,0,27.317,20.818,27.317,48.034v97.204c0,2.762,2.238,5,5,5H305c2.762,0,5-2.238,5-5V194.995 C310,145.43,300.549,94.761,230.454,94.761z"})]})})}function rW({iconSize:e}){return(0,i.jsxs)("svg",{fill:"#fff",height:e,width:e,version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.773 22.773",children:[(0,i.jsx)("path",{d:"M15.769,0c0.053,0,0.106,0,0.162,0c0.13,1.606-0.483,2.806-1.228,3.675c-0.731,0.863-1.732,1.7-3.351,1.573c-0.108-1.583,0.506-2.694,1.25-3.561C13.292,0.879,14.557,0.16,15.769,0z"}),(0,i.jsx)("path",{d:"M20.67,16.716c0,0.016,0,0.03,0,0.045c-0.455,1.378-1.104,2.559-1.896,3.655c-0.723,0.995-1.
28609,2.334-3.191,2.334c-1.367,0-2.275-0.879-3.676-0.903c-1.482-0.024-2.297,0.735-3.652,0.926c-0.155,0-0.31,0-0.462,0c-0.995-0.144-1.798-0.932-2.383-1.642c-1.725-2.098-3.058-4.808-3.306-8.276c0-0.34,0-0.679,0-1.019c0.105-2.482,1.311-4.5,2.914-5.478c0.846-0.52,2.009-0.963,3.304-0.765c0.555,0.086,1.122,0.276,1.619,0.464c0.471,0.181,1.06,0.502,1.618,0.485c0.378-0.011,0.754-0.208,1.135-0.347c1.116-0.403,2.21-0.865,3.652-0.648c1.733,0.262,2.963,1.032,3.723,2.22c-1.466,0.933-2.625,2.339-2.427,4.74C17.818,14.688,19.086,15.964,20.67,16.716z"})]})}function rU({iconSize:e}){return(0,i.jsx)("svg",{"aria-label":"X",viewBox:"0 0 1200 1227",width:e,height:e,xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fill:"#FFFFFF",d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"})})}function rZ({iconSize:e}){return(0,i.jsx)("svg",{"aria-label":"Twitch",viewBox:"0 0 2400 2800",width:e,height:e,xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsxs)("g",{children:[(0,i.jsx)("polygon",{fill:"#FFFFFF",points:"2200,1300 1800,1700 1400,1700 1050,2050 1050,1700 600,1700 600,200 2200,200"}),(0,i.jsx)("g",{children:(0,i.jsxs)("g",{id:"Layer_1-2",children:[(0,i.jsx)("path",{fill:"#9146FF",d:"M500,0L0,500v1800h600v500l500-500h400l900-900V0H500z M2200,1300l-400,400h-400l-350,350v-350H600V200h1600 V1300z"}),(0,i.jsx)("rect",{x:"1700",y:"550",fill:"#9146FF",width:"200",height:"600"}),(0,i.jsx)("rect",{x:"1150",y:"550",fill:"#9146FF",width:"200",height:"600"})]})})]})})}rF.displayName="InputOTPSlot",(0,a.forwardRefIfNeeded)(({...e},t)=>(0,i.jsx)("div",{ref:t,role:"separator",...e,children:(0,i.jsx)(tT,{})})).displayName="InputOTPSeparator",e.s(["InputOTP",0,rA,"InputOTPGroup",0,rR,"InputOTPSlot",0,rF],56500),e.s(["MessageCard",0,rV],12704),e.s(["PredefinedMessageCard",0,rL],36552),e.s(["Apple",0,rW,"BRAND_COLORS",0,{github:"#24292e",google:"#ffffff",facebook:"#0866FF",microsoft:"#2F2F2F",spotify:"#1DD65F",discord:"#5661F5",linkedin:"#0A66C2",x:"#000000",apple:"#000000",twitch:"#ffffff"},"Bitbucket",0,rH,"Discord",0,rB,"Facebook",0,rI,"GitHub",0,rO,"Gitlab",0,rz,"Google",0,rP,"LinkedIn",0,r$,"Mapping",0,function({provider:e,iconSize:t}){switch(e){case"google":return(0,i.jsx)(rP,{iconSize:t});case"github":return(0,i.jsx)(rO,{iconSize:t});case"facebook":return(0,i.jsx)(rI,{iconSize:t});case"microsoft":return(0,i.jsx)(rT,{iconSize:t});case"spotify":return(0,i.jsx)(rD,{iconSize:t});case"discord":return(0,i.jsx)(rB,{iconSize:t});case"gitlab":return(0,i.jsx)(rz,{iconSize:t});case"bitbucket":return(0,i.jsx)(rH,{iconSize:t});case"linkedin":return(0,i.jsx)(r$,{iconSize:t});case"apple":return(0,i.jsx)(rW,{iconSize:t});case"x":return(0,i.jsx)(rU,{iconSize:t});case"twitch":return(0,i.jsx)(rZ,{iconSize:t});default:throw new tw.StackAssertionError(`Icon not found for provider: ${e}`)}},"Microsoft",0,rT,"Spotify",0,rD,"Twitch",0,rZ,"X",0,rU,"toTitle",0,function(e){return({github:"GitHub",google:"Google",facebook:"Facebook",microsoft:"Microsoft",spotify:"Spotify",discord:"Discord",gitlab:"GitLab",apple:"Apple",bitbucket:"Bitbucket",linkedin:"LinkedIn",x:"X",twitch:"Twitch"})[e]||(0,tw.throwErr)(`Unknown provider: ${e}`)}],6365);var rG=e.i(6365),rG=rG;let rK=t8("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["CircleAlert",0,rK],18331);let rq=t8("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,rq],86916);var rX=e.i(70417),rY=e.i(86336);function rJ(e){let t=(0,l.cn)("w-4 h-4 text-muted-foreground",e.inline&&"inline"),r=(0,i.jsxs)(i.Fragment,{children:["warning"===e.type?(0,i.jsx)(rK,{className:t}):"info"===e.type?(0,i.jsx)(rq,{className:t}):null,e.children]});return(0,i.jsxs)(rX.Tooltip,{open:!e.disabled&&void 0,children:[(0,i.jsx)(rX.TooltipTrigger,{asChild:!0,children:e.inline?(0,i.jsx)("span",{className:(0,l.cn)(e.className),children:r}):(0,i.jsx)("div",{className:(0,l.cn)("flex items-center gap-1",e.className),children:r})}),e.tooltip&&(0,i.jsx)(rY.TooltipPortal,{children:(0,i.jsx)(rX.TooltipContent,{children:(0,i.jsx)("div",{className:"max-w-60 text-center text-wrap whitespace-pre-wrap",children:e.tooltip})})})]})}e.s(["SimpleTooltip",0,rJ],66024);var rQ=e.i(33550);function r0({provider:e,type:t,isMock:r=!1,onAuthenticate:l}){var s,a;let o,{t:c}=ef(),d=(0,ed.useStackApp)(),u=(0,n.useId)().replaceAll(":","-"),f=function(){let[e,t]=(0,n.use
28State)(!1);return(0,n.useEffect)(()=>{window.self!==window.top&&t(!0)},[]),e}(),[p,m]=(0,n.useState)(null);switch((0,n.useEffect)(()=>{m(localStorage.getItem("_STACK_AUTH.lastUsed"))},[]),e){case"google":o={backgroundColor:"#fff",textColor:"#000",name:"Google",border:"1px solid #ddd",icon:(0,i.jsx)(rG.Google,{iconSize:22})};break;case"github":o={backgroundColor:"#111",textColor:"#fff",border:"1px solid #333",name:"GitHub",icon:(0,i.jsx)(rG.GitHub,{iconSize:22})};break;case"facebook":o={backgroundColor:"#1877F2",textColor:"#fff",name:"Facebook",icon:(0,i.jsx)(rG.Facebook,{iconSize:22})};break;case"microsoft":o={backgroundColor:"#2f2f2f",textColor:"#fff",name:"Microsoft",icon:(0,i.jsx)(rG.Microsoft,{iconSize:22})};break;case"spotify":o={backgroundColor:"#1DB954",textColor:"#fff",name:"Spotify",icon:(0,i.jsx)(rG.Spotify,{iconSize:22})};break;case"discord":o={backgroundColor:"#5865F2",textColor:"#fff",name:"Discord",icon:(0,i.jsx)(rG.Discord,{iconSize:22})};break;case"gitlab":o={backgroundColor:"#111",textColor:"#fff",border:"1px solid #333",name:"Gitlab",icon:(0,i.jsx)(rG.Gitlab,{iconSize:22})};break;case"apple":o={backgroundColor:"#000",textColor:"#fff",border:"1px solid #333",name:"Apple",icon:(0,i.jsx)(rG.Apple,{iconSize:22})};break;case"bitbucket":o={backgroundColor:"#fff",textColor:"#000",border:"1px solid #ddd",name:"Bitbucket",icon:(0,i.jsx)(rG.Bitbucket,{iconSize:22})};break;
28case"linkedin":o={backgroundColor:"#0073b1",textColor:"#fff",name:"LinkedIn",icon:(0,i.jsx)(rG.LinkedIn,{iconSize:22})};break;case"x":o={backgroundColor:"#000",textColor:"#fff",name:"X",icon:(0,i.jsx)(rG.X,{iconSize:22})};break;case"twitch":o={backgroundColor:"#6441a5",textColor:"#fff",name:"Twitch",icon:(0,i.jsx)(rG.Twitch,{iconSize:22})};break;default:o={name:e,icon:null}}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("style",{children:` 29 .stack-oauth-button-${u} { 30 background-color: ${o.backgroundColor} !important; 31 color: ${o.textColor} !important; 32 border: ${o.border} !important; 33 } 34 .stack-oauth-button-${u}:hover { 35 background-color: ${(s=(0,rQ.default)(o.backgroundColor),a=10,s.isLight()&&(a=-a),s.hsl(s.hue(),s.saturationl(),s.lightness()+a).toString())} !important; 36 } 37 `}),(0,i.jsx)(rJ,{disabled:!f,tooltip:f?"This auth provider is not supported in an iframe for security reasons.":void 0,className:"stack-scope w-full inline-flex",children:(0,i.jsxs)(tJ,{onClick:async()=>{localStorage.setItem("_STACK_AUTH.lastUsed",e),await (l?l():d.signInWithOAuth(e))},className:`stack-oauth-button-${u} stack-scope relative w-full`,disabled:f,children:[!r&&p===e&&(0,i.jsx)("span",{className:"absolute -top-2 -right-2 bg-blue-500 text-white text-xs px-2 py-1 rounded-md",children:"last"}),(0,i.jsxs)("div",{className:"flex items-center w-full gap-4",children:[o.icon,(0,i.jsx)("span",{className:"flex-1",children:c("sign-up"===t?"Sign up with {provider}":"Sign in with {provider}",{provider:o.name})})]})]})})]})}function r1({type:e,mockProject:t}){let r=(0,ed.useStackApp)();return(0,i.jsx)("div",{className:"gap-4 flex flex-col items-stretch stack-scope",children:(t||r.useProject()).config.oauthProviders.map(r=>(0,i.jsx)(r0,{provider:r.id,type:e,isMock:!!t},r.id))})}let r2=(...e)=>e.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ");var r5={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let r3=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:s,iconNode:a,...o},c)=>(0,n.createElement)("svg",{ref:c,...r5,width:t,height:t,stroke:e,strokeWidth:i?24*Number(r)/Number(t):r,className:r2("lucide",l),...o},[...a.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(s)?s:[s]])),r6=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...i},l)=>(0,n.createElement)(r3,{ref:l,iconNode:t,className:r2(`lucide-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...i}));return r.displayName=`${e}`,r};e.s(["default",0,r6],79172);let r4=r6("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);function r7({type:e}){let{t}=ef(),r=(0,ed.useStackApp)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(tJ,{onClick:async()=>{await r.signInWithPasskey()},className:`stack-oauth-button-${(0,n.useId)().replaceAll(":","-")} stack-scope`,children:(0,i.jsxs)("div",{className:"flex items-center w-full gap-4",children:[(0,i.jsx)(r4,{}),(0,i.jsx)("span",{className:"flex-1",children:t("sign-up"===e?"Sign up with Passkey":"Sign in with Passkey")})]})})})}function r8(e){return(0,i.jsx)(em,{fullPage:!!e.fullPage,children:(0,i.jsx)("div",{className:"stack-scope flex flex-col items-stretch",style:{maxWidth:"380px",flexBasis:"380px",padding:e.fullPage?"1rem":0},children:(0,i.jsxs)("div",{className:"text-center mb-6 flex flex-col",children:[(0,i.jsx)(s,{className:"h-9 w-2/3 self-center"}),(0,i.jsx)(s,{className:"h-3 w-16 mt-8"}),(0,i.jsx)(s,{className:"h-9 w-full mt-1"}),(0,i.jsx)(s,{className:"h-3 w-24 mt-2"}),(0,i.jsx)(s,{className:"h-9 w-full mt-1"}),(0,i.jsx)(s,{className:"h-9 w-full mt-6"})]})})})}function r9(e){let t=(0,ed.useStackApp)(),s=(0,ed.useUser)(),a=t.useProject(),o=e.mockProject||a,{t:c}=ef();if((0,n.useEffect)(()=>{e.automaticRedirect&&s&&!e.mockProject&&(0,r.runAsynchronously)("sign-in"===e.type?t.redirectToAfterSignIn({replace:!0}):t.redirectToAfterSignUp({replace:!0}))},[s,e.mockProject,t,e.automaticRedirect]),s&&!e.mockProject&&!e.automaticRedirect)return(0,i.jsx)(rL,{type:"signedIn",fullPage:e.fullPage});if("sign-up"===e.type&&!o.config.signUpEnabled)return(0,i.jsx)(rL,{type:"signUpDisabled",fullPage:e.fullPage});let d=o.config.oauthProviders.length>0,u=!0===o.config.passkeyEnabled&&"sign-in"===e.type,f=(o.config.credentialEnabled||o.config.magicLinkEnabled)&&(d||u);return(0,i.jsx)(em,{fullPage:!!e.fullPage,children:(0,i.jsxs)("div",{className:"stack-scope flex flex-col items-stretch",style:{maxWidth:"380px",flexBasis:"380px",padding:e.fullPage?"1rem":0},children:[(0,i.jsxs)("div",{className:"text-center mb-6",children:[(0,i.jsx)(ec,{type:"h2",children:c("sign-in"===e.type?"Sign in to your account":"Create a new account")}
37),"sign-in"===e.type?o.config.signUpEnabled&&(0,i.jsxs)(ec,{children:[c("Don't have an account?")," ",(0,i.jsx)(rl,{href:t.urls.signUp,onClick:e=>{(0,r.runAsynchronously)(t.redirectToSignUp()),e.preventDefault()},children:c("Sign up")})]}):(0,i.jsxs)(ec,{children:[c("Already have an account?")," ",(0,i.jsx)(rl,{href:t.urls.signIn,onClick:e=>{(0,r.runAsynchronously)(t.redirectToSignIn()),e.preventDefault()},children:c("Sign in")})]})]}),(d||u)&&(0,i.jsxs)("div",{className:"gap-4 flex flex-col items-stretch stack-scope",children:[d&&(0,i.jsx)(r1,{type:e.type,mockProject:e.mockProject}),u&&(0,i.jsx)(r7,{type:e.type})]}),f&&(0,i.jsx)(rg,{text:c("Or continue with")}),o.config.credentialEnabled&&o.config.magicLinkEnabled?(0,i.jsxs)(Z,{defaultValue:e.firstTab||"magic-link",children:[(0,i.jsxs)(et,{className:(0,l.cn)("w-full mb-2",{"flex-row-reverse":"password"===e.firstTab}),children:[(0,i.jsx)(er,{value:"magic-link",className:"flex-1",children:c("Email")}),(0,i.jsx)(er,{value:"password",className:"flex-1",children:c("Email & Password")})]}),(0,i.jsx)(en,{value:"magic-link",children:(0,i.jsx)(r_,{})}),(0,i.jsx)(en,{value:"password",children:"sign-up"===e.type?(0,i.jsx)(rd,{noPasswordRepeat:e.noPasswordRepeat}):(0,i.jsx)(rs,{})})]}):o.config.credentialEnabled?"sign-up"===e.type?(0,i.jsx)(rd,{noPasswordRepeat:e.noPasswordRepeat}):(0,i.jsx)(rs,{}):o.config.magicLinkEnabled?(0,i.jsx)(r_,{}):d||u?null:(0,i.jsx)(ec,{variant:"destructive",className:"text-center",children:c("No authentication method enabled.")}),e.extraInfo&&(0,i.jsx)("div",{className:(0,l.cn)("flex flex-col items-center text-center text-sm text-gray-500",{"mt-2":o.config.credentialEnabled||o.config.magicLinkEnabled,"mt-6":!(o.config.credentialEnabled||o.config.magicLinkEnabled)}),children:(0,i.jsx)("div",{children:e.extraInfo})})]})})}e.s(["AuthPage",0,function(e){return(0,i.jsx)(n.Suspense,{fallback:(0,i.jsx)(r8,{...e}),children:(0,i.jsx)(r9,{...e})})}],17919)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.