general-basic-form 2.1.1 → 2.1.3

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.
@@ -1,4 +1,4 @@
1
- (function(re,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],T):(re=typeof globalThis<"u"?globalThis:re||self,T(re.Index={},re.react))})(this,(function(re,T){"use strict";function Lr(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const M=Lr(T);var Se={exports:{}},pe={};/**
1
+ (function(ke,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],B):(ke=typeof globalThis<"u"?globalThis:ke||self,B(ke.Index={},ke.react))})(this,(function(ke,B){"use strict";function ps(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=ps(B);function ms(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gt={exports:{}},tt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Qe;function Br(){if(Qe)return pe;Qe=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,o,a){var c=null;if(a!==void 0&&(c=""+a),o.key!==void 0&&(c=""+o.key),"key"in o){a={};for(var u in o)u!=="key"&&(a[u]=o[u])}else a=o;return o=a.ref,{$$typeof:r,type:n,key:c,ref:o!==void 0?o:null,props:a}}return pe.Fragment=e,pe.jsx=t,pe.jsxs=t,pe}var ge={};/**
9
+ */var zr;function gs(){if(zr)return tt;zr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:s}}return tt.Fragment=t,tt.jsx=r,tt.jsxs=r,tt}var rt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Je;function Vr(){return Je||(Je=1,process.env.NODE_ENV!=="production"&&(function(){function r(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===J?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case w:return"Fragment";case B:return"Profiler";case N:return"StrictMode";case O:return"Suspense";case j:return"SuspenseList";case ae:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case v:return"Portal";case V:return f.displayName||"Context";case D:return(f._context.displayName||"Context")+".Consumer";case I:var k=f.render;return f=f.displayName,f||(f=k.displayName||k.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case b:return k=f.displayName||null,k!==null?k:r(f.type)||"Memo";case C:k=f._payload,f=f._init;try{return r(f(k))}catch{}}return null}function e(f){return""+f}function t(f){try{e(f);var k=!1}catch{k=!0}if(k){k=console;var S=k.error,E=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return S.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",E),e(f)}}function n(f){if(f===w)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===C)return"<...>";try{var k=r(f);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function o(){var f=U.A;return f===null?null:f.getOwner()}function a(){return Error("react-stack-top-frame")}function c(f){if(G.call(f,"key")){var k=Object.getOwnPropertyDescriptor(f,"key").get;if(k&&k.isReactWarning)return!1}return f.key!==void 0}function u(f,k){function S(){$||($=!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)",k))}S.isReactWarning=!0,Object.defineProperty(f,"key",{get:S,configurable:!0})}function l(){var f=r(this.type);return q[f]||(q[f]=!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.")),f=this.props.ref,f!==void 0?f:null}function i(f,k,S,E,Z,fe){var R=S.ref;return f={$$typeof:x,type:f,key:k,props:S,_owner:E},(R!==void 0?R:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:l}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:fe}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function m(f,k,S,E,Z,fe){var R=k.children;if(R!==void 0)if(E)if(X(R)){for(E=0;E<R.length;E++)d(R[E]);Object.freeze&&Object.freeze(R)}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 d(R);if(G.call(k,"key")){R=r(f);var ee=Object.keys(k).filter(function(me){return me!=="key"});E=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",_e[R+E]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var $r;function hs(){return $r||($r=1,process.env.NODE_ENV!=="production"&&(function(){function e(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===$?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case h:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case O:return"Suspense";case x:return"SuspenseList";case I:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case p:return"Portal";case R:return E.displayName||"Context";case S:return(E._context.displayName||"Context")+".Consumer";case k:var M=E.render;return E=E.displayName,E||(E=M.displayName||M.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case C:return M=E.displayName||null,M!==null?M:e(E.type)||"Memo";case T:M=E._payload,E=E._init;try{return e(E(M))}catch{}}return null}function t(E){return""+E}function r(E){try{t(E);var M=!1}catch{M=!0}if(M){M=console;var j=M.error,z=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return j.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",z),t(E)}}function n(E){if(E===h)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===T)return"<...>";try{var M=e(E);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function o(){var E=V.A;return E===null?null:E.getOwner()}function s(){return Error("react-stack-top-frame")}function i(E){if(H.call(E,"key")){var M=Object.getOwnPropertyDescriptor(E,"key").get;if(M&&M.isReactWarning)return!1}return E.key!==void 0}function a(E,M){function j(){D||(D=!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)",M))}j.isReactWarning=!0,Object.defineProperty(E,"key",{get:j,configurable:!0})}function c(){var E=e(this.type);return F[E]||(F[E]=!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.")),E=this.props.ref,E!==void 0?E:null}function l(E,M,j,z,ie,ue){var _=j.ref;return E={$$typeof:v,type:E,key:M,props:j,_owner:z},(_!==void 0?_:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:c}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function f(E,M,j,z,ie,ue){var _=M.children;if(_!==void 0)if(z)if(L(_)){for(z=0;z<_.length;z++)d(_[z]);Object.freeze&&Object.freeze(_)}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 d(_);if(H.call(M,"key")){_=e(E);var K=Object.keys(M).filter(function(G){return G!=="key"});z=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",ee[_+z]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,E,R,ee,R),_e[R+E]=!0)}if(R=null,S!==void 0&&(t(S),R=""+S),c(k)&&(t(k.key),R=""+k.key),"key"in k){S={};for(var se in k)se!=="key"&&(S[se]=k[se])}else S=k;return R&&u(S,typeof f=="function"?f.displayName||f.name||"Unknown":f),i(f,R,S,o(),Z,fe)}function d(f){s(f)?f._store&&(f._store.validated=1):typeof f=="object"&&f!==null&&f.$$typeof===C&&(f._payload.status==="fulfilled"?s(f._payload.value)&&f._payload.value._store&&(f._payload.value._store.validated=1):f._store&&(f._store.validated=1))}function s(f){return typeof f=="object"&&f!==null&&f.$$typeof===x}var p=T,x=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),V=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),J=Symbol.for("react.client.reference"),U=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,X=Array.isArray,K=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(f){return f()}};var $,q={},h=p.react_stack_bottom_frame.bind(p,a)(),ke=K(n(a)),_e={};ge.Fragment=w,ge.jsx=function(f,k,S){var E=1e4>U.recentlyCreatedOwnerStacks++;return m(f,k,S,!1,E?Error("react-stack-top-frame"):h,E?K(n(f)):ke)},ge.jsxs=function(f,k,S){var E=1e4>U.recentlyCreatedOwnerStacks++;return m(f,k,S,!0,E?Error("react-stack-top-frame"):h,E?K(n(f)):ke)}})()),ge}var Xe;function Fr(){return Xe||(Xe=1,process.env.NODE_ENV==="production"?Se.exports=Br():Se.exports=Vr()),Se.exports}var P=Fr(),Re={exports:{}},je={};/**
22
+ <%s key={someKey} {...props} />`,z,_,K,_),ee[_+z]=!0)}if(_=null,j!==void 0&&(r(j),_=""+j),i(M)&&(r(M.key),_=""+M.key),"key"in M){j={};for(var Q in M)Q!=="key"&&(j[Q]=M[Q])}else j=M;return _&&a(j,typeof E=="function"?E.displayName||E.name||"Unknown":E),l(E,_,j,o(),ie,ue)}function d(E){u(E)?E._store&&(E._store.validated=1):typeof E=="object"&&E!==null&&E.$$typeof===T&&(E._payload.status==="fulfilled"?u(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function u(E){return typeof E=="object"&&E!==null&&E.$$typeof===v}var m=B,v=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),V=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,L=Array.isArray,U=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(E){return E()}};var D,F={},P=m.react_stack_bottom_frame.bind(m,s)(),q=U(n(s)),ee={};rt.Fragment=h,rt.jsx=function(E,M,j){var z=1e4>V.recentlyCreatedOwnerStacks++;return f(E,M,j,!1,z?Error("react-stack-top-frame"):P,z?U(n(E)):q)},rt.jsxs=function(E,M,j){var z=1e4>V.recentlyCreatedOwnerStacks++;return f(E,M,j,!0,z?Error("react-stack-top-frame"):P,z?U(n(E)):q)}})()),rt}var Vr;function vs(){return Vr||(Vr=1,process.env.NODE_ENV==="production"?gt.exports=gs():gt.exports=hs()),gt.exports}var w=vs(),ht={exports:{}},Gt={};/**
23
23
  * @license React
24
24
  * react-compiler-runtime.production.js
25
25
  *
@@ -27,7 +27,7 @@ React keys must be passed directly to JSX without using spread:
27
27
  *
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
- */var Ze;function Gr(){if(Ze)return je;Ze=1;var r=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return je.c=function(e){return r.H.useMemoCache(e)},je}var Me={};/**
30
+ */var Wr;function ys(){if(Wr)return Gt;Wr=1;var e=B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Gt.c=function(t){return e.H.useMemoCache(t)},Gt}var qt={};/**
31
31
  * @license React
32
32
  * react-compiler-runtime.development.js
33
33
  *
@@ -35,36 +35,61 @@ React keys must be passed directly to JSX without using spread:
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var er;function $r(){return er||(er=1,process.env.NODE_ENV!=="production"&&(function(){var r=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Me.c=function(e){var t=r.H;return t===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:
38
+ */var Hr;function bs(){return Hr||(Hr=1,process.env.NODE_ENV!=="production"&&(function(){var e=B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;qt.c=function(t){var r=e.H;return r===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:
39
39
  1. You might have mismatching versions of React and the renderer (such as React DOM)
40
40
  2. You might be breaking the Rules of Hooks
41
41
  3. You might have more than one copy of React in the same app
42
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),t.useMemoCache(e)}})()),Me}var rr;function qr(){return rr||(rr=1,process.env.NODE_ENV==="production"?Re.exports=Gr():Re.exports=$r()),Re.exports}var Y=qr();const Ur=r=>{const{item:e,id:t=T.useId(),coms:{Input:n}}=r,{dispatchQueryParams:o,queryParams:a,message:c,formLoading:u}=T.useContext(jr);return P.jsx(n,{id:t,name:e.prop,value:a[e.prop]||"",disabled:u,onChange:l=>o({data:{[e.prop]:l.target.value}}),"aria-invalid":c?.[e.prop]&&c?.[e.prop].length>0,...e.setting})};/**
42
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(t)}})()),qt}var Ur;function ws(){return Ur||(Ur=1,process.env.NODE_ENV==="production"?ht.exports=ys():ht.exports=bs()),ht.exports}var re=ws();const xs=e=>{const{item:t,id:r=B.useId(),coms:{Input:n}}=e,{dispatchQueryParams:o,queryParams:s,message:i,formLoading:a}=B.useContext(Rt);return w.jsx(n,{id:r,name:t.prop,value:s[t.prop]||"",disabled:a,onChange:c=>o({data:{...s,[t.prop]:c.target.value}}),"aria-invalid":i?.[t.prop]&&i?.[t.prop].length>0,...t.setting})},Ss=e=>{const{item:t,id:r=B.useId(),coms:{Select:n,SelectTrigger:o,SelectValue:s,SelectContent:i,SelectGroup:a,SelectItem:c}}=e,{setting:l}=t,{dispatchQueryParams:f,queryParams:d,message:u,formLoading:m}=B.useContext(Rt);return w.jsxs(n,{name:t.prop,value:d[t.prop]||"",disabled:m,onChange:v=>f({data:{...d,[t.prop]:v.target.value}}),onValueChange:v=>f({data:{...d,[t.prop]:v}}),"aria-invalid":u?.[t.prop]&&u?.[t.prop].length>0,...t.setting,children:[w.jsx(o,{id:r,children:w.jsx(s,{placeholder:l.placeholder})}),w.jsx(i,{children:w.jsx(a,{children:(t.option||[]).map((v,p)=>w.jsx(c,{value:v.value,children:v.label},v.value))})})]})},Kr=e=>{const t=re.c(8),{coms:r,item:n,id:o,type:s}=e,i=s===void 0?"input":s;if(/^input$/i.test(i)){let a;return t[0]!==r||t[1]!==o||t[2]!==n?(a=w.jsx(xs,{id:o,coms:r,item:n}),t[0]=r,t[1]=o,t[2]=n,t[3]=a):a=t[3],a}if(/^select$/i.test(i)){let a;return t[4]!==r||t[5]!==o||t[6]!==n?(a=w.jsx(Ss,{id:o,coms:r,item:n}),t[4]=r,t[5]=o,t[6]=n,t[7]=a):a=t[7],a}};/**
43
43
  * @license lucide-react v0.547.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const Kr=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wr=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),tr=r=>{const e=Wr(r);return e.charAt(0).toUpperCase()+e.slice(1)},nr=(...r)=>r.filter((e,t,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===t).join(" ").trim(),Yr=r=>{for(const e in r)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
47
+ */const Es=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cs=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Gr=e=>{const t=Cs(e);return t.charAt(0).toUpperCase()+t.slice(1)},qr=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Rs=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
48
48
  * @license lucide-react v0.547.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
- */var Hr={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"};/**
52
+ */var Ps={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"};/**
53
53
  * @license lucide-react v0.547.0 - ISC
54
54
  *
55
55
  * This source code is licensed under the ISC license.
56
56
  * See the LICENSE file in the root directory of this source tree.
57
- */const Qr=T.forwardRef(({color:r="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:c,...u},l)=>T.createElement("svg",{ref:l,...Hr,width:e,height:e,stroke:r,strokeWidth:n?Number(t)*24/Number(e):t,className:nr("lucide",o),...!a&&!Yr(u)&&{"aria-hidden":"true"},...u},[...c.map(([i,m])=>T.createElement(i,m)),...Array.isArray(a)?a:[a]]));/**
57
+ */const ks=B.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:i,...a},c)=>B.createElement("svg",{ref:c,...Ps,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:qr("lucide",o),...!s&&!Rs(a)&&{"aria-hidden":"true"},...a},[...i.map(([l,f])=>B.createElement(l,f)),...Array.isArray(s)?s:[s]]));/**
58
58
  * @license lucide-react v0.547.0 - ISC
59
59
  *
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
- */const Jr=(r,e)=>{const t=T.forwardRef(({className:n,...o},a)=>T.createElement(Qr,{ref:a,iconNode:e,className:nr(`lucide-${Kr(tr(r))}`,`lucide-${r}`,n),...o}));return t.displayName=tr(r),t};/**
62
+ */const Ve=(e,t)=>{const r=B.forwardRef(({className:n,...o},s)=>B.createElement(ks,{ref:s,iconNode:t,className:qr(`lucide-${Es(Gr(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Gr(e),r};/**
63
63
  * @license lucide-react v0.547.0 - ISC
64
64
  *
65
65
  * This source code is licensed under the ISC license.
66
66
  * See the LICENSE file in the root directory of this source tree.
67
- */const Xr=Jr("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function or(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(e=0;e<o;e++)r[e]&&(t=or(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function ar(){for(var r,e,t=0,n="",o=arguments.length;t<o;t++)(r=arguments[t])&&(e=or(r))&&(n&&(n+=" "),n+=e);return n}const ze="-",Zr=r=>{const e=rt(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;return{getClassGroupId:c=>{const u=c.split(ze);return u[0]===""&&u.length!==1&&u.shift(),sr(u,e)||et(c)},getConflictingClassGroupIds:(c,u)=>{const l=t[c]||[];return u&&n[c]?[...l,...n[c]]:l}}},sr=(r,e)=>{if(r.length===0)return e.classGroupId;const t=r[0],n=e.nextPart.get(t),o=n?sr(r.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=r.join(ze);return e.validators.find(({validator:c})=>c(a))?.classGroupId},ir=/^\[(.+)\]$/,et=r=>{if(ir.test(r)){const e=ir.exec(r)[1],t=e?.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},rt=r=>{const{theme:e,classGroups:t}=r,n={nextPart:new Map,validators:[]};for(const o in t)Le(t[o],n,o,e);return n},Le=(r,e,t,n)=>{r.forEach(o=>{if(typeof o=="string"){const a=o===""?e:lr(e,o);a.classGroupId=t;return}if(typeof o=="function"){if(tt(o)){Le(o(n),e,t,n);return}e.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([a,c])=>{Le(c,lr(e,a),t,n)})})},lr=(r,e)=>{let t=r;return e.split(ze).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},tt=r=>r.isThemeGetter,nt=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;const o=(a,c)=>{t.set(a,c),e++,e>r&&(e=0,n=t,t=new Map)};return{get(a){let c=t.get(a);if(c!==void 0)return c;if((c=n.get(a))!==void 0)return o(a,c),c},set(a,c){t.has(a)?t.set(a,c):o(a,c)}}},Be="!",Ve=":",ot=Ve.length,at=r=>{const{prefix:e,experimentalParseClassName:t}=r;let n=o=>{const a=[];let c=0,u=0,l=0,i;for(let x=0;x<o.length;x++){let v=o[x];if(c===0&&u===0){if(v===Ve){a.push(o.slice(l,x)),l=x+ot;continue}if(v==="/"){i=x;continue}}v==="["?c++:v==="]"?c--:v==="("?u++:v===")"&&u--}const m=a.length===0?o:o.substring(l),d=st(m),s=d!==m,p=i&&i>l?i-l:void 0;return{modifiers:a,hasImportantModifier:s,baseClassName:d,maybePostfixModifierPosition:p}};if(e){const o=e+Ve,a=n;n=c=>c.startsWith(o)?a(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(t){const o=n;n=a=>t({className:a,parseClassName:o})}return n},st=r=>r.endsWith(Be)?r.substring(0,r.length-1):r.startsWith(Be)?r.substring(1):r,it=r=>{const e=Object.fromEntries(r.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(c=>{c[0]==="["||e[c]?(o.push(...a.sort(),c),a=[]):a.push(c)}),o.push(...a.sort()),o}},lt=r=>({cache:nt(r.cacheSize),parseClassName:at(r),sortModifiers:it(r),...Zr(r)}),ct=/\s+/,dt=(r,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=e,c=[],u=r.trim().split(ct);let l="";for(let i=u.length-1;i>=0;i-=1){const m=u[i],{isExternal:d,modifiers:s,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:v}=t(m);if(d){l=m+(l.length>0?" "+l:l);continue}let w=!!v,N=n(w?x.substring(0,v):x);if(!N){if(!w){l=m+(l.length>0?" "+l:l);continue}if(N=n(x),!N){l=m+(l.length>0?" "+l:l);continue}w=!1}const B=a(s).join(":"),D=p?B+Be:B,V=D+N;if(c.includes(V))continue;c.push(V);const I=o(N,w);for(let O=0;O<I.length;++O){const j=I[O];c.push(D+j)}l=m+(l.length>0?" "+l:l)}return l};function ut(){let r=0,e,t,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=cr(e))&&(n&&(n+=" "),n+=t);return n}const cr=r=>{if(typeof r=="string")return r;let e,t="";for(let n=0;n<r.length;n++)r[n]&&(e=cr(r[n]))&&(t&&(t+=" "),t+=e);return t};function ft(r,...e){let t,n,o,a=c;function c(l){const i=e.reduce((m,d)=>d(m),r());return t=lt(i),n=t.cache.get,o=t.cache.set,a=u,u(l)}function u(l){const i=n(l);if(i)return i;const m=dt(l,t);return o(l,m),m}return function(){return a(ut.apply(null,arguments))}}const A=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},dr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ur=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mt=/^\d+\/\d+$/,pt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gt=/\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$/,yt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ht=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=r=>mt.test(r),_=r=>!!r&&!Number.isNaN(Number(r)),te=r=>!!r&&Number.isInteger(Number(r)),Fe=r=>r.endsWith("%")&&_(r.slice(0,-1)),H=r=>pt.test(r),vt=()=>!0,wt=r=>gt.test(r)&&!yt.test(r),fr=()=>!1,xt=r=>bt.test(r),kt=r=>ht.test(r),_t=r=>!g(r)&&!y(r),St=r=>de(r,br,fr),g=r=>dr.test(r),ie=r=>de(r,hr,wt),Ge=r=>de(r,Pt,_),mr=r=>de(r,gr,fr),Rt=r=>de(r,yr,kt),Ee=r=>de(r,vr,xt),y=r=>ur.test(r),ye=r=>ue(r,hr),Et=r=>ue(r,Nt),pr=r=>ue(r,gr),Ot=r=>ue(r,br),Tt=r=>ue(r,yr),Oe=r=>ue(r,vr,!0),de=(r,e,t)=>{const n=dr.exec(r);return n?n[1]?e(n[1]):t(n[2]):!1},ue=(r,e,t=!1)=>{const n=ur.exec(r);return n?n[1]?e(n[1]):t:!1},gr=r=>r==="position"||r==="percentage",yr=r=>r==="image"||r==="url",br=r=>r==="length"||r==="size"||r==="bg-size",hr=r=>r==="length",Pt=r=>r==="number",Nt=r=>r==="family-name",vr=r=>r==="shadow",Ct=ft(()=>{const r=A("color"),e=A("font"),t=A("text"),n=A("font-weight"),o=A("tracking"),a=A("leading"),c=A("breakpoint"),u=A("container"),l=A("spacing"),i=A("radius"),m=A("shadow"),d=A("inset-shadow"),s=A("text-shadow"),p=A("drop-shadow"),x=A("blur"),v=A("perspective"),w=A("aspect"),N=A("ease"),B=A("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...V(),y,g],O=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],b=()=>[y,g,l],C=()=>[ce,"full","auto",...b()],ae=()=>[te,"none","subgrid",y,g],J=()=>["auto",{span:["full",te,y,g]},te,y,g],U=()=>[te,"auto",y,g],G=()=>["auto","min","max","fr",y,g],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],$=()=>["auto",...b()],q=()=>[ce,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...b()],h=()=>[r,y,g],ke=()=>[...V(),pr,mr,{position:[y,g]}],_e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],f=()=>["auto","cover","contain",Ot,St,{size:[y,g]}],k=()=>[Fe,ye,ie],S=()=>["","none","full",i,y,g],E=()=>["",_,ye,ie],Z=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[_,Fe,pr,mr],ee=()=>["","none",x,y,g],se=()=>["none",_,y,g],me=()=>["none",_,y,g],He=()=>[_,y,g],Ie=()=>[ce,"full",...b()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[H],breakpoint:[H],color:[vt],container:[H],"drop-shadow":[H],ease:["in","out","in-out"],font:[_t],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[H],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[H],shadow:[H],spacing:["px",_],text:[H],"text-shadow":[H],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ce,g,y,w]}],container:["container"],columns:[{columns:[_,g,y,u]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:I()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[te,"auto",y,g]}],basis:[{basis:[ce,"full","auto",u,...b()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,ce,"auto","initial","none",g]}],grow:[{grow:["",_,y,g]}],shrink:[{shrink:["",_,y,g]}],order:[{order:[te,"first","last","none",y,g]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":b()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":b()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[u,"screen",...q()]}],"min-w":[{"min-w":[u,"screen","none",...q()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",t,ye,ie]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,y,Ge]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fe,g]}],"font-family":[{font:[Et,g,e]}],"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:[o,y,g]}],"line-clamp":[{"line-clamp":[_,"none",y,Ge]}],leading:[{leading:[a,...b()]}],"list-image":[{"list-image":["none",y,g]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",y,g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:h()}],"text-color":[{text:h()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",y,ie]}],"text-decoration-color":[{decoration:h()}],"underline-offset":[{"underline-offset":[_,"auto",y,g]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y,g]}],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,g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:f()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},te,y,g],radial:["",y,g],conic:[te,y,g]},Tt,Rt]}],"bg-color":[{bg:h()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:h()}],"gradient-via":[{via:h()}],"gradient-to":[{to:h()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:E()}],"border-w-x":[{"border-x":E()}],"border-w-y":[{"border-y":E()}],"border-w-s":[{"border-s":E()}],"border-w-e":[{"border-e":E()}],"border-w-t":[{"border-t":E()}],"border-w-r":[{"border-r":E()}],"border-w-b":[{"border-b":E()}],"border-w-l":[{"border-l":E()}],"divide-x":[{"divide-x":E()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":E()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:h()}],"border-color-x":[{"border-x":h()}],"border-color-y":[{"border-y":h()}],"border-color-s":[{"border-s":h()}],"border-color-e":[{"border-e":h()}],"border-color-t":[{"border-t":h()}],"border-color-r":[{"border-r":h()}],"border-color-b":[{"border-b":h()}],"border-color-l":[{"border-l":h()}],"divide-color":[{divide:h()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_,y,g]}],"outline-w":[{outline:["",_,ye,ie]}],"outline-color":[{outline:h()}],shadow:[{shadow:["","none",m,Oe,Ee]}],"shadow-color":[{shadow:h()}],"inset-shadow":[{"inset-shadow":["none",d,Oe,Ee]}],"inset-shadow-color":[{"inset-shadow":h()}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:h()}],"ring-offset-w":[{"ring-offset":[_,ie]}],"ring-offset-color":[{"ring-offset":h()}],"inset-ring-w":[{"inset-ring":E()}],"inset-ring-color":[{"inset-ring":h()}],"text-shadow":[{"text-shadow":["none",s,Oe,Ee]}],"text-shadow-color":[{"text-shadow":h()}],opacity:[{opacity:[_,y,g]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"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":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":h()}],"mask-image-linear-to-color":[{"mask-linear-to":h()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":h()}],"mask-image-t-to-color":[{"mask-t-to":h()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":h()}],"mask-image-r-to-color":[{"mask-r-to":h()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":h()}],"mask-image-b-to-color":[{"mask-b-to":h()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":h()}],"mask-image-l-to-color":[{"mask-l-to":h()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":h()}],"mask-image-x-to-color":[{"mask-x-to":h()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":h()}],"mask-image-y-to-color":[{"mask-y-to":h()}],"mask-image-radial":[{"mask-radial":[y,g]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":h()}],"mask-image-radial-to-color":[{"mask-radial-to":h()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":h()}],"mask-image-conic-to-color":[{"mask-conic-to":h()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:f()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",y,g]}],filter:[{filter:["","none",y,g]}],blur:[{blur:ee()}],brightness:[{brightness:[_,y,g]}],contrast:[{contrast:[_,y,g]}],"drop-shadow":[{"drop-shadow":["","none",p,Oe,Ee]}],"drop-shadow-color":[{"drop-shadow":h()}],grayscale:[{grayscale:["",_,y,g]}],"hue-rotate":[{"hue-rotate":[_,y,g]}],invert:[{invert:["",_,y,g]}],saturate:[{saturate:[_,y,g]}],sepia:[{sepia:["",_,y,g]}],"backdrop-filter":[{"backdrop-filter":["","none",y,g]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[_,y,g]}],"backdrop-contrast":[{"backdrop-contrast":[_,y,g]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,y,g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,y,g]}],"backdrop-invert":[{"backdrop-invert":["",_,y,g]}],"backdrop-opacity":[{"backdrop-opacity":[_,y,g]}],"backdrop-saturate":[{"backdrop-saturate":[_,y,g]}],"backdrop-sepia":[{"backdrop-sepia":["",_,y,g]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",y,g]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",y,g]}],ease:[{ease:["linear","initial",N,y,g]}],delay:[{delay:[_,y,g]}],animate:[{animate:["none",B,y,g]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,y,g]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[y,g,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:h()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:h()}],"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,g]}],"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":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"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,g]}],fill:[{fill:["none",...h()]}],"stroke-w":[{stroke:[_,ye,ie,Ge]}],stroke:[{stroke:["none",...h()]}],"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"]}});function ne(...r){return Ct(ar(r))}function Dt(r){const e=Y.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("size-4 animate-spin",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx(Xr,{role:"status","aria-label":"Loading",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}const wr=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,xr=ar,kr=(r,e)=>t=>{var n;if(e?.variants==null)return xr(r,t?.class,t?.className);const{variants:o,defaultVariants:a}=e,c=Object.keys(o).map(i=>{const m=t?.[i],d=a?.[i];if(m===null)return null;const s=wr(m)||wr(d);return o[i][s]}),u=t&&Object.entries(t).reduce((i,m)=>{let[d,s]=m;return s===void 0||(i[d]=s),i},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((i,m)=>{let{class:d,className:s,...p}=m;return Object.entries(p).every(x=>{let[v,w]=x;return Array.isArray(w)?w.includes({...a,...u}[v]):{...a,...u}[v]===w})?[...i,d,s]:i},[]);return xr(r,c,l,t?.class,t?.className)};var Te={exports:{}},z={};/**
67
+ */const _s=Ve("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
68
+ * @license lucide-react v0.547.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const Yr=Ve("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
73
+ * @license lucide-react v0.547.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const Os=Ve("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
78
+ * @license lucide-react v0.547.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const Ts=Ve("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
83
+ * @license lucide-react v0.547.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const As=Ve("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
88
+ * @license lucide-react v0.547.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
92
+ */const Ns=Ve("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Is=e=>{const{coms:t,item:r={},id:n=B.useId()}=e,{setting:o={},prop:s}=r,{ndim:i=1,columns:a=[]}=o,{Button:c}=t,l=[],f=3;for(let O=0;O<i;O++)l.push({});const{dispatchQueryParams:d,queryParams:u,formLoading:m}=B.useContext(Rt),v=(O,x="")=>{const C=[];for(let T=0;T<l.length;T++){const I={key:"",value:""};I.key=`${s}[${O}][${T}]`,I.value=typeof x=="object"?x?.[a?.[T]?.prop]:x,C.push(I)}return C},[p,h]=B.useState([[...v(0)]]),y=()=>{h([...p,[...v(p.length)]])},b=O=>{const x=[...p];x.splice(O,1),h(x),d({data:{...u,[r.prop]:x}})},S=(O,x)=>{let C;typeof x?.target?.value=="string"?C=x?.target?.value:C=x;const{rowIndex:T,columnIndex:I}=O,$=[...p];$[T][I].value=C,h($),R()},R=()=>{let O=[];i===1?O=p.flat().map(x=>x.value):O=p.map(x=>{const C={};return x.forEach((T,I)=>{C[a[I]?.prop]=T.value}),C}),d({data:{...u,[r.prop]:O}})};B.useEffect(()=>{k()},[u?.[r.prop]]);const k=async()=>{const O=u?.[r.prop],x=[];if(O&&Array.isArray(O)&&O.length>0)for(let C=0;C<O.length;C++){const T=O[C];x.push([...v(C,T)])}h(x)};return w.jsxs("div",{id:n,children:[w.jsx("div",{className:`flex gap-${f} mb-${f} justify-end`,children:w.jsxs(c,{onClick:y,disabled:m,children:[w.jsx(As,{}),"添加",r.label]})}),p.map((O,x)=>w.jsxs("div",{className:`flex gap-${f} mb-${f}`,children:[O.map((C,T)=>{let I={...r};const $=r?.setting?.columns?.[T];return $&&(I={...$}),I.type==="form-list"&&(I.type="input"),I.setting={...I.setting,name:C.key,value:u?.[r.prop]?.[x]?.[a?.[T]?.prop]||C.value,onChange:S.bind(void 0,{rowIndex:x,columnIndex:T}),onValueChange:S.bind(void 0,{rowIndex:x,columnIndex:T})},I.type==="input"&&delete I.setting.onValueChange,w.jsx(Kr,{coms:t,item:I,id:C.key,type:I.type},C.key)}),w.jsx(c,{variant:"outline",size:"icon",className:"rounded-full",disabled:m,onClick:b.bind(void 0,x),children:w.jsx(Ns,{color:"red"})})]},x))]})};function Xr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Xr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Qr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Xr(e))&&(n&&(n+=" "),n+=t);return n}const Yt="-",Ds=e=>{const t=Ls(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(Yt);return a[0]===""&&a.length!==1&&a.shift(),Zr(a,t)||Ms(i)},getConflictingClassGroupIds:(i,a)=>{const c=r[i]||[];return a&&n[i]?[...c,...n[i]]:c}}},Zr=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Zr(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Yt);return t.validators.find(({validator:i})=>i(s))?.classGroupId},Jr=/^\[(.+)\]$/,Ms=e=>{if(Jr.test(e)){const t=Jr.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ls=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Xt(r[o],n,o,t);return n},Xt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:en(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(js(o)){Xt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{Xt(i,en(t,s),r,n)})})},en=(e,t)=>{let r=e;return t.split(Yt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},js=e=>e.isThemeGetter,Bs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}},Qt="!",Zt=":",Fs=Zt.length,zs=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,c=0,l;for(let v=0;v<o.length;v++){let p=o[v];if(i===0&&a===0){if(p===Zt){s.push(o.slice(c,v)),c=v+Fs;continue}if(p==="/"){l=v;continue}}p==="["?i++:p==="]"?i--:p==="("?a++:p===")"&&a--}const f=s.length===0?o:o.substring(c),d=$s(f),u=d!==f,m=l&&l>c?l-c:void 0;return{modifiers:s,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:m}};if(t){const o=t+Zt,s=n;n=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},$s=e=>e.endsWith(Qt)?e.substring(0,e.length-1):e.startsWith(Qt)?e.substring(1):e,Vs=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},Ws=e=>({cache:Bs(e.cacheSize),parseClassName:zs(e),sortModifiers:Vs(e),...Ds(e)}),Hs=/\s+/,Us=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Hs);let c="";for(let l=a.length-1;l>=0;l-=1){const f=a[l],{isExternal:d,modifiers:u,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}=r(f);if(d){c=f+(c.length>0?" "+c:c);continue}let h=!!p,y=n(h?v.substring(0,p):v);if(!y){if(!h){c=f+(c.length>0?" "+c:c);continue}if(y=n(v),!y){c=f+(c.length>0?" "+c:c);continue}h=!1}const b=s(u).join(":"),S=m?b+Qt:b,R=S+y;if(i.includes(R))continue;i.push(R);const k=o(y,h);for(let O=0;O<k.length;++O){const x=k[O];i.push(S+x)}c=f+(c.length>0?" "+c:c)}return c};function Ks(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=tn(t))&&(n&&(n+=" "),n+=r);return n}const tn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=tn(e[n]))&&(r&&(r+=" "),r+=t);return r};function Gs(e,...t){let r,n,o,s=i;function i(c){const l=t.reduce((f,d)=>d(f),e());return r=Ws(l),n=r.cache.get,o=r.cache.set,s=a,a(c)}function a(c){const l=n(c);if(l)return l;const f=Us(c,r);return o(c,f),f}return function(){return s(Ks.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},rn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,nn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qs=/^\d+\/\d+$/,Ys=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xs=/\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$/,Qs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Js=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>qs.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),_e=e=>!!e&&Number.isInteger(Number(e)),Jt=e=>e.endsWith("%")&&W(e.slice(0,-1)),Ee=e=>Ys.test(e),ei=()=>!0,ti=e=>Xs.test(e)&&!Qs.test(e),on=()=>!1,ri=e=>Zs.test(e),ni=e=>Js.test(e),oi=e=>!A(e)&&!N(e),si=e=>He(e,un,on),A=e=>rn.test(e),Me=e=>He(e,dn,ti),er=e=>He(e,ui,W),sn=e=>He(e,ln,on),ii=e=>He(e,cn,ni),vt=e=>He(e,fn,ri),N=e=>nn.test(e),nt=e=>Ue(e,dn),ai=e=>Ue(e,di),an=e=>Ue(e,ln),li=e=>Ue(e,un),ci=e=>Ue(e,cn),yt=e=>Ue(e,fn,!0),He=(e,t,r)=>{const n=rn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ue=(e,t,r=!1)=>{const n=nn.exec(e);return n?n[1]?t(n[1]):r:!1},ln=e=>e==="position"||e==="percentage",cn=e=>e==="image"||e==="url",un=e=>e==="length"||e==="size"||e==="bg-size",dn=e=>e==="length",ui=e=>e==="number",di=e=>e==="family-name",fn=e=>e==="shadow",fi=Gs(()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),s=te("leading"),i=te("breakpoint"),a=te("container"),c=te("spacing"),l=te("radius"),f=te("shadow"),d=te("inset-shadow"),u=te("text-shadow"),m=te("drop-shadow"),v=te("blur"),p=te("perspective"),h=te("aspect"),y=te("ease"),b=te("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...R(),N,A],O=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],C=()=>[N,A,c],T=()=>[We,"full","auto",...C()],I=()=>[_e,"none","subgrid",N,A],$=()=>["auto",{span:["full",_e,N,A]},_e,N,A],V=()=>[_e,"auto",N,A],H=()=>["auto","min","max","fr",N,A],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...C()],F=()=>[We,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],P=()=>[e,N,A],q=()=>[...R(),an,sn,{position:[N,A]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",li,si,{size:[N,A]}],M=()=>[Jt,nt,Me],j=()=>["","none","full",l,N,A],z=()=>["",W,nt,Me],ie=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[W,Jt,an,sn],K=()=>["","none",v,N,A],Q=()=>["none",W,N,A],G=()=>["none",W,N,A],Y=()=>[W,N,A],X=()=>[We,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[ei],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[oi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",W],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",We,A,N,h]}],container:["container"],columns:[{columns:[W,A,N,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:k()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[_e,"auto",N,A]}],basis:[{basis:[We,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,We,"auto","initial","none",A]}],grow:[{grow:["",W,N,A]}],shrink:[{shrink:["",W,N,A]}],order:[{order:[_e,"first","last","none",N,A]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[a,"screen",...F()]}],"min-w":[{"min-w":[a,"screen","none",...F()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,nt,Me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,N,er]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Jt,A]}],"font-family":[{font:[ai,A,t]}],"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:[o,N,A]}],"line-clamp":[{"line-clamp":[W,"none",N,er]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",N,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",N,Me]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[W,"auto",N,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,A]}],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",N,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_e,N,A],radial:["",N,A],conic:[_e,N,A]},ci,ii]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,N,A]}],"outline-w":[{outline:["",W,nt,Me]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,yt,vt]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,yt,vt]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[W,Me]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",u,yt,vt]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[W,N,A]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[N,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",N,A]}],filter:[{filter:["","none",N,A]}],blur:[{blur:K()}],brightness:[{brightness:[W,N,A]}],contrast:[{contrast:[W,N,A]}],"drop-shadow":[{"drop-shadow":["","none",m,yt,vt]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",W,N,A]}],"hue-rotate":[{"hue-rotate":[W,N,A]}],invert:[{invert:["",W,N,A]}],saturate:[{saturate:[W,N,A]}],sepia:[{sepia:["",W,N,A]}],"backdrop-filter":[{"backdrop-filter":["","none",N,A]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[W,N,A]}],"backdrop-contrast":[{"backdrop-contrast":[W,N,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,N,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,N,A]}],"backdrop-invert":[{"backdrop-invert":["",W,N,A]}],"backdrop-opacity":[{"backdrop-opacity":[W,N,A]}],"backdrop-saturate":[{"backdrop-saturate":[W,N,A]}],"backdrop-sepia":[{"backdrop-sepia":["",W,N,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",N,A]}],ease:[{ease:["linear","initial",y,N,A]}],delay:[{delay:[W,N,A]}],animate:[{animate:["none",b,N,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,N,A]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:Y()}],"skew-x":[{"skew-x":Y()}],"skew-y":[{"skew-y":Y()}],transform:[{transform:[N,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",N,A]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",N,A]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[W,nt,Me,er]}],stroke:[{stroke:["none",...P()]}],"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"]}});function ae(...e){return fi(Qr(e))}function pi(e){const t=re.c(8);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("size-4 animate-spin",r),t[3]=r,t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==o?(s=w.jsx(Ts,{role:"status","aria-label":"Loading",className:o,...n}),t[5]=n,t[6]=o,t[7]=s):s=t[7],s}const pn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mn=Qr,gn=(e,t)=>r=>{var n;if(t?.variants==null)return mn(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(l=>{const f=r?.[l],d=s?.[l];if(f===null)return null;const u=pn(f)||pn(d);return o[l][u]}),a=r&&Object.entries(r).reduce((l,f)=>{let[d,u]=f;return u===void 0||(l[d]=u),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,f)=>{let{class:d,className:u,...m}=f;return Object.entries(m).every(v=>{let[p,h]=v;return Array.isArray(h)?h.includes({...s,...a}[p]):{...s,...a}[p]===h})?[...l,d,u]:l},[]);return mn(e,i,c,r?.class,r?.className)};var bt={exports:{}},oe={};/**
68
93
  * @license React
69
94
  * react-dom.production.js
70
95
  *
@@ -72,7 +97,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
72
97
  *
73
98
  * This source code is licensed under the MIT license found in the
74
99
  * LICENSE file in the root directory of this source tree.
75
- */var _r;function At(){if(_r)return z;_r=1;var r=T;function e(l){var i="https://react.dev/errors/"+l;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)i+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+l+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(l,i,m){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:l,containerInfo:i,implementation:m}}var c=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(l,i){if(l==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return z.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,z.createPortal=function(l,i){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(e(299));return a(l,i,null,m)},z.flushSync=function(l){var i=c.T,m=n.p;try{if(c.T=null,n.p=2,l)return l()}finally{c.T=i,n.p=m,n.d.f()}},z.preconnect=function(l,i){typeof l=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,n.d.C(l,i))},z.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},z.preinit=function(l,i){if(typeof l=="string"&&i&&typeof i.as=="string"){var m=i.as,d=u(m,i.crossOrigin),s=typeof i.integrity=="string"?i.integrity:void 0,p=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;m==="style"?n.d.S(l,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:d,integrity:s,fetchPriority:p}):m==="script"&&n.d.X(l,{crossOrigin:d,integrity:s,fetchPriority:p,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},z.preinitModule=function(l,i){if(typeof l=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var m=u(i.as,i.crossOrigin);n.d.M(l,{crossOrigin:m,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&n.d.M(l)},z.preload=function(l,i){if(typeof l=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var m=i.as,d=u(m,i.crossOrigin);n.d.L(l,m,{crossOrigin:d,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})}},z.preloadModule=function(l,i){if(typeof l=="string")if(i){var m=u(i.as,i.crossOrigin);n.d.m(l,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:m,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else n.d.m(l)},z.requestFormReset=function(l){n.d.r(l)},z.unstable_batchedUpdates=function(l,i){return l(i)},z.useFormState=function(l,i,m){return c.H.useFormState(l,i,m)},z.useFormStatus=function(){return c.H.useHostTransitionStatus()},z.version="19.2.0",z}var L={};/**
100
+ */var hn;function mi(){if(hn)return oe;hn=1;var e=B;function t(c){var l="https://react.dev/errors/"+c;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(c,l,f){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:c,containerInfo:l,implementation:f}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(c,l){if(c==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,oe.createPortal=function(c,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(t(299));return s(c,l,null,f)},oe.flushSync=function(c){var l=i.T,f=n.p;try{if(i.T=null,n.p=2,c)return c()}finally{i.T=l,n.p=f,n.d.f()}},oe.preconnect=function(c,l){typeof c=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,n.d.C(c,l))},oe.prefetchDNS=function(c){typeof c=="string"&&n.d.D(c)},oe.preinit=function(c,l){if(typeof c=="string"&&l&&typeof l.as=="string"){var f=l.as,d=a(f,l.crossOrigin),u=typeof l.integrity=="string"?l.integrity:void 0,m=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;f==="style"?n.d.S(c,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:d,integrity:u,fetchPriority:m}):f==="script"&&n.d.X(c,{crossOrigin:d,integrity:u,fetchPriority:m,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},oe.preinitModule=function(c,l){if(typeof c=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var f=a(l.as,l.crossOrigin);n.d.M(c,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&n.d.M(c)},oe.preload=function(c,l){if(typeof c=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var f=l.as,d=a(f,l.crossOrigin);n.d.L(c,f,{crossOrigin:d,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})}},oe.preloadModule=function(c,l){if(typeof c=="string")if(l){var f=a(l.as,l.crossOrigin);n.d.m(c,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else n.d.m(c)},oe.requestFormReset=function(c){n.d.r(c)},oe.unstable_batchedUpdates=function(c,l){return c(l)},oe.useFormState=function(c,l,f){return i.H.useFormState(c,l,f)},oe.useFormStatus=function(){return i.H.useHostTransitionStatus()},oe.version="19.2.0",oe}var se={};/**
76
101
  * @license React
77
102
  * react-dom.development.js
78
103
  *
@@ -80,8 +105,48 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
80
105
  *
81
106
  * This source code is licensed under the MIT license found in the
82
107
  * LICENSE file in the root directory of this source tree.
83
- */var Sr;function It(){return Sr||(Sr=1,process.env.NODE_ENV!=="production"&&(function(){function r(){}function e(d){return""+d}function t(d,s,p){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(x);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&&x[Symbol.toStringTag]||x.constructor.name||"Object"),e(x)),{$$typeof:i,key:x==null?null:""+x,children:d,containerInfo:s,implementation:p}}function n(d,s){if(d==="font")return"";if(typeof s=="string")return s==="use-credentials"?s:""}function o(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":'something with type "'+typeof d+'"'}function a(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":typeof d=="string"?JSON.stringify(d):typeof d=="number"?"`"+d+"`":'something with type "'+typeof d+'"'}function c(){var d=m.H;return d===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:
108
+ */var vn;function gi(){return vn||(vn=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(d){return""+d}function r(d,u,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(v);var p=!1}catch{p=!0}return p&&(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&&v[Symbol.toStringTag]||v.constructor.name||"Object"),t(v)),{$$typeof:l,key:v==null?null:""+v,children:d,containerInfo:u,implementation:m}}function n(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}function o(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":'something with type "'+typeof d+'"'}function s(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":typeof d=="string"?JSON.stringify(d):typeof d=="number"?"`"+d+"`":'something with type "'+typeof d+'"'}function i(){var d=f.H;return d===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:
84
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
85
110
  2. You might be breaking the Rules of Hooks
86
111
  3. You might have more than one copy of React in the same app
87
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=T,l={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal"),m=u.__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"),L.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,L.createPortal=function(d,s){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error("Target container is not a DOM element.");return t(d,s,null,p)},L.flushSync=function(d){var s=m.T,p=l.p;try{if(m.T=null,l.p=2,d)return d()}finally{m.T=s,l.p=p,l.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.")}},L.preconnect=function(d,s){typeof d=="string"&&d?s!=null&&typeof s!="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.",a(s)):s!=null&&typeof s.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.",o(s.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,l.d.C(d,s))},L.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d));else if(1<arguments.length){var s=arguments[1];typeof s=="object"&&s.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`.",a(s)):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`.",a(s))}typeof d=="string"&&l.d.D(d)},L.preinit=function(d,s){if(typeof d=="string"&&d?s==null||typeof s!="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.",a(s)):s.as!=="style"&&s.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".',a(s.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&s&&typeof s.as=="string"){var p=s.as,x=n(p,s.crossOrigin),v=typeof s.integrity=="string"?s.integrity:void 0,w=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;p==="style"?l.d.S(d,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:x,integrity:v,fetchPriority:w}):p==="script"&&l.d.X(d,{crossOrigin:x,integrity:v,fetchPriority:w,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},L.preinitModule=function(d,s){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),s!==void 0&&typeof s!="object"?p+=" The `options` argument encountered was "+o(s)+".":s&&"as"in s&&s.as!=="script"&&(p+=" The `as` option encountered was "+a(s.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=s&&typeof s.as=="string"?s.as:"script",p){case"script":break;default:p=a(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,d)}typeof d=="string"&&(typeof s=="object"&&s!==null?(s.as==null||s.as==="script")&&(p=n(s.as,s.crossOrigin),l.d.M(d,{crossOrigin:p,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})):s==null&&l.d.M(d))},L.preload=function(d,s){var p="";if(typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),s==null||typeof s!="object"?p+=" The `options` argument encountered was "+o(s)+".":typeof s.as=="string"&&s.as||(p+=" The `as` option encountered was "+o(s.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 d=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){p=s.as;var x=n(p,s.crossOrigin);l.d.L(d,p,{crossOrigin:x,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},L.preloadModule=function(d,s){var p="";typeof d=="string"&&d||(p+=" The `href` argument encountered was "+o(d)+"."),s!==void 0&&typeof s!="object"?p+=" The `options` argument encountered was "+o(s)+".":s&&"as"in s&&typeof s.as!="string"&&(p+=" The `as` option encountered was "+o(s.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 d=="string"&&(s?(p=n(s.as,s.crossOrigin),l.d.m(d,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:p,integrity:typeof s.integrity=="string"?s.integrity:void 0})):l.d.m(d))},L.requestFormReset=function(d){l.d.r(d)},L.unstable_batchedUpdates=function(d,s){return d(s)},L.useFormState=function(d,s,p){return c().useFormState(d,s,p)},L.useFormStatus=function(){return c().useHostTransitionStatus()},L.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),L}var Rr;function jt(){if(Rr)return Te.exports;Rr=1;function r(){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(r)}catch(e){console.error(e)}}}return process.env.NODE_ENV==="production"?(r(),Te.exports=At()):Te.exports=It(),Te.exports}jt();function Er(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function Mt(...r){return e=>{let t=!1;const n=r.map(o=>{const a=Er(o,e);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Er(r[o],null)}}}}function Or(r){const e=Lt(r),t=M.forwardRef((n,o)=>{const{children:a,...c}=n,u=M.Children.toArray(a),l=u.find(Vt);if(l){const i=l.props.children,m=u.map(d=>d===l?M.Children.count(i)>1?M.Children.only(null):M.isValidElement(i)?i.props.children:null:d);return P.jsx(e,{...c,ref:o,children:M.isValidElement(i)?M.cloneElement(i,void 0,m):null})}return P.jsx(e,{...c,ref:o,children:a})});return t.displayName=`${r}.Slot`,t}var zt=Or("Slot");function Lt(r){const e=M.forwardRef((t,n)=>{const{children:o,...a}=t;if(M.isValidElement(o)){const c=Gt(o),u=Ft(a,o.props);return o.type!==M.Fragment&&(u.ref=n?Mt(n,c):c),M.cloneElement(o,u)}return M.Children.count(o)>1?M.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var Bt=Symbol("radix.slottable");function Vt(r){return M.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Bt}function Ft(r,e){const t={...e};for(const n in e){const o=r[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?t[n]=(...u)=>{const l=a(...u);return o(...u),l}:o&&(t[n]=o):n==="style"?t[n]={...o,...a}:n==="className"&&(t[n]=[o,a].filter(Boolean).join(" "))}return{...r,...t}}function Gt(r){let e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var $t=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qt=$t.reduce((r,e)=>{const t=Or(`Primitive.${e}`),n=M.forwardRef((o,a)=>{const{asChild:c,...u}=o,l=c?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(l,{...u,ref:a})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),Ut="Label",Tr=M.forwardRef((r,e)=>P.jsx(qt.label,{...r,ref:e,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(r.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Tr.displayName=Ut;var Kt=Tr;function Wt(r){const e=Y.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("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",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx(Kt,{"data-slot":"label",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}function Yt(r){const e=Y.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx("div",{"data-slot":"field-group",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}const Ht=kr("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function Pr(r){const e=Y.c(11);let t,n,o;e[0]!==r?({className:t,orientation:o,...n}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o):(t=e[1],n=e[2],o=e[3]);const a=o===void 0?"vertical":o;let c;e[4]!==t||e[5]!==a?(c=ne(Ht({orientation:a}),t),e[4]=t,e[5]=a,e[6]=c):c=e[6];let u;return e[7]!==a||e[8]!==n||e[9]!==c?(u=P.jsx("div",{role:"group","data-slot":"field","data-orientation":a,className:c,...n}),e[7]=a,e[8]=n,e[9]=c,e[10]=u):u=e[10],u}function Qt(r){const e=Y.c(8);let t,n;e[0]!==r?({className:t,...n}=r,e[0]=r,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let o;e[3]!==t?(o=ne("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",t),e[3]=t,e[4]=o):o=e[4];let a;return e[5]!==n||e[6]!==o?(a=P.jsx(Wt,{"data-slot":"field-label",className:o,...n}),e[5]=n,e[6]=o,e[7]=a):a=e[7],a}function Jt(r){const e=Y.c(15);let t,n,o,a;e[0]!==r?({className:n,children:t,errors:o,...a}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o,e[4]=a):(t=e[1],n=e[2],o=e[3],a=e[4]);let c;e:{if(t){c=t;break e}if(!o?.length){c=null;break e}let m;e[5]!==o?(m=[...new Map(o.map(Zt)).values()],e[5]=o,e[6]=m):m=e[6];const d=m;if(d?.length==1){c=d[0]?.message;break e}let s;e[7]!==d?(s=P.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:d.map(Xt)}),e[7]=d,e[8]=s):s=e[8],c=s}const u=c;if(!u)return null;let l;e[9]!==n?(l=ne("text-destructive text-sm font-normal",n),e[9]=n,e[10]=l):l=e[10];let i;return e[11]!==u||e[12]!==a||e[13]!==l?(i=P.jsx("div",{role:"alert","data-slot":"field-error",className:l,...a,children:u}),e[11]=u,e[12]=a,e[13]=l,e[14]=i):i=e[14],i}function Xt(r,e){return r?.message&&P.jsx("li",{children:r.message},e)}function Zt(r){return[r?.message,r]}const en=(r={})=>{if(Array.isArray(r)&&r.length>0)return JSON.stringify(r);for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=r[e];Object.prototype.toString.call(t)==="[object Object]"&&(r[e]=JSON.stringify(t))}return r},rn=(r={})=>{for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=r[e];try{/[{]+/g.test(t)&&/[}]+/g.test(t)&&(r[e]=JSON.parse(t))}catch{}}return r},tn=(r={decode:!1})=>{const{decode:e}=r,t=/\+/g,n=/([^&=]+)=?([^&]*)/g,o=l=>decodeURIComponent(l.replace(t," ")),a=window.location.search.substring(1),c={},u=()=>{const l=n.exec(a);return l&&(e?c[o(l[1])]=o(l[2]):c[l[1]]=l[2],u()),c};return u(),c},be={paramsToQuery:en,queryToData:rn,getURLParameter:tn},Q=he;function he(r,e){const t=Pe();return he=function(n,o){return n=n-157,t[n]},he(r,e)}(function(r,e){const t=he,n=r();for(;;)try{if(-parseInt(t(216))/1+parseInt(t(215))/2+-parseInt(t(183))/3+-parseInt(t(175))/4*(-parseInt(t(193))/5)+-parseInt(t(162))/6+-parseInt(t(165))/7+-parseInt(t(198))/8*(-parseInt(t(205))/9)===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(Pe,144666);const F={};function Pe(){const r=["currentTarget","onupgradeneeded","map","transaction","continue","数据更新失败没有request","primaryKey","580315XgKHom","call","Database connection closed, reconnecting...","error","length","64bvXXYM","DBName","数据删除成功","数据库删除失败","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","result","update","863559tPzmuS","put","addEventListener","store不存在,请更新schema和DBVersion并重启前端服务","hasOwnProperty","deleteDB","readwrite","alert","keyPath","onerror","110026kBsQFS","287147ERepGn","info","主键插入失败","target","getDB","warn","get","onsuccess","indexedDB","617742laLJPd","数据更新成功","onabort","1405131SpeByp","objectStore","delete","数据库已删除","获取Database缺乏用户信息,请先传入对primaryKey的赋值","您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.","数据更新失败","没有设置默认值","主键插入中止","keys","4TsnuAV","createObjectStore","主键查询结果:","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","deleteStore","getDataByKey","传入结构化克隆算法不支持的数据类型可能导致报错","mapDB","609543ULkBkv","openCursor","createIndex"];return Pe=function(){return r},Pe()}let le=null;const Nr=async(r,e)=>{const t=he;!window[t(161)]&&window[t(212)](t(170));const{DBName:n="",DBVersion:o=1}=r;let a,c=!1;try{const u=window[t(161)].open(n,o);await new Promise((l,i)=>{const m=t;u[m(187)]=async function(d){const s=m,p=d.target[s(203)],{stores:x=[]}=r;await Promise.all(x[s(188)](async v=>{const w=s,{DBStoreName:N="",properties:B={}}=v;try{const D={};D[w(213)]=r[w(192)];const V=d[w(186)][w(203)][w(176)](N,D);if(Object[w(174)](B)[w(197)]===0){console[w(158)](N+w(172));return}for(const I in B)if(B[w(209)][w(194)](B,I)){const O=B[I],j={...O[w(185)]};V[w(185)](I,I,j)}}catch(D){console[w(158)](D)}})),a=p,c=!0},u.onsuccess=async function(d){const s=m;if(a=this[s(203)],c){const{stores:p=[]}=r;await Promise.all(p.map(async x=>{const v=s,{DBStoreName:w=""}=x,N=a[v(189)]([w],v(211)),B=N[v(166)](w),D={};D[r[v(192)]]=e,B.add(D);try{await new Promise((V,I)=>{const O=v;N[O(164)]=function(j){const b=O;console[b(196)](b(173),j),I()},N.oncomplete=function(j){V()},N.onerror=function(j){console.error(O(218),j),I()}})}catch(V){console[v(158)](v(178),V)}}))}l()},u[m(214)]=function(d){i(d)}})}catch(u){console.error(u,t(202))}return a};let Ne=!1;F[Q(157)]=async(r,e)=>{const t=Q,{mapDB:n,primaryKey:o}=r;return n?o?(Ne&&await new Promise(async(a,c)=>{const u=()=>{Ne?setTimeout(()=>{u()},200):a()};u()}),!le&&(Ne=!0,le=await Nr(n,o),le?.[t(207)]("close",async()=>{const a=t;console[a(217)](a(195)),le=await Nr(n,o)}),Ne=!1),e&&e(le),le):(console[t(158)](t(169)),!1):(console[t(158)]("必须传入数据库配置信息"),!1)},F[Q(180)]=async(r,e)=>{const t=Q,{mapDB:n,tableName:o,primaryKey:a}=r,c={};c[t(182)]=n,c.primaryKey=a;const u=await F[t(157)](c);if(!u)return;const l=u[t(189)]([o]),i=l[t(166)](o),m=i[t(159)](a);return new Promise((d,s)=>{const p=t;m[p(160)]=function(x){const v=p;e&&e(o+v(177)+m[v(203)]),d(m[v(203)])},m[p(214)]=function(x){console[p(196)](o+"事务失败"+x),s()}})},F.updateStore=async(r,e)=>{var t;const n=Q,{mapDB:o,tableName:a,updateData:c}=r;!c[o?.[n(192)]]&&console.warn("请传入主键"+o[n(192)]);const u={};u[n(182)]=o,u[n(192)]=c[o?.[n(192)]];const l=await F[n(157)](u);if(!l)return;let i=null;try{i=l[n(189)]([a],n(211)).objectStore(a)}catch(p){console[n(196)](n(208),p)}let m=null,d=null;const s=await new Promise((p,x)=>{const v=n,w=i[v(184)](c[o?.primaryKey]);w[v(160)]=N=>{p(N)},w.onerror=N=>{x(N)}});d=(t=s?.[n(219)])==null?void 0:t.result;try{d&&d?.[n(192)]===c[o?.primaryKey]?m=d[n(204)](c):m=i[n(206)](c)}catch(p){console[n(196)](n(181),p,c)}new Promise((p,x)=>{const v=n;!m&&(console[v(196)](a+v(191)),x()),m[v(160)]=function(w){e&&e(a+v(163)),p()},m.onerror=function(w){console.error(a+v(171),w),x()}}),d&&d[n(190)]()},F[Q(179)]=async(r,e)=>{const t=Q,{mapDB:n,tableName:o,primaryKey:a}=r,c={};c[t(182)]=n,c[t(192)]=a;const u=await F.getDB(c);if(!u)return;const l=u[t(189)]([o],t(211))[t(166)](o)[t(167)](a);return new Promise((i,m)=>{const d=t;l[d(160)]=function(s){e&&e(o+d(200)),i()},l[d(214)]=function(s){console[d(196)](o+"数据删除失败"+s),m()}})},F[Q(210)]=async(r,e)=>{const t=Q,{mapDB:n}=r,o=window[t(161)].deleteDatabase(n[t(199)]);return new Promise((a,c)=>{const u=t;o[u(160)]=l=>{const i=u;e&&e(n[i(199)]+i(168)),a()},o.onerror=l=>{const i=u;console[i(196)](n[i(199)]+i(201)+l),c()}})};function oe(r,e){const t=Ce();return oe=function(n,o){return n=n-479,t[n]},oe(r,e)}function Ce(){const r=["10091907RRJBnT","error","926979tsCzBf","65jghYYS","2344zwfena","deleteStore","14121dQBbMP","primaryKey","231970jMEsEj","197214HCIGpK","handleData","517284tbkZGr","mapDB","tableName","updateStore","getDataByKey","638UAFuAy","warn","为空,请先调用handleData","getData","3xeZFTa","696974ymNsIY","updateData"];return Ce=function(){return r},Ce()}const $e=oe;(function(r,e){const t=oe,n=r();for(;;)try{if(-parseInt(t(485))/1*(-parseInt(t(486))/2)+-parseInt(t(490))/3+parseInt(t(499))/4+parseInt(t(491))/5*(-parseInt(t(497))/6)+-parseInt(t(488))/7+parseInt(t(492))/8*(parseInt(t(494))/9)+parseInt(t(496))/10*(parseInt(t(481))/11)===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(Ce,801934);async function nn(r,e){const t=oe,{tableName:n,propertiesKey:o,parameter:a,primaryKey:c,mapDB:u}=r;let l=null,i={[u.primaryKey]:c};const m={};m.mapDB=u,m[t(501)]=n,m[t(495)]=c;const d=await F.getDataByKey(m);d&&(i={...d,[u[t(495)]]:c}),i[o]=a;const s={};return s[t(500)]=u,s[t(501)]=n,s.updateData=i,await F.updateStore(s),a&&(l=a),e&&e(l),l}async function on(r,e){const t=oe,{tableName:n,propertiesKey:o,primaryKey:a,mapDB:c}=r;let u=null;const l={};l[t(500)]=c,l.tableName=n,l[t(495)]=a;const i=await F[t(480)](l);return i&&(u=i[o]),e&&e(u),u}async function an(r,e){const t=oe,{tableName:n,propertiesKey:o,parameter:a,primaryKey:c,mapDB:u}=r;let l={};const i={};i[t(500)]=u,i[t(501)]=n,i[t(495)]=c;const m=await F.getDataByKey(i);try{if(m){l={...m[o],...a};const d={[u[t(495)]]:c},s=d;s[o]=l;const p={};p.mapDB=u,p[t(501)]=n,p[t(487)]=s,await F[t(479)](p)}else console[t(482)](n+t(483))}catch(d){console.error(d)}return e&&e(l),l}async function sn(r,e){const t=oe,{tableName:n,primaryKey:o,mapDB:a}=r;let c=null;try{const u={};u[t(500)]=a,u[t(501)]=n,u[t(495)]=o,await F[t(493)](u)}catch(u){console[t(489)](u)}return e&&e(c),c}const ve={};ve[$e(498)]=nn,ve[$e(484)]=on,ve[$e(487)]=an,ve.clearData=sn;var W=Ae;(function(r,e){for(var t=Ae,n=r();;)try{var o=parseInt(t(471))/1*(-parseInt(t(463))/2)+parseInt(t(478))/3+parseInt(t(459))/4*(-parseInt(t(477))/5)+parseInt(t(473))/6*(-parseInt(t(466))/7)+parseInt(t(458))/8*(parseInt(t(474))/9)+-parseInt(t(460))/10+-parseInt(t(461))/11*(-parseInt(t(472))/12);if(o===e)break;n.push(n.shift())}catch{n.push(n.shift())}})(De,810026);var Cr={};Cr[W(465)]=!1;var qe={};qe.createIndex=Cr,qe.default={};var Dr={};function De(){var r=["userId","queryParams","primaryKey","properties","1DxzTwl","6060FhtxUE","30pBpagl","9VVCqox","DBName","DBStoreName","5hVwTMu","1140096llouGa","DBVersion","stores","7072168MalhsQ","5157724OfTvCR","8714150lVOGng","54263OPTbpD","formParams","1566082zgwBVV","mapDB-indexeddb-form-schema","unique","1827unsERq"];return De=function(){return r},De()}Dr[W(468)]=qe;var Ue={};Ue[W(476)]=W(462),Ue[W(470)]=Dr;var we={};function Ae(r,e){var t=De();return Ae=function(n,o){n=n-458;var a=t[n];return a},Ae(r,e)}we[W(469)]=W(467),we[W(475)]=W(464),we[W(479)]=1,we[W(480)]=[Ue];const ln={formSchema:we},cn=ve,{handleData:dn,getData:Ar}=cn,{formSchema:Ke}=ln,We=async(r,e)=>(e.parametersType==="url"&&(r={...be.queryToData(be.getURLParameter({decode:!0})),...r}),e.parametersType==="indexDB"&&(r={...await Ar({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:e.DBPrimaryKey||"default",mapDB:Ke}),...r}),r),Ye=async(r,e)=>{if(e.parametersType==="url"){const t=be.paramsToQuery({...r});window.location.href=`${window.location.origin}${window.location.pathname}?${new URLSearchParams(t)}`}e.parametersType==="indexDB"&&await dn({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",parameter:{...r},primaryKey:e.DBPrimaryKey||"default",mapDB:Ke})},Ir=async({queryParameter:r={},vm:e={},queryParams:t={}})=>{r.defaultPageFirst??(r.defaultPageFirst=!0);const n={[e.currentPageKey]:e.defCurrentPage};let o={...n,...t,...e.queryParams};o=await We(o,e),r.defaultPageFirst&&(o={...o,...n}),await Ye(o,e),e.getList({...o})},un=async({vm:r={},dispatchQueryParams:e})=>{var t,n;(n=(t=r?.$refs)==null?void 0:t.queryFormRef)==null||n.resetFields();const o=await We({},r),a={[r.currentPageKey]:r.defCurrentPage,[r.pageSizeKey]:o?.[r.pageSizeKey]||r.defPageSize};if(await Ye(a,r),e&&e({data:{...a}}),r.queryParams&&(r.queryParams={...a}),r.afterReset(),r.handleQuery)r.handleQuery();else{if(r.parametersType==="url")return;Ir({vm:r})}},fn=({vm:r={},dispatchQueryParams:e})=>{let t={[r.pageSizeKey]:r.defPageSize};return r.parametersType==="url"&&(t={...t,...be.queryToData(be.getURLParameter({decode:!0}))}),r.parametersType==="indexDB"&&Ar({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:r.DBPrimaryKey||"default",mapDB:Ke},n=>{n&&(t={...t,...n},e&&e({data:{...t}}),r.queryParams&&(r.queryParams={...t})),r.queryWhenReady&&r.$nextTick(()=>{r.handleQuery({defaultPageFirst:!1})})}),r.queryWhenReady&&r.parametersType!=="indexDB"&&r.$nextTick(()=>{r.handleQuery({defaultPageFirst:!1})}),t},mn=({item:r={},vm:e={}})=>{const{type:t,rules:n=[]}=r,o=[...n];return e.noInputBlank&&t==="input"&&o.push({pattern:/\S/,message:"请输入(不能仅输入空格)",trigger:"blur"}),o},pn={makeParamsByType:We,saveParamsByType:Ye,handleQuery:Ir,resetQuery:un,initQueryParams:fn,getItemRules:mn},xe=pn,gn={queryParams:{},message:{},formLoading:!1,dispatchQueryParams:()=>{},getList:()=>{}},jr=T.createContext(gn);T.createContext(null);const yn=(r,e)=>{const{data:t}=e;return console.log(t,e),{...t}},Mr={formItem:[],coms:{Button:[]},getList:()=>{},formData:{},loading:!1,afterReset:()=>{},noInputBlank:!1,currentPageKey:"page",pageSizeKey:"pageSize",parametersType:"url",defCurrentPage:1,DBPrimaryKey:null,defPageSize:10,queryWhenReady:!1},zr=r=>{const t={...Mr,...r,handleQuery:O=>{xe.handleQuery({queryParameter:O,vm:{...Mr,...r}})}},{formItem:n=[],children:o,coms:a,formData:c={},loading:u=!1,queryWhenReady:l=!1}=t,{Button:i}=a,[m,d]=T.useState(!1),[s,p]=T.useState(!1),x=O=>{const j={...O};let b={};return n.forEach(C=>{C.prop&&(b[C.prop]=j[C.prop]||"")}),p(!0),b},[v,w]=T.useReducer(yn,c,x);T.useMemo(()=>{const O=xe.initQueryParams({vm:t,dispatchQueryParams:w});console.log(O),w({data:O})},[s]);const N=async(O,j)=>{let b={};for(const[C,ae]of j.entries()){const J=n.find(U=>U.prop===C);if(J.rules){const U=xe.getItemRules({item:J,vm:t});for(const G of U)try{if(G.required&&!ae)throw new Error(G.message||`${J.label}不能为空`);if(G.pattern&&!G.pattern.test(ae))throw new Error(G.message||`${J.label}格式不正确`);G.validator&&await new Promise((X,K)=>{const $=q=>{if(q){K(q);return}X()};G.validator(G,ae,$)})}catch(X){b[C]||(b[C]=[]),b[C].push({message:X.message||"校验失败"})}}}return Object.keys(b).length==0&&xe.handleQuery({queryParameter:{defaultPageFirst:!l},vm:{...t},queryParams:v}),{...b}},B=()=>{xe.resetQuery({vm:{...t,handleQuery:null},dispatchQueryParams:w})},[D,V,I]=T.useActionState(N,null);return T.useEffect(()=>{d(I)},[I]),T.useEffect(()=>{d(u)},[u]),T.useEffect(()=>{w({data:{...v,...c}})},[c]),P.jsx(jr,{value:{...t,dispatchQueryParams:w,queryParams:v,message:D,formLoading:m},children:P.jsx("form",{action:V,children:P.jsxs(Yt,{children:[n.map((O,j)=>{const b=T.useId();return P.jsxs(Pr,{"data-invalid":D?.[O.prop]&&D?.[O.prop].length>0,children:[P.jsx(Qt,{htmlFor:b,children:O.label}),/^input$/i.test(O.type)&&P.jsx(Ur,{id:b,coms:a,item:O}),P.jsx(Jt,{errors:D?.[O.prop]||[]})]},O.prop)}),o,P.jsxs(Pr,{orientation:"horizontal",children:[P.jsxs(i,{disabled:m,type:"submit",children:[m?P.jsx(Dt,{}):[],"提交"]}),P.jsx(i,{disabled:m,variant:"outline",type:"button",onClick:B,children:"重置"})]})]})})})};function bn(r){const e=Y.c(10);let t,n,o;e[0]!==r?({className:t,type:o,...n}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o):(t=e[1],n=e[2],o=e[3]);let a;e[4]!==t?(a=ne("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input 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",t),e[4]=t,e[5]=a):a=e[5];let c;return e[6]!==n||e[7]!==a||e[8]!==o?(c=P.jsx("input",{type:o,"data-slot":"input",className:a,...n}),e[6]=n,e[7]=a,e[8]=o,e[9]=c):c=e[9],c}const hn=kr("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 hover:bg-primary/90",destructive:"bg-destructive text-white 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 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","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function vn(r){const e=Y.c(14);let t,n,o,a,c;e[0]!==r?({className:t,variant:c,size:o,asChild:a,...n}=r,e[0]=r,e[1]=t,e[2]=n,e[3]=o,e[4]=a,e[5]=c):(t=e[1],n=e[2],o=e[3],a=e[4],c=e[5]);const l=(a===void 0?!1:a)?zt:"button";let i;e[6]!==t||e[7]!==o||e[8]!==c?(i=ne(hn({variant:c,size:o,className:t})),e[6]=t,e[7]=o,e[8]=c,e[9]=i):i=e[9];let m;return e[10]!==l||e[11]!==n||e[12]!==i?(m=P.jsx(l,{"data-slot":"button",className:i,...n}),e[10]=l,e[11]=n,e[12]=i,e[13]=m):m=e[13],m}const wn=r=>{const e=Y.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={Input:bn,Button:vn},e[0]=t):t=e[0];let n;return e[1]!==r?(n=P.jsx(zr,{...r,coms:t}),e[1]=r,e[2]=n):n=e[2],n},xn=zr;re.RBasicForm=xn,re.RGeneralBasicForm=wn,Object.defineProperty(re,Symbol.toStringTag,{value:"Module"})}));
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=B,c={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"),f=a.__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"),se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,se.createPortal=function(d,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error("Target container is not a DOM element.");return r(d,u,null,m)},se.flushSync=function(d){var u=f.T,m=c.p;try{if(f.T=null,c.p=2,d)return d()}finally{f.T=u,c.p=m,c.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.")}},se.preconnect=function(d,u){typeof d=="string"&&d?u!=null&&typeof u!="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(u)):u!=null&&typeof u.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.",o(u.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,c.d.C(d,u))},se.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d));else if(1<arguments.length){var u=arguments[1];typeof u=="object"&&u.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(u)):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(u))}typeof d=="string"&&c.d.D(d)},se.preinit=function(d,u){if(typeof d=="string"&&d?u==null||typeof u!="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(u)):u.as!=="style"&&u.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(u.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&u&&typeof u.as=="string"){var m=u.as,v=n(m,u.crossOrigin),p=typeof u.integrity=="string"?u.integrity:void 0,h=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?c.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:v,integrity:p,fetchPriority:h}):m==="script"&&c.d.X(d,{crossOrigin:v,integrity:p,fetchPriority:h,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},se.preinitModule=function(d,u){var m="";if(typeof d=="string"&&d||(m+=" The `href` argument encountered was "+o(d)+"."),u!==void 0&&typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&u.as!=="script"&&(m+=" The `as` option encountered was "+s(u.as)+"."),m)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",m);else switch(m=u&&typeof u.as=="string"?u.as:"script",m){case"script":break;default:m=s(m),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)',m,d)}typeof d=="string"&&(typeof u=="object"&&u!==null?(u.as==null||u.as==="script")&&(m=n(u.as,u.crossOrigin),c.d.M(d,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})):u==null&&c.d.M(d))},se.preload=function(d,u){var m="";if(typeof d=="string"&&d||(m+=" The `href` argument encountered was "+o(d)+"."),u==null||typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":typeof u.as=="string"&&u.as||(m+=" The `as` option encountered was "+o(u.as)+"."),m&&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',m),typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){m=u.as;var v=n(m,u.crossOrigin);c.d.L(d,m,{crossOrigin:v,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},se.preloadModule=function(d,u){var m="";typeof d=="string"&&d||(m+=" The `href` argument encountered was "+o(d)+"."),u!==void 0&&typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&typeof u.as!="string"&&(m+=" The `as` option encountered was "+o(u.as)+"."),m&&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',m),typeof d=="string"&&(u?(m=n(u.as,u.crossOrigin),c.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0})):c.d.m(d))},se.requestFormReset=function(d){c.d.r(d)},se.unstable_batchedUpdates=function(d,u){return d(u)},se.useFormState=function(d,u,m){return i().useFormState(d,u,m)},se.useFormStatus=function(){return i().useHostTransitionStatus()},se.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),se}var yn;function hi(){if(yn)return bt.exports;yn=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(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),bt.exports=mi()):bt.exports=gi(),bt.exports}var ot=hi();const vi=ms(ot);function bn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wn(...e){return t=>{let r=!1;const n=e.map(o=>{const s=bn(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():bn(e[o],null)}}}}function ne(...e){return g.useCallback(wn(...e),e)}function st(e){const t=bi(e),r=g.forwardRef((n,o)=>{const{children:s,...i}=n,a=g.Children.toArray(s),c=a.find(xi);if(c){const l=c.props.children,f=a.map(d=>d===c?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:d);return w.jsx(t,{...i,ref:o,children:g.isValidElement(l)?g.cloneElement(l,void 0,f):null})}return w.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var yi=st("Slot");function bi(e){const t=g.forwardRef((r,n)=>{const{children:o,...s}=r;if(g.isValidElement(o)){const i=Ei(o),a=Si(s,o.props);return o.type!==g.Fragment&&(a.ref=n?wn(n,i):i),g.cloneElement(o,a)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wi=Symbol("radix.slottable");function xi(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wi}function Si(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function Ei(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=Ci.reduce((e,t)=>{const r=st(`Primitive.${t}`),n=g.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(c,{...a,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ri(e,t){e&&ot.flushSync(()=>e.dispatchEvent(t))}var Pi="Label",xn=g.forwardRef((e,t)=>w.jsx(Z.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));xn.displayName=Pi;var ki=xn;function _i(e){const t=re.c(8);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("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",r),t[3]=r,t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==o?(s=w.jsx(ki,{"data-slot":"label",className:o,...n}),t[5]=n,t[6]=o,t[7]=s):s=t[7],s}function Oi(e){const t=re.c(8);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",r),t[3]=r,t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==o?(s=w.jsx("div",{"data-slot":"field-group",className:o,...n}),t[5]=n,t[6]=o,t[7]=s):s=t[7],s}const Ti=gn("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function Sn(e){const t=re.c(11);let r,n,o;t[0]!==e?({className:r,orientation:o,...n}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o):(r=t[1],n=t[2],o=t[3]);const s=o===void 0?"vertical":o;let i;t[4]!==r||t[5]!==s?(i=ae(Ti({orientation:s}),r),t[4]=r,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==s||t[8]!==n||t[9]!==i?(a=w.jsx("div",{role:"group","data-slot":"field","data-orientation":s,className:i,...n}),t[7]=s,t[8]=n,t[9]=i,t[10]=a):a=t[10],a}function Ai(e){const t=re.c(8);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",r),t[3]=r,t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==o?(s=w.jsx(_i,{"data-slot":"field-label",className:o,...n}),t[5]=n,t[6]=o,t[7]=s):s=t[7],s}function Ni(e){const t=re.c(15);let r,n,o,s;t[0]!==e?({className:n,children:r,errors:o,...s}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s):(r=t[1],n=t[2],o=t[3],s=t[4]);let i;e:{if(r){i=r;break e}if(!o?.length){i=null;break e}let f;t[5]!==o?(f=[...new Map(o.map(Di)).values()],t[5]=o,t[6]=f):f=t[6];const d=f;if(d?.length==1){i=d[0]?.message;break e}let u;t[7]!==d?(u=w.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:d.map(Ii)}),t[7]=d,t[8]=u):u=t[8],i=u}const a=i;if(!a)return null;let c;t[9]!==n?(c=ae("text-destructive text-sm font-normal",n),t[9]=n,t[10]=c):c=t[10];let l;return t[11]!==a||t[12]!==s||t[13]!==c?(l=w.jsx("div",{role:"alert","data-slot":"field-error",className:c,...s,children:a}),t[11]=a,t[12]=s,t[13]=c,t[14]=l):l=t[14],l}function Ii(e,t){return e?.message&&w.jsx("li",{children:e.message},t)}function Di(e){return[e?.message,e]}const Mi=(e={})=>{if(Array.isArray(e)&&e.length>0)return JSON.stringify(e);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];Object.prototype.toString.call(r)==="[object Object]"&&(e[t]=JSON.stringify(r))}return e},Li=(e={})=>{for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];try{/[{]+/g.test(r)&&/[}]+/g.test(r)&&(e[t]=JSON.parse(r))}catch{}}return e},ji=(e={decode:!1})=>{const{decode:t}=e,r=/\+/g,n=/([^&=]+)=?([^&]*)/g,o=c=>decodeURIComponent(c.replace(r," ")),s=window.location.search.substring(1),i={},a=()=>{const c=n.exec(s);return c&&(t?i[o(c[1])]=o(c[2]):i[c[1]]=c[2],a()),i};return a(),i},it={paramsToQuery:Mi,queryToData:Li,getURLParameter:ji},Ce=at;function at(e,t){const r=wt();return at=function(n,o){return n=n-157,r[n]},at(e,t)}(function(e,t){const r=at,n=e();for(;;)try{if(-parseInt(r(216))/1+parseInt(r(215))/2+-parseInt(r(183))/3+-parseInt(r(175))/4*(-parseInt(r(193))/5)+-parseInt(r(162))/6+-parseInt(r(165))/7+-parseInt(r(198))/8*(-parseInt(r(205))/9)===t)break;n.push(n.shift())}catch{n.push(n.shift())}})(wt,144666);const le={};function wt(){const e=["currentTarget","onupgradeneeded","map","transaction","continue","数据更新失败没有request","primaryKey","580315XgKHom","call","Database connection closed, reconnecting...","error","length","64bvXXYM","DBName","数据删除成功","数据库删除失败","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","result","update","863559tPzmuS","put","addEventListener","store不存在,请更新schema和DBVersion并重启前端服务","hasOwnProperty","deleteDB","readwrite","alert","keyPath","onerror","110026kBsQFS","287147ERepGn","info","主键插入失败","target","getDB","warn","get","onsuccess","indexedDB","617742laLJPd","数据更新成功","onabort","1405131SpeByp","objectStore","delete","数据库已删除","获取Database缺乏用户信息,请先传入对primaryKey的赋值","您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.","数据更新失败","没有设置默认值","主键插入中止","keys","4TsnuAV","createObjectStore","主键查询结果:","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","deleteStore","getDataByKey","传入结构化克隆算法不支持的数据类型可能导致报错","mapDB","609543ULkBkv","openCursor","createIndex"];return wt=function(){return e},wt()}let Le=null;const En=async(e,t)=>{const r=at;!window[r(161)]&&window[r(212)](r(170));const{DBName:n="",DBVersion:o=1}=e;let s,i=!1;try{const a=window[r(161)].open(n,o);await new Promise((c,l)=>{const f=r;a[f(187)]=async function(d){const u=f,m=d.target[u(203)],{stores:v=[]}=e;await Promise.all(v[u(188)](async p=>{const h=u,{DBStoreName:y="",properties:b={}}=p;try{const S={};S[h(213)]=e[h(192)];const R=d[h(186)][h(203)][h(176)](y,S);if(Object[h(174)](b)[h(197)]===0){console[h(158)](y+h(172));return}for(const k in b)if(b[h(209)][h(194)](b,k)){const O=b[k],x={...O[h(185)]};R[h(185)](k,k,x)}}catch(S){console[h(158)](S)}})),s=m,i=!0},a.onsuccess=async function(d){const u=f;if(s=this[u(203)],i){const{stores:m=[]}=e;await Promise.all(m.map(async v=>{const p=u,{DBStoreName:h=""}=v,y=s[p(189)]([h],p(211)),b=y[p(166)](h),S={};S[e[p(192)]]=t,b.add(S);try{await new Promise((R,k)=>{const O=p;y[O(164)]=function(x){const C=O;console[C(196)](C(173),x),k()},y.oncomplete=function(x){R()},y.onerror=function(x){console.error(O(218),x),k()}})}catch(R){console[p(158)](p(178),R)}}))}c()},a[f(214)]=function(d){l(d)}})}catch(a){console.error(a,r(202))}return s};let xt=!1;le[Ce(157)]=async(e,t)=>{const r=Ce,{mapDB:n,primaryKey:o}=e;return n?o?(xt&&await new Promise(async(s,i)=>{const a=()=>{xt?setTimeout(()=>{a()},200):s()};a()}),!Le&&(xt=!0,Le=await En(n,o),Le?.[r(207)]("close",async()=>{const s=r;console[s(217)](s(195)),Le=await En(n,o)}),xt=!1),t&&t(Le),Le):(console[r(158)](r(169)),!1):(console[r(158)]("必须传入数据库配置信息"),!1)},le[Ce(180)]=async(e,t)=>{const r=Ce,{mapDB:n,tableName:o,primaryKey:s}=e,i={};i[r(182)]=n,i.primaryKey=s;const a=await le[r(157)](i);if(!a)return;const c=a[r(189)]([o]),l=c[r(166)](o),f=l[r(159)](s);return new Promise((d,u)=>{const m=r;f[m(160)]=function(v){const p=m;t&&t(o+p(177)+f[p(203)]),d(f[p(203)])},f[m(214)]=function(v){console[m(196)](o+"事务失败"+v),u()}})},le.updateStore=async(e,t)=>{var r;const n=Ce,{mapDB:o,tableName:s,updateData:i}=e;!i[o?.[n(192)]]&&console.warn("请传入主键"+o[n(192)]);const a={};a[n(182)]=o,a[n(192)]=i[o?.[n(192)]];const c=await le[n(157)](a);if(!c)return;let l=null;try{l=c[n(189)]([s],n(211)).objectStore(s)}catch(m){console[n(196)](n(208),m)}let f=null,d=null;const u=await new Promise((m,v)=>{const p=n,h=l[p(184)](i[o?.primaryKey]);h[p(160)]=y=>{m(y)},h.onerror=y=>{v(y)}});d=(r=u?.[n(219)])==null?void 0:r.result;try{d&&d?.[n(192)]===i[o?.primaryKey]?f=d[n(204)](i):f=l[n(206)](i)}catch(m){console[n(196)](n(181),m,i)}new Promise((m,v)=>{const p=n;!f&&(console[p(196)](s+p(191)),v()),f[p(160)]=function(h){t&&t(s+p(163)),m()},f.onerror=function(h){console.error(s+p(171),h),v()}}),d&&d[n(190)]()},le[Ce(179)]=async(e,t)=>{const r=Ce,{mapDB:n,tableName:o,primaryKey:s}=e,i={};i[r(182)]=n,i[r(192)]=s;const a=await le.getDB(i);if(!a)return;const c=a[r(189)]([o],r(211))[r(166)](o)[r(167)](s);return new Promise((l,f)=>{const d=r;c[d(160)]=function(u){t&&t(o+d(200)),l()},c[d(214)]=function(u){console[d(196)](o+"数据删除失败"+u),f()}})},le[Ce(210)]=async(e,t)=>{const r=Ce,{mapDB:n}=e,o=window[r(161)].deleteDatabase(n[r(199)]);return new Promise((s,i)=>{const a=r;o[a(160)]=c=>{const l=a;t&&t(n[l(199)]+l(168)),s()},o.onerror=c=>{const l=a;console[l(196)](n[l(199)]+l(201)+c),i()}})};function Oe(e,t){const r=St();return Oe=function(n,o){return n=n-479,r[n]},Oe(e,t)}function St(){const e=["10091907RRJBnT","error","926979tsCzBf","65jghYYS","2344zwfena","deleteStore","14121dQBbMP","primaryKey","231970jMEsEj","197214HCIGpK","handleData","517284tbkZGr","mapDB","tableName","updateStore","getDataByKey","638UAFuAy","warn","为空,请先调用handleData","getData","3xeZFTa","696974ymNsIY","updateData"];return St=function(){return e},St()}const tr=Oe;(function(e,t){const r=Oe,n=e();for(;;)try{if(-parseInt(r(485))/1*(-parseInt(r(486))/2)+-parseInt(r(490))/3+parseInt(r(499))/4+parseInt(r(491))/5*(-parseInt(r(497))/6)+-parseInt(r(488))/7+parseInt(r(492))/8*(parseInt(r(494))/9)+parseInt(r(496))/10*(parseInt(r(481))/11)===t)break;n.push(n.shift())}catch{n.push(n.shift())}})(St,801934);async function Bi(e,t){const r=Oe,{tableName:n,propertiesKey:o,parameter:s,primaryKey:i,mapDB:a}=e;let c=null,l={[a.primaryKey]:i};const f={};f.mapDB=a,f[r(501)]=n,f[r(495)]=i;const d=await le.getDataByKey(f);d&&(l={...d,[a[r(495)]]:i}),l[o]=s;const u={};return u[r(500)]=a,u[r(501)]=n,u.updateData=l,await le.updateStore(u),s&&(c=s),t&&t(c),c}async function Fi(e,t){const r=Oe,{tableName:n,propertiesKey:o,primaryKey:s,mapDB:i}=e;let a=null;const c={};c[r(500)]=i,c.tableName=n,c[r(495)]=s;const l=await le[r(480)](c);return l&&(a=l[o]),t&&t(a),a}async function zi(e,t){const r=Oe,{tableName:n,propertiesKey:o,parameter:s,primaryKey:i,mapDB:a}=e;let c={};const l={};l[r(500)]=a,l[r(501)]=n,l[r(495)]=i;const f=await le.getDataByKey(l);try{if(f){c={...f[o],...s};const d={[a[r(495)]]:i},u=d;u[o]=c;const m={};m.mapDB=a,m[r(501)]=n,m[r(487)]=u,await le[r(479)](m)}else console[r(482)](n+r(483))}catch(d){console.error(d)}return t&&t(c),c}async function $i(e,t){const r=Oe,{tableName:n,primaryKey:o,mapDB:s}=e;let i=null;try{const a={};a[r(500)]=s,a[r(501)]=n,a[r(495)]=o,await le[r(493)](a)}catch(a){console[r(489)](a)}return t&&t(i),i}const lt={};lt[tr(498)]=Bi,lt[tr(484)]=Fi,lt[tr(487)]=zi,lt.clearData=$i;var me=Ct;(function(e,t){for(var r=Ct,n=e();;)try{var o=parseInt(r(471))/1*(-parseInt(r(463))/2)+parseInt(r(478))/3+parseInt(r(459))/4*(-parseInt(r(477))/5)+parseInt(r(473))/6*(-parseInt(r(466))/7)+parseInt(r(458))/8*(parseInt(r(474))/9)+-parseInt(r(460))/10+-parseInt(r(461))/11*(-parseInt(r(472))/12);if(o===t)break;n.push(n.shift())}catch{n.push(n.shift())}})(Et,810026);var Cn={};Cn[me(465)]=!1;var rr={};rr.createIndex=Cn,rr.default={};var Rn={};function Et(){var e=["userId","queryParams","primaryKey","properties","1DxzTwl","6060FhtxUE","30pBpagl","9VVCqox","DBName","DBStoreName","5hVwTMu","1140096llouGa","DBVersion","stores","7072168MalhsQ","5157724OfTvCR","8714150lVOGng","54263OPTbpD","formParams","1566082zgwBVV","mapDB-indexeddb-form-schema","unique","1827unsERq"];return Et=function(){return e},Et()}Rn[me(468)]=rr;var nr={};nr[me(476)]=me(462),nr[me(470)]=Rn;var ct={};function Ct(e,t){var r=Et();return Ct=function(n,o){n=n-458;var s=r[n];return s},Ct(e,t)}ct[me(469)]=me(467),ct[me(475)]=me(464),ct[me(479)]=1,ct[me(480)]=[nr];const Vi={formSchema:ct},Wi=lt,{handleData:Hi,getData:Pn}=Wi,{formSchema:or}=Vi,sr=async(e,t)=>(t.parametersType==="url"&&(e={...it.queryToData(it.getURLParameter({decode:!0})),...e}),t.parametersType==="indexDB"&&(e={...await Pn({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:t.DBPrimaryKey||"default",mapDB:or}),...e}),e),ir=async(e,t)=>{if(t.parametersType==="url"){const r=it.paramsToQuery({...e});window.location.href=`${window.location.origin}${window.location.pathname}?${new URLSearchParams(r)}`}t.parametersType==="indexDB"&&await Hi({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",parameter:{...e},primaryKey:t.DBPrimaryKey||"default",mapDB:or})},kn=async({queryParameter:e={},vm:t={},queryParams:r={}})=>{e.defaultPageFirst??(e.defaultPageFirst=!0);const n={[t.currentPageKey]:t.defCurrentPage};let o={...n,...r,...t.queryParams};o=await sr(o,t),e.defaultPageFirst&&(o={...o,...n}),await ir(o,t),t.getList({...o})},Ui=async({vm:e={},dispatchQueryParams:t})=>{var r,n;(n=(r=e?.$refs)==null?void 0:r.queryFormRef)==null||n.resetFields();const o=await sr({},e),s={[e.currentPageKey]:e.defCurrentPage,[e.pageSizeKey]:o?.[e.pageSizeKey]||e.defPageSize};if(await ir(s,e),t&&t({data:{...s}}),e.queryParams&&(e.queryParams={...s}),e.afterReset(),e.handleQuery)e.handleQuery();else{if(e.parametersType==="url")return;kn({vm:e})}},Ki=({vm:e={},dispatchQueryParams:t})=>{let r={[e.pageSizeKey]:e.defPageSize};return e.parametersType==="url"&&(r={...r,...it.queryToData(it.getURLParameter({decode:!0}))}),e.parametersType==="indexDB"&&Pn({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:e.DBPrimaryKey||"default",mapDB:or},n=>{n&&(r={...r,...n},t&&t({data:{...r}}),e.queryParams&&(e.queryParams={...r})),e.queryWhenReady&&e.$nextTick(()=>{e.handleQuery({defaultPageFirst:!1})})}),e.queryWhenReady&&e.parametersType!=="indexDB"&&e.$nextTick(()=>{e.handleQuery({defaultPageFirst:!1})}),r},Gi=({item:e={},vm:t={}})=>{const{type:r,rules:n=[]}=e,o=[...n];return t.noInputBlank&&r==="input"&&o.push({pattern:/\S/,message:"请输入(不能仅输入空格)",trigger:"blur"}),o},qi={makeParamsByType:sr,saveParamsByType:ir,handleQuery:kn,resetQuery:Ui,initQueryParams:Ki,getItemRules:Gi},ut=qi,Yi={queryParams:{},message:{},formLoading:!1,dispatchQueryParams:()=>{},getList:()=>{}},Rt=B.createContext(Yi);B.createContext(null);const Xi=(e,t)=>{const{data:r}=t;return{...r}},_n={formItem:[],coms:{Button:[]},getList:()=>{},formData:{},loading:!1,afterReset:()=>{},noInputBlank:!1,currentPageKey:"page",pageSizeKey:"pageSize",parametersType:"url",defCurrentPage:1,DBPrimaryKey:null,defPageSize:10,queryWhenReady:!1},On=e=>{const r={..._n,...e,handleQuery:x=>{ut.handleQuery({queryParameter:x,vm:{..._n,...e}})}},{formItem:n=[],children:o,coms:s,formData:i={},fieldGroupSetting:a={},loading:c=!1,queryWhenReady:l=!1}=r,{Button:f}=s,[d,u]=B.useState(!1),[m,v]=B.useState(!1),p=x=>{const C={...x};let T={};return n.forEach(I=>{I.prop&&(T[I.prop]=C[I.prop]||"")}),v(!0),T},[h,y]=B.useReducer(Xi,i,p);B.useMemo(()=>{const x=ut.initQueryParams({vm:r,dispatchQueryParams:y});y({data:x})},[m]);const b=async(x,C)=>{let T={};for(const[I,$]of Object.entries(h)){const V=n.find(H=>H.prop===I);if(V&&V.rules){const H=ut.getItemRules({item:V,vm:r});for(const L of H)try{if(L.required&&!$)throw new Error(L.message||`${V.label}不能为空`);if(L.pattern&&!L.pattern.test($))throw new Error(L.message||`${V.label}格式不正确`);L.validator&&await new Promise((U,D)=>{const F=P=>{if(P){D(P);return}U()};L.validator(L,$,F)})}catch(U){T[I]||(T[I]=[]),T[I].push({message:U.message||"校验失败"})}}}return Object.keys(T).length==0&&ut.handleQuery({queryParameter:{defaultPageFirst:!l},vm:{...r},queryParams:h}),{...T}},S=()=>{ut.resetQuery({vm:{...r,handleQuery:null},dispatchQueryParams:y})},[R,k,O]=B.useActionState(b,null);return B.useEffect(()=>{u(O)},[O]),B.useEffect(()=>{u(c)},[c]),B.useEffect(()=>{y({data:{...h,...i}})},[i]),w.jsx(Rt,{value:{...r,dispatchQueryParams:y,queryParams:h,message:R,formLoading:d},children:w.jsx("form",{action:k,children:w.jsxs(Oi,{...a,children:[n.map((x,C)=>{const T=B.useId();return w.jsxs(Sn,{"data-invalid":R?.[x.prop]&&R?.[x.prop].length>0,...x.fieldSetting,children:[w.jsx(Ai,{htmlFor:T,children:x.label}),w.jsx(Kr,{coms:s,item:x,id:T,type:x.type}),/^form-list$/i.test(x.type)&&w.jsx(Is,{id:T,coms:s,item:x}),w.jsx(Ni,{errors:R?.[x.prop]||[]})]},x.prop)}),o,w.jsxs(Sn,{orientation:"horizontal",children:[w.jsxs(f,{disabled:d,type:"submit",children:[d?w.jsx(pi,{}):[],"提交"]}),w.jsx(f,{disabled:d,variant:"outline",type:"button",onClick:S,children:"重置"})]})]})})})};function Qi(e){const t=re.c(10);let r,n,o;t[0]!==e?({className:r,type:o,...n}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o):(r=t[1],n=t[2],o=t[3]);let s;t[4]!==r?(s=ae("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input 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",r),t[4]=r,t[5]=s):s=t[5];let i;return t[6]!==n||t[7]!==s||t[8]!==o?(i=w.jsx("input",{type:o,"data-slot":"input",className:s,...n}),t[6]=n,t[7]=s,t[8]=o,t[9]=i):i=t[9],i}const Zi=gn("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 hover:bg-primary/90",destructive:"bg-destructive text-white 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 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","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ji(e){const t=re.c(14);let r,n,o,s,i;t[0]!==e?({className:r,variant:i,size:o,asChild:s,...n}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s,t[5]=i):(r=t[1],n=t[2],o=t[3],s=t[4],i=t[5]);const c=(s===void 0?!1:s)?yi:"button";let l;t[6]!==r||t[7]!==o||t[8]!==i?(l=ae(Zi({variant:i,size:o,className:r})),t[6]=r,t[7]=o,t[8]=i,t[9]=l):l=t[9];let f;return t[10]!==c||t[11]!==n||t[12]!==l?(f=w.jsx(c,{"data-slot":"button",className:l,...n}),t[10]=c,t[11]=n,t[12]=l,t[13]=f):f=t[13],f}function Tn(e,[t,r]){return Math.min(r,Math.max(t,e))}function J(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function ar(e,t=[]){let r=[];function n(s,i){const a=g.createContext(i),c=r.length;r=[...r,i];const l=d=>{const{scope:u,children:m,...v}=d,p=u?.[e]?.[c]||a,h=g.useMemo(()=>v,Object.values(v));return w.jsx(p.Provider,{value:h,children:m})};l.displayName=s+"Provider";function f(d,u){const m=u?.[e]?.[c]||a,v=g.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const o=()=>{const s=r.map(i=>g.createContext(i));return function(a){const c=a?.[e]||s;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[n,ea(o,...t)]}function ea(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=n.reduce((a,{useScope:c,scopeName:l})=>{const d=c(s)[`__scope${l}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function ta(e){const t=e+"CollectionProvider",[r,n]=ar(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:h,children:y}=p,b=B.useRef(null),S=B.useRef(new Map).current;return w.jsx(o,{scope:h,itemMap:S,collectionRef:b,children:y})};i.displayName=t;const a=e+"CollectionSlot",c=st(a),l=B.forwardRef((p,h)=>{const{scope:y,children:b}=p,S=s(a,y),R=ne(h,S.collectionRef);return w.jsx(c,{ref:R,children:b})});l.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",u=st(f),m=B.forwardRef((p,h)=>{const{scope:y,children:b,...S}=p,R=B.useRef(null),k=ne(h,R),O=s(f,y);return B.useEffect(()=>(O.itemMap.set(R,{ref:R,...S}),()=>void O.itemMap.delete(R))),w.jsx(u,{[d]:"",ref:k,children:b})});m.displayName=f;function v(p){const h=s(e+"CollectionConsumer",p);return B.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const S=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((O,x)=>S.indexOf(O.ref.current)-S.indexOf(x.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},v,n]}var ra=g.createContext(void 0);function na(e){const t=g.useContext(ra);return e||t||"ltr"}function je(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>t.current?.(...r),[])}function oa(e,t=globalThis?.document){const r=je(e);g.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var sa="DismissableLayer",lr="dismissableLayer.update",ia="dismissableLayer.pointerDownOutside",aa="dismissableLayer.focusOutside",An,Nn=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),In=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=g.useContext(Nn),[f,d]=g.useState(null),u=f?.ownerDocument??globalThis?.document,[,m]=g.useState({}),v=ne(t,x=>d(x)),p=Array.from(l.layers),[h]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(h),b=f?p.indexOf(f):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,R=b>=y,k=ua(x=>{const C=x.target,T=[...l.branches].some(I=>I.contains(C));!R||T||(o?.(x),i?.(x),x.defaultPrevented||a?.())},u),O=da(x=>{const C=x.target;[...l.branches].some(I=>I.contains(C))||(s?.(x),i?.(x),x.defaultPrevented||a?.())},u);return oa(x=>{b===l.layers.size-1&&(n?.(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},u),g.useEffect(()=>{if(f)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(An=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Dn(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=An)}},[f,u,r,l]),g.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Dn())},[f,l]),g.useEffect(()=>{const x=()=>m({});return document.addEventListener(lr,x),()=>document.removeEventListener(lr,x)},[]),w.jsx(Z.div,{...c,ref:v,style:{pointerEvents:S?R?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,O.onFocusCapture),onBlurCapture:J(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,k.onPointerDownCapture)})});In.displayName=sa;var la="DismissableLayerBranch",ca=g.forwardRef((e,t)=>{const r=g.useContext(Nn),n=g.useRef(null),o=ne(t,n);return g.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),w.jsx(Z.div,{...e,ref:o})});ca.displayName=la;function ua(e,t=globalThis?.document){const r=je(e),n=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let c=function(){Mn(ia,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function da(e,t=globalThis?.document){const r=je(e),n=g.useRef(!1);return g.useEffect(()=>{const o=s=>{s.target&&!n.current&&Mn(aa,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Dn(){const e=new CustomEvent(lr);document.dispatchEvent(e)}function Mn(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ri(o,s):o.dispatchEvent(s)}var cr=0;function fa(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ln()),document.body.insertAdjacentElement("beforeend",e[1]??Ln()),cr++,()=>{cr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cr--}},[])}function Ln(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ur="focusScope.autoFocusOnMount",dr="focusScope.autoFocusOnUnmount",jn={bubbles:!1,cancelable:!0},pa="FocusScope",Bn=g.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=g.useState(null),l=je(o),f=je(s),d=g.useRef(null),u=ne(t,p=>c(p)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let p=function(S){if(m.paused||!a)return;const R=S.target;a.contains(R)?d.current=R:Te(d.current,{select:!0})},h=function(S){if(m.paused||!a)return;const R=S.relatedTarget;R!==null&&(a.contains(R)||Te(d.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Te(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",h);const b=new MutationObserver(y);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),b.disconnect()}}},[n,a,m.paused]),g.useEffect(()=>{if(a){$n.add(m);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(ur,jn);a.addEventListener(ur,l),a.dispatchEvent(y),y.defaultPrevented||(ma(ba(Fn(a)),{select:!0}),document.activeElement===p&&Te(a))}return()=>{a.removeEventListener(ur,l),setTimeout(()=>{const y=new CustomEvent(dr,jn);a.addEventListener(dr,f),a.dispatchEvent(y),y.defaultPrevented||Te(p??document.body,{select:!0}),a.removeEventListener(dr,f),$n.remove(m)},0)}}},[a,l,f,m]);const v=g.useCallback(p=>{if(!r&&!n||m.paused)return;const h=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(h&&y){const b=p.currentTarget,[S,R]=ga(b);S&&R?!p.shiftKey&&y===R?(p.preventDefault(),r&&Te(S,{select:!0})):p.shiftKey&&y===S&&(p.preventDefault(),r&&Te(R,{select:!0})):y===b&&p.preventDefault()}},[r,n,m.paused]);return w.jsx(Z.div,{tabIndex:-1,...i,ref:u,onKeyDown:v})});Bn.displayName=pa;function ma(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Te(n,{select:t}),document.activeElement!==r)return}function ga(e){const t=Fn(e),r=zn(t,e),n=zn(t.reverse(),e);return[r,n]}function Fn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function zn(e,t){for(const r of e)if(!ha(r,{upTo:t}))return r}function ha(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function va(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&va(e)&&t&&e.select()}}var $n=ya();function ya(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Vn(e,t),e.unshift(t)},remove(t){e=Vn(e,t),e[0]?.resume()}}}function Vn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ba(e){return e.filter(t=>t.tagName!=="A")}var ce=globalThis?.document?g.useLayoutEffect:()=>{},wa=g[" useId ".trim().toString()]||(()=>{}),xa=0;function fr(e){const[t,r]=g.useState(wa());return ce(()=>{r(n=>n??String(xa++))},[e]),t?`radix-${t}`:""}const Sa=["top","right","bottom","left"],Ae=Math.min,de=Math.max,Pt=Math.round,kt=Math.floor,ye=e=>({x:e,y:e}),Ea={left:"right",right:"left",bottom:"top",top:"bottom"},Ca={start:"end",end:"start"};function pr(e,t,r){return de(e,Ae(t,r))}function Re(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function mr(e){return e==="x"?"y":"x"}function gr(e){return e==="y"?"height":"width"}const Ra=new Set(["top","bottom"]);function be(e){return Ra.has(Pe(e))?"y":"x"}function hr(e){return mr(be(e))}function Pa(e,t,r){r===void 0&&(r=!1);const n=Ke(e),o=hr(e),s=gr(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=_t(i)),[i,_t(i)]}function ka(e){const t=_t(e);return[vr(e),t,vr(t)]}function vr(e){return e.replace(/start|end/g,t=>Ca[t])}const Wn=["left","right"],Hn=["right","left"],_a=["top","bottom"],Oa=["bottom","top"];function Ta(e,t,r){switch(e){case"top":case"bottom":return r?t?Hn:Wn:t?Wn:Hn;case"left":case"right":return t?_a:Oa;default:return[]}}function Aa(e,t,r,n){const o=Ke(e);let s=Ta(Pe(e),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(vr)))),s}function _t(e){return e.replace(/left|right|bottom|top/g,t=>Ea[t])}function Na(e){return{top:0,right:0,bottom:0,left:0,...e}}function Un(e){return typeof e!="number"?Na(e):{top:e,right:e,bottom:e,left:e}}function Ot(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Kn(e,t,r){let{reference:n,floating:o}=e;const s=be(t),i=hr(t),a=gr(i),c=Pe(t),l=s==="y",f=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,u=n[a]/2-o[a]/2;let m;switch(c){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-o.width,y:d};break;default:m={x:n.x,y:n.y}}switch(Ke(t)){case"start":m[i]-=u*(r&&l?-1:1);break;case"end":m[i]+=u*(r&&l?-1:1);break}return m}const Ia=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Kn(l,n,c),u=n,m={},v=0;for(let p=0;p<a.length;p++){const{name:h,fn:y}=a[p],{x:b,y:S,data:R,reset:k}=await y({x:f,y:d,initialPlacement:n,placement:u,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:t}});f=b??f,d=S??d,m={...m,[h]:{...m[h],...R}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(u=k.placement),k.rects&&(l=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:d}=Kn(l,u,c)),p=-1)}return{x:f,y:d,placement:u,strategy:o,middlewareData:m}};async function dt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:u=!1,padding:m=0}=Re(t,e),v=Un(m),h=a[u?d==="floating"?"reference":"floating":d],y=Ot(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(h)))==null||r?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),b=d==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),R=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},k=Ot(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:S,strategy:c}):b);return{top:(y.top-k.top+v.top)/R.y,bottom:(k.bottom-y.bottom+v.bottom)/R.y,left:(y.left-k.left+v.left)/R.x,right:(k.right-y.right+v.right)/R.x}}const Da=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=Re(e,t)||{};if(l==null)return{};const d=Un(f),u={x:r,y:n},m=hr(o),v=gr(m),p=await i.getDimensions(l),h=m==="y",y=h?"top":"left",b=h?"bottom":"right",S=h?"clientHeight":"clientWidth",R=s.reference[v]+s.reference[m]-u[m]-s.floating[v],k=u[m]-s.reference[m],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let x=O?O[S]:0;(!x||!await(i.isElement==null?void 0:i.isElement(O)))&&(x=a.floating[S]||s.floating[v]);const C=R/2-k/2,T=x/2-p[v]/2-1,I=Ae(d[y],T),$=Ae(d[b],T),V=I,H=x-p[v]-$,L=x/2-p[v]/2+C,U=pr(V,L,H),D=!c.arrow&&Ke(o)!=null&&L!==U&&s.reference[v]/2-(L<V?I:$)-p[v]/2<0,F=D?L<V?L-V:L-H:0;return{[m]:u[m]+F,data:{[m]:U,centerOffset:L-U-F,...D&&{alignmentOffset:F}},reset:D}}}),Ma=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...h}=Re(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const y=Pe(o),b=be(a),S=Pe(a)===a,R=await(c.isRTL==null?void 0:c.isRTL(l.floating)),k=u||(S||!p?[_t(a)]:ka(a)),O=v!=="none";!u&&O&&k.push(...Aa(a,p,v,R));const x=[a,...k],C=await dt(t,h),T=[];let I=((n=s.flip)==null?void 0:n.overflows)||[];if(f&&T.push(C[y]),d){const L=Pa(o,i,R);T.push(C[L[0]],C[L[1]])}if(I=[...I,{placement:o,overflows:T}],!T.every(L=>L<=0)){var $,V;const L=((($=s.flip)==null?void 0:$.index)||0)+1,U=x[L];if(U&&(!(d==="alignment"?b!==be(U):!1)||I.every(P=>be(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:L,overflows:I},reset:{placement:U}};let D=(V=I.filter(F=>F.overflows[0]<=0).sort((F,P)=>F.overflows[1]-P.overflows[1])[0])==null?void 0:V.placement;if(!D)switch(m){case"bestFit":{var H;const F=(H=I.filter(P=>{if(O){const q=be(P.placement);return q===b||q==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(q=>q>0).reduce((q,ee)=>q+ee,0)]).sort((P,q)=>P[1]-q[1])[0])==null?void 0:H[0];F&&(D=F);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Gn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qn(e){return Sa.some(t=>e[t]>=0)}const La=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Re(e,t);switch(n){case"referenceHidden":{const s=await dt(t,{...o,elementContext:"reference"}),i=Gn(s,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:qn(i)}}}case"escaped":{const s=await dt(t,{...o,altBoundary:!0}),i=Gn(s,r.floating);return{data:{escapedOffsets:i,escaped:qn(i)}}}default:return{}}}}},Yn=new Set(["left","top"]);async function ja(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Pe(r),a=Ke(r),c=be(r)==="y",l=Yn.has(i)?-1:1,f=s&&c?-1:1,d=Re(t,e);let{mainAxis:u,crossAxis:m,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),c?{x:m*f,y:u*l}:{x:u*l,y:m*f}}const Ba=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await ja(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Fa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:h=>{let{x:y,y:b}=h;return{x:y,y:b}}},...c}=Re(e,t),l={x:r,y:n},f=await dt(t,c),d=be(Pe(o)),u=mr(d);let m=l[u],v=l[d];if(s){const h=u==="y"?"top":"left",y=u==="y"?"bottom":"right",b=m+f[h],S=m-f[y];m=pr(b,m,S)}if(i){const h=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=v+f[h],S=v-f[y];v=pr(b,v,S)}const p=a.fn({...t,[u]:m,[d]:v});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[u]:s,[d]:i}}}}}},za=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Re(e,t),f={x:r,y:n},d=be(o),u=mr(d);let m=f[u],v=f[d];const p=Re(a,t),h=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const S=u==="y"?"height":"width",R=s.reference[u]-s.floating[S]+h.mainAxis,k=s.reference[u]+s.reference[S]-h.mainAxis;m<R?m=R:m>k&&(m=k)}if(l){var y,b;const S=u==="y"?"width":"height",R=Yn.has(Pe(o)),k=s.reference[d]-s.floating[S]+(R&&((y=i.offset)==null?void 0:y[d])||0)+(R?0:h.crossAxis),O=s.reference[d]+s.reference[S]+(R?0:((b=i.offset)==null?void 0:b[d])||0)-(R?h.crossAxis:0);v<k?v=k:v>O&&(v=O)}return{[u]:m,[d]:v}}}},$a=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=Re(e,t),f=await dt(t,l),d=Pe(o),u=Ke(o),m=be(o)==="y",{width:v,height:p}=s.floating;let h,y;d==="top"||d==="bottom"?(h=d,y=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,h=u==="end"?"top":"bottom");const b=p-f.top-f.bottom,S=v-f.left-f.right,R=Ae(p-f[h],b),k=Ae(v-f[y],S),O=!t.middlewareData.shift;let x=R,C=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=S),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(x=b),O&&!u){const I=de(f.left,0),$=de(f.right,0),V=de(f.top,0),H=de(f.bottom,0);m?C=v-2*(I!==0||$!==0?I+$:de(f.left,f.right)):x=p-2*(V!==0||H!==0?V+H:de(f.top,f.bottom))}await c({...t,availableWidth:C,availableHeight:x});const T=await i.getDimensions(a.floating);return v!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Tt(){return typeof window<"u"}function Ge(e){return Xn(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Xn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xn(e){return Tt()?e instanceof Node||e instanceof fe(e).Node:!1}function ge(e){return Tt()?e instanceof Element||e instanceof fe(e).Element:!1}function xe(e){return Tt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function Qn(e){return!Tt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const Va=new Set(["inline","contents"]);function ft(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=he(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Va.has(o)}const Wa=new Set(["table","td","th"]);function Ha(e){return Wa.has(Ge(e))}const Ua=[":popover-open",":modal"];function At(e){return Ua.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ka=["transform","translate","scale","rotate","perspective"],Ga=["transform","translate","scale","rotate","perspective","filter"],qa=["paint","layout","strict","content"];function yr(e){const t=br(),r=ge(e)?he(e):e;return Ka.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Ga.some(n=>(r.willChange||"").includes(n))||qa.some(n=>(r.contain||"").includes(n))}function Ya(e){let t=Ne(e);for(;xe(t)&&!qe(t);){if(yr(t))return t;if(At(t))return null;t=Ne(t)}return null}function br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xa=new Set(["html","body","#document"]);function qe(e){return Xa.has(Ge(e))}function he(e){return fe(e).getComputedStyle(e)}function Nt(e){return ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(Ge(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qn(e)&&e.host||we(e);return Qn(t)?t.host:t}function Zn(e){const t=Ne(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&ft(t)?t:Zn(t)}function pt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Zn(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=fe(o);if(s){const a=wr(i);return t.concat(i,i.visualViewport||[],ft(o)?o:[],a&&r?pt(a):[])}return t.concat(o,pt(o,[],r))}function wr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jn(e){const t=he(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=xe(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:n,a=Pt(r)!==s||Pt(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function xr(e){return ge(e)?e:e.contextElement}function Ye(e){const t=xr(e);if(!xe(t))return ye(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=Jn(t);let i=(s?Pt(r.width):r.width)/n,a=(s?Pt(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Qa=ye(0);function eo(e){const t=fe(e);return!br()||!t.visualViewport?Qa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Za(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fe(e)?!1:t}function Be(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=xr(e);let i=ye(1);t&&(n?ge(n)&&(i=Ye(n)):i=Ye(e));const a=Za(s,r,n)?eo(s):ye(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(s){const u=fe(s),m=n&&ge(n)?fe(n):n;let v=u,p=wr(v);for(;p&&n&&m!==v;){const h=Ye(p),y=p.getBoundingClientRect(),b=he(p),S=y.left+(p.clientLeft+parseFloat(b.paddingLeft))*h.x,R=y.top+(p.clientTop+parseFloat(b.paddingTop))*h.y;c*=h.x,l*=h.y,f*=h.x,d*=h.y,c+=S,l+=R,v=fe(p),p=wr(v)}}return Ot({width:f,height:d,x:c,y:l})}function It(e,t){const r=Nt(e).scrollLeft;return t?t.left+r:Be(we(e)).left+r}function to(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-It(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Ja(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",i=we(n),a=t?At(t.floating):!1;if(n===i||a&&s)return r;let c={scrollLeft:0,scrollTop:0},l=ye(1);const f=ye(0),d=xe(n);if((d||!d&&!s)&&((Ge(n)!=="body"||ft(i))&&(c=Nt(n)),xe(n))){const m=Be(n);l=Ye(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const u=i&&!d&&!s?to(i,c):ye(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+f.x+u.x,y:r.y*l.y-c.scrollTop*l.y+f.y+u.y}}function el(e){return Array.from(e.getClientRects())}function tl(e){const t=we(e),r=Nt(e),n=e.ownerDocument.body,o=de(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=de(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+It(e);const a=-r.scrollTop;return he(n).direction==="rtl"&&(i+=de(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:i,y:a}}const ro=25;function rl(e,t){const r=fe(e),n=we(e),o=r.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const f=br();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=It(n);if(l<=0){const f=n.ownerDocument,d=f.body,u=getComputedStyle(d),m=f.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,v=Math.abs(n.clientWidth-d.clientWidth-m);v<=ro&&(s-=v)}else l<=ro&&(s+=l);return{width:s,height:i,x:a,y:c}}const nl=new Set(["absolute","fixed"]);function ol(e,t){const r=Be(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=xe(e)?Ye(e):ye(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=n*s.y;return{width:i,height:a,x:c,y:l}}function no(e,t,r){let n;if(t==="viewport")n=rl(e,r);else if(t==="document")n=tl(we(e));else if(ge(t))n=ol(t,r);else{const o=eo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ot(n)}function oo(e,t){const r=Ne(e);return r===t||!ge(r)||qe(r)?!1:he(r).position==="fixed"||oo(r,t)}function sl(e,t){const r=t.get(e);if(r)return r;let n=pt(e,[],!1).filter(a=>ge(a)&&Ge(a)!=="body"),o=null;const s=he(e).position==="fixed";let i=s?Ne(e):e;for(;ge(i)&&!qe(i);){const a=he(i),c=yr(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&nl.has(o.position)||ft(i)&&!c&&oo(e,i))?n=n.filter(f=>f!==i):o=a,i=Ne(i)}return t.set(e,n),n}function il(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?At(t)?[]:sl(t,this._c):[].concat(r),n],a=i[0],c=i.reduce((l,f)=>{const d=no(t,f,o);return l.top=de(d.top,l.top),l.right=Ae(d.right,l.right),l.bottom=Ae(d.bottom,l.bottom),l.left=de(d.left,l.left),l},no(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function al(e){const{width:t,height:r}=Jn(e);return{width:t,height:r}}function ll(e,t,r){const n=xe(t),o=we(t),s=r==="fixed",i=Be(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ye(0);function l(){c.x=It(o)}if(n||!n&&!s)if((Ge(t)!=="body"||ft(o))&&(a=Nt(t)),n){const m=Be(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();s&&!n&&o&&l();const f=o&&!n&&!s?to(o,a):ye(0),d=i.left+a.scrollLeft-c.x-f.x,u=i.top+a.scrollTop-c.y-f.y;return{x:d,y:u,width:i.width,height:i.height}}function Sr(e){return he(e).position==="static"}function so(e,t){if(!xe(e)||he(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return we(e)===r&&(r=r.ownerDocument.body),r}function io(e,t){const r=fe(e);if(At(e))return r;if(!xe(e)){let o=Ne(e);for(;o&&!qe(o);){if(ge(o)&&!Sr(o))return o;o=Ne(o)}return r}let n=so(e,t);for(;n&&Ha(n)&&Sr(n);)n=so(n,t);return n&&qe(n)&&Sr(n)&&!yr(n)?r:n||Ya(e)||r}const cl=async function(e){const t=this.getOffsetParent||io,r=this.getDimensions,n=await r(e.floating);return{reference:ll(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ul(e){return he(e).direction==="rtl"}const dl={convertOffsetParentRelativeRectToViewportRelativeRect:Ja,getDocumentElement:we,getClippingRect:il,getOffsetParent:io,getElementRects:cl,getClientRects:el,getDimensions:al,getScale:Ye,isElement:ge,isRTL:ul};function ao(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fl(e,t){let r=null,n;const o=we(e);function s(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:f,top:d,width:u,height:m}=l;if(a||t(),!u||!m)return;const v=kt(d),p=kt(o.clientWidth-(f+u)),h=kt(o.clientHeight-(d+m)),y=kt(f),S={rootMargin:-v+"px "+-p+"px "+-h+"px "+-y+"px",threshold:de(0,Ae(1,c))||1};let R=!0;function k(O){const x=O[0].intersectionRatio;if(x!==c){if(!R)return i();x?i(!1,x):n=setTimeout(()=>{i(!1,1e-7)},1e3)}x===1&&!ao(l,e.getBoundingClientRect())&&i(),R=!1}try{r=new IntersectionObserver(k,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,S)}r.observe(e)}return i(!0),s}function pl(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=xr(e),f=o||s?[...l?pt(l):[],...pt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),s&&y.addEventListener("resize",r)});const d=l&&a?fl(l,r):null;let u=-1,m=null;i&&(m=new ResizeObserver(y=>{let[b]=y;b&&b.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),r()}),l&&!c&&m.observe(l),m.observe(t));let v,p=c?Be(e):null;c&&h();function h(){const y=Be(e);p&&!ao(p,y)&&r(),p=y,v=requestAnimationFrame(h)}return r(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",r),s&&b.removeEventListener("resize",r)}),d?.(),(y=m)==null||y.disconnect(),m=null,c&&cancelAnimationFrame(v)}}const ml=Ba,gl=Fa,hl=Ma,vl=$a,yl=La,lo=Da,bl=za,wl=(e,t,r)=>{const n=new Map,o={platform:dl,...r},s={...o.platform,_c:n};return Ia(e,t,{...o,platform:s})};var xl=typeof document<"u",Sl=function(){},Dt=xl?B.useLayoutEffect:Sl;function Mt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Mt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!Mt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function co(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uo(e,t){const r=co(e);return Math.round(t*r)/r}function Er(e){const t=g.useRef(e);return Dt(()=>{t.current=e}),t}function El(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,d]=g.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[u,m]=g.useState(n);Mt(u,n)||m(n);const[v,p]=g.useState(null),[h,y]=g.useState(null),b=g.useCallback(P=>{P!==O.current&&(O.current=P,p(P))},[]),S=g.useCallback(P=>{P!==x.current&&(x.current=P,y(P))},[]),R=s||v,k=i||h,O=g.useRef(null),x=g.useRef(null),C=g.useRef(f),T=c!=null,I=Er(c),$=Er(o),V=Er(l),H=g.useCallback(()=>{if(!O.current||!x.current)return;const P={placement:t,strategy:r,middleware:u};$.current&&(P.platform=$.current),wl(O.current,x.current,P).then(q=>{const ee={...q,isPositioned:V.current!==!1};L.current&&!Mt(C.current,ee)&&(C.current=ee,ot.flushSync(()=>{d(ee)}))})},[u,t,r,$,V]);Dt(()=>{l===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[l]);const L=g.useRef(!1);Dt(()=>(L.current=!0,()=>{L.current=!1}),[]),Dt(()=>{if(R&&(O.current=R),k&&(x.current=k),R&&k){if(I.current)return I.current(R,k,H);H()}},[R,k,H,I,T]);const U=g.useMemo(()=>({reference:O,floating:x,setReference:b,setFloating:S}),[b,S]),D=g.useMemo(()=>({reference:R,floating:k}),[R,k]),F=g.useMemo(()=>{const P={position:r,left:0,top:0};if(!D.floating)return P;const q=uo(D.floating,f.x),ee=uo(D.floating,f.y);return a?{...P,transform:"translate("+q+"px, "+ee+"px)",...co(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:q,top:ee}},[r,a,D.floating,f.x,f.y]);return g.useMemo(()=>({...f,update:H,refs:U,elements:D,floatingStyles:F}),[f,H,U,D,F])}const Cl=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?lo({element:n.current,padding:o}).fn(r):{}:n?lo({element:n,padding:o}).fn(r):{}}}},Rl=(e,t)=>({...ml(e),options:[e,t]}),Pl=(e,t)=>({...gl(e),options:[e,t]}),kl=(e,t)=>({...bl(e),options:[e,t]}),_l=(e,t)=>({...hl(e),options:[e,t]}),Ol=(e,t)=>({...vl(e),options:[e,t]}),Tl=(e,t)=>({...yl(e),options:[e,t]}),Al=(e,t)=>({...Cl(e),options:[e,t]});var Nl="Arrow",fo=g.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return w.jsx(Z.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});fo.displayName=Nl;var Il=fo;function Dl(e){const[t,r]=g.useState(void 0);return ce(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Cr="Popper",[po,mo]=ar(Cr),[Ml,go]=po(Cr),ho=e=>{const{__scopePopper:t,children:r}=e,[n,o]=g.useState(null);return w.jsx(Ml,{scope:t,anchor:n,onAnchorChange:o,children:r})};ho.displayName=Cr;var vo="PopperAnchor",yo=g.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=go(vo,r),i=g.useRef(null),a=ne(t,i),c=g.useRef(null);return g.useEffect(()=>{const l=c.current;c.current=n?.current||i.current,l!==c.current&&s.onAnchorChange(c.current)}),n?null:w.jsx(Z.div,{...o,ref:a})});yo.displayName=vo;var Rr="PopperContent",[Ll,jl]=po(Rr),bo=g.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:u=!1,updatePositionStrategy:m="optimized",onPlaced:v,...p}=e,h=go(Rr,r),[y,b]=g.useState(null),S=ne(t,_=>b(_)),[R,k]=g.useState(null),O=Dl(R),x=O?.width??0,C=O?.height??0,T=n+(s!=="center"?"-"+s:""),I=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(l)?l:[l],V=$.length>0,H={padding:I,boundary:$.filter(Fl),altBoundary:V},{refs:L,floatingStyles:U,placement:D,isPositioned:F,middlewareData:P}=El({strategy:"fixed",placement:T,whileElementsMounted:(..._)=>pl(..._,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[Rl({mainAxis:o+C,alignmentAxis:i}),c&&Pl({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?kl():void 0,...H}),c&&_l({...H}),Ol({...H,apply:({elements:_,rects:K,availableWidth:Q,availableHeight:G})=>{const{width:Y,height:X}=K.reference,pe=_.floating.style;pe.setProperty("--radix-popper-available-width",`${Q}px`),pe.setProperty("--radix-popper-available-height",`${G}px`),pe.setProperty("--radix-popper-anchor-width",`${Y}px`),pe.setProperty("--radix-popper-anchor-height",`${X}px`)}}),R&&Al({element:R,padding:a}),zl({arrowWidth:x,arrowHeight:C}),u&&Tl({strategy:"referenceHidden",...H})]}),[q,ee]=So(D),E=je(v);ce(()=>{F&&E?.()},[F,E]);const M=P.arrow?.x,j=P.arrow?.y,z=P.arrow?.centerOffset!==0,[ie,ue]=g.useState();return ce(()=>{y&&ue(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:F?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(Ll,{scope:r,placedSide:q,onArrowChange:k,arrowX:M,arrowY:j,shouldHideArrow:z,children:w.jsx(Z.div,{"data-side":q,"data-align":ee,...p,ref:S,style:{...p.style,animation:F?void 0:"none"}})})})});bo.displayName=Rr;var wo="PopperArrow",Bl={top:"bottom",right:"left",bottom:"top",left:"right"},xo=g.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=jl(wo,n),i=Bl[s.placedSide];return w.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:w.jsx(Il,{...o,ref:r,style:{...o.style,display:"block"}})})});xo.displayName=wo;function Fl(e){return e!==null}var zl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,f]=So(r),d={start:"0%",center:"50%",end:"100%"}[f],u=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+c/2;let v="",p="";return l==="bottom"?(v=i?d:`${u}px`,p=`${-c}px`):l==="top"?(v=i?d:`${u}px`,p=`${n.floating.height+c}px`):l==="right"?(v=`${-c}px`,p=i?d:`${m}px`):l==="left"&&(v=`${n.floating.width+c}px`,p=i?d:`${m}px`),{data:{x:v,y:p}}}});function So(e){const[t,r="center"]=e.split("-");return[t,r]}var $l=ho,Vl=yo,Wl=bo,Hl=xo,Ul="Portal",Eo=g.forwardRef((e,t)=>{const{container:r,...n}=e,[o,s]=g.useState(!1);ce(()=>s(!0),[]);const i=r||o&&globalThis?.document?.body;return i?vi.createPortal(w.jsx(Z.div,{...n,ref:t}),i):null});Eo.displayName=Ul;var Kl=g[" useInsertionEffect ".trim().toString()]||ce;function Co({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,i]=Gl({defaultProp:t,onChange:r}),a=e!==void 0,c=a?e:o;{const f=g.useRef(e!==void 0);g.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,n])}const l=g.useCallback(f=>{if(a){const d=ql(f)?f(e):f;d!==e&&i.current?.(d)}else s(f)},[a,e,s,i]);return[c,l]}function Gl({defaultProp:e,onChange:t}){const[r,n]=g.useState(e),o=g.useRef(r),s=g.useRef(t);return Kl(()=>{s.current=t},[t]),g.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,n,s]}function ql(e){return typeof e=="function"}function Yl(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ro=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Xl="VisuallyHidden",Ql=g.forwardRef((e,t)=>w.jsx(Z.span,{...e,ref:t,style:{...Ro,...e.style}}));Ql.displayName=Xl;var Zl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,Lt=new WeakMap,jt={},Pr=0,Po=function(e){return e&&(e.host||Po(e.parentNode))},Jl=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Po(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},ec=function(e,t,r,n){var o=Jl(t,Array.isArray(e)?e:[e]);jt[r]||(jt[r]=new WeakMap);var s=jt[r],i=[],a=new Set,c=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.forEach(l);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(u){if(a.has(u))f(u);else try{var m=u.getAttribute(n),v=m!==null&&m!=="false",p=(Xe.get(u)||0)+1,h=(s.get(u)||0)+1;Xe.set(u,p),s.set(u,h),i.push(u),p===1&&v&&Lt.set(u,!0),h===1&&u.setAttribute(r,"true"),v||u.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",u,y)}})};return f(t),a.clear(),Pr++,function(){i.forEach(function(d){var u=Xe.get(d)-1,m=s.get(d)-1;Xe.set(d,u),s.set(d,m),u||(Lt.has(d)||d.removeAttribute(n),Lt.delete(d)),m||d.removeAttribute(r)}),Pr--,Pr||(Xe=new WeakMap,Xe=new WeakMap,Lt=new WeakMap,jt={})}},tc=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Zl(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),ec(n,o,r,"aria-hidden")):function(){return null}},Se=function(){return Se=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Se.apply(this,arguments)};function ko(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function rc(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Bt="right-scroll-bar-position",Ft="width-before-scroll-bar",nc="with-scroll-bars-hidden",oc="--removed-body-scroll-bar-size";function kr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sc(e,t){var r=B.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var ic=typeof window<"u"?g.useLayoutEffect:g.useEffect,_o=new WeakMap;function ac(e,t){var r=sc(null,function(n){return e.forEach(function(o){return kr(o,n)})});return ic(function(){var n=_o.get(r);if(n){var o=new Set(n),s=new Set(e),i=r.current;o.forEach(function(a){s.has(a)||kr(a,null)}),s.forEach(function(a){o.has(a)||kr(a,i)})}_o.set(r,e)},[e]),r}function lc(e){return e}function cc(e,t){t===void 0&&(t=lc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var i=t(s,n);return r.push(i),function(){r=r.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(n=!0;r.length;){var i=r;r=[],i.forEach(s)}r={push:function(a){return s(a)},filter:function(){return r}}},assignMedium:function(s){n=!0;var i=[];if(r.length){var a=r;r=[],a.forEach(s),i=r}var c=function(){var f=i;i=[],f.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),r}}}};return o}function uc(e){e===void 0&&(e={});var t=cc(null);return t.options=Se({async:!0,ssr:!1},e),t}var Oo=function(e){var t=e.sideCar,r=ko(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return g.createElement(n,Se({},r))};Oo.isSideCarExport=!0;function dc(e,t){return e.useMedium(t),Oo}var To=uc(),_r=function(){},zt=g.forwardRef(function(e,t){var r=g.useRef(null),n=g.useState({onScrollCapture:_r,onWheelCapture:_r,onTouchMoveCapture:_r}),o=n[0],s=n[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,u=e.sideCar,m=e.noRelative,v=e.noIsolation,p=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,S=e.gapMode,R=ko(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=u,O=ac([r,t]),x=Se(Se({},R),o);return g.createElement(g.Fragment,null,f&&g.createElement(k,{sideCar:To,removeScrollBar:l,shards:d,noRelative:m,noIsolation:v,inert:p,setCallbacks:s,allowPinchZoom:!!h,lockRef:r,gapMode:S}),i?g.cloneElement(g.Children.only(a),Se(Se({},x),{ref:O})):g.createElement(b,Se({},x,{className:c,ref:O}),a))});zt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zt.classNames={fullWidth:Ft,zeroRight:Bt};var fc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=fc();return t&&e.setAttribute("nonce",t),e}function mc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=pc())&&(mc(t,r),gc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vc=function(){var e=hc();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ao=function(){var e=vc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},yc={left:0,top:0,right:0,gap:0},Or=function(e){return parseInt(e||"",10)||0},bc=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Or(r),Or(n),Or(o)]},wc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yc;var t=bc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},xc=Ao(),Qe="data-scroll-locked",Sc=function(e,t,r,n){var o=e.left,s=e.top,i=e.right,a=e.gap;return r===void 0&&(r="margin"),`
113
+ .`.concat(nc,` {
114
+ overflow: hidden `).concat(n,`;
115
+ padding-right: `).concat(a,"px ").concat(n,`;
116
+ }
117
+ body[`).concat(Qe,`] {
118
+ overflow: hidden `).concat(n,`;
119
+ overscroll-behavior: contain;
120
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
121
+ padding-left: `.concat(o,`px;
122
+ padding-top: `).concat(s,`px;
123
+ padding-right: `).concat(i,`px;
124
+ margin-left:0;
125
+ margin-top:0;
126
+ margin-right: `).concat(a,"px ").concat(n,`;
127
+ `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
128
+ }
129
+
130
+ .`).concat(Bt,` {
131
+ right: `).concat(a,"px ").concat(n,`;
132
+ }
133
+
134
+ .`).concat(Ft,` {
135
+ margin-right: `).concat(a,"px ").concat(n,`;
136
+ }
137
+
138
+ .`).concat(Bt," .").concat(Bt,` {
139
+ right: 0 `).concat(n,`;
140
+ }
141
+
142
+ .`).concat(Ft," .").concat(Ft,` {
143
+ margin-right: 0 `).concat(n,`;
144
+ }
145
+
146
+ body[`).concat(Qe,`] {
147
+ `).concat(oc,": ").concat(a,`px;
148
+ }
149
+ `)},No=function(){var e=parseInt(document.body.getAttribute(Qe)||"0",10);return isFinite(e)?e:0},Ec=function(){g.useEffect(function(){return document.body.setAttribute(Qe,(No()+1).toString()),function(){var e=No()-1;e<=0?document.body.removeAttribute(Qe):document.body.setAttribute(Qe,e.toString())}},[])},Cc=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Ec();var s=g.useMemo(function(){return wc(o)},[o]);return g.createElement(xc,{styles:Sc(s,!t,o,r?"":"!important")})},Tr=!1;if(typeof window<"u")try{var $t=Object.defineProperty({},"passive",{get:function(){return Tr=!0,!0}});window.addEventListener("test",$t,$t),window.removeEventListener("test",$t,$t)}catch{Tr=!1}var Ze=Tr?{passive:!1}:!1,Rc=function(e){return e.tagName==="TEXTAREA"},Io=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Rc(e)&&r[t]==="visible")},Pc=function(e){return Io(e,"overflowY")},kc=function(e){return Io(e,"overflowX")},Do=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Mo(e,n);if(o){var s=Lo(e,n),i=s[1],a=s[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_c=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Oc=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Mo=function(e,t){return e==="v"?Pc(t):kc(t)},Lo=function(e,t){return e==="v"?_c(t):Oc(t)},Tc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ac=function(e,t,r,n,o){var s=Tc(e,window.getComputedStyle(t).direction),i=s*n,a=r.target,c=t.contains(a),l=!1,f=i>0,d=0,u=0;do{if(!a)break;var m=Lo(e,a),v=m[0],p=m[1],h=m[2],y=p-h-s*v;(v||y)&&Mo(e,a)&&(d+=y,u+=v);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(f&&Math.abs(d)<1||!f&&Math.abs(u)<1)&&(l=!0),l},Vt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jo=function(e){return[e.deltaX,e.deltaY]},Bo=function(e){return e&&"current"in e?e.current:e},Nc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ic=function(e){return`
150
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
151
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
152
+ `)},Dc=0,Je=[];function Mc(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),o=g.useState(Dc++)[0],s=g.useState(Ao)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=rc([e.lockRef.current],(e.shards||[]).map(Bo),!0).filter(Boolean);return p.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(p,h){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var y=Vt(p),b=r.current,S="deltaX"in p?p.deltaX:b[0]-y[0],R="deltaY"in p?p.deltaY:b[1]-y[1],k,O=p.target,x=Math.abs(S)>Math.abs(R)?"h":"v";if("touches"in p&&x==="h"&&O.type==="range")return!1;var C=Do(x,O);if(!C)return!0;if(C?k=x:(k=x==="v"?"h":"v",C=Do(x,O)),!C)return!1;if(!n.current&&"changedTouches"in p&&(S||R)&&(n.current=k),!k)return!0;var T=n.current||k;return Ac(T,h,p,T==="h"?S:R)},[]),c=g.useCallback(function(p){var h=p;if(!(!Je.length||Je[Je.length-1]!==s)){var y="deltaY"in h?jo(h):Vt(h),b=t.current.filter(function(k){return k.name===h.type&&(k.target===h.target||h.target===k.shadowParent)&&Nc(k.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var S=(i.current.shards||[]).map(Bo).filter(Boolean).filter(function(k){return k.contains(h.target)}),R=S.length>0?a(h,S[0]):!i.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),l=g.useCallback(function(p,h,y,b){var S={name:p,delta:h,target:y,should:b,shadowParent:Lc(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(R){return R!==S})},1)},[]),f=g.useCallback(function(p){r.current=Vt(p),n.current=void 0},[]),d=g.useCallback(function(p){l(p.type,jo(p),p.target,a(p,e.lockRef.current))},[]),u=g.useCallback(function(p){l(p.type,Vt(p),p.target,a(p,e.lockRef.current))},[]);g.useEffect(function(){return Je.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:u}),document.addEventListener("wheel",c,Ze),document.addEventListener("touchmove",c,Ze),document.addEventListener("touchstart",f,Ze),function(){Je=Je.filter(function(p){return p!==s}),document.removeEventListener("wheel",c,Ze),document.removeEventListener("touchmove",c,Ze),document.removeEventListener("touchstart",f,Ze)}},[]);var m=e.removeScrollBar,v=e.inert;return g.createElement(g.Fragment,null,v?g.createElement(s,{styles:Ic(o)}):null,m?g.createElement(Cc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Lc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jc=dc(To,Mc);var Fo=g.forwardRef(function(e,t){return g.createElement(zt,Se({},e,{ref:t,sideCar:jc}))});Fo.classNames=zt.classNames;var Bc=[" ","Enter","ArrowUp","ArrowDown"],Fc=[" ","Enter"],Fe="Select",[Wt,Ht,zc]=ta(Fe),[et]=ar(Fe,[zc,mo]),Ut=mo(),[$c,Ie]=et(Fe),[Vc,Wc]=et(Fe),zo=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:c,dir:l,name:f,autoComplete:d,disabled:u,required:m,form:v}=e,p=Ut(t),[h,y]=g.useState(null),[b,S]=g.useState(null),[R,k]=g.useState(!1),O=na(l),[x,C]=Co({prop:n,defaultProp:o??!1,onChange:s,caller:Fe}),[T,I]=Co({prop:i,defaultProp:a,onChange:c,caller:Fe}),$=g.useRef(null),V=h?v||!!h.closest("form"):!0,[H,L]=g.useState(new Set),U=Array.from(H).map(D=>D.props.value).join(";");return w.jsx($l,{...p,children:w.jsxs($c,{required:m,scope:t,trigger:h,onTriggerChange:y,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:R,onValueNodeHasChildrenChange:k,contentId:fr(),value:T,onValueChange:I,open:x,onOpenChange:C,dir:O,triggerPointerDownPosRef:$,disabled:u,children:[w.jsx(Wt.Provider,{scope:t,children:w.jsx(Vc,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(D=>{L(F=>new Set(F).add(D))},[]),onNativeOptionRemove:g.useCallback(D=>{L(F=>{const P=new Set(F);return P.delete(D),P})},[]),children:r})}),V?w.jsxs(cs,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:d,value:T,onChange:D=>I(D.target.value),disabled:u,form:v,children:[T===void 0?w.jsx("option",{value:""}):null,Array.from(H)]},U):null]})})};zo.displayName=Fe;var $o="SelectTrigger",Vo=g.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,s=Ut(r),i=Ie($o,r),a=i.disabled||n,c=ne(t,i.onTriggerChange),l=Ht(r),f=g.useRef("touch"),[d,u,m]=ds(p=>{const h=l().filter(S=>!S.disabled),y=h.find(S=>S.value===i.value),b=fs(h,p,y);b!==void 0&&i.onValueChange(b.value)}),v=p=>{a||(i.onOpenChange(!0),m()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return w.jsx(Vl,{asChild:!0,...s,children:w.jsx(Z.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":us(i.value)?"":void 0,...o,ref:c,onClick:J(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&v(p)}),onPointerDown:J(o.onPointerDown,p=>{f.current=p.pointerType;const h=p.target;h.hasPointerCapture(p.pointerId)&&h.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:J(o.onKeyDown,p=>{const h=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&u(p.key),!(h&&p.key===" ")&&Bc.includes(p.key)&&(v(),p.preventDefault())})})})});Vo.displayName=$o;var Wo="SelectValue",Ho=g.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:s,placeholder:i="",...a}=e,c=Ie(Wo,r),{onValueNodeHasChildrenChange:l}=c,f=s!==void 0,d=ne(t,c.onValueNodeChange);return ce(()=>{l(f)},[l,f]),w.jsx(Z.span,{...a,ref:d,style:{pointerEvents:"none"},children:us(c.value)?w.jsx(w.Fragment,{children:i}):s})});Ho.displayName=Wo;var Hc="SelectIcon",Uo=g.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return w.jsx(Z.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Uo.displayName=Hc;var Uc="SelectPortal",Ko=e=>w.jsx(Eo,{asChild:!0,...e});Ko.displayName=Uc;var ze="SelectContent",Go=g.forwardRef((e,t)=>{const r=Ie(ze,e.__scopeSelect),[n,o]=g.useState();if(ce(()=>{o(new DocumentFragment)},[]),!r.open){const s=n;return s?ot.createPortal(w.jsx(qo,{scope:e.__scopeSelect,children:w.jsx(Wt.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),s):null}return w.jsx(Yo,{...e,ref:t})});Go.displayName=ze;var ve=10,[qo,De]=et(ze),Kc="SelectContentImpl",Gc=st("SelectContent.RemoveScroll"),Yo=g.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:d,collisionBoundary:u,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:h,...y}=e,b=Ie(ze,r),[S,R]=g.useState(null),[k,O]=g.useState(null),x=ne(t,_=>R(_)),[C,T]=g.useState(null),[I,$]=g.useState(null),V=Ht(r),[H,L]=g.useState(!1),U=g.useRef(!1);g.useEffect(()=>{if(S)return tc(S)},[S]),fa();const D=g.useCallback(_=>{const[K,...Q]=V().map(X=>X.ref.current),[G]=Q.slice(-1),Y=document.activeElement;for(const X of _)if(X===Y||(X?.scrollIntoView({block:"nearest"}),X===K&&k&&(k.scrollTop=0),X===G&&k&&(k.scrollTop=k.scrollHeight),X?.focus(),document.activeElement!==Y))return},[V,k]),F=g.useCallback(()=>D([C,S]),[D,C,S]);g.useEffect(()=>{H&&F()},[H,F]);const{onOpenChange:P,triggerPointerDownPosRef:q}=b;g.useEffect(()=>{if(S){let _={x:0,y:0};const K=G=>{_={x:Math.abs(Math.round(G.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(G.pageY)-(q.current?.y??0))}},Q=G=>{_.x<=10&&_.y<=10?G.preventDefault():S.contains(G.target)||P(!1),document.removeEventListener("pointermove",K),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Q,{capture:!0})}}},[S,P,q]),g.useEffect(()=>{const _=()=>P(!1);return window.addEventListener("blur",_),window.addEventListener("resize",_),()=>{window.removeEventListener("blur",_),window.removeEventListener("resize",_)}},[P]);const[ee,E]=ds(_=>{const K=V().filter(Y=>!Y.disabled),Q=K.find(Y=>Y.ref.current===document.activeElement),G=fs(K,_,Q);G&&setTimeout(()=>G.ref.current.focus())}),M=g.useCallback((_,K,Q)=>{const G=!U.current&&!Q;(b.value!==void 0&&b.value===K||G)&&(T(_),G&&(U.current=!0))},[b.value]),j=g.useCallback(()=>S?.focus(),[S]),z=g.useCallback((_,K,Q)=>{const G=!U.current&&!Q;(b.value!==void 0&&b.value===K||G)&&$(_)},[b.value]),ie=n==="popper"?Ar:Xo,ue=ie===Ar?{side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:d,collisionBoundary:u,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:h}:{};return w.jsx(qo,{scope:r,content:S,viewport:k,onViewportChange:O,itemRefCallback:M,selectedItem:C,onItemLeave:j,itemTextRefCallback:z,focusSelectedItem:F,selectedItemText:I,position:n,isPositioned:H,searchRef:ee,children:w.jsx(Fo,{as:Gc,allowPinchZoom:!0,children:w.jsx(Bn,{asChild:!0,trapped:b.open,onMountAutoFocus:_=>{_.preventDefault()},onUnmountAutoFocus:J(o,_=>{b.trigger?.focus({preventScroll:!0}),_.preventDefault()}),children:w.jsx(In,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:_=>_.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:w.jsx(ie,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:_=>_.preventDefault(),...y,...ue,onPlaced:()=>L(!0),ref:x,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:J(y.onKeyDown,_=>{const K=_.ctrlKey||_.altKey||_.metaKey;if(_.key==="Tab"&&_.preventDefault(),!K&&_.key.length===1&&E(_.key),["ArrowUp","ArrowDown","Home","End"].includes(_.key)){let G=V().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(_.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(_.key)){const Y=_.target,X=G.indexOf(Y);G=G.slice(X+1)}setTimeout(()=>D(G)),_.preventDefault()}})})})})})})});Yo.displayName=Kc;var qc="SelectItemAlignedPosition",Xo=g.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,s=Ie(ze,r),i=De(ze,r),[a,c]=g.useState(null),[l,f]=g.useState(null),d=ne(t,x=>f(x)),u=Ht(r),m=g.useRef(!1),v=g.useRef(!0),{viewport:p,selectedItem:h,selectedItemText:y,focusSelectedItem:b}=i,S=g.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&l&&p&&h&&y){const x=s.trigger.getBoundingClientRect(),C=l.getBoundingClientRect(),T=s.valueNode.getBoundingClientRect(),I=y.getBoundingClientRect();if(s.dir!=="rtl"){const Y=I.left-C.left,X=T.left-Y,pe=x.left-X,$e=x.width+pe,jr=Math.max($e,C.width),Br=window.innerWidth-ve,Fr=Tn(X,[ve,Math.max(ve,Br-jr)]);a.style.minWidth=$e+"px",a.style.left=Fr+"px"}else{const Y=C.right-I.right,X=window.innerWidth-T.right-Y,pe=window.innerWidth-x.right-X,$e=x.width+pe,jr=Math.max($e,C.width),Br=window.innerWidth-ve,Fr=Tn(X,[ve,Math.max(ve,Br-jr)]);a.style.minWidth=$e+"px",a.style.right=Fr+"px"}const $=u(),V=window.innerHeight-ve*2,H=p.scrollHeight,L=window.getComputedStyle(l),U=parseInt(L.borderTopWidth,10),D=parseInt(L.paddingTop,10),F=parseInt(L.borderBottomWidth,10),P=parseInt(L.paddingBottom,10),q=U+D+H+P+F,ee=Math.min(h.offsetHeight*5,q),E=window.getComputedStyle(p),M=parseInt(E.paddingTop,10),j=parseInt(E.paddingBottom,10),z=x.top+x.height/2-ve,ie=V-z,ue=h.offsetHeight/2,_=h.offsetTop+ue,K=U+D+_,Q=q-K;if(K<=z){const Y=$.length>0&&h===$[$.length-1].ref.current;a.style.bottom="0px";const X=l.clientHeight-p.offsetTop-p.offsetHeight,pe=Math.max(ie,ue+(Y?j:0)+X+F),$e=K+pe;a.style.height=$e+"px"}else{const Y=$.length>0&&h===$[0].ref.current;a.style.top="0px";const pe=Math.max(z,U+p.offsetTop+(Y?M:0)+ue)+Q;a.style.height=pe+"px",p.scrollTop=K-z+p.offsetTop}a.style.margin=`${ve}px 0`,a.style.minHeight=ee+"px",a.style.maxHeight=V+"px",n?.(),requestAnimationFrame(()=>m.current=!0)}},[u,s.trigger,s.valueNode,a,l,p,h,y,s.dir,n]);ce(()=>S(),[S]);const[R,k]=g.useState();ce(()=>{l&&k(window.getComputedStyle(l).zIndex)},[l]);const O=g.useCallback(x=>{x&&v.current===!0&&(S(),b?.(),v.current=!1)},[S,b]);return w.jsx(Xc,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:O,children:w.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:w.jsx(Z.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Xo.displayName=qc;var Yc="SelectPopperPosition",Ar=g.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=ve,...s}=e,i=Ut(r);return w.jsx(Wl,{...i,...s,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ar.displayName=Yc;var[Xc,Nr]=et(ze,{}),Ir="SelectViewport",Qo=g.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,s=De(Ir,r),i=Nr(Ir,r),a=ne(t,s.onViewportChange),c=g.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),w.jsx(Wt.Slot,{scope:r,children:w.jsx(Z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,l=>{const f=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:u}=i;if(u?.current&&d){const m=Math.abs(c.current-f.scrollTop);if(m>0){const v=window.innerHeight-ve*2,p=parseFloat(d.style.minHeight),h=parseFloat(d.style.height),y=Math.max(p,h);if(y<v){const b=y+m,S=Math.min(v,b),R=b-S;d.style.height=S+"px",d.style.bottom==="0px"&&(f.scrollTop=R>0?R:0,d.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Qo.displayName=Ir;var Zo="SelectGroup",[Qc,Zc]=et(Zo),Jo=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=fr();return w.jsx(Qc,{scope:r,id:o,children:w.jsx(Z.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Jo.displayName=Zo;var es="SelectLabel",Jc=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Zc(es,r);return w.jsx(Z.div,{id:o.id,...n,ref:t})});Jc.displayName=es;var Kt="SelectItem",[eu,ts]=et(Kt),rs=g.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:s,...i}=e,a=Ie(Kt,r),c=De(Kt,r),l=a.value===n,[f,d]=g.useState(s??""),[u,m]=g.useState(!1),v=ne(t,b=>c.itemRefCallback?.(b,n,o)),p=fr(),h=g.useRef("touch"),y=()=>{o||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(eu,{scope:r,value:n,disabled:o,textId:p,isSelected:l,onItemTextChange:g.useCallback(b=>{d(S=>S||(b?.textContent??"").trim())},[]),children:w.jsx(Wt.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:w.jsx(Z.div,{role:"option","aria-labelledby":p,"data-highlighted":u?"":void 0,"aria-selected":l&&u,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:v,onFocus:J(i.onFocus,()=>m(!0)),onBlur:J(i.onBlur,()=>m(!1)),onClick:J(i.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:J(i.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:J(i.onPointerDown,b=>{h.current=b.pointerType}),onPointerMove:J(i.onPointerMove,b=>{h.current=b.pointerType,o?c.onItemLeave?.():h.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(i.onPointerLeave,b=>{b.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:J(i.onKeyDown,b=>{c.searchRef?.current!==""&&b.key===" "||(Fc.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});rs.displayName=Kt;var mt="SelectItemText",ns=g.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...s}=e,i=Ie(mt,r),a=De(mt,r),c=ts(mt,r),l=Wc(mt,r),[f,d]=g.useState(null),u=ne(t,y=>d(y),c.onItemTextChange,y=>a.itemTextRefCallback?.(y,c.value,c.disabled)),m=f?.textContent,v=g.useMemo(()=>w.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:h}=l;return ce(()=>(p(v),()=>h(v)),[p,h,v]),w.jsxs(w.Fragment,{children:[w.jsx(Z.span,{id:c.textId,...s,ref:u}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ot.createPortal(s.children,i.valueNode):null]})});ns.displayName=mt;var os="SelectItemIndicator",ss=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return ts(os,r).isSelected?w.jsx(Z.span,{"aria-hidden":!0,...n,ref:t}):null});ss.displayName=os;var Dr="SelectScrollUpButton",is=g.forwardRef((e,t)=>{const r=De(Dr,e.__scopeSelect),n=Nr(Dr,e.__scopeSelect),[o,s]=g.useState(!1),i=ne(t,n.onScrollButtonChange);return ce(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollTop>0;s(l)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?w.jsx(ls,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});is.displayName=Dr;var Mr="SelectScrollDownButton",as=g.forwardRef((e,t)=>{const r=De(Mr,e.__scopeSelect),n=Nr(Mr,e.__scopeSelect),[o,s]=g.useState(!1),i=ne(t,n.onScrollButtonChange);return ce(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<l;s(f)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?w.jsx(ls,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});as.displayName=Mr;var ls=g.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,s=De("SelectScrollButton",r),i=g.useRef(null),a=Ht(r),c=g.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return g.useEffect(()=>()=>c(),[c]),ce(()=>{a().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),w.jsx(Z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:J(o.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:J(o.onPointerLeave,()=>{c()})})}),tu="SelectSeparator",ru=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return w.jsx(Z.div,{"aria-hidden":!0,...n,ref:t})});ru.displayName=tu;var Lr="SelectArrow",nu=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ut(r),s=Ie(Lr,r),i=De(Lr,r);return s.open&&i.position==="popper"?w.jsx(Hl,{...o,...n,ref:t}):null});nu.displayName=Lr;var ou="SelectBubbleInput",cs=g.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=g.useRef(null),s=ne(n,o),i=Yl(t);return g.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&f){const d=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(d)}},[i,t]),w.jsx(Z.select,{...r,style:{...Ro,...r.style},ref:s,defaultValue:t})});cs.displayName=ou;function us(e){return e===""||e===void 0}function ds(e){const t=je(e),r=g.useRef(""),n=g.useRef(0),o=g.useCallback(i=>{const a=r.current+i;t(a),(function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(a)},[t]),s=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,s]}function fs(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let i=su(e,Math.max(s,0));o.length===1&&(i=i.filter(l=>l!==r));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function su(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var iu=zo,au=Vo,lu=Ho,cu=Uo,uu=Ko,du=Go,fu=Qo,pu=Jo,mu=rs,gu=ns,hu=ss,vu=is,yu=as;function bu(e){const t=re.c(4);let r;t[0]!==e?({...r}=e,t[0]=e,t[1]=r):r=t[1];let n;return t[2]!==r?(n=w.jsx(iu,{"data-slot":"select",...r}),t[2]=r,t[3]=n):n=t[3],n}function wu(e){const t=re.c(4);let r;t[0]!==e?({...r}=e,t[0]=e,t[1]=r):r=t[1];let n;return t[2]!==r?(n=w.jsx(pu,{"data-slot":"select-group",...r}),t[2]=r,t[3]=n):n=t[3],n}function xu(e){const t=re.c(4);let r;t[0]!==e?({...r}=e,t[0]=e,t[1]=r):r=t[1];let n;return t[2]!==r?(n=w.jsx(lu,{"data-slot":"select-value",...r}),t[2]=r,t[3]=n):n=t[3],n}function Su(e){const t=re.c(13);let r,n,o,s;t[0]!==e?({className:n,size:s,children:r,...o}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s):(r=t[1],n=t[2],o=t[3],s=t[4]);const i=s===void 0?"default":s;let a;t[5]!==n?(a=ae("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),t[5]=n,t[6]=a):a=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=w.jsx(cu,{asChild:!0,children:w.jsx(Yr,{className:"size-4 opacity-50"})}),t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==o||t[10]!==i||t[11]!==a?(l=w.jsxs(au,{"data-slot":"select-trigger","data-size":i,className:a,...o,children:[r,c]}),t[8]=r,t[9]=o,t[10]=i,t[11]=a,t[12]=l):l=t[12],l}function Eu(e){const t=re.c(22);let r,n,o,s,i;t[0]!==e?({className:n,children:r,position:s,align:i,...o}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s,t[5]=i):(r=t[1],n=t[2],o=t[3],s=t[4],i=t[5]);const a=s===void 0?"popper":s,c=i===void 0?"center":i,l=a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let f;t[6]!==n||t[7]!==l?(f=ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",l,n),t[6]=n,t[7]=l,t[8]=f):f=t[8];let d;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=w.jsx(Ru,{}),t[9]=d):d=t[9];const u=a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let m;t[10]!==u?(m=ae("p-1",u),t[10]=u,t[11]=m):m=t[11];let v;t[12]!==r||t[13]!==m?(v=w.jsx(fu,{className:m,children:r}),t[12]=r,t[13]=m,t[14]=v):v=t[14];let p;t[15]===Symbol.for("react.memo_cache_sentinel")?(p=w.jsx(Pu,{}),t[15]=p):p=t[15];let h;return t[16]!==c||t[17]!==a||t[18]!==o||t[19]!==f||t[20]!==v?(h=w.jsx(uu,{children:w.jsxs(du,{"data-slot":"select-content",className:f,position:a,align:c,...o,children:[d,v,p]})}),t[16]=c,t[17]=a,t[18]=o,t[19]=f,t[20]=v,t[21]=h):h=t[21],h}function Cu(e){const t=re.c(13);let r,n,o;t[0]!==e?({className:n,children:r,...o}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o):(r=t[1],n=t[2],o=t[3]);let s;t[4]!==n?(s=ae("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),t[4]=n,t[5]=s):s=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i=w.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:w.jsx(hu,{children:w.jsx(_s,{className:"size-4"})})}),t[6]=i):i=t[6];let a;t[7]!==r?(a=w.jsx(gu,{children:r}),t[7]=r,t[8]=a):a=t[8];let c;return t[9]!==o||t[10]!==s||t[11]!==a?(c=w.jsxs(mu,{"data-slot":"select-item",className:s,...o,children:[i,a]}),t[9]=o,t[10]=s,t[11]=a,t[12]=c):c=t[12],c}function Ru(e){const t=re.c(9);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("flex cursor-default items-center justify-center py-1",r),t[3]=r,t[4]=o):o=t[4];let s;t[5]===Symbol.for("react.memo_cache_sentinel")?(s=w.jsx(Os,{className:"size-4"}),t[5]=s):s=t[5];let i;return t[6]!==n||t[7]!==o?(i=w.jsx(vu,{"data-slot":"select-scroll-up-button",className:o,...n,children:s}),t[6]=n,t[7]=o,t[8]=i):i=t[8],i}function Pu(e){const t=re.c(9);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("flex cursor-default items-center justify-center py-1",r),t[3]=r,t[4]=o):o=t[4];let s;t[5]===Symbol.for("react.memo_cache_sentinel")?(s=w.jsx(Yr,{className:"size-4"}),t[5]=s):s=t[5];let i;return t[6]!==n||t[7]!==o?(i=w.jsx(yu,{"data-slot":"select-scroll-down-button",className:o,...n,children:s}),t[6]=n,t[7]=o,t[8]=i):i=t[8],i}const ku=e=>{const t=re.c(3);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={Input:Qi,Button:Ji,Select:bu,SelectContent:Eu,SelectItem:Cu,SelectTrigger:Su,SelectValue:xu,SelectGroup:wu},t[0]=r):r=t[0];let n;return t[1]!==e?(n=w.jsx(On,{...e,coms:r}),t[1]=e,t[2]=n):n=t[2],n},_u=On;ke.RBasicForm=_u,ke.RGeneralBasicForm=ku,Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"})}));