@service_laboratory/auth 2.0.6 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,109 @@
1
+ (function(te,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],O):(te=typeof globalThis<"u"?globalThis:te||self,O(te.autn={},te.react))})(this,(function(te,O){"use strict";function ar(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=ar(O);var we={exports:{}},ye={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Je;function ir(){if(Je)return ye;Je=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(o,n,s){var d=null;if(s!==void 0&&(d=""+s),n.key!==void 0&&(d=""+n.key),"key"in n){s={};for(var f in n)f!=="key"&&(s[f]=n[f])}else s=n;return n=s.ref,{$$typeof:e,type:o,key:d,ref:n!==void 0?n:null,props:s}}return ye.Fragment=r,ye.jsx=t,ye.jsxs=t,ye}var be={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ze;function lr(){return Ze||(Ze=1,process.env.NODE_ENV!=="production"&&(function(){function e(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===ge?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case v:return"Fragment";case D:return"Profiler";case R:return"StrictMode";case U:return"Suspense";case $:return"SuspenseList";case Y:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case b:return"Portal";case P:return(a.displayName||"Context")+".Provider";case G:return(a._context.displayName||"Context")+".Consumer";case z:var g=a.render;return a=a.displayName,a||(a=g.displayName||g.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case X:return g=a.displayName||null,g!==null?g:e(a.type)||"Memo";case _:g=a._payload,a=a._init;try{return e(a(g))}catch{}}return null}function r(a){return""+a}function t(a){try{r(a);var g=!1}catch{g=!0}if(g){g=console;var w=g.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object";return w.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),r(a)}}function o(a){if(a===v)return"<>";if(typeof a=="object"&&a!==null&&a.$$typeof===_)return"<...>";try{var g=e(a);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function n(){var a=Z.A;return a===null?null:a.getOwner()}function s(){return Error("react-stack-top-frame")}function d(a){if(Q.call(a,"key")){var g=Object.getOwnPropertyDescriptor(a,"key").get;if(g&&g.isReactWarning)return!1}return a.key!==void 0}function f(a,g){function w(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}w.isReactWarning=!0,Object.defineProperty(a,"key",{get:w,configurable:!0})}function u(){var a=e(this.type);return H[a]||(H[a]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),a=this.props.ref,a!==void 0?a:null}function l(a,g,w,k,j,A,ee,C){return w=A.ref,a={$$typeof:p,type:a,key:g,props:A,_owner:j},(w!==void 0?w:null)!==null?Object.defineProperty(a,"ref",{enumerable:!1,get:u}):Object.defineProperty(a,"ref",{enumerable:!1,value:null}),a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(a,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(a,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.defineProperty(a,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:C}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a}function m(a,g,w,k,j,A,ee,C){var N=g.children;if(N!==void 0)if(k)if(he(N)){for(k=0;k<N.length;k++)c(N[k]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(N);if(Q.call(g,"key")){N=e(a);var V=Object.keys(g).filter(function(ue){return ue!=="key"});k=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",se[N+k]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,k,N,V,N),se[N+k]=!0)}if(N=null,w!==void 0&&(t(w),N=""+w),d(g)&&(t(g.key),N=""+g.key),"key"in g){w={};for(var q in g)q!=="key"&&(w[q]=g[q])}else w=g;return N&&f(w,typeof a=="function"?a.displayName||a.name||"Unknown":a),l(a,N,A,j,n(),w,ee,C)}function c(a){typeof a=="object"&&a!==null&&a.$$typeof===p&&a._store&&(a._store.validated=1)}var i=O,p=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),P=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),Z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,he=Array.isArray,J=console.createTask?console.createTask:function(){return null};i={react_stack_bottom_frame:function(a){return a()}};var K,H={},W=i.react_stack_bottom_frame.bind(i,s)(),x=J(o(s)),se={};be.Fragment=v,be.jsx=function(a,g,w,k,j){var A=1e4>Z.recentlyCreatedOwnerStacks++;return m(a,g,w,!1,k,j,A?Error("react-stack-top-frame"):W,A?J(o(a)):x)},be.jsxs=function(a,g,w,k,j){var A=1e4>Z.recentlyCreatedOwnerStacks++;return m(a,g,w,!0,k,j,A?Error("react-stack-top-frame"):W,A?J(o(a)):x)}})()),be}var Qe;function cr(){return Qe||(Qe=1,process.env.NODE_ENV==="production"?we.exports=ir():we.exports=lr()),we.exports}var T=cr(),De={exports:{}},ve={};/**
23
+ * @license React
24
+ * react-jsx-runtime.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var et;function ur(){if(et)return ve;et=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(o,n,s){var d=null;if(s!==void 0&&(d=""+s),n.key!==void 0&&(d=""+n.key),"key"in n){s={};for(var f in n)f!=="key"&&(s[f]=n[f])}else s=n;return n=s.ref,{$$typeof:e,type:o,key:d,ref:n!==void 0?n:null,props:s}}return ve.Fragment=r,ve.jsx=t,ve.jsxs=t,ve}var ke={};/**
31
+ * @license React
32
+ * react-jsx-runtime.development.js
33
+ *
34
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var tt;function dr(){return tt||(tt=1,process.env.NODE_ENV!=="production"&&(function(){function e(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===ge?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case v:return"Fragment";case D:return"Profiler";case R:return"StrictMode";case U:return"Suspense";case $:return"SuspenseList";case Y:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case b:return"Portal";case P:return(a.displayName||"Context")+".Provider";case G:return(a._context.displayName||"Context")+".Consumer";case z:var g=a.render;return a=a.displayName,a||(a=g.displayName||g.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case X:return g=a.displayName||null,g!==null?g:e(a.type)||"Memo";case _:g=a._payload,a=a._init;try{return e(a(g))}catch{}}return null}function r(a){return""+a}function t(a){try{r(a);var g=!1}catch{g=!0}if(g){g=console;var w=g.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object";return w.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),r(a)}}function o(a){if(a===v)return"<>";if(typeof a=="object"&&a!==null&&a.$$typeof===_)return"<...>";try{var g=e(a);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function n(){var a=Z.A;return a===null?null:a.getOwner()}function s(){return Error("react-stack-top-frame")}function d(a){if(Q.call(a,"key")){var g=Object.getOwnPropertyDescriptor(a,"key").get;if(g&&g.isReactWarning)return!1}return a.key!==void 0}function f(a,g){function w(){K||(K=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}w.isReactWarning=!0,Object.defineProperty(a,"key",{get:w,configurable:!0})}function u(){var a=e(this.type);return H[a]||(H[a]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),a=this.props.ref,a!==void 0?a:null}function l(a,g,w,k,j,A,ee,C){return w=A.ref,a={$$typeof:p,type:a,key:g,props:A,_owner:j},(w!==void 0?w:null)!==null?Object.defineProperty(a,"ref",{enumerable:!1,get:u}):Object.defineProperty(a,"ref",{enumerable:!1,value:null}),a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(a,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(a,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.defineProperty(a,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:C}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a}function m(a,g,w,k,j,A,ee,C){var N=g.children;if(N!==void 0)if(k)if(he(N)){for(k=0;k<N.length;k++)c(N[k]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(N);if(Q.call(g,"key")){N=e(a);var V=Object.keys(g).filter(function(ue){return ue!=="key"});k=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",se[N+k]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
39
+ let props = %s;
40
+ <%s {...props} />
41
+ React keys must be passed directly to JSX without using spread:
42
+ let props = %s;
43
+ <%s key={someKey} {...props} />`,k,N,V,N),se[N+k]=!0)}if(N=null,w!==void 0&&(t(w),N=""+w),d(g)&&(t(g.key),N=""+g.key),"key"in g){w={};for(var q in g)q!=="key"&&(w[q]=g[q])}else w=g;return N&&f(w,typeof a=="function"?a.displayName||a.name||"Unknown":a),l(a,N,A,j,n(),w,ee,C)}function c(a){typeof a=="object"&&a!==null&&a.$$typeof===p&&a._store&&(a._store.validated=1)}var i=O,p=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),P=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),Z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,he=Array.isArray,J=console.createTask?console.createTask:function(){return null};i={react_stack_bottom_frame:function(a){return a()}};var K,H={},W=i.react_stack_bottom_frame.bind(i,s)(),x=J(o(s)),se={};ke.Fragment=v,ke.jsx=function(a,g,w,k,j){var A=1e4>Z.recentlyCreatedOwnerStacks++;return m(a,g,w,!1,k,j,A?Error("react-stack-top-frame"):W,A?J(o(a)):x)},ke.jsxs=function(a,g,w,k,j){var A=1e4>Z.recentlyCreatedOwnerStacks++;return m(a,g,w,!0,k,j,A?Error("react-stack-top-frame"):W,A?J(o(a)):x)}})()),ke}var rt;function fr(){return rt||(rt=1,process.env.NODE_ENV==="production"?De.exports=ur():De.exports=dr()),De.exports}var L=fr();function pr(e,r=[]){let t=[];function o(s,d){const f=S.createContext(d),u=t.length;t=[...t,d];const l=c=>{const{scope:i,children:p,...b}=c,v=i?.[e]?.[u]||f,R=S.useMemo(()=>b,Object.values(b));return L.jsx(v.Provider,{value:R,children:p})};l.displayName=s+"Provider";function m(c,i){const p=i?.[e]?.[u]||f,b=S.useContext(p);if(b)return b;if(d!==void 0)return d;throw new Error(`\`${c}\` must be used within \`${s}\``)}return[l,m]}const n=()=>{const s=t.map(d=>S.createContext(d));return function(d){const f=d?.[e]||s;return S.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return n.scopeName=e,[o,mr(n,...r)]}function mr(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(n){const s=o.reduce((d,{useScope:f,scopeName:u})=>{const l=f(n)[`__scope${u}`];return{...d,...l}},{});return S.useMemo(()=>({[`__scope${r.scopeName}`]:s}),[s])}};return t.scopeName=r.scopeName,t}function gr(e){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useMemo(()=>(...t)=>r.current?.(...t),[])}var Pe=globalThis?.document?S.useLayoutEffect:()=>{},Oe={exports:{}},I={};/**
44
+ * @license React
45
+ * react-dom.production.js
46
+ *
47
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */var ot;function hr(){if(ot)return I;ot=1;var e=O;function r(u){var l="https://react.dev/errors/"+u;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)l+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+u+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var o={d:{f:t,r:function(){throw Error(r(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},n=Symbol.for("react.portal");function s(u,l,m){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:c==null?null:""+c,children:u,containerInfo:l,implementation:m}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(u,l){if(u==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return I.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,I.createPortal=function(u,l){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(r(299));return s(u,l,null,m)},I.flushSync=function(u){var l=d.T,m=o.p;try{if(d.T=null,o.p=2,u)return u()}finally{d.T=l,o.p=m,o.d.f()}},I.preconnect=function(u,l){typeof u=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,o.d.C(u,l))},I.prefetchDNS=function(u){typeof u=="string"&&o.d.D(u)},I.preinit=function(u,l){if(typeof u=="string"&&l&&typeof l.as=="string"){var m=l.as,c=f(m,l.crossOrigin),i=typeof l.integrity=="string"?l.integrity:void 0,p=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;m==="style"?o.d.S(u,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:c,integrity:i,fetchPriority:p}):m==="script"&&o.d.X(u,{crossOrigin:c,integrity:i,fetchPriority:p,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},I.preinitModule=function(u,l){if(typeof u=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var m=f(l.as,l.crossOrigin);o.d.M(u,{crossOrigin:m,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&o.d.M(u)},I.preload=function(u,l){if(typeof u=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var m=l.as,c=f(m,l.crossOrigin);o.d.L(u,m,{crossOrigin:c,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},I.preloadModule=function(u,l){if(typeof u=="string")if(l){var m=f(l.as,l.crossOrigin);o.d.m(u,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:m,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else o.d.m(u)},I.requestFormReset=function(u){o.d.r(u)},I.unstable_batchedUpdates=function(u,l){return u(l)},I.useFormState=function(u,l,m){return d.H.useFormState(u,l,m)},I.useFormStatus=function(){return d.H.useHostTransitionStatus()},I.version="19.1.1",I}var F={};/**
52
+ * @license React
53
+ * react-dom.development.js
54
+ *
55
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE file in the root directory of this source tree.
59
+ */var nt;function yr(){return nt||(nt=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function r(c){return""+c}function t(c,i,p){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(b);var v=!1}catch{v=!0}return v&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object"),r(b)),{$$typeof:l,key:b==null?null:""+b,children:c,containerInfo:i,implementation:p}}function o(c,i){if(c==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}function n(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function s(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":typeof c=="string"?JSON.stringify(c):typeof c=="number"?"`"+c+"`":'something with type "'+typeof c+'"'}function d(){var c=m.H;return c===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
60
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
61
+ 2. You might be breaking the Rules of Hooks
62
+ 3. You might have more than one copy of React in the same app
63
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var f=O,u={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},l=Symbol.for("react.portal"),m=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),F.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,F.createPortal=function(c,i){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error("Target container is not a DOM element.");return t(c,i,null,p)},F.flushSync=function(c){var i=m.T,p=u.p;try{if(m.T=null,u.p=2,c)return c()}finally{m.T=i,u.p=p,u.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},F.preconnect=function(c,i){typeof c=="string"&&c?i!=null&&typeof i!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(i)):i!=null&&typeof i.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",n(i.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",n(c)),typeof c=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,u.d.C(c,i))},F.prefetchDNS=function(c){if(typeof c!="string"||!c)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",n(c));else if(1<arguments.length){var i=arguments[1];typeof i=="object"&&i.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(i)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(i))}typeof c=="string"&&u.d.D(c)},F.preinit=function(c,i){if(typeof c=="string"&&c?i==null||typeof i!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(i)):i.as!=="style"&&i.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(i.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",n(c)),typeof c=="string"&&i&&typeof i.as=="string"){var p=i.as,b=o(p,i.crossOrigin),v=typeof i.integrity=="string"?i.integrity:void 0,R=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;p==="style"?u.d.S(c,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:R}):p==="script"&&u.d.X(c,{crossOrigin:b,integrity:v,fetchPriority:R,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},F.preinitModule=function(c,i){var p="";if(typeof c=="string"&&c||(p+=" The `href` argument encountered was "+n(c)+"."),i!==void 0&&typeof i!="object"?p+=" The `options` argument encountered was "+n(i)+".":i&&"as"in i&&i.as!=="script"&&(p+=" The `as` option encountered was "+s(i.as)+"."),p)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",p);else switch(p=i&&typeof i.as=="string"?i.as:"script",p){case"script":break;default:p=s(p),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',p,c)}typeof c=="string"&&(typeof i=="object"&&i!==null?(i.as==null||i.as==="script")&&(p=o(i.as,i.crossOrigin),u.d.M(c,{crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})):i==null&&u.d.M(c))},F.preload=function(c,i){var p="";if(typeof c=="string"&&c||(p+=" The `href` argument encountered was "+n(c)+"."),i==null||typeof i!="object"?p+=" The `options` argument encountered was "+n(i)+".":typeof i.as=="string"&&i.as||(p+=" The `as` option encountered was "+n(i.as)+"."),p&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',p),typeof c=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){p=i.as;var b=o(p,i.crossOrigin);u.d.L(c,p,{crossOrigin:b,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},F.preloadModule=function(c,i){var p="";typeof c=="string"&&c||(p+=" The `href` argument encountered was "+n(c)+"."),i!==void 0&&typeof i!="object"?p+=" The `options` argument encountered was "+n(i)+".":i&&"as"in i&&typeof i.as!="string"&&(p+=" The `as` option encountered was "+n(i.as)+"."),p&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',p),typeof c=="string"&&(i?(p=o(i.as,i.crossOrigin),u.d.m(c,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0})):u.d.m(c))},F.requestFormReset=function(c){u.d.r(c)},F.unstable_batchedUpdates=function(c,i){return c(i)},F.useFormState=function(c,i,p){return d().useFormState(c,i,p)},F.useFormStatus=function(){return d().useHostTransitionStatus()},F.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),F}var st;function br(){if(st)return Oe.exports;st=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}}return process.env.NODE_ENV==="production"?(e(),Oe.exports=hr()):Oe.exports=yr(),Oe.exports}br();function at(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function vr(...e){return r=>{let t=!1;const o=e.map(n=>{const s=at(n,r);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let n=0;n<o.length;n++){const s=o[n];typeof s=="function"?s():at(e[n],null)}}}}function it(e){const r=xr(e),t=S.forwardRef((o,n)=>{const{children:s,...d}=o,f=S.Children.toArray(s),u=f.find(wr);if(u){const l=u.props.children,m=f.map(c=>c===u?S.Children.count(l)>1?S.Children.only(null):S.isValidElement(l)?l.props.children:null:c);return L.jsx(r,{...d,ref:n,children:S.isValidElement(l)?S.cloneElement(l,void 0,m):null})}return L.jsx(r,{...d,ref:n,children:s})});return t.displayName=`${e}.Slot`,t}var lt=it("Slot");function xr(e){const r=S.forwardRef((t,o)=>{const{children:n,...s}=t;if(S.isValidElement(n)){const d=Or(n),f=kr(s,n.props);return n.type!==S.Fragment&&(f.ref=o?vr(o,d):d),S.cloneElement(n,f)}return S.Children.count(n)>1?S.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var _r=Symbol("radix.slottable");function wr(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_r}function kr(e,r){const t={...r};for(const o in r){const n=e[o],s=r[o];/^on[A-Z]/.test(o)?n&&s?t[o]=(...d)=>{const f=s(...d);return n(...d),f}:n&&(t[o]=n):o==="style"?t[o]={...n,...s}:o==="className"&&(t[o]=[n,s].filter(Boolean).join(" "))}return{...e,...t}}function Or(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Sr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Se=Sr.reduce((e,r)=>{const t=it(`Primitive.${r}`),o=S.forwardRef((n,s)=>{const{asChild:d,...f}=n,u=d?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),L.jsx(u,{...f,ref:s})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),Le={exports:{}},Me={};/**
64
+ * @license React
65
+ * use-sync-external-store-shim.production.js
66
+ *
67
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
68
+ *
69
+ * This source code is licensed under the MIT license found in the
70
+ * LICENSE file in the root directory of this source tree.
71
+ */var ct;function Er(){if(ct)return Me;ct=1;var e=O;function r(c,i){return c===i&&(c!==0||1/c===1/i)||c!==c&&i!==i}var t=typeof Object.is=="function"?Object.is:r,o=e.useState,n=e.useEffect,s=e.useLayoutEffect,d=e.useDebugValue;function f(c,i){var p=i(),b=o({inst:{value:p,getSnapshot:i}}),v=b[0].inst,R=b[1];return s(function(){v.value=p,v.getSnapshot=i,u(v)&&R({inst:v})},[c,p,i]),n(function(){return u(v)&&R({inst:v}),c(function(){u(v)&&R({inst:v})})},[c]),d(p),p}function u(c){var i=c.getSnapshot;c=c.value;try{var p=i();return!t(c,p)}catch{return!0}}function l(c,i){return i()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:f;return Me.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Me}var ut={};/**
72
+ * @license React
73
+ * use-sync-external-store-shim.development.js
74
+ *
75
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
76
+ *
77
+ * This source code is licensed under the MIT license found in the
78
+ * LICENSE file in the root directory of this source tree.
79
+ */var dt;function Nr(){return dt||(dt=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}function r(p,b){m||n.startTransition===void 0||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=b();if(!c){var R=b();s(v,R)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}R=d({inst:{value:v,getSnapshot:b}});var D=R[0].inst,G=R[1];return u(function(){D.value=v,D.getSnapshot=b,t(D)&&G({inst:D})},[p,v,b]),f(function(){return t(D)&&G({inst:D}),p(function(){t(D)&&G({inst:D})})},[p]),l(v),v}function t(p){var b=p.getSnapshot;p=p.value;try{var v=b();return!s(p,v)}catch{return!0}}function o(p,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=O,s=typeof Object.is=="function"?Object.is:e,d=n.useState,f=n.useEffect,u=n.useLayoutEffect,l=n.useDebugValue,m=!1,c=!1,i=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;ut.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:i,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ut}var ft;function Rr(){return ft||(ft=1,process.env.NODE_ENV==="production"?Le.exports=Er():Le.exports=Nr()),Le.exports}var jr=Rr();function Tr(){return jr.useSyncExternalStore(Ar,()=>!0,()=>!1)}function Ar(){return()=>{}}var Ve="Avatar",[Cr,nn]=pr(Ve),[Dr,pt]=Cr(Ve),Pr=S.forwardRef((e,r)=>{const{__scopeAvatar:t,...o}=e,[n,s]=S.useState("idle");return L.jsx(Dr,{scope:t,imageLoadingStatus:n,onImageLoadingStatusChange:s,children:L.jsx(Se.span,{...o,ref:r})})});Pr.displayName=Ve;var mt="AvatarImage",Lr=S.forwardRef((e,r)=>{const{__scopeAvatar:t,src:o,onLoadingStatusChange:n=()=>{},...s}=e,d=pt(mt,t),f=Vr(o,s),u=gr(l=>{n(l),d.onImageLoadingStatusChange(l)});return Pe(()=>{f!=="idle"&&u(f)},[f,u]),f==="loaded"?L.jsx(Se.img,{...s,ref:r,src:o}):null});Lr.displayName=mt;var gt="AvatarFallback",Mr=S.forwardRef((e,r)=>{const{__scopeAvatar:t,delayMs:o,...n}=e,s=pt(gt,t),[d,f]=S.useState(o===void 0);return S.useEffect(()=>{if(o!==void 0){const u=window.setTimeout(()=>f(!0),o);return()=>window.clearTimeout(u)}},[o]),d&&s.imageLoadingStatus!=="loaded"?L.jsx(Se.span,{...n,ref:r}):null});Mr.displayName=gt;function ht(e,r){return e?r?(e.src!==r&&(e.src=r),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Vr(e,{referrerPolicy:r,crossOrigin:t}){const o=Tr(),n=S.useRef(null),s=o?(n.current||(n.current=new window.Image),n.current):null,[d,f]=S.useState(()=>ht(s,e));return Pe(()=>{f(ht(s,e))},[s,e]),Pe(()=>{const u=c=>()=>{f(c)};if(!s)return;const l=u("loaded"),m=u("error");return s.addEventListener("load",l),s.addEventListener("error",m),r&&(s.referrerPolicy=r),typeof t=="string"&&(s.crossOrigin=t),()=>{s.removeEventListener("load",l),s.removeEventListener("error",m)}},[s,t,r]),d}function yt(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(r=0;r<n;r++)e[r]&&(t=yt(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function bt(){for(var e,r,t=0,o="",n=arguments.length;t<n;t++)(e=arguments[t])&&(r=yt(e))&&(o&&(o+=" "),o+=r);return o}const ze="-",zr=e=>{const r=$r(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{const s=n.split(ze);return s[0]===""&&s.length!==1&&s.shift(),vt(s,r)||Ir(n)},getConflictingClassGroupIds:(n,s)=>{const d=t[n]||[];return s&&o[n]?[...d,...o[n]]:d}}},vt=(e,r)=>{if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),n=o?vt(e.slice(1),o):void 0;if(n)return n;if(r.validators.length===0)return;const s=e.join(ze);return r.validators.find(({validator:d})=>d(s))?.classGroupId},xt=/^\[(.+)\]$/,Ir=e=>{if(xt.test(e)){const r=xt.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},$r=e=>{const{theme:r,classGroups:t}=e,o={nextPart:new Map,validators:[]};for(const n in t)Ie(t[n],o,n,r);return o},Ie=(e,r,t,o)=>{e.forEach(n=>{if(typeof n=="string"){const s=n===""?r:_t(r,n);s.classGroupId=t;return}if(typeof n=="function"){if(Fr(n)){Ie(n(o),r,t,o);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,d])=>{Ie(d,_t(r,s),t,o)})})},_t=(e,r)=>{let t=e;return r.split(ze).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},Fr=e=>e.isThemeGetter,Gr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const n=(s,d)=>{t.set(s,d),r++,r>e&&(r=0,o=t,t=new Map)};return{get(s){let d=t.get(s);if(d!==void 0)return d;if((d=o.get(s))!==void 0)return n(s,d),d},set(s,d){t.has(s)?t.set(s,d):n(s,d)}}},$e="!",Fe=":",Ur=Fe.length,Hr=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=n=>{const s=[];let d=0,f=0,u=0,l;for(let b=0;b<n.length;b++){let v=n[b];if(d===0&&f===0){if(v===Fe){s.push(n.slice(u,b)),u=b+Ur;continue}if(v==="/"){l=b;continue}}v==="["?d++:v==="]"?d--:v==="("?f++:v===")"&&f--}const m=s.length===0?n:n.substring(u),c=Br(m),i=c!==m,p=l&&l>u?l-u:void 0;return{modifiers:s,hasImportantModifier:i,baseClassName:c,maybePostfixModifierPosition:p}};if(r){const n=r+Fe,s=o;o=d=>d.startsWith(n)?s(d.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(t){const n=o;o=s=>t({className:s,parseClassName:n})}return o},Br=e=>e.endsWith($e)?e.substring(0,e.length-1):e.startsWith($e)?e.substring(1):e,Yr=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(t=>[t,!0]));return t=>{if(t.length<=1)return t;const o=[];let n=[];return t.forEach(s=>{s[0]==="["||r[s]?(o.push(...n.sort(),s),n=[]):n.push(s)}),o.push(...n.sort()),o}},Wr=e=>({cache:Gr(e.cacheSize),parseClassName:Hr(e),sortModifiers:Yr(e),...zr(e)}),Kr=/\s+/,qr=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:s}=r,d=[],f=e.trim().split(Kr);let u="";for(let l=f.length-1;l>=0;l-=1){const m=f[l],{isExternal:c,modifiers:i,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:v}=t(m);if(c){u=m+(u.length>0?" "+u:u);continue}let R=!!v,D=o(R?b.substring(0,v):b);if(!D){if(!R){u=m+(u.length>0?" "+u:u);continue}if(D=o(b),!D){u=m+(u.length>0?" "+u:u);continue}R=!1}const G=s(i).join(":"),P=p?G+$e:G,z=P+D;if(d.includes(z))continue;d.push(z);const U=n(D,R);for(let $=0;$<U.length;++$){const X=U[$];d.push(P+X)}u=m+(u.length>0?" "+u:u)}return u};function Xr(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=wt(r))&&(o&&(o+=" "),o+=t);return o}const wt=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=wt(e[o]))&&(t&&(t+=" "),t+=r);return t};function Jr(e,...r){let t,o,n,s=d;function d(u){const l=r.reduce((m,c)=>c(m),e());return t=Wr(l),o=t.cache.get,n=t.cache.set,s=f,f(u)}function f(u){const l=o(u);if(l)return l;const m=qr(u,t);return n(u,m),m}return function(){return s(Xr.apply(null,arguments))}}const M=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},kt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ot=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zr=/^\d+\/\d+$/,Qr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ro=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=e=>Zr.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),ne=e=>!!e&&Number.isInteger(Number(e)),Ge=e=>e.endsWith("%")&&E(e.slice(0,-1)),re=e=>Qr.test(e),no=()=>!0,so=e=>eo.test(e)&&!to.test(e),St=()=>!1,ao=e=>ro.test(e),io=e=>oo.test(e),lo=e=>!h(e)&&!y(e),co=e=>fe(e,Tt,St),h=e=>kt.test(e),ae=e=>fe(e,At,so),Ue=e=>fe(e,go,E),Et=e=>fe(e,Rt,St),uo=e=>fe(e,jt,io),Ee=e=>fe(e,Ct,ao),y=e=>Ot.test(e),xe=e=>pe(e,At),fo=e=>pe(e,ho),Nt=e=>pe(e,Rt),po=e=>pe(e,Tt),mo=e=>pe(e,jt),Ne=e=>pe(e,Ct,!0),fe=(e,r,t)=>{const o=kt.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},pe=(e,r,t=!1)=>{const o=Ot.exec(e);return o?o[1]?r(o[1]):t:!1},Rt=e=>e==="position"||e==="percentage",jt=e=>e==="image"||e==="url",Tt=e=>e==="length"||e==="size"||e==="bg-size",At=e=>e==="length",go=e=>e==="number",ho=e=>e==="family-name",Ct=e=>e==="shadow",yo=()=>{const e=M("color"),r=M("font"),t=M("text"),o=M("font-weight"),n=M("tracking"),s=M("leading"),d=M("breakpoint"),f=M("container"),u=M("spacing"),l=M("radius"),m=M("shadow"),c=M("inset-shadow"),i=M("text-shadow"),p=M("drop-shadow"),b=M("blur"),v=M("perspective"),R=M("aspect"),D=M("ease"),G=M("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...z(),y,h],$=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],_=()=>[y,h,u],Y=()=>[de,"full","auto",..._()],ge=()=>[ne,"none","subgrid",y,h],Z=()=>["auto",{span:["full",ne,y,h]},ne,y,h],Q=()=>[ne,"auto",y,h],he=()=>["auto","min","max","fr",y,h],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",..._()],W=()=>[de,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],x=()=>[e,y,h],se=()=>[...z(),Nt,Et,{position:[y,h]}],a=()=>["no-repeat",{repeat:["","x","y","space","round"]}],g=()=>["auto","cover","contain",po,co,{size:[y,h]}],w=()=>[Ge,xe,ae],k=()=>["","none","full",l,y,h],j=()=>["",E,xe,ae],A=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],C=()=>[E,Ge,Nt,Et],N=()=>["","none",b,y,h],V=()=>["none",E,y,h],q=()=>["none",E,y,h],ue=()=>[E,y,h],Ce=()=>[de,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[re],breakpoint:[re],color:[no],container:[re],"drop-shadow":[re],ease:["in","out","in-out"],font:[lo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[re],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[re],shadow:[re],spacing:["px",E],text:[re],"text-shadow":[re],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",de,h,y,R]}],container:["container"],columns:[{columns:[E,h,y,f]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[ne,"auto",y,h]}],basis:[{basis:[de,"full","auto",f,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,de,"auto","initial","none",h]}],grow:[{grow:["",E,y,h]}],shrink:[{shrink:["",E,y,h]}],order:[{order:[ne,"first","last","none",y,h]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[f,"screen",...W()]}],"min-w":[{"min-w":[f,"screen","none",...W()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[d]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",t,xe,ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,y,Ue]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ge,h]}],"font-family":[{font:[fo,h,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,y,h]}],"line-clamp":[{"line-clamp":[E,"none",y,Ue]}],leading:[{leading:[s,..._()]}],"list-image":[{"list-image":["none",y,h]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",y,h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",y,ae]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[E,"auto",y,h]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y,h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",y,h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:a()}],"bg-size":[{bg:g()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ne,y,h],radial:["",y,h],conic:[ne,y,h]},mo,uo]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:w()}],"gradient-via-pos":[{via:w()}],"gradient-to-pos":[{to:w()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A(),"hidden","none"]}],"divide-style":[{divide:[...A(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...A(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,y,h]}],"outline-w":[{outline:["",E,xe,ae]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",m,Ne,Ee]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",c,Ne,Ee]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[E,ae]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",i,Ne,Ee]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[E,y,h]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":C()}],"mask-image-linear-to-pos":[{"mask-linear-to":C()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":C()}],"mask-image-t-to-pos":[{"mask-t-to":C()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":C()}],"mask-image-r-to-pos":[{"mask-r-to":C()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":C()}],"mask-image-b-to-pos":[{"mask-b-to":C()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":C()}],"mask-image-l-to-pos":[{"mask-l-to":C()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":C()}],"mask-image-x-to-pos":[{"mask-x-to":C()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":C()}],"mask-image-y-to-pos":[{"mask-y-to":C()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[y,h]}],"mask-image-radial-from-pos":[{"mask-radial-from":C()}],"mask-image-radial-to-pos":[{"mask-radial-to":C()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":C()}],"mask-image-conic-to-pos":[{"mask-conic-to":C()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:a()}],"mask-size":[{mask:g()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",y,h]}],filter:[{filter:["","none",y,h]}],blur:[{blur:N()}],brightness:[{brightness:[E,y,h]}],contrast:[{contrast:[E,y,h]}],"drop-shadow":[{"drop-shadow":["","none",p,Ne,Ee]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",E,y,h]}],"hue-rotate":[{"hue-rotate":[E,y,h]}],invert:[{invert:["",E,y,h]}],saturate:[{saturate:[E,y,h]}],sepia:[{sepia:["",E,y,h]}],"backdrop-filter":[{"backdrop-filter":["","none",y,h]}],"backdrop-blur":[{"backdrop-blur":N()}],"backdrop-brightness":[{"backdrop-brightness":[E,y,h]}],"backdrop-contrast":[{"backdrop-contrast":[E,y,h]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,y,h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,y,h]}],"backdrop-invert":[{"backdrop-invert":["",E,y,h]}],"backdrop-opacity":[{"backdrop-opacity":[E,y,h]}],"backdrop-saturate":[{"backdrop-saturate":[E,y,h]}],"backdrop-sepia":[{"backdrop-sepia":["",E,y,h]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",y,h]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",y,h]}],ease:[{ease:["linear","initial",D,y,h]}],delay:[{delay:[E,y,h]}],animate:[{animate:["none",G,y,h]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,y,h]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:V()}],"rotate-x":[{"rotate-x":V()}],"rotate-y":[{"rotate-y":V()}],"rotate-z":[{"rotate-z":V()}],scale:[{scale:q()}],"scale-x":[{"scale-x":q()}],"scale-y":[{"scale-y":q()}],"scale-z":[{"scale-z":q()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[y,h,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y,h]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",y,h]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[E,xe,ae,Ue]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bo=Jr(yo);function oe(...e){return bo(bt(e))}const Dt=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Pt=bt,vo=((e,r)=>t=>{var o;if(r?.variants==null)return Pt(e,t?.class,t?.className);const{variants:n,defaultVariants:s}=r,d=Object.keys(n).map(l=>{const m=t?.[l],c=s?.[l];if(m===null)return null;const i=Dt(m)||Dt(c);return n[l][i]}),f=t&&Object.entries(t).reduce((l,m)=>{let[c,i]=m;return i===void 0||(l[c]=i),l},{}),u=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((l,m)=>{let{class:c,className:i,...p}=m;return Object.entries(p).every(b=>{let[v,R]=b;return Array.isArray(R)?R.includes({...s,...f}[v]):{...s,...f}[v]===R})?[...l,c,i]:l},[]);return Pt(e,d,u,t?.class,t?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function xo({className:e,variant:r,size:t,asChild:o=!1,...n}){const s=o?lt:"button";return L.jsx(s,{"data-slot":"button",className:oe(vo({variant:r,size:t,className:e})),...n})}function _o({className:e,...r}){return L.jsx("div",{"data-slot":"card",className:oe("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})}function wo({className:e,...r}){return L.jsx("div",{"data-slot":"card-header",className:oe("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function ko({className:e,...r}){return L.jsx("div",{"data-slot":"card-title",className:oe("leading-none font-semibold",e),...r})}function Oo({className:e,...r}){return L.jsx("div",{"data-slot":"card-description",className:oe("text-muted-foreground text-sm",e),...r})}function So({className:e,...r}){return L.jsx("div",{"data-slot":"card-content",className:oe("px-6",e),...r})}var Eo="Label",Lt=S.forwardRef((e,r)=>L.jsx(Se.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Lt.displayName=Eo;var No=Lt,Ro=e=>e.type==="checkbox",_e=e=>e instanceof Date,He=e=>e==null;const Mt=e=>typeof e=="object";var ie=e=>!He(e)&&!Array.isArray(e)&&Mt(e)&&!_e(e),jo=e=>ie(e)&&e.target?Ro(e.target)?e.target.checked:e.target.value:e,To=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ao=(e,r)=>e.has(To(r)),Co=e=>{const r=e.constructor&&e.constructor.prototype;return ie(r)&&r.hasOwnProperty("isPrototypeOf")},Do=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vt(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Do&&(e instanceof Blob||o))&&(t||ie(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Co(e))r=e;else for(const n in e)e.hasOwnProperty(n)&&(r[n]=Vt(e[n]));else return e;return r}var zt=e=>/^\w*$/.test(e),Be=e=>e===void 0,Po=e=>Array.isArray(e)?e.filter(Boolean):[],It=e=>Po(e.replace(/["|']|\]/g,"").split(/\.|\[/)),B=(e,r,t)=>{if(!r||!ie(e))return t;const o=(zt(r)?[r]:It(r)).reduce((n,s)=>He(n)?n:n[s],e);return Be(o)||o===e?Be(e[r])?t:e[r]:o},Ye=e=>typeof e=="boolean",$t=(e,r,t)=>{let o=-1;const n=zt(r)?[r]:It(r),s=n.length,d=s-1;for(;++o<s;){const f=n[o];let u=t;if(o!==d){const l=e[f];u=ie(l)||Array.isArray(l)?l:isNaN(+n[o+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;e[f]=u,e=e[f]}};const Ft={BLUR:"blur",CHANGE:"change"},Gt={all:"all"},We=O.createContext(null);We.displayName="HookFormContext";const Re=()=>O.useContext(We),Lo=e=>{const{children:r,...t}=e;return O.createElement(We.Provider,{value:t},r)};var Mo=(e,r,t,o=!0)=>{const n={defaultValues:r._defaultValues};for(const s in e)Object.defineProperty(n,s,{get:()=>{const d=s;return r._proxyFormState[d]!==Gt.all&&(r._proxyFormState[d]=!o||Gt.all),t&&(t[d]=!0),e[d]}});return n};const Ut=typeof window<"u"?O.useLayoutEffect:O.useEffect;function Ht(e){const r=Re(),{control:t=r.control,disabled:o,name:n,exact:s}=e||{},[d,f]=O.useState(t._formState),u=O.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ut(()=>t._subscribe({name:n,formState:u.current,exact:s,callback:l=>{!o&&f({...t._formState,...l})}}),[n,o,s]),O.useEffect(()=>{u.current.isValid&&t._setValid(!0)},[t]),O.useMemo(()=>Mo(d,t,u.current,!1),[d,t])}var Vo=e=>typeof e=="string",zo=(e,r,t,o,n)=>Vo(e)?B(t,e,n):Array.isArray(e)?e.map(s=>B(t,s)):t,Bt=e=>He(e)||!Mt(e);function Yt(e,r,t=new WeakSet){if(Bt(e)||Bt(r))return e===r;if(_e(e)&&_e(r))return e.getTime()===r.getTime();const o=Object.keys(e),n=Object.keys(r);if(o.length!==n.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const s of o){const d=e[s];if(!n.includes(s))return!1;if(s!=="ref"){const f=r[s];if(_e(d)&&_e(f)||ie(d)&&ie(f)||Array.isArray(d)&&Array.isArray(f)?!Yt(d,f,t):d!==f)return!1}}return!0}function Io(e){const r=Re(),{control:t=r.control,name:o,defaultValue:n,disabled:s,exact:d,compute:f}=e||{},u=O.useRef(n),l=O.useRef(f),m=O.useRef(void 0);l.current=f;const c=O.useMemo(()=>t._getWatch(o,u.current),[t,o]),[i,p]=O.useState(l.current?l.current(c):c);return Ut(()=>t._subscribe({name:o,formState:{values:!0},exact:d,callback:b=>{if(!s){const v=zo(o,t._names,b.values||t._formValues,!1,u.current);if(l.current){const R=l.current(v);Yt(R,m.current)||(p(R),m.current=R)}else p(v)}}}),[t,s,o,d]),O.useEffect(()=>t._removeUnmounted()),i}function $o(e){const r=Re(),{name:t,disabled:o,control:n=r.control,shouldUnregister:s,defaultValue:d}=e,f=Ao(n._names.array,t),u=O.useMemo(()=>B(n._formValues,t,B(n._defaultValues,t,d)),[n,t,d]),l=Io({control:n,name:t,defaultValue:u,exact:!0}),m=Ht({control:n,name:t,exact:!0}),c=O.useRef(e),i=O.useRef(void 0),p=O.useRef(n.register(t,{...e.rules,value:l,...Ye(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const b=O.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B(m.errors,t)},isDirty:{enumerable:!0,get:()=>!!B(m.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!B(m.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!B(m.validatingFields,t)},error:{enumerable:!0,get:()=>B(m.errors,t)}}),[m,t]),v=O.useCallback(P=>p.current.onChange({target:{value:jo(P),name:t},type:Ft.CHANGE}),[t]),R=O.useCallback(()=>p.current.onBlur({target:{value:B(n._formValues,t),name:t},type:Ft.BLUR}),[t,n._formValues]),D=O.useCallback(P=>{const z=B(n._fields,t);z&&P&&(z._f.ref={focus:()=>P.focus&&P.focus(),select:()=>P.select&&P.select(),setCustomValidity:U=>P.setCustomValidity(U),reportValidity:()=>P.reportValidity()})},[n._fields,t]),G=O.useMemo(()=>({name:t,value:l,...Ye(o)||m.disabled?{disabled:m.disabled||o}:{},onChange:v,onBlur:R,ref:D}),[t,o,m.disabled,v,R,D,l]);return O.useEffect(()=>{const P=n._options.shouldUnregister||s,z=i.current;z&&z!==t&&!f&&n.unregister(z),n.register(t,{...c.current.rules,...Ye(c.current.disabled)?{disabled:c.current.disabled}:{}});const U=($,X)=>{const _=B(n._fields,$);_&&_._f&&(_._f.mount=X)};if(U(t,!0),P){const $=Vt(B(n._options.defaultValues,t));$t(n._defaultValues,t,$),Be(B(n._formValues,t))&&$t(n._formValues,t,$)}return!f&&n.register(t),i.current=t,()=>{(f?P&&!n._state.action:P)?n.unregister(t):U(t,!1)}},[t,n,f,s]),O.useEffect(()=>{n._setDisabledField({disabled:o,name:t})},[o,t,n]),O.useMemo(()=>({field:G,formState:m,fieldState:b}),[G,m,b])}const Fo=e=>e.render($o(e));function Wt({className:e,...r}){return L.jsx(No,{"data-slot":"label",className:oe("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}const Go=Lo,Kt=S.createContext({}),qt=({...e})=>L.jsx(Kt.Provider,{value:{name:e.name},children:L.jsx(Fo,{...e})}),Uo=()=>{const e=S.useContext(Kt),r=S.useContext(Xt),{getFieldState:t}=Re(),o=Ht({name:e.name}),n=t(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=r;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...n}},Xt=S.createContext({});function Jt({className:e,...r}){const t=S.useId();return L.jsx(Xt.Provider,{value:{id:t},children:L.jsx("div",{"data-slot":"form-item",className:oe("grid gap-2",e),...r})})}function Zt({...e}){const{error:r,formItemId:t,formDescriptionId:o,formMessageId:n}=Uo();return L.jsx(lt,{"data-slot":"form-control",id:t,"aria-describedby":r?`${o} ${n}`:`${o}`,"aria-invalid":!!r,...e})}function Qt({className:e,type:r,...t}){return L.jsx("input",{type:r,"data-slot":"input",className:oe("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...t})}/**
80
+ * @license lucide-react v0.544.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const Ho=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,t,o)=>o?o.toUpperCase():t.toLowerCase()),er=e=>{const r=Bo(e);return r.charAt(0).toUpperCase()+r.slice(1)},tr=(...e)=>e.filter((r,t,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===t).join(" ").trim(),Yo=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
85
+ * @license lucide-react v0.544.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */var Wo={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"};/**
90
+ * @license lucide-react v0.544.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const Ko=O.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:n="",children:s,iconNode:d,...f},u)=>O.createElement("svg",{ref:u,...Wo,width:r,height:r,stroke:e,strokeWidth:o?Number(t)*24/Number(r):t,className:tr("lucide",n),...!s&&!Yo(f)&&{"aria-hidden":"true"},...f},[...d.map(([l,m])=>O.createElement(l,m)),...Array.isArray(s)?s:[s]]));/**
95
+ * @license lucide-react v0.544.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const rr=(e,r)=>{const t=O.forwardRef(({className:o,...n},s)=>O.createElement(Ko,{ref:s,iconNode:r,className:tr(`lucide-${Ho(er(e))}`,`lucide-${e}`,o),...n}));return t.displayName=er(e),t};/**
100
+ * @license lucide-react v0.544.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const qo=rr("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"}]]);/**
105
+ * @license lucide-react v0.544.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const Xo=rr("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"}]]);function Jo(e){const[r,t]=O.useState(!1);return T.jsx("div",{className:"flex flex-col gap-6",children:T.jsxs(_o,{children:[T.jsxs(wo,{children:[T.jsx(ko,{className:"text-2xl",children:e.loginFormTitle}),T.jsx(Oo,{children:e.loginFormDescription})]}),T.jsx(So,{children:T.jsx(Go,{...e.form,children:T.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:T.jsxs("div",{className:"flex flex-col gap-6",children:[T.jsxs("div",{className:"grid gap-2",children:[T.jsx(Wt,{htmlFor:"email",children:e.emailLabel}),T.jsx(qt,{control:e.form.control,name:"email",render:({field:o})=>T.jsx(Jt,{children:T.jsx(Zt,{children:T.jsx(Qt,{id:"email",type:"email",placeholder:"m@example.com",required:!0,...o})})})})]}),T.jsxs("div",{className:"grid gap-2",children:[T.jsxs("div",{className:"flex items-center",children:[T.jsx(Wt,{htmlFor:"password",children:e.passwordLabel}),e.resetPasswordLinkComponent?e.resetPasswordLinkComponent():null]}),T.jsx(qt,{control:e.form.control,name:"password",render:({field:o})=>T.jsx(Jt,{children:T.jsx(Zt,{className:"relative",children:T.jsxs("div",{className:"relative",children:[r?T.jsx(qo,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{t(!1)}}):T.jsx(Xo,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{t(!0)}}),T.jsx(Qt,{type:r?"text":"password",placeholder:"********",...o,className:"pr-10"})]})})})})]}),T.jsx(xo,{type:"submit",className:"w-full",children:e.submitButtonLabel})]})})})})]})})}const me=new WeakMap,je=new WeakMap,Te={current:[]};let Ke=!1;const Ae=new Set,or=new Map;function nr(e){const r=Array.from(e).sort((t,o)=>t instanceof le&&t.options.deps.includes(o)?1:o instanceof le&&o.options.deps.includes(t)?-1:0);for(const t of r){if(Te.current.includes(t))continue;Te.current.push(t),t.recompute();const o=je.get(t);if(o)for(const n of o){const s=me.get(n);s&&nr(s)}}}function Zo(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function Qo(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function en(e){if(Ae.add(e),!Ke)try{for(Ke=!0;Ae.size>0;){const r=Array.from(Ae);Ae.clear();for(const t of r){const o=or.get(t)??t.prevState;t.prevState=o,Zo(t)}for(const t of r){const o=me.get(t);o&&(Te.current.push(t),nr(o))}for(const t of r){const o=me.get(t);if(o)for(const n of o)Qo(n)}}}finally{Ke=!1,Te.current=[],or.clear()}}function tn(e){return typeof e=="function"}class qe{constructor(r,t){this.listeners=new Set,this.subscribe=o=>{var n,s;this.listeners.add(o);const d=(s=(n=this.options)==null?void 0:n.onSubscribe)==null?void 0:s.call(n,o,this);return()=>{this.listeners.delete(o),d?.()}},this.prevState=r,this.state=r,this.options=t}setState(r){var t,o,n;this.prevState=this.state,(t=this.options)!=null&&t.updateFn?this.state=this.options.updateFn(this.prevState)(r):tn(r)?this.state=r(this.prevState):this.state=r,(n=(o=this.options)==null?void 0:o.onUpdate)==null||n.call(o),en(this)}}class le{constructor(r){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const t=[],o=[];for(const n of this.options.deps)t.push(n.prevState),o.push(n.state);return this.lastSeenDepValues=o,{prevDepVals:t,currDepVals:o,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,o;this.prevState=this.state;const{prevDepVals:n,currDepVals:s,prevVal:d}=this.getDepVals();this.state=this.options.fn({prevDepVals:n,currDepVals:s,prevVal:d}),(o=(t=this.options).onUpdate)==null||o.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(const s of this.options.deps)s instanceof le&&s.checkIfRecalculationNeededDeeply();let t=!1;const o=this.lastSeenDepValues,{currDepVals:n}=this.getDepVals();for(let s=0;s<n.length;s++)if(n[s]!==o[s]){t=!0;break}t&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const t of this._subscriptions)t()}),this.subscribe=t=>{var o,n;this.listeners.add(t);const s=(n=(o=this.options).onSubscribe)==null?void 0:n.call(o,t,this);return()=>{this.listeners.delete(t),s?.()}},this.options=r,this.state=r.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(r=this.options.deps){for(const t of r)if(t instanceof le)t.registerOnGraph(),this.registerOnGraph(t.options.deps);else if(t instanceof qe){let o=me.get(t);o||(o=new Set,me.set(t,o)),o.add(this);let n=je.get(this);n||(n=new Set,je.set(this,n)),n.add(t)}}unregisterFromGraph(r=this.options.deps){for(const t of r)if(t instanceof le)this.unregisterFromGraph(t.options.deps);else if(t instanceof qe){const o=me.get(t);o&&o.delete(this);const n=je.get(this);n&&n.delete(t)}}}const Xe="Authorization",sr=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_active:!1},isAuthenticated:!1,isLoaded:!1}),ce=new qe(sr()),rn=new le({fn:()=>!!ce.state.user?.roles.find(e=>e.name==="admin"),deps:[ce]});class on{accountStore;httpClient;constructor(r){this.httpClient=r,this.accountStore=ce}initAuthData(){const r=localStorage.getItem("token");r&&(this.httpClient.defaults.headers.common[Xe]=r)}async load(){try{const{data:r}=await this.httpClient.get("/api/auth/account/me");ce.setState(()=>({user:r,isAuthenticated:!0,isLoaded:!0}))}catch{ce.setState(r=>({...r,isLoaded:!0}))}}async login(r){const t=await this.httpClient.post("/api/auth/account/login",r),{user:o,access_token:n}=t.data;return o.is_active&&this._initUserData({user:o,access_token:n}),o}register(r){return this.httpClient.post("/api/auth/account/register",r)}async activate(r){const t=await this.httpClient.post("/api/auth/account/activate",r);this._initUserData(t.data)}logout(){ce.setState(()=>({...sr(),isLoaded:!0})),this._clearAuthData()}startResetPassword(r){return this.httpClient.post("/api/auth/account/start-reset-password",r)}async resetPassword(r){const t=await this.httpClient.post("/api/auth/account/reset-password",r);this._initUserData(t.data)}_initUserData({user:r,access_token:t}){this._setAuthData(t),ce.setState(()=>({user:r,isAuthenticated:!0,isLoaded:!0}))}_setAuthData(r){localStorage.setItem("token",r),this.httpClient.defaults.headers.common[Xe]=r}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[Xe]}}te.Auth=on,te.LoginForm=Jo,te.isAdmin=rn,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@service_laboratory/auth",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",