general-basic-form 2.1.3 → 2.1.4

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.
@@ -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 $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:
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===F?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,$=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.",$),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 z[E]||(z[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,$,ie,ue){var _=j.ref;return E={$$typeof:v,type:E,key:M,props:j,_owner:$},(_!==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,$,ie,ue){var _=M.children;if(_!==void 0)if($)if(L(_)){for($=0;$<_.length;$++)d(_[$]);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"});$=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",ee[_+$]||(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} />`,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={};/**
22
+ <%s key={someKey} {...props} />`,$,_,K,_),ee[_+$]=!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"),F=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,z={},P=m.react_stack_bottom_frame.bind(m,s)(),q=U(n(s)),ee={};rt.Fragment=h,rt.jsx=function(E,M,j){var $=1e4>V.recentlyCreatedOwnerStacks++;return f(E,M,j,!1,$?Error("react-stack-top-frame"):P,$?U(n(E)):q)},rt.jsxs=function(E,M,j){var $=1e4>V.recentlyCreatedOwnerStacks++;return f(E,M,j,!0,$?Error("react-stack-top-frame"):P,$?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
  *
@@ -89,7 +89,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
89
89
  *
90
90
  * This source code is licensed under the ISC license.
91
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={};/**
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),R(x)},S=(O,x)=>{let C;typeof x?.target?.value=="string"?C=x?.target?.value:C=x;const{rowIndex:T,columnIndex:I}=O,F=[...p];F[T][I].value=C,h(F),R(F)},R=O=>{let x=[];i===1?x=O.flat().map(C=>C.value):x=O.map(C=>{const T={};return C.forEach((I,F)=>{T[a[F]?.prop]=I.value}),T}),d({data:{...u,[r.prop]:x}})};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 F=r?.setting?.columns?.[T];return F&&(I={...F}),I.type==="form-list"&&(I.type="input"),I.setting={...I.setting,name:C.key,value: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],F=()=>["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()],z=()=>[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],$=()=>["",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:F()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:F()}],"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:z()}],w:[{w:[a,"screen",...z()]}],"min-w":[{"min-w":[a,"screen","none",...z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"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:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"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:$()}],"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":$()}],"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={};/**
93
93
  * @license React
94
94
  * react-dom.production.js
95
95
  *
@@ -109,7 +109,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
109
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
110
110
  2. You might be breaking the Rules of Hooks
111
111
  3. You might have more than one copy of React in the same app
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"),`
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,F]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&&!F)throw new Error(L.message||`${V.label}不能为空`);if(L.pattern&&!L.pattern.test(F))throw new Error(L.message||`${V.label}格式不正确`);L.validator&&await new Promise((U,D)=>{const z=P=>{if(P){D(P);return}U()};L.validator(L,F,z)})}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),F=Ae(d[b],T),V=I,H=x-p[v]-F,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:F)-p[v]/2<0,z=D?L<V?L-V:L-H:0;return{[m]:u[m]+z,data:{[m]:U,centerOffset:L-U-z,...D&&{alignmentOffset:z}},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 F,V;const L=(((F=s.flip)==null?void 0:F.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(z=>z.overflows[0]<=0).sort((z,P)=>z.overflows[1]-P.overflows[1])[0])==null?void 0:V.placement;if(!D)switch(m){case"bestFit":{var H;const z=(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];z&&(D=z);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),F=de(f.right,0),V=de(f.top,0),H=de(f.bottom,0);m?C=v-2*(I!==0||F!==0?I+F: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),F=Er(o),V=Er(l),H=g.useCallback(()=>{if(!O.current||!x.current)return;const P={placement:t,strategy:r,middleware:u};F.current&&(P.platform=F.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,F,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]),z=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:z}),[f,H,U,D,z])}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},F=Array.isArray(l)?l:[l],V=F.length>0,H={padding:I,boundary:F.filter(Fl),altBoundary:V},{refs:L,floatingStyles:U,placement:D,isPositioned:z,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(()=>{z&&E?.()},[z,E]);const M=P.arrow?.x,j=P.arrow?.y,$=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:z?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:$,children:w.jsx(Z.div,{"data-side":q,"data-align":ee,...p,ref:S,style:{...p.style,animation:z?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
113
  .`.concat(nc,` {
114
114
  overflow: hidden `).concat(n,`;
115
115
  padding-right: `).concat(a,"px ").concat(n,`;
@@ -149,4 +149,4 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
149
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
150
  .block-interactivity-`.concat(e,` {pointer-events: none;}
151
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"})}));
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}),F=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:F,disabled:u,children:[w.jsx(Wt.Provider,{scope:t,children:w.jsx(Vc,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(D=>{L(z=>new Set(z).add(D))},[]),onNativeOptionRemove:g.useCallback(D=>{L(z=>{const P=new Set(z);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,F]=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]),z=g.useCallback(()=>D([C,S]),[D,C,S]);g.useEffect(()=>{H&&z()},[H,z]);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]),$=g.useCallback((_,K,Q)=>{const G=!U.current&&!Q;(b.value!==void 0&&b.value===K||G)&&F(_)},[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:$,focusSelectedItem:z,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 F=u(),V=window.innerHeight-ve*2,H=p.scrollHeight,L=window.getComputedStyle(l),U=parseInt(L.borderTopWidth,10),D=parseInt(L.paddingTop,10),z=parseInt(L.borderBottomWidth,10),P=parseInt(L.paddingBottom,10),q=U+D+H+P+z,ee=Math.min(h.offsetHeight*5,q),E=window.getComputedStyle(p),M=parseInt(E.paddingTop,10),j=parseInt(E.paddingBottom,10),$=x.top+x.height/2-ve,ie=V-$,ue=h.offsetHeight/2,_=h.offsetTop+ue,K=U+D+_,Q=q-K;if(K<=$){const Y=F.length>0&&h===F[F.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+z),$e=K+pe;a.style.height=$e+"px"}else{const Y=F.length>0&&h===F[0].ref.current;a.style.top="0px";const pe=Math.max($,U+p.offsetTop+(Y?M:0)+ue)+Q;a.style.height=pe+"px",p.scrollTop=K-$+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"})}));