@antoniobenincasa/ui 0.3.1 → 0.4.1
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.
- package/dist/index.cjs.js +2 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +25 -0
- package/dist/index.es.js +2567 -1473
- package/dist/index.es.js.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +10 -9
package/dist/index.cjs.js
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var We;function rr(){if(We)return ue;We=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,n,s){var a=null;if(s!==void 0&&(a=""+s),n.key!==void 0&&(a=""+n.key),"key"in n){s={};for(var i in n)i!=="key"&&(s[i]=n[i])}else s=n;return n=s.ref,{$$typeof:e,type:o,key:a,ref:n!==void 0?n:null,props:s}}return ue.Fragment=t,ue.jsx=r,ue.jsxs=r,ue}var de={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Ue;function or(){return Ue||(Ue=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(d==null)return null;if(typeof d=="function")return d.$$typeof===K?null:d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case b:return"Fragment";case F:return"Profiler";case P:return"StrictMode";case j:return"Suspense";case L:return"SuspenseList";case Z:return"Activity"}if(typeof d=="object")switch(typeof d.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),d.$$typeof){case S:return"Portal";case x:return d.displayName||"Context";case A:return(d._context.displayName||"Context")+".Consumer";case O:var k=d.render;return d=d.displayName,d||(d=k.displayName||k.name||"",d=d!==""?"ForwardRef("+d+")":"ForwardRef"),d;case v:return k=d.displayName||null,k!==null?k:e(d.type)||"Memo";case V:k=d._payload,d=d._init;try{return e(d(k))}catch{}}return null}function t(d){return""+d}function r(d){try{t(d);var k=!1}catch{k=!0}if(k){k=console;var _=k.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&d[Symbol.toStringTag]||d.constructor.name||"Object";return _.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),t(d)}}function o(d){if(d===b)return"<>";if(typeof d=="object"&&d!==null&&d.$$typeof===V)return"<...>";try{var k=e(d);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function n(){var d=W.A;return d===null?null:d.getOwner()}function s(){return Error("react-stack-top-frame")}function a(d){if(Q.call(d,"key")){var k=Object.getOwnPropertyDescriptor(d,"key").get;if(k&&k.isReactWarning)return!1}return d.key!==void 0}function i(d,k){function _(){M||(M=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",k))}_.isReactWarning=!0,Object.defineProperty(d,"key",{get:_,configurable:!0})}function l(){var d=e(this.type);return U[d]||(U[d]=!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.")),d=this.props.ref,d!==void 0?d:null}function u(d,k,_,N,B,oe){var T=_.ref;return d={$$typeof:I,type:d,key:k,props:_,_owner:N},(T!==void 0?T:null)!==null?Object.defineProperty(d,"ref",{enumerable:!1,get:l}):Object.defineProperty(d,"ref",{enumerable:!1,value:null}),d._store={},Object.defineProperty(d._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(d,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(d,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.defineProperty(d,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze(d.props),Object.freeze(d)),d}function f(d,k,_,N,B,oe){var T=k.children;if(T!==void 0)if(N)if(re(T)){for(N=0;N<T.length;N++)m(T[N]);Object.freeze&&Object.freeze(T)}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 m(T);if(Q.call(k,"key")){T=e(d);var Y=Object.keys(k).filter(function(ne){return ne!=="key"});N=0<Y.length?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}",ce[T+N]||(Y=0<Y.length?"{"+Y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react"),Ft=require("react-dom"),Dt=require("lucide-react");function Lt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Lt(A),Vt=Lt(Ft);var Ne={exports:{}},ye={};var pt;function or(){if(pt)return ye;pt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var l in o)l!=="key"&&(s[l]=o[l])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return ye.Fragment=t,ye.jsx=n,ye.jsxs=n,ye}var xe={};var gt;function sr(){return gt||(gt=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(p==null)return null;if(typeof p=="function")return p.$$typeof===B?null:p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case g:return"Fragment";case M:return"Profiler";case N:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case $:return"Activity"}if(typeof p=="object")switch(typeof p.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),p.$$typeof){case x:return"Portal";case v:return p.displayName||"Context";case y:return(p._context.displayName||"Context")+".Consumer";case k:var P=p.render;return p=p.displayName,p||(p=P.displayName||P.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case h:return P=p.displayName||null,P!==null?P:e(p.type)||"Memo";case I:P=p._payload,p=p._init;try{return e(p(P))}catch{}}return null}function t(p){return""+p}function n(p){try{t(p);var P=!1}catch{P=!0}if(P){P=console;var j=P.error,D=typeof Symbol=="function"&&Symbol.toStringTag&&p[Symbol.toStringTag]||p.constructor.name||"Object";return j.call(P,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",D),t(p)}}function r(p){if(p===g)return"<>";if(typeof p=="object"&&p!==null&&p.$$typeof===I)return"<...>";try{var P=e(p);return P?"<"+P+">":"<...>"}catch{return"<...>"}}function o(){var p=Z.A;return p===null?null:p.getOwner()}function s(){return Error("react-stack-top-frame")}function i(p){if(oe.call(p,"key")){var P=Object.getOwnPropertyDescriptor(p,"key").get;if(P&&P.isReactWarning)return!1}return p.key!==void 0}function l(p,P){function j(){z||(z=!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)",P))}j.isReactWarning=!0,Object.defineProperty(p,"key",{get:j,configurable:!0})}function c(){var p=e(this.type);return J[p]||(J[p]=!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.")),p=this.props.ref,p!==void 0?p:null}function u(p,P,j,D,X,ue){var F=j.ref;return p={$$typeof:R,type:p,key:P,props:j,_owner:D},(F!==void 0?F:null)!==null?Object.defineProperty(p,"ref",{enumerable:!1,get:c}):Object.defineProperty(p,"ref",{enumerable:!1,value:null}),p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(p,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(p,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(p,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p}function d(p,P,j,D,X,ue){var F=P.children;if(F!==void 0)if(D)if(ce(F)){for(D=0;D<F.length;D++)f(F[D]);Object.freeze&&Object.freeze(F)}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 f(F);if(oe.call(P,"key")){F=e(p);var Q=Object.keys(P).filter(function(de){return de!=="key"});D=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",he[F+D]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
2
|
let props = %s;
|
|
19
3
|
<%s {...props} />
|
|
20
4
|
React keys must be passed directly to JSX without using spread:
|
|
21
5
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,N,T,Y,T),ce[T+N]=!0)}if(T=null,_!==void 0&&(r(_),T=""+_),a(k)&&(r(k.key),T=""+k.key),"key"in k){_={};for(var J in k)J!=="key"&&(_[J]=k[J])}else _=k;return T&&i(_,typeof d=="function"?d.displayName||d.name||"Unknown":d),u(d,T,_,n(),B,oe)}function m(d){h(d)?d._store&&(d._store.validated=1):typeof d=="object"&&d!==null&&d.$$typeof===V&&(d._payload.status==="fulfilled"?h(d._payload.value)&&d._payload.value._store&&(d._payload.value._store.validated=1):d._store&&(d._store.validated=1))}function h(d){return typeof d=="object"&&d!==null&&d.$$typeof===I}var C=R,I=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),x=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),K=Symbol.for("react.client.reference"),W=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Object.prototype.hasOwnProperty,re=Array.isArray,G=console.createTask?console.createTask:function(){return null};C={react_stack_bottom_frame:function(d){return d()}};var M,U={},w=C.react_stack_bottom_frame.bind(C,s)(),le=G(o(s)),ce={};de.Fragment=b,de.jsx=function(d,k,_){var N=1e4>W.recentlyCreatedOwnerStacks++;return f(d,k,_,!1,N?Error("react-stack-top-frame"):w,N?G(o(d)):le)},de.jsxs=function(d,k,_){var N=1e4>W.recentlyCreatedOwnerStacks++;return f(d,k,_,!0,N?Error("react-stack-top-frame"):w,N?G(o(d)):le)}}()),de}var Be;function nr(){return Be||(Be=1,process.env.NODE_ENV==="production"?he.exports=rr():he.exports=or()),he.exports}var y=nr();function Ye(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function pe(...e){return t=>{let r=!1;const o=e.map(n=>{const s=Ye(n,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let n=0;n<o.length;n++){const s=o[n];typeof s=="function"?s():Ye(e[n],null)}}}}function Ce(...e){return c.useCallback(pe(...e),e)}var sr=Symbol.for("react.lazy"),Re=c[" use ".trim().toString()];function ar(e){return typeof e=="object"&&e!==null&&"then"in e}function at(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===sr&&"_payload"in e&&ar(e._payload)}function it(e){const t=ir(e),r=c.forwardRef((o,n)=>{let{children:s,...a}=o;at(s)&&typeof Re=="function"&&(s=Re(s._payload));const i=c.Children.toArray(s),l=i.find(cr);if(l){const u=l.props.children,f=i.map(m=>m===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:m);return y.jsx(t,{...a,ref:n,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return y.jsx(t,{...a,ref:n,children:s})});return r.displayName=`${e}.Slot`,r}var lt=it("Slot");function ir(e){const t=c.forwardRef((r,o)=>{let{children:n,...s}=r;if(at(n)&&typeof Re=="function"&&(n=Re(n._payload)),c.isValidElement(n)){const a=dr(n),i=ur(s,n.props);return n.type!==c.Fragment&&(i.ref=o?pe(o,a):a),c.cloneElement(n,i)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lr=Symbol("radix.slottable");function cr(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lr}function ur(e,t){const r={...t};for(const o in t){const n=e[o],s=t[o];/^on[A-Z]/.test(o)?n&&s?r[o]=(...i)=>{const l=s(...i);return n(...i),l}:n&&(r[o]=n):o==="style"?r[o]={...n,...s}:o==="className"&&(r[o]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}function dr(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)}function ct(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=ct(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ut(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=ct(e))&&(o&&(o+=" "),o+=t);return o}const He=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qe=ut,fr=(e,t)=>r=>{var o;if(t?.variants==null)return qe(e,r?.class,r?.className);const{variants:n,defaultVariants:s}=t,a=Object.keys(n).map(u=>{const f=r?.[u],m=s?.[u];if(f===null)return null;const h=He(f)||He(m);return n[u][h]}),i=r&&Object.entries(r).reduce((u,f)=>{let[m,h]=f;return h===void 0||(u[m]=h),u},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((u,f)=>{let{class:m,className:h,...C}=f;return Object.entries(C).every(I=>{let[S,b]=I;return Array.isArray(b)?b.includes({...s,...i}[S]):{...s,...i}[S]===b})?[...u,m,h]:u},[]);return qe(e,a,l,r?.class,r?.className)},mr=(e,t)=>{const r=new Array(e.length+t.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<t.length;o++)r[e.length+o]=t[o];return r},pr=(e,t)=>({classGroupId:e,validator:t}),dt=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Se="-",Ke=[],gr="arbitrary..",br=e=>{const t=hr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return vr(a);const i=a.split(Se),l=i[0]===""&&i.length>1?1:0;return ft(i,l,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const l=o[a],u=r[a];return l?u?mr(u,l):l:u||Ke}return r[a]||Ke}}},ft=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],s=r.nextPart.get(n);if(s){const u=ft(e,t+1,s);if(u)return u}const a=r.validators;if(a===null)return;const i=t===0?e.join(Se):e.slice(t).join(Se),l=a.length;for(let u=0;u<l;u++){const f=a[u];if(f.validator(i))return f.classGroupId}},vr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?gr+o:void 0})(),hr=e=>{const{theme:t,classGroups:r}=e;return yr(r,t)},yr=(e,t)=>{const r=dt();for(const o in e){const n=e[o];$e(n,r,o,t)}return r},$e=(e,t,r,o)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];xr(a,t,r,o)}},xr=(e,t,r,o)=>{if(typeof e=="string"){wr(e,t,r);return}if(typeof e=="function"){kr(e,t,r,o);return}Cr(e,t,r,o)},wr=(e,t,r)=>{const o=e===""?t:mt(t,e);o.classGroupId=r},kr=(e,t,r,o)=>{if(Rr(e)){$e(e(o),t,r,o);return}t.validators===null&&(t.validators=[]),t.validators.push(pr(r,e))},Cr=(e,t,r,o)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[i,l]=n[a];$e(l,mt(t,i),r,o)}},mt=(e,t)=>{let r=e;const o=t.split(Se),n=o.length;for(let s=0;s<n;s++){const a=o[s];let i=r.nextPart.get(a);i||(i=dt(),r.nextPart.set(a,i)),r=i}return r},Rr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Sr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null);const n=(s,a)=>{r[s]=a,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(s){let a=r[s];if(a!==void 0)return a;if((a=o[s])!==void 0)return n(s,a),a},set(s,a){s in r?r[s]=a:n(s,a)}}},je="!",Je=":",Er=[],Xe=(e,t,r,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:n}),_r=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const s=[];let a=0,i=0,l=0,u;const f=n.length;for(let S=0;S<f;S++){const b=n[S];if(a===0&&i===0){if(b===Je){s.push(n.slice(l,S)),l=S+1;continue}if(b==="/"){u=S;continue}}b==="["?a++:b==="]"?a--:b==="("?i++:b===")"&&i--}const m=s.length===0?n:n.slice(l);let h=m,C=!1;m.endsWith(je)?(h=m.slice(0,-1),C=!0):m.startsWith(je)&&(h=m.slice(1),C=!0);const I=u&&u>l?u-l:void 0;return Xe(s,C,h,I)};if(t){const n=t+Je,s=o;o=a=>a.startsWith(n)?s(a.slice(n.length)):Xe(Er,!1,a,void 0,!0)}if(r){const n=o;o=s=>r({className:s,parseClassName:n})}return o},Tr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{t.set(r,1e6+o)}),r=>{const o=[];let n=[];for(let s=0;s<r.length;s++){const a=r[s],i=a[0]==="[",l=t.has(a);i||l?(n.length>0&&(n.sort(),o.push(...n),n=[]),o.push(a)):n.push(a)}return n.length>0&&(n.sort(),o.push(...n)),o}},Ar=e=>({cache:Sr(e.cacheSize),parseClassName:_r(e),sortModifiers:Tr(e),...br(e)}),Ir=/\s+/,Nr=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:s}=t,a=[],i=e.trim().split(Ir);let l="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:m,modifiers:h,hasImportantModifier:C,baseClassName:I,maybePostfixModifierPosition:S}=r(f);if(m){l=f+(l.length>0?" "+l:l);continue}let b=!!S,P=o(b?I.substring(0,S):I);if(!P){if(!b){l=f+(l.length>0?" "+l:l);continue}if(P=o(I),!P){l=f+(l.length>0?" "+l:l);continue}b=!1}const F=h.length===0?"":h.length===1?h[0]:s(h).join(":"),A=C?F+je:F,x=A+P;if(a.indexOf(x)>-1)continue;a.push(x);const O=n(P,b);for(let j=0;j<O.length;++j){const L=O[j];a.push(A+L)}l=f+(l.length>0?" "+l:l)}return l},Pr=(...e)=>{let t=0,r,o,n="";for(;t<e.length;)(r=e[t++])&&(o=pt(r))&&(n&&(n+=" "),n+=o);return n},pt=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=pt(e[o]))&&(r&&(r+=" "),r+=t);return r},Or=(e,...t)=>{let r,o,n,s;const a=l=>{const u=t.reduce((f,m)=>m(f),e());return r=Ar(u),o=r.cache.get,n=r.cache.set,s=i,i(l)},i=l=>{const u=o(l);if(u)return u;const f=Nr(l,r);return n(l,f),f};return s=a,(...l)=>s(Pr(...l))},Fr=[],$=e=>{const t=r=>r[e]||Fr;return t.isThemeGetter=!0,t},gt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jr=/^\d+\/\d+$/,Mr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vr=/\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$/,$r=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,se=e=>jr.test(e),E=e=>!!e&&!Number.isNaN(Number(e)),X=e=>!!e&&Number.isInteger(Number(e)),Ne=e=>e.endsWith("%")&&E(e.slice(0,-1)),H=e=>Mr.test(e),zr=()=>!0,Gr=e=>Vr.test(e)&&!$r.test(e),vt=()=>!1,Wr=e=>Dr.test(e),Ur=e=>Lr.test(e),Br=e=>!p(e)&&!g(e),Yr=e=>ae(e,xt,vt),p=e=>gt.test(e),ee=e=>ae(e,wt,Gr),Pe=e=>ae(e,Xr,E),Ze=e=>ae(e,ht,vt),Hr=e=>ae(e,yt,Ur),ye=e=>ae(e,kt,Wr),g=e=>bt.test(e),fe=e=>ie(e,wt),qr=e=>ie(e,Zr),Qe=e=>ie(e,ht),Kr=e=>ie(e,xt),Jr=e=>ie(e,yt),xe=e=>ie(e,kt,!0),ae=(e,t,r)=>{const o=gt.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},ie=(e,t,r=!1)=>{const o=bt.exec(e);return o?o[1]?t(o[1]):r:!1},ht=e=>e==="position"||e==="percentage",yt=e=>e==="image"||e==="url",xt=e=>e==="length"||e==="size"||e==="bg-size",wt=e=>e==="length",Xr=e=>e==="number",Zr=e=>e==="family-name",kt=e=>e==="shadow",Qr=()=>{const e=$("color"),t=$("font"),r=$("text"),o=$("font-weight"),n=$("tracking"),s=$("leading"),a=$("breakpoint"),i=$("container"),l=$("spacing"),u=$("radius"),f=$("shadow"),m=$("inset-shadow"),h=$("text-shadow"),C=$("drop-shadow"),I=$("blur"),S=$("perspective"),b=$("aspect"),P=$("ease"),F=$("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...x(),g,p],j=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],v=()=>[g,p,l],V=()=>[se,"full","auto",...v()],Z=()=>[X,"none","subgrid",g,p],K=()=>["auto",{span:["full",X,g,p]},X,g,p],W=()=>[X,"auto",g,p],Q=()=>["auto","min","max","fr",g,p],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...v()],U=()=>[se,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...v()],w=()=>[e,g,p],le=()=>[...x(),Qe,Ze,{position:[g,p]}],ce=()=>["no-repeat",{repeat:["","x","y","space","round"]}],d=()=>["auto","cover","contain",Kr,Yr,{size:[g,p]}],k=()=>[Ne,fe,ee],_=()=>["","none","full",u,g,p],N=()=>["",E,fe,ee],B=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[E,Ne,Qe,Ze],Y=()=>["","none",I,g,p],J=()=>["none",E,g,p],ne=()=>["none",E,g,p],Ie=()=>[E,g,p],ve=()=>[se,"full",...v()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[H],breakpoint:[H],color:[zr],container:[H],"drop-shadow":[H],ease:["in","out","in-out"],font:[Br],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[H],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[H],shadow:[H],spacing:["px",E],text:[H],"text-shadow":[H],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",se,p,g,b]}],container:["container"],columns:[{columns:[E,p,g,i]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:O()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[X,"auto",g,p]}],basis:[{basis:[se,"full","auto",i,...v()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,se,"auto","initial","none",p]}],grow:[{grow:["",E,g,p]}],shrink:[{shrink:["",E,g,p]}],order:[{order:[X,"first","last","none",g,p]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:v()}],"gap-x":[{"gap-x":v()}],"gap-y":[{"gap-y":v()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:v()}],px:[{px:v()}],py:[{py:v()}],ps:[{ps:v()}],pe:[{pe:v()}],pt:[{pt:v()}],pr:[{pr:v()}],pb:[{pb:v()}],pl:[{pl:v()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":v()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":v()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[i,"screen",...U()]}],"min-w":[{"min-w":[i,"screen","none",...U()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",r,fe,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,g,Pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ne,p]}],"font-family":[{font:[qr,p,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:[n,g,p]}],"line-clamp":[{"line-clamp":[E,"none",g,Pe]}],leading:[{leading:[s,...v()]}],"list-image":[{"list-image":["none",g,p]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",g,p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",g,ee]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[E,"auto",g,p]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g,p]}],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",g,p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:ce()}],"bg-size":[{bg:d()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},X,g,p],radial:["",g,p],conic:[X,g,p]},Jr,Hr]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:k()}],"gradient-via-pos":[{via:k()}],"gradient-to-pos":[{to:k()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...B(),"hidden","none"]}],"divide-style":[{divide:[...B(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...B(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,g,p]}],"outline-w":[{outline:["",E,fe,ee]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",f,xe,ye]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",m,xe,ye]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[E,ee]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",h,xe,ye]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[E,g,p]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[g,p]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"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":x()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:ce()}],"mask-size":[{mask:d()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",g,p]}],filter:[{filter:["","none",g,p]}],blur:[{blur:Y()}],brightness:[{brightness:[E,g,p]}],contrast:[{contrast:[E,g,p]}],"drop-shadow":[{"drop-shadow":["","none",C,xe,ye]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",E,g,p]}],"hue-rotate":[{"hue-rotate":[E,g,p]}],invert:[{invert:["",E,g,p]}],saturate:[{saturate:[E,g,p]}],sepia:[{sepia:["",E,g,p]}],"backdrop-filter":[{"backdrop-filter":["","none",g,p]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[E,g,p]}],"backdrop-contrast":[{"backdrop-contrast":[E,g,p]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,g,p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,g,p]}],"backdrop-invert":[{"backdrop-invert":["",E,g,p]}],"backdrop-opacity":[{"backdrop-opacity":[E,g,p]}],"backdrop-saturate":[{"backdrop-saturate":[E,g,p]}],"backdrop-sepia":[{"backdrop-sepia":["",E,g,p]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":v()}],"border-spacing-x":[{"border-spacing-x":v()}],"border-spacing-y":[{"border-spacing-y":v()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",g,p]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",g,p]}],ease:[{ease:["linear","initial",P,g,p]}],delay:[{delay:[E,g,p]}],animate:[{animate:["none",F,g,p]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,g,p]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:Ie()}],"skew-x":[{"skew-x":Ie()}],"skew-y":[{"skew-y":Ie()}],transform:[{transform:[g,p,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"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",g,p]}],"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":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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",g,p]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[E,fe,ee,Pe]}],stroke:[{stroke:["none",...w()]}],"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"]}},eo=Or(Qr);function D(...e){return eo(ut(e))}const Ct=fr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function to({className:e,variant:t,size:r,asChild:o=!1,...n}){const s=o?lt:"button";return y.jsx(s,{"data-slot":"button",className:D(Ct({variant:t,size:r,className:e})),...n})}function ro({className:e,type:t,...r}){return y.jsx("input",{type:t,"data-slot":"input",className:D("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}function oo({className:e,...t}){return y.jsx("div",{"data-slot":"card",className:D("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function no({className:e,...t}){return y.jsx("div",{"data-slot":"card-header",className:D("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function so({className:e,...t}){return y.jsx("div",{"data-slot":"card-title",className:D("leading-none font-semibold",e),...t})}function ao({className:e,...t}){return y.jsx("div",{"data-slot":"card-description",className:D("text-muted-foreground text-sm",e),...t})}function io({className:e,...t}){return y.jsx("div",{"data-slot":"card-action",className:D("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function lo({className:e,...t}){return y.jsx("div",{"data-slot":"card-content",className:D("px-6",e),...t})}function co({className:e,...t}){return y.jsx("div",{"data-slot":"card-footer",className:D("flex items-center px-6 [.border-t]:pt-6",e),...t})}var uo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fo=uo.reduce((e,t)=>{const r=it(`Primitive.${t}`),o=c.forwardRef((n,s)=>{const{asChild:a,...i}=n,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),mo="Label",Rt=c.forwardRef((e,t)=>y.jsx(fo.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Rt.displayName=mo;var po=Rt;function St({className:e,...t}){return y.jsx(po,{"data-slot":"label",className:D("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var go=e=>e.type==="checkbox",me=e=>e instanceof Date,De=e=>e==null;const Et=e=>typeof e=="object";var te=e=>!De(e)&&!Array.isArray(e)&&Et(e)&&!me(e),bo=e=>te(e)&&e.target?go(e.target)?e.target.checked:e.target.value:e,vo=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ho=(e,t)=>e.has(vo(t)),yo=e=>{const t=e.constructor&&e.constructor.prototype;return te(t)&&t.hasOwnProperty("isPrototypeOf")},xo=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function _t(e){let t;const r=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(xo&&(e instanceof Blob||o))&&(r||te(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!yo(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=_t(e[n]));else return e;return t}var Tt=e=>/^\w*$/.test(e),Me=e=>e===void 0,wo=e=>Array.isArray(e)?e.filter(Boolean):[],At=e=>wo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),z=(e,t,r)=>{if(!t||!te(e))return r;const o=(Tt(t)?[t]:At(t)).reduce((n,s)=>De(n)?n:n[s],e);return Me(o)||o===e?Me(e[t])?r:e[t]:o},Oe=e=>typeof e=="boolean",et=(e,t,r)=>{let o=-1;const n=Tt(t)?[t]:At(t),s=n.length,a=s-1;for(;++o<s;){const i=n[o];let l=r;if(o!==a){const u=e[i];l=te(u)||Array.isArray(u)?u:isNaN(+n[o+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=l,e=e[i]}};const tt={BLUR:"blur",CHANGE:"change"},rt={all:"all"},Le=R.createContext(null);Le.displayName="HookFormContext";const _e=()=>R.useContext(Le),ko=e=>{const{children:t,...r}=e;return R.createElement(Le.Provider,{value:r},t)};var Co=(e,t,r,o=!0)=>{const n={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(n,s,{get:()=>{const a=s;return t._proxyFormState[a]!==rt.all&&(t._proxyFormState[a]=!o||rt.all),r&&(r[a]=!0),e[a]}});return n};const It=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Nt(e){const t=_e(),{control:r=t.control,disabled:o,name:n,exact:s}=e||{},[a,i]=R.useState(r._formState),l=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return It(()=>r._subscribe({name:n,formState:l.current,exact:s,callback:u=>{!o&&i({...r._formState,...u})}}),[n,o,s]),R.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),R.useMemo(()=>Co(a,r,l.current,!1),[a,r])}var Ro=e=>typeof e=="string",ot=(e,t,r,o,n)=>Ro(e)?z(r,e,n):Array.isArray(e)?e.map(s=>z(r,s)):r,nt=e=>De(e)||!Et(e);function ke(e,t,r=new WeakSet){if(nt(e)||nt(t))return Object.is(e,t);if(me(e)&&me(t))return e.getTime()===t.getTime();const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of o){const a=e[s];if(!n.includes(s))return!1;if(s!=="ref"){const i=t[s];if(me(a)&&me(i)||te(a)&&te(i)||Array.isArray(a)&&Array.isArray(i)?!ke(a,i,r):!Object.is(a,i))return!1}}return!0}function So(e){const t=_e(),{control:r=t.control,name:o,defaultValue:n,disabled:s,exact:a,compute:i}=e||{},l=R.useRef(n),u=R.useRef(i),f=R.useRef(void 0),m=R.useRef(r),h=R.useRef(o);u.current=i;const[C,I]=R.useState(()=>{const x=r._getWatch(o,l.current);return u.current?u.current(x):x}),S=R.useCallback(x=>{const O=ot(o,r._names,x||r._formValues,!1,l.current);return u.current?u.current(O):O},[r._formValues,r._names,o]),b=R.useCallback(x=>{if(!s){const O=ot(o,r._names,x||r._formValues,!1,l.current);if(u.current){const j=u.current(O);ke(j,f.current)||(I(j),f.current=j)}else I(O)}},[r._formValues,r._names,s,o]);It(()=>((m.current!==r||!ke(h.current,o))&&(m.current=r,h.current=o,b()),r._subscribe({name:o,formState:{values:!0},exact:a,callback:x=>{b(x.values)}})),[r,a,o,b]),R.useEffect(()=>r._removeUnmounted());const P=m.current!==r,F=h.current,A=R.useMemo(()=>{if(s)return null;const x=!P&&!ke(F,o);return P||x?S():null},[s,P,o,F,S]);return A!==null?A:C}function Eo(e){const t=_e(),{name:r,disabled:o,control:n=t.control,shouldUnregister:s,defaultValue:a,exact:i=!0}=e,l=ho(n._names.array,r),u=R.useMemo(()=>z(n._formValues,r,z(n._defaultValues,r,a)),[n,r,a]),f=So({control:n,name:r,defaultValue:u,exact:i}),m=Nt({control:n,name:r,exact:i}),h=R.useRef(e),C=R.useRef(void 0),I=R.useRef(n.register(r,{...e.rules,value:f,...Oe(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const S=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!z(m.errors,r)},isDirty:{enumerable:!0,get:()=>!!z(m.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!z(m.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!z(m.validatingFields,r)},error:{enumerable:!0,get:()=>z(m.errors,r)}}),[m,r]),b=R.useCallback(x=>I.current.onChange({target:{value:bo(x),name:r},type:tt.CHANGE}),[r]),P=R.useCallback(()=>I.current.onBlur({target:{value:z(n._formValues,r),name:r},type:tt.BLUR}),[r,n._formValues]),F=R.useCallback(x=>{const O=z(n._fields,r);O&&x&&(O._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:j=>x.setCustomValidity(j),reportValidity:()=>x.reportValidity()})},[n._fields,r]),A=R.useMemo(()=>({name:r,value:f,...Oe(o)||m.disabled?{disabled:m.disabled||o}:{},onChange:b,onBlur:P,ref:F}),[r,o,m.disabled,b,P,F,f]);return R.useEffect(()=>{const x=n._options.shouldUnregister||s,O=C.current;O&&O!==r&&!l&&n.unregister(O),n.register(r,{...h.current.rules,...Oe(h.current.disabled)?{disabled:h.current.disabled}:{}});const j=(L,v)=>{const V=z(n._fields,L);V&&V._f&&(V._f.mount=v)};if(j(r,!0),x){const L=_t(z(n._options.defaultValues,r,h.current.defaultValue));et(n._defaultValues,r,L),Me(z(n._formValues,r))&&et(n._formValues,r,L)}return!l&&n.register(r),C.current=r,()=>{(l?x&&!n._state.action:x)?n.unregister(r):j(r,!1)}},[r,n,l,s]),R.useEffect(()=>{n._setDisabledField({disabled:o,name:r})},[o,r,n]),R.useMemo(()=>({field:A,formState:m,fieldState:S}),[A,m,S])}const _o=e=>e.render(Eo(e)),To=ko,Pt=c.createContext({}),Ao=({...e})=>y.jsx(Pt.Provider,{value:{name:e.name},children:y.jsx(_o,{...e})}),ge=()=>{const e=c.useContext(Pt),t=c.useContext(Ot),{getFieldState:r}=_e(),o=Nt({name:e.name}),n=r(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...n}},Ot=c.createContext({});function Io({className:e,...t}){const r=c.useId();return y.jsx(Ot.Provider,{value:{id:r},children:y.jsx("div",{"data-slot":"form-item",className:D("grid gap-2",e),...t})})}function No({className:e,...t}){const{error:r,formItemId:o}=ge();return y.jsx(St,{"data-slot":"form-label","data-error":!!r,className:D("data-[error=true]:text-destructive",e),htmlFor:o,...t})}function Po({...e}){const{error:t,formItemId:r,formDescriptionId:o,formMessageId:n}=ge();return y.jsx(lt,{"data-slot":"form-control",id:r,"aria-describedby":t?`${o} ${n}`:`${o}`,"aria-invalid":!!t,...e})}function Oo({className:e,...t}){const{formDescriptionId:r}=ge();return y.jsx("p",{"data-slot":"form-description",id:r,className:D("text-muted-foreground text-sm",e),...t})}function Fo({className:e,...t}){const{error:r,formMessageId:o}=ge(),n=r?String(r?.message??""):t.children;return n?y.jsx("p",{"data-slot":"form-message",id:o,className:D("text-destructive text-sm",e),...t,children:n}):null}function q(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}function ze(e,t=[]){let r=[];function o(s,a){const i=c.createContext(a),l=r.length;r=[...r,a];const u=m=>{const{scope:h,children:C,...I}=m,S=h?.[e]?.[l]||i,b=c.useMemo(()=>I,Object.values(I));return y.jsx(S.Provider,{value:b,children:C})};u.displayName=s+"Provider";function f(m,h){const C=h?.[e]?.[l]||i,I=c.useContext(C);if(I)return I;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,f]}const n=()=>{const s=r.map(a=>c.createContext(a));return function(i){const l=i?.[e]||s;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return n.scopeName=e,[o,jo(n,...t)]}function jo(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const a=o.reduce((i,{useScope:l,scopeName:u})=>{const m=l(s)[`__scope${u}`];return{...i,...m}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function st(e){const t=Mo(e),r=c.forwardRef((o,n)=>{const{children:s,...a}=o,i=c.Children.toArray(s),l=i.find($o);if(l){const u=l.props.children,f=i.map(m=>m===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:m);return y.jsx(t,{...a,ref:n,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return y.jsx(t,{...a,ref:n,children:s})});return r.displayName=`${e}.Slot`,r}function Mo(e){const t=c.forwardRef((r,o)=>{const{children:n,...s}=r;if(c.isValidElement(n)){const a=Lo(n),i=Do(s,n.props);return n.type!==c.Fragment&&(i.ref=o?pe(o,a):a),c.cloneElement(n,i)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vo=Symbol("radix.slottable");function $o(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vo}function Do(e,t){const r={...t};for(const o in t){const n=e[o],s=t[o];/^on[A-Z]/.test(o)?n&&s?r[o]=(...i)=>{const l=s(...i);return n(...i),l}:n&&(r[o]=n):o==="style"?r[o]={...n,...s}:o==="className"&&(r[o]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}function Lo(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)}function zo(e){const t=e+"CollectionProvider",[r,o]=ze(t),[n,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=S=>{const{scope:b,children:P}=S,F=R.useRef(null),A=R.useRef(new Map).current;return y.jsx(n,{scope:b,itemMap:A,collectionRef:F,children:P})};a.displayName=t;const i=e+"CollectionSlot",l=st(i),u=R.forwardRef((S,b)=>{const{scope:P,children:F}=S,A=s(i,P),x=Ce(b,A.collectionRef);return y.jsx(l,{ref:x,children:F})});u.displayName=i;const f=e+"CollectionItemSlot",m="data-radix-collection-item",h=st(f),C=R.forwardRef((S,b)=>{const{scope:P,children:F,...A}=S,x=R.useRef(null),O=Ce(b,x),j=s(f,P);return R.useEffect(()=>(j.itemMap.set(x,{ref:x,...A}),()=>void j.itemMap.delete(x))),y.jsx(h,{[m]:"",ref:O,children:F})});C.displayName=f;function I(S){const b=s(e+"CollectionConsumer",S);return R.useCallback(()=>{const F=b.collectionRef.current;if(!F)return[];const A=Array.from(F.querySelectorAll(`[${m}]`));return Array.from(b.itemMap.values()).sort((j,L)=>A.indexOf(j.ref.current)-A.indexOf(L.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:C},I,o]}var Ee=globalThis?.document?c.useLayoutEffect:()=>{},Go=c[" useId ".trim().toString()]||(()=>{}),Wo=0;function Ft(e){const[t,r]=c.useState(Go());return Ee(()=>{r(o=>o??String(Wo++))},[e]),e||(t?`radix-${t}`:"")}function Uo(e){const t=Bo(e),r=c.forwardRef((o,n)=>{const{children:s,...a}=o,i=c.Children.toArray(s),l=i.find(Ho);if(l){const u=l.props.children,f=i.map(m=>m===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:m);return y.jsx(t,{...a,ref:n,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return y.jsx(t,{...a,ref:n,children:s})});return r.displayName=`${e}.Slot`,r}function Bo(e){const t=c.forwardRef((r,o)=>{const{children:n,...s}=r;if(c.isValidElement(n)){const a=Ko(n),i=qo(s,n.props);return n.type!==c.Fragment&&(i.ref=o?pe(o,a):a),c.cloneElement(n,i)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yo=Symbol("radix.slottable");function Ho(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yo}function qo(e,t){const r={...t};for(const o in t){const n=e[o],s=t[o];/^on[A-Z]/.test(o)?n&&s?r[o]=(...i)=>{const l=s(...i);return n(...i),l}:n&&(r[o]=n):o==="style"?r[o]={...n,...s}:o==="className"&&(r[o]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}function Ko(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 Jo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jt=Jo.reduce((e,t)=>{const r=Uo(`Primitive.${t}`),o=c.forwardRef((n,s)=>{const{asChild:a,...i}=n,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Xo(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...r)=>t.current?.(...r),[])}var Zo=c[" useInsertionEffect ".trim().toString()]||Ee;function Mt({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[n,s,a]=Qo({defaultProp:t,onChange:r}),i=e!==void 0,l=i?e:n;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const m=f.current;m!==i&&console.warn(`${o} is changing from ${m?"controlled":"uncontrolled"} to ${i?"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=i},[i,o])}const u=c.useCallback(f=>{if(i){const m=en(f)?f(e):f;m!==e&&a.current?.(m)}else s(f)},[i,e,s,a]);return[l,u]}function Qo({defaultProp:e,onChange:t}){const[r,o]=c.useState(e),n=c.useRef(r),s=c.useRef(t);return Zo(()=>{s.current=t},[t]),c.useEffect(()=>{n.current!==r&&(s.current?.(r),n.current=r)},[r,n]),[r,o,s]}function en(e){return typeof e=="function"}var tn=c.createContext(void 0);function Vt(e){const t=c.useContext(tn);return e||t||"ltr"}var Fe="rovingFocusGroup.onEntryFocus",rn={bubbles:!1,cancelable:!0},be="RovingFocusGroup",[Ve,$t,on]=zo(be),[nn,Dt]=ze(be,[on]),[sn,an]=nn(be),Lt=c.forwardRef((e,t)=>y.jsx(Ve.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Ve.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(ln,{...e,ref:t})})}));Lt.displayName=be;var ln=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:n=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...m}=e,h=c.useRef(null),C=Ce(t,h),I=Vt(s),[S,b]=Mt({prop:a,defaultProp:i??null,onChange:l,caller:be}),[P,F]=c.useState(!1),A=Xo(u),x=$t(r),O=c.useRef(!1),[j,L]=c.useState(0);return c.useEffect(()=>{const v=h.current;if(v)return v.addEventListener(Fe,A),()=>v.removeEventListener(Fe,A)},[A]),y.jsx(sn,{scope:r,orientation:o,dir:I,loop:n,currentTabStopId:S,onItemFocus:c.useCallback(v=>b(v),[b]),onItemShiftTab:c.useCallback(()=>F(!0),[]),onFocusableItemAdd:c.useCallback(()=>L(v=>v+1),[]),onFocusableItemRemove:c.useCallback(()=>L(v=>v-1),[]),children:y.jsx(jt.div,{tabIndex:P||j===0?-1:0,"data-orientation":o,...m,ref:C,style:{outline:"none",...e.style},onMouseDown:q(e.onMouseDown,()=>{O.current=!0}),onFocus:q(e.onFocus,v=>{const V=!O.current;if(v.target===v.currentTarget&&V&&!P){const Z=new CustomEvent(Fe,rn);if(v.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const K=x().filter(M=>M.focusable),W=K.find(M=>M.active),Q=K.find(M=>M.id===S),G=[W,Q,...K].filter(Boolean).map(M=>M.ref.current);Wt(G,f)}}O.current=!1}),onBlur:q(e.onBlur,()=>F(!1))})})}),zt="RovingFocusGroupItem",Gt=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:n=!1,tabStopId:s,children:a,...i}=e,l=Ft(),u=s||l,f=an(zt,r),m=f.currentTabStopId===u,h=$t(r),{onFocusableItemAdd:C,onFocusableItemRemove:I,currentTabStopId:S}=f;return c.useEffect(()=>{if(o)return C(),()=>I()},[o,C,I]),y.jsx(Ve.ItemSlot,{scope:r,id:u,focusable:o,active:n,children:y.jsx(jt.span,{tabIndex:m?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:q(e.onMouseDown,b=>{o?f.onItemFocus(u):b.preventDefault()}),onFocus:q(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:q(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){f.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const P=dn(b,f.orientation,f.dir);if(P!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let A=h().filter(x=>x.focusable).map(x=>x.ref.current);if(P==="last")A.reverse();else if(P==="prev"||P==="next"){P==="prev"&&A.reverse();const x=A.indexOf(b.currentTarget);A=f.loop?fn(A,x+1):A.slice(x+1)}setTimeout(()=>Wt(A))}}),children:typeof a=="function"?a({isCurrentTabStop:m,hasTabStop:S!=null}):a})})});Gt.displayName=zt;var cn={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function un(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function dn(e,t,r){const o=un(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return cn[o]}function Wt(e,t=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}function fn(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var mn=Lt,pn=Gt;function gn(e,t){return c.useReducer((r,o)=>t[r][o]??r,e)}var Ut=e=>{const{present:t,children:r}=e,o=bn(t),n=typeof r=="function"?r({present:o.isPresent}):c.Children.only(r),s=Ce(o.ref,vn(n));return typeof r=="function"||o.isPresent?c.cloneElement(n,{ref:s}):null};Ut.displayName="Presence";function bn(e){const[t,r]=c.useState(),o=c.useRef(null),n=c.useRef(e),s=c.useRef("none"),a=e?"mounted":"unmounted",[i,l]=gn(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=we(o.current);s.current=i==="mounted"?u:"none"},[i]),Ee(()=>{const u=o.current,f=n.current;if(f!==e){const h=s.current,C=we(u);e?l("MOUNT"):C==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&h!==C?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,l]),Ee(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,m=C=>{const S=we(o.current).includes(CSS.escape(C.animationName));if(C.target===t&&S&&(l("ANIMATION_END"),!n.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=C=>{C.target===t&&(s.current=we(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(u=>{o.current=u?getComputedStyle(u):null,r(u)},[])}}function we(e){return e?.animationName||"none"}function vn(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)}function hn(e){const t=yn(e),r=c.forwardRef((o,n)=>{const{children:s,...a}=o,i=c.Children.toArray(s),l=i.find(wn);if(l){const u=l.props.children,f=i.map(m=>m===l?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:m);return y.jsx(t,{...a,ref:n,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return y.jsx(t,{...a,ref:n,children:s})});return r.displayName=`${e}.Slot`,r}function yn(e){const t=c.forwardRef((r,o)=>{const{children:n,...s}=r;if(c.isValidElement(n)){const a=Cn(n),i=kn(s,n.props);return n.type!==c.Fragment&&(i.ref=o?pe(o,a):a),c.cloneElement(n,i)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xn=Symbol("radix.slottable");function wn(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xn}function kn(e,t){const r={...t};for(const o in t){const n=e[o],s=t[o];/^on[A-Z]/.test(o)?n&&s?r[o]=(...i)=>{const l=s(...i);return n(...i),l}:n&&(r[o]=n):o==="style"?r[o]={...n,...s}:o==="className"&&(r[o]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}function Cn(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 Rn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Te=Rn.reduce((e,t)=>{const r=hn(`Primitive.${t}`),o=c.forwardRef((n,s)=>{const{asChild:a,...i}=n,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...i,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),Ae="Tabs",[Sn,jn]=ze(Ae,[Dt]),Bt=Dt(),[En,Ge]=Sn(Ae),Yt=c.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,onValueChange:n,defaultValue:s,orientation:a="horizontal",dir:i,activationMode:l="automatic",...u}=e,f=Vt(i),[m,h]=Mt({prop:o,onChange:n,defaultProp:s??"",caller:Ae});return y.jsx(En,{scope:r,baseId:Ft(),value:m,onValueChange:h,orientation:a,dir:f,activationMode:l,children:y.jsx(Te.div,{dir:f,"data-orientation":a,...u,ref:t})})});Yt.displayName=Ae;var Ht="TabsList",qt=c.forwardRef((e,t)=>{const{__scopeTabs:r,loop:o=!0,...n}=e,s=Ge(Ht,r),a=Bt(r);return y.jsx(mn,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:o,children:y.jsx(Te.div,{role:"tablist","aria-orientation":s.orientation,...n,ref:t})})});qt.displayName=Ht;var Kt="TabsTrigger",Jt=c.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,disabled:n=!1,...s}=e,a=Ge(Kt,r),i=Bt(r),l=Qt(a.baseId,o),u=er(a.baseId,o),f=o===a.value;return y.jsx(pn,{asChild:!0,...i,focusable:!n,active:f,children:y.jsx(Te.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:l,...s,ref:t,onMouseDown:q(e.onMouseDown,m=>{!n&&m.button===0&&m.ctrlKey===!1?a.onValueChange(o):m.preventDefault()}),onKeyDown:q(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&a.onValueChange(o)}),onFocus:q(e.onFocus,()=>{const m=a.activationMode!=="manual";!f&&!n&&m&&a.onValueChange(o)})})})});Jt.displayName=Kt;var Xt="TabsContent",Zt=c.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,forceMount:n,children:s,...a}=e,i=Ge(Xt,r),l=Qt(i.baseId,o),u=er(i.baseId,o),f=o===i.value,m=c.useRef(f);return c.useEffect(()=>{const h=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(h)},[]),y.jsx(Ut,{present:n||f,children:({present:h})=>y.jsx(Te.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:h&&s})})});Zt.displayName=Xt;function Qt(e,t){return`${e}-trigger-${t}`}function er(e,t){return`${e}-content-${t}`}var _n=Yt,Tn=qt,An=Jt,In=Zt;function Nn({className:e,...t}){return y.jsx(_n,{"data-slot":"tabs",className:D("flex flex-col gap-2",e),...t})}function Pn({className:e,...t}){return y.jsx(Tn,{"data-slot":"tabs-list",className:D("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function On({className:e,...t}){return y.jsx(An,{"data-slot":"tabs-trigger",className:D("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Fn({className:e,...t}){return y.jsx(In,{"data-slot":"tabs-content",className:D("flex-1 outline-none",e),...t})}exports.Button=to;exports.Card=oo;exports.CardAction=io;exports.CardContent=lo;exports.CardDescription=ao;exports.CardFooter=co;exports.CardHeader=no;exports.CardTitle=so;exports.Form=To;exports.FormControl=Po;exports.FormDescription=Oo;exports.FormField=Ao;exports.FormItem=Io;exports.FormLabel=No;exports.FormMessage=Fo;exports.Input=ro;exports.Label=St;exports.Tabs=Nn;exports.TabsContent=Fn;exports.TabsList=Pn;exports.TabsTrigger=On;exports.buttonVariants=Ct;exports.useFormField=ge;
|
|
6
|
+
<%s key={someKey} {...props} />`,D,F,Q,F),he[F+D]=!0)}if(F=null,j!==void 0&&(n(j),F=""+j),i(P)&&(n(P.key),F=""+P.key),"key"in P){j={};for(var ne in P)ne!=="key"&&(j[ne]=P[ne])}else j=P;return F&&l(j,typeof p=="function"?p.displayName||p.name||"Unknown":p),u(p,F,j,o(),X,ue)}function f(p){b(p)?p._store&&(p._store.validated=1):typeof p=="object"&&p!==null&&p.$$typeof===I&&(p._payload.status==="fulfilled"?b(p._payload.value)&&p._payload.value._store&&(p._payload.value._store.validated=1):p._store&&(p._store.validated=1))}function b(p){return typeof p=="object"&&p!==null&&p.$$typeof===R}var E=A,R=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),v=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),B=Symbol.for("react.client.reference"),Z=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=Object.prototype.hasOwnProperty,ce=Array.isArray,U=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(p){return p()}};var z,J={},_=E.react_stack_bottom_frame.bind(E,s)(),be=U(r(s)),he={};xe.Fragment=g,xe.jsx=function(p,P,j){var D=1e4>Z.recentlyCreatedOwnerStacks++;return d(p,P,j,!1,D?Error("react-stack-top-frame"):_,D?U(r(p)):be)},xe.jsxs=function(p,P,j){var D=1e4>Z.recentlyCreatedOwnerStacks++;return d(p,P,j,!0,D?Error("react-stack-top-frame"):_,D?U(r(p)):be)}})()),xe}var vt;function ir(){return vt||(vt=1,process.env.NODE_ENV==="production"?Ne.exports=or():Ne.exports=sr()),Ne.exports}var m=ir();function bt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function te(...e){return t=>{let n=!1;const r=e.map(o=>{const s=bt(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():bt(e[o],null)}}}}function Y(...e){return a.useCallback(te(...e),e)}var ar=Symbol.for("react.lazy"),Oe=a[" use ".trim().toString()];function lr(e){return typeof e=="object"&&e!==null&&"then"in e}function $t(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ar&&"_payload"in e&&lr(e._payload)}function zt(e){const t=cr(e),n=a.forwardRef((r,o)=>{let{children:s,...i}=r;$t(s)&&typeof Oe=="function"&&(s=Oe(s._payload));const l=a.Children.toArray(s),c=l.find(dr);if(c){const u=c.props.children,d=l.map(f=>f===c?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return m.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Wt=zt("Slot");function cr(e){const t=a.forwardRef((n,r)=>{let{children:o,...s}=n;if($t(o)&&typeof Oe=="function"&&(o=Oe(o._payload)),a.isValidElement(o)){const i=mr(o),l=fr(s,o.props);return o.type!==a.Fragment&&(l.ref=r?te(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ur=Symbol("radix.slottable");function dr(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ur}function fr(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function mr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gt(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Gt(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Bt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gt(e))&&(r&&(r+=" "),r+=t);return r}const ht=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,yt=Bt,Ut=(e,t)=>n=>{var r;if(t?.variants==null)return yt(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const d=n?.[u],f=s?.[u];if(d===null)return null;const b=ht(d)||ht(f);return o[u][b]}),l=n&&Object.entries(n).reduce((u,d)=>{let[f,b]=d;return b===void 0||(u[f]=b),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:f,className:b,...E}=d;return Object.entries(E).every(R=>{let[x,g]=R;return Array.isArray(g)?g.includes({...s,...l}[x]):{...s,...l}[x]===g})?[...u,f,b]:u},[]);return yt(e,i,c,n?.class,n?.className)},pr=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},gr=(e,t)=>({classGroupId:e,validator:t}),Kt=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Me="-",xt=[],vr="arbitrary..",br=e=>{const t=yr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return hr(i);const l=i.split(Me),c=l[0]===""&&l.length>1?1:0;return Ht(l,c,t)},getConflictingClassGroupIds:(i,l)=>{if(l){const c=r[i],u=n[i];return c?u?pr(u,c):c:u||xt}return n[i]||xt}}},Ht=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=Ht(e,t+1,s);if(u)return u}const i=n.validators;if(i===null)return;const l=t===0?e.join(Me):e.slice(t).join(Me),c=i.length;for(let u=0;u<c;u++){const d=i[u];if(d.validator(l))return d.classGroupId}},hr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?vr+r:void 0})(),yr=e=>{const{theme:t,classGroups:n}=e;return xr(n,t)},xr=(e,t)=>{const n=Kt();for(const r in e){const o=e[r];nt(o,n,r,t)}return n},nt=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];wr(i,t,n,r)}},wr=(e,t,n,r)=>{if(typeof e=="string"){Cr(e,t,n);return}if(typeof e=="function"){Er(e,t,n,r);return}Rr(e,t,n,r)},Cr=(e,t,n)=>{const r=e===""?t:Yt(t,e);r.classGroupId=n},Er=(e,t,n,r)=>{if(kr(e)){nt(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(gr(n,e))},Rr=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[l,c]=o[i];nt(c,Yt(t,l),n,r)}},Yt=(e,t)=>{let n=e;const r=t.split(Me),o=r.length;for(let s=0;s<o;s++){const i=r[s];let l=n.nextPart.get(i);l||(l=Kt(),n.nextPart.set(i,l)),n=l}return n},kr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Nr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,i)=>{n[s]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return o(s,i),i},set(s,i){s in n?n[s]=i:o(s,i)}}},He="!",wt=":",Sr=[],Ct=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),_r=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,l=0,c=0,u;const d=o.length;for(let x=0;x<d;x++){const g=o[x];if(i===0&&l===0){if(g===wt){s.push(o.slice(c,x)),c=x+1;continue}if(g==="/"){u=x;continue}}g==="["?i++:g==="]"?i--:g==="("?l++:g===")"&&l--}const f=s.length===0?o:o.slice(c);let b=f,E=!1;f.endsWith(He)?(b=f.slice(0,-1),E=!0):f.startsWith(He)&&(b=f.slice(1),E=!0);const R=u&&u>c?u-c:void 0;return Ct(s,E,b,R)};if(t){const o=t+wt,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):Ct(Sr,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Tr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],l=i[0]==="[",c=t.has(i);l||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},Ir=e=>({cache:Nr(e.cacheSize),parseClassName:_r(e),sortModifiers:Tr(e),...br(e)}),Pr=/\s+/,Ar=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],l=e.trim().split(Pr);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:f,modifiers:b,hasImportantModifier:E,baseClassName:R,maybePostfixModifierPosition:x}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let g=!!x,N=r(g?R.substring(0,x):R);if(!N){if(!g){c=d+(c.length>0?" "+c:c);continue}if(N=r(R),!N){c=d+(c.length>0?" "+c:c);continue}g=!1}const M=b.length===0?"":b.length===1?b[0]:s(b).join(":"),y=E?M+He:M,v=y+N;if(i.indexOf(v)>-1)continue;i.push(v);const k=o(N,g);for(let S=0;S<k.length;++S){const T=k[S];i.push(y+T)}c=d+(c.length>0?" "+c:c)}return c},Or=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=qt(n))&&(o&&(o+=" "),o+=r);return o},qt=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=qt(e[r]))&&(n&&(n+=" "),n+=t);return n},Mr=(e,...t)=>{let n,r,o,s;const i=c=>{const u=t.reduce((d,f)=>f(d),e());return n=Ir(u),r=n.cache.get,o=n.cache.set,s=l,l(c)},l=c=>{const u=r(c);if(u)return u;const d=Ar(c,n);return o(c,d),d};return s=i,(...c)=>s(Or(...c))},jr=[],W=e=>{const t=n=>n[e]||jr;return t.isThemeGetter=!0,t},Zt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fr=/^\d+\/\d+$/,Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lr=/\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$/,Vr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$r=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fe=e=>Fr.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),re=e=>!!e&&Number.isInteger(Number(e)),Ge=e=>e.endsWith("%")&&O(e.slice(0,-1)),ee=e=>Dr.test(e),Wr=()=>!0,Gr=e=>Lr.test(e)&&!Vr.test(e),Xt=()=>!1,Br=e=>$r.test(e),Ur=e=>zr.test(e),Kr=e=>!w(e)&&!C(e),Hr=e=>pe(e,tn,Xt),w=e=>Zt.test(e),se=e=>pe(e,nn,Gr),Be=e=>pe(e,Xr,O),Et=e=>pe(e,Qt,Xt),Yr=e=>pe(e,en,Ur),Se=e=>pe(e,rn,Br),C=e=>Jt.test(e),we=e=>ge(e,nn),qr=e=>ge(e,Qr),Rt=e=>ge(e,Qt),Zr=e=>ge(e,tn),Jr=e=>ge(e,en),_e=e=>ge(e,rn,!0),pe=(e,t,n)=>{const r=Zt.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ge=(e,t,n=!1)=>{const r=Jt.exec(e);return r?r[1]?t(r[1]):n:!1},Qt=e=>e==="position"||e==="percentage",en=e=>e==="image"||e==="url",tn=e=>e==="length"||e==="size"||e==="bg-size",nn=e=>e==="length",Xr=e=>e==="number",Qr=e=>e==="family-name",rn=e=>e==="shadow",eo=()=>{const e=W("color"),t=W("font"),n=W("text"),r=W("font-weight"),o=W("tracking"),s=W("leading"),i=W("breakpoint"),l=W("container"),c=W("spacing"),u=W("radius"),d=W("shadow"),f=W("inset-shadow"),b=W("text-shadow"),E=W("drop-shadow"),R=W("blur"),x=W("perspective"),g=W("aspect"),N=W("ease"),M=W("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...v(),C,w],S=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],h=()=>[C,w,c],I=()=>[fe,"full","auto",...h()],$=()=>[re,"none","subgrid",C,w],B=()=>["auto",{span:["full",re,C,w]},re,C,w],Z=()=>[re,"auto",C,w],oe=()=>["auto","min","max","fr",C,w],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...h()],J=()=>[fe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],_=()=>[e,C,w],be=()=>[...v(),Rt,Et,{position:[C,w]}],he=()=>["no-repeat",{repeat:["","x","y","space","round"]}],p=()=>["auto","cover","contain",Zr,Hr,{size:[C,w]}],P=()=>[Ge,we,se],j=()=>["","none","full",u,C,w],D=()=>["",O,we,se],X=()=>["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"],F=()=>[O,Ge,Rt,Et],Q=()=>["","none",R,C,w],ne=()=>["none",O,C,w],de=()=>["none",O,C,w],We=()=>[O,C,w],ke=()=>[fe,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ee],breakpoint:[ee],color:[Wr],container:[ee],"drop-shadow":[ee],ease:["in","out","in-out"],font:[Kr],"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",O],text:[ee],"text-shadow":[ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fe,w,C,g]}],container:["container"],columns:[{columns:[O,w,C,l]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[re,"auto",C,w]}],basis:[{basis:[fe,"full","auto",l,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,fe,"auto","initial","none",w]}],grow:[{grow:["",O,C,w]}],shrink:[{shrink:["",O,C,w]}],order:[{order:[re,"first","last","none",C,w]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[l,"screen",...J()]}],"min-w":[{"min-w":[l,"screen","none",...J()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,we,se]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,C,Be]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ge,w]}],"font-family":[{font:[qr,w,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,C,w]}],"line-clamp":[{"line-clamp":[O,"none",C,Be]}],leading:[{leading:[s,...h()]}],"list-image":[{"list-image":["none",C,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",C,w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",C,se]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[O,"auto",C,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C,w]}],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",C,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:p()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},re,C,w],radial:["",C,w],conic:[re,C,w]},Jr,Yr]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],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:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,C,w]}],"outline-w":[{outline:["",O,we,se]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",d,_e,Se]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,_e,Se]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[O,se]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",b,_e,Se]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[O,C,w]}],"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":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[C,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:p()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",C,w]}],filter:[{filter:["","none",C,w]}],blur:[{blur:Q()}],brightness:[{brightness:[O,C,w]}],contrast:[{contrast:[O,C,w]}],"drop-shadow":[{"drop-shadow":["","none",E,_e,Se]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",O,C,w]}],"hue-rotate":[{"hue-rotate":[O,C,w]}],invert:[{invert:["",O,C,w]}],saturate:[{saturate:[O,C,w]}],sepia:[{sepia:["",O,C,w]}],"backdrop-filter":[{"backdrop-filter":["","none",C,w]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[O,C,w]}],"backdrop-contrast":[{"backdrop-contrast":[O,C,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,C,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,C,w]}],"backdrop-invert":[{"backdrop-invert":["",O,C,w]}],"backdrop-opacity":[{"backdrop-opacity":[O,C,w]}],"backdrop-saturate":[{"backdrop-saturate":[O,C,w]}],"backdrop-sepia":[{"backdrop-sepia":["",O,C,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",C,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",C,w]}],ease:[{ease:["linear","initial",N,C,w]}],delay:[{delay:[O,C,w]}],animate:[{animate:["none",M,C,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,C,w]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}],"skew-y":[{"skew-y":We()}],transform:[{transform:[C,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"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",C,w]}],"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":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"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",C,w]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[O,we,se,Be]}],stroke:[{stroke:["none",..._()]}],"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"]}},to=Mr(eo);function L(...e){return to(Bt(e))}const on=Ut("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function no({className:e,variant:t,size:n,asChild:r=!1,...o}){const s=r?Wt:"button";return m.jsx(s,{"data-slot":"button",className:L(on({variant:t,size:n,className:e})),...o})}function ro({className:e,type:t,...n}){return m.jsx("input",{type:t,"data-slot":"input",className:L("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function oo({className:e,...t}){return m.jsx("div",{"data-slot":"card",className:L("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function so({className:e,...t}){return m.jsx("div",{"data-slot":"card-header",className:L("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function io({className:e,...t}){return m.jsx("div",{"data-slot":"card-title",className:L("leading-none font-semibold",e),...t})}function ao({className:e,...t}){return m.jsx("div",{"data-slot":"card-description",className:L("text-muted-foreground text-sm",e),...t})}function lo({className:e,...t}){return m.jsx("div",{"data-slot":"card-action",className:L("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function co({className:e,...t}){return m.jsx("div",{"data-slot":"card-content",className:L("px-6",e),...t})}function uo({className:e,...t}){return m.jsx("div",{"data-slot":"card-footer",className:L("flex items-center px-6 [.border-t]:pt-6",e),...t})}var fo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mo=fo.reduce((e,t)=>{const n=zt(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),po="Label",sn=a.forwardRef((e,t)=>m.jsx(mo.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));sn.displayName=po;var go=sn;function an({className:e,...t}){return m.jsx(go,{"data-slot":"label",className:L("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var vo=e=>e.type==="checkbox",Ce=e=>e instanceof Date,rt=e=>e==null;const ln=e=>typeof e=="object";var ie=e=>!rt(e)&&!Array.isArray(e)&&ln(e)&&!Ce(e),bo=e=>ie(e)&&e.target?vo(e.target)?e.target.checked:e.target.value:e,ho=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,yo=(e,t)=>e.has(ho(t)),xo=e=>{const t=e.constructor&&e.constructor.prototype;return ie(t)&&t.hasOwnProperty("isPrototypeOf")},wo=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cn(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(wo&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(ie(e)&&xo(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=cn(e[o]));return r}var un=e=>/^\w*$/.test(e),Ye=e=>e===void 0,Co=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>Co(e.replace(/["|']|\]/g,"").split(/\.|\[/)),G=(e,t,n)=>{if(!t||!ie(e))return n;const r=(un(t)?[t]:dn(t)).reduce((o,s)=>rt(o)?o:o[s],e);return Ye(r)||r===e?Ye(e[t])?n:e[t]:r},Ue=e=>typeof e=="boolean",Te=e=>typeof e=="function",kt=(e,t,n)=>{let r=-1;const o=un(t)?[t]:dn(t),s=o.length,i=s-1;for(;++r<s;){const l=o[r];let c=n;if(r!==i){const u=e[l];c=ie(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Nt={BLUR:"blur",CHANGE:"change"},St={all:"all"},ot=A.createContext(null);ot.displayName="HookFormContext";const Fe=()=>A.useContext(ot),Eo=e=>{const{children:t,...n}=e;return A.createElement(ot.Provider,{value:n},t)};var Ro=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const i=s;return t._proxyFormState[i]!==St.all&&(t._proxyFormState[i]=!r||St.all),n&&(n[i]=!0),e[i]}});return o};const fn=typeof window<"u"?A.useLayoutEffect:A.useEffect;function mn(e){const t=Fe(),{control:n=t.control,disabled:r,name:o,exact:s}=e||{},[i,l]=A.useState(n._formState),c=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return fn(()=>n._subscribe({name:o,formState:c.current,exact:s,callback:u=>{!r&&l({...n._formState,...u})}}),[o,r,s]),A.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),A.useMemo(()=>Ro(i,n,c.current,!1),[i,n])}var ko=e=>typeof e=="string",_t=(e,t,n,r,o)=>ko(e)?G(n,e,o):Array.isArray(e)?e.map(s=>G(n,s)):n,Tt=e=>rt(e)||!ln(e);function Pe(e,t,n=new WeakSet){if(Tt(e)||Tt(t))return Object.is(e,t);if(Ce(e)&&Ce(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of r){const i=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const l=t[s];if(Ce(i)&&Ce(l)||ie(i)&&ie(l)||Array.isArray(i)&&Array.isArray(l)?!Pe(i,l,n):!Object.is(i,l))return!1}}return!0}function No(e){const t=Fe(),{control:n=t.control,name:r,defaultValue:o,disabled:s,exact:i,compute:l}=e||{},c=A.useRef(o),u=A.useRef(l),d=A.useRef(void 0),f=A.useRef(n),b=A.useRef(r);u.current=l;const[E,R]=A.useState(()=>{const v=n._getWatch(r,c.current);return u.current?u.current(v):v}),x=A.useCallback(v=>{const k=_t(r,n._names,v||n._formValues,!1,c.current);return u.current?u.current(k):k},[n._formValues,n._names,r]),g=A.useCallback(v=>{if(!s){const k=_t(r,n._names,v||n._formValues,!1,c.current);if(u.current){const S=u.current(k);Pe(S,d.current)||(R(S),d.current=S)}else R(k)}},[n._formValues,n._names,s,r]);fn(()=>((f.current!==n||!Pe(b.current,r))&&(f.current=n,b.current=r,g()),n._subscribe({name:r,formState:{values:!0},exact:i,callback:v=>{g(v.values)}})),[n,i,r,g]),A.useEffect(()=>n._removeUnmounted());const N=f.current!==n,M=b.current,y=A.useMemo(()=>{if(s)return null;const v=!N&&!Pe(M,r);return N||v?x():null},[s,N,r,M,x]);return y!==null?y:E}function So(e){const t=Fe(),{name:n,disabled:r,control:o=t.control,shouldUnregister:s,defaultValue:i,exact:l=!0}=e,c=yo(o._names.array,n),u=A.useMemo(()=>G(o._formValues,n,G(o._defaultValues,n,i)),[o,n,i]),d=No({control:o,name:n,defaultValue:u,exact:l}),f=mn({control:o,name:n,exact:l}),b=A.useRef(e),E=A.useRef(void 0),R=A.useRef(o.register(n,{...e.rules,value:d,...Ue(e.disabled)?{disabled:e.disabled}:{}}));b.current=e;const x=A.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!G(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!G(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!G(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!G(f.validatingFields,n)},error:{enumerable:!0,get:()=>G(f.errors,n)}}),[f,n]),g=A.useCallback(v=>R.current.onChange({target:{value:bo(v),name:n},type:Nt.CHANGE}),[n]),N=A.useCallback(()=>R.current.onBlur({target:{value:G(o._formValues,n),name:n},type:Nt.BLUR}),[n,o._formValues]),M=A.useCallback(v=>{const k=G(o._fields,n);k&&k._f&&v&&(k._f.ref={focus:()=>Te(v.focus)&&v.focus(),select:()=>Te(v.select)&&v.select(),setCustomValidity:S=>Te(v.setCustomValidity)&&v.setCustomValidity(S),reportValidity:()=>Te(v.reportValidity)&&v.reportValidity()})},[o._fields,n]),y=A.useMemo(()=>({name:n,value:d,...Ue(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:g,onBlur:N,ref:M}),[n,r,f.disabled,g,N,M,d]);return A.useEffect(()=>{const v=o._options.shouldUnregister||s,k=E.current;k&&k!==n&&!c&&o.unregister(k),o.register(n,{...b.current.rules,...Ue(b.current.disabled)?{disabled:b.current.disabled}:{}});const S=(T,h)=>{const I=G(o._fields,T);I&&I._f&&(I._f.mount=h)};if(S(n,!0),v){const T=cn(G(o._options.defaultValues,n,b.current.defaultValue));kt(o._defaultValues,n,T),Ye(G(o._formValues,n))&&kt(o._formValues,n,T)}return!c&&o.register(n),E.current=n,()=>{(c?v&&!o._state.action:v)?o.unregister(n):S(n,!1)}},[n,o,c,s]),A.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),A.useMemo(()=>({field:y,formState:f,fieldState:x}),[y,f,x])}const _o=e=>e.render(So(e)),To=Eo,pn=a.createContext({}),Io=({...e})=>m.jsx(pn.Provider,{value:{name:e.name},children:m.jsx(_o,{...e})}),Ee=()=>{const e=a.useContext(pn),t=a.useContext(gn),{getFieldState:n}=Fe(),r=mn({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...o}},gn=a.createContext({});function Po({className:e,...t}){const n=a.useId();return m.jsx(gn.Provider,{value:{id:n},children:m.jsx("div",{"data-slot":"form-item",className:L("grid gap-2",e),...t})})}function Ao({className:e,...t}){const{error:n,formItemId:r}=Ee();return m.jsx(an,{"data-slot":"form-label","data-error":!!n,className:L("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function Oo({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=Ee();return m.jsx(Wt,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function Mo({className:e,...t}){const{formDescriptionId:n}=Ee();return m.jsx("p",{"data-slot":"form-description",id:n,className:L("text-muted-foreground text-sm",e),...t})}function jo({className:e,...t}){const{error:n,formMessageId:r}=Ee(),o=n?String(n?.message??""):t.children;return o?m.jsx("p",{"data-slot":"form-message",id:r,className:L("text-destructive text-sm",e),...t,children:o}):null}function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function De(e,t=[]){let n=[];function r(s,i){const l=a.createContext(i),c=n.length;n=[...n,i];const u=f=>{const{scope:b,children:E,...R}=f,x=b?.[e]?.[c]||l,g=a.useMemo(()=>R,Object.values(R));return m.jsx(x.Provider,{value:g,children:E})};u.displayName=s+"Provider";function d(f,b){const E=b?.[e]?.[c]||l,R=a.useContext(E);if(R)return R;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>a.createContext(i));return function(l){const c=l?.[e]||s;return a.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Fo(o,...t)]}function Fo(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...l,...f}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function It(e){const t=Do(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,l=a.Children.toArray(s),c=l.find(Vo);if(c){const u=c.props.children,d=l.map(f=>f===c?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return m.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Do(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=zo(o),l=$o(s,o.props);return o.type!==a.Fragment&&(l.ref=r?te(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lo=Symbol("radix.slottable");function Vo(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lo}function $o(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function zo(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function st(e){const t=e+"CollectionProvider",[n,r]=De(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:g,children:N}=x,M=A.useRef(null),y=A.useRef(new Map).current;return m.jsx(o,{scope:g,itemMap:y,collectionRef:M,children:N})};i.displayName=t;const l=e+"CollectionSlot",c=It(l),u=A.forwardRef((x,g)=>{const{scope:N,children:M}=x,y=s(l,N),v=Y(g,y.collectionRef);return m.jsx(c,{ref:v,children:M})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",b=It(d),E=A.forwardRef((x,g)=>{const{scope:N,children:M,...y}=x,v=A.useRef(null),k=Y(g,v),S=s(d,N);return A.useEffect(()=>(S.itemMap.set(v,{ref:v,...y}),()=>{S.itemMap.delete(v)})),m.jsx(b,{[f]:"",ref:k,children:M})});E.displayName=d;function R(x){const g=s(e+"CollectionConsumer",x);return A.useCallback(()=>{const M=g.collectionRef.current;if(!M)return[];const y=Array.from(M.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((S,T)=>y.indexOf(S.ref.current)-y.indexOf(T.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:i,Slot:u,ItemSlot:E},R,r]}var ae=globalThis?.document?a.useLayoutEffect:()=>{},Wo=a[" useId ".trim().toString()]||(()=>{}),Go=0;function Le(e){const[t,n]=a.useState(Wo());return ae(()=>{n(r=>r??String(Go++))},[e]),e||(t?`radix-${t}`:"")}function Bo(e){const t=Uo(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,l=a.Children.toArray(s),c=l.find(Ho);if(c){const u=c.props.children,d=l.map(f=>f===c?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return m.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Uo(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=qo(o),l=Yo(s,o.props);return o.type!==a.Fragment&&(l.ref=r?te(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ko=Symbol("radix.slottable");function Ho(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ko}function Yo(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function qo(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Zo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vn=Zo.reduce((e,t)=>{const n=Bo(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function H(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>t.current?.(...n),[])}var Jo=a[" useInsertionEffect ".trim().toString()]||ae;function Ve({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Xo({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:o;{const d=a.useRef(e!==void 0);a.useEffect(()=>{const f=d.current;f!==l&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${l?"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.`),d.current=l},[l,r])}const u=a.useCallback(d=>{if(l){const f=Qo(d)?d(e):d;f!==e&&i.current?.(f)}else s(d)},[l,e,s,i]);return[c,u]}function Xo({defaultProp:e,onChange:t}){const[n,r]=a.useState(e),o=a.useRef(n),s=a.useRef(t);return Jo(()=>{s.current=t},[t]),a.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Qo(e){return typeof e=="function"}var es=a.createContext(void 0);function it(e){const t=a.useContext(es);return e||t||"ltr"}var Ke="rovingFocusGroup.onEntryFocus",ts={bubbles:!1,cancelable:!0},Re="RovingFocusGroup",[qe,bn,ns]=st(Re),[rs,hn]=De(Re,[ns]),[os,ss]=rs(Re),yn=a.forwardRef((e,t)=>m.jsx(qe.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(qe.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(is,{...e,ref:t})})}));yn.displayName=Re;var is=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=e,b=a.useRef(null),E=Y(t,b),R=it(s),[x,g]=Ve({prop:i,defaultProp:l??null,onChange:c,caller:Re}),[N,M]=a.useState(!1),y=H(u),v=bn(n),k=a.useRef(!1),[S,T]=a.useState(0);return a.useEffect(()=>{const h=b.current;if(h)return h.addEventListener(Ke,y),()=>h.removeEventListener(Ke,y)},[y]),m.jsx(os,{scope:n,orientation:r,dir:R,loop:o,currentTabStopId:x,onItemFocus:a.useCallback(h=>g(h),[g]),onItemShiftTab:a.useCallback(()=>M(!0),[]),onFocusableItemAdd:a.useCallback(()=>T(h=>h+1),[]),onFocusableItemRemove:a.useCallback(()=>T(h=>h-1),[]),children:m.jsx(vn.div,{tabIndex:N||S===0?-1:0,"data-orientation":r,...f,ref:E,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{k.current=!0}),onFocus:V(e.onFocus,h=>{const I=!k.current;if(h.target===h.currentTarget&&I&&!N){const $=new CustomEvent(Ke,ts);if(h.currentTarget.dispatchEvent($),!$.defaultPrevented){const B=v().filter(z=>z.focusable),Z=B.find(z=>z.active),oe=B.find(z=>z.id===x),U=[Z,oe,...B].filter(Boolean).map(z=>z.ref.current);Cn(U,d)}}k.current=!1}),onBlur:V(e.onBlur,()=>M(!1))})})}),xn="RovingFocusGroupItem",wn=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...l}=e,c=Le(),u=s||c,d=ss(xn,n),f=d.currentTabStopId===u,b=bn(n),{onFocusableItemAdd:E,onFocusableItemRemove:R,currentTabStopId:x}=d;return a.useEffect(()=>{if(r)return E(),()=>R()},[r,E,R]),m.jsx(qe.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:m.jsx(vn.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:V(e.onMouseDown,g=>{r?d.onItemFocus(u):g.preventDefault()}),onFocus:V(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:V(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){d.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const N=cs(g,d.orientation,d.dir);if(N!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let y=b().filter(v=>v.focusable).map(v=>v.ref.current);if(N==="last")y.reverse();else if(N==="prev"||N==="next"){N==="prev"&&y.reverse();const v=y.indexOf(g.currentTarget);y=d.loop?us(y,v+1):y.slice(v+1)}setTimeout(()=>Cn(y))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:x!=null}):i})})});wn.displayName=xn;var as={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ls(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function cs(e,t,n){const r=ls(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return as[r]}function Cn(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function us(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ds=yn,fs=wn;function ms(e,t){return a.useReducer((n,r)=>t[n][r]??n,e)}var ve=e=>{const{present:t,children:n}=e,r=ps(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),s=Y(r.ref,gs(o));return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:s}):null};ve.displayName="Presence";function ps(e){const[t,n]=a.useState(),r=a.useRef(null),o=a.useRef(e),s=a.useRef("none"),i=e?"mounted":"unmounted",[l,c]=ms(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const u=Ie(r.current);s.current=l==="mounted"?u:"none"},[l]),ae(()=>{const u=r.current,d=o.current;if(d!==e){const b=s.current,E=Ie(u);e?c("MOUNT"):E==="none"||u?.display==="none"?c("UNMOUNT"):c(d&&b!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ae(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=E=>{const x=Ie(r.current).includes(CSS.escape(E.animationName));if(E.target===t&&x&&(c("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},b=E=>{E.target===t&&(s.current=Ie(r.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ie(e){return e?.animationName||"none"}function gs(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function vs(e){const t=bs(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,l=a.Children.toArray(s),c=l.find(ys);if(c){const u=c.props.children,d=l.map(f=>f===c?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return m.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function bs(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=ws(o),l=xs(s,o.props);return o.type!==a.Fragment&&(l.ref=r?te(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hs=Symbol("radix.slottable");function ys(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hs}function xs(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ws(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Cs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=Cs.reduce((e,t)=>{const n=vs(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ze="Tabs",[Es]=De(ze,[hn]),En=hn(),[Rs,at]=Es(ze),Rn=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=it(l),[f,b]=Ve({prop:r,onChange:o,defaultProp:s??"",caller:ze});return m.jsx(Rs,{scope:n,baseId:Le(),value:f,onValueChange:b,orientation:i,dir:d,activationMode:c,children:m.jsx($e.div,{dir:d,"data-orientation":i,...u,ref:t})})});Rn.displayName=ze;var kn="TabsList",Nn=a.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=at(kn,n),i=En(n);return m.jsx(ds,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:m.jsx($e.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Nn.displayName=kn;var Sn="TabsTrigger",_n=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=at(Sn,n),l=En(n),c=Pn(i.baseId,r),u=An(i.baseId,r),d=r===i.value;return m.jsx(fs,{asChild:!0,...l,focusable:!o,active:d,children:m.jsx($e.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...s,ref:t,onMouseDown:V(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:V(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:V(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(r)})})})});_n.displayName=Sn;var Tn="TabsContent",In=a.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,l=at(Tn,n),c=Pn(l.baseId,r),u=An(l.baseId,r),d=r===l.value,f=a.useRef(d);return a.useEffect(()=>{const b=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(b)},[]),m.jsx(ve,{present:o||d,children:({present:b})=>m.jsx($e.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!b,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:b&&s})})});In.displayName=Tn;function Pn(e,t){return`${e}-trigger-${t}`}function An(e,t){return`${e}-content-${t}`}var ks=Rn,Ns=Nn,Ss=_n,_s=In;function Ts({className:e,...t}){return m.jsx(ks,{"data-slot":"tabs",className:L("flex flex-col gap-2",e),...t})}function Is({className:e,...t}){return m.jsx(Ns,{"data-slot":"tabs-list",className:L("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Ps({className:e,...t}){return m.jsx(Ss,{"data-slot":"tabs-trigger",className:L("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function As({className:e,...t}){return m.jsx(_s,{"data-slot":"tabs-content",className:L("flex-1 outline-none",e),...t})}function Os({className:e,...t}){return m.jsx("div",{"data-slot":"skeleton",className:L("bg-accent animate-pulse rounded-md",e),...t})}function Ms({className:e,...t}){return m.jsx(Dt.Loader2Icon,{role:"status","aria-label":"Loading",className:L("size-4 animate-spin",e),...t})}function js(e){const t=Fs(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,l=a.Children.toArray(s),c=l.find(Ls);if(c){const u=c.props.children,d=l.map(f=>f===c?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return m.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Fs(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=$s(o),l=Vs(s,o.props);return o.type!==a.Fragment&&(l.ref=r?te(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ds=Symbol("radix.slottable");function Ls(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ds}function Vs(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function $s(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=zs.reduce((e,t)=>{const n=js(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Pt(e,t){e&&Vt.flushSync(()=>e.dispatchEvent(t))}function Ws(e){const t=Gs(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,l=a.Children.toArray(s),c=l.find(Us);if(c){const u=c.props.children,d=l.map(f=>f===c?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return m.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Gs(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=Hs(o),l=Ks(s,o.props);return o.type!==a.Fragment&&(l.ref=r?te(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bs=Symbol("radix.slottable");function Us(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bs}function Ks(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Hs(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ys=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],On=Ys.reduce((e,t)=>{const n=Ws(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qs(e,t){e&&Vt.flushSync(()=>e.dispatchEvent(t))}function Zs(e,t=globalThis?.document){const n=H(e);a.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Js="DismissableLayer",Ze="dismissableLayer.update",Xs="dismissableLayer.pointerDownOutside",Qs="dismissableLayer.focusOutside",At,Mn=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jn=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:l,...c}=e,u=a.useContext(Mn),[d,f]=a.useState(null),b=d?.ownerDocument??globalThis?.document,[,E]=a.useState({}),R=Y(t,T=>f(T)),x=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),N=x.indexOf(g),M=d?x.indexOf(d):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,v=M>=N,k=ni(T=>{const h=T.target,I=[...u.branches].some($=>$.contains(h));!v||I||(o?.(T),i?.(T),T.defaultPrevented||l?.())},b),S=ri(T=>{const h=T.target;[...u.branches].some($=>$.contains(h))||(s?.(T),i?.(T),T.defaultPrevented||l?.())},b);return Zs(T=>{M===u.layers.size-1&&(r?.(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},b),a.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(At=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ot(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=At)}},[d,b,n,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ot())},[d,u]),a.useEffect(()=>{const T=()=>E({});return document.addEventListener(Ze,T),()=>document.removeEventListener(Ze,T)},[]),m.jsx(On.div,{...c,ref:R,style:{pointerEvents:y?v?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,S.onFocusCapture),onBlurCapture:V(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,k.onPointerDownCapture)})});jn.displayName=Js;var ei="DismissableLayerBranch",ti=a.forwardRef((e,t)=>{const n=a.useContext(Mn),r=a.useRef(null),o=Y(t,r);return a.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(On.div,{...e,ref:o})});ti.displayName=ei;function ni(e,t=globalThis?.document){const n=H(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const s=l=>{if(l.target&&!r.current){let c=function(){Fn(Xs,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ri(e,t=globalThis?.document){const n=H(e),r=a.useRef(!1);return a.useEffect(()=>{const o=s=>{s.target&&!r.current&&Fn(Qs,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ot(){const e=new CustomEvent(Ze);document.dispatchEvent(e)}function Fn(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?qs(o,s):o.dispatchEvent(s)}function oi(e){const t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function si(e){const t=ii(e),n=a.forwardRef((r,o)=>{const{children:s,...i}=r,l=a.Children.toArray(s),c=l.find(li);if(c){const u=c.props.children,d=l.map(f=>f===c?a.Children.count(u)>1?a.Children.only(null):a.isValidElement(u)?u.props.children:null:f);return m.jsx(t,{...i,ref:o,children:a.isValidElement(u)?a.cloneElement(u,void 0,d):null})}return m.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ii(e){const t=a.forwardRef((n,r)=>{const{children:o,...s}=n;if(a.isValidElement(o)){const i=ui(o),l=ci(s,o.props);return o.type!==a.Fragment&&(l.ref=r?te(r,i):i),a.cloneElement(o,l)}return a.Children.count(o)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ai=Symbol("radix.slottable");function li(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ai}function ci(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...l)=>{const c=s(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ui(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var di=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fi=di.reduce((e,t)=>{const n=si(`Primitive.${t}`),r=a.forwardRef((o,s)=>{const{asChild:i,...l}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(c,{...l,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),mi=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"}),pi="VisuallyHidden",Dn=a.forwardRef((e,t)=>m.jsx(fi.span,{...e,ref:t,style:{...mi,...e.style}}));Dn.displayName=pi;var gi=Dn,le="NavigationMenu",[lt,Ln,vi]=st(le),[Je,bi,hi]=st(le),[ct]=De(le,[vi,hi]),[yi,K]=ct(le),[xi,wi]=ct(le),Vn=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:s,delayDuration:i=200,skipDelayDuration:l=300,orientation:c="horizontal",dir:u,...d}=e,[f,b]=a.useState(null),E=Y(t,I=>b(I)),R=it(u),x=a.useRef(0),g=a.useRef(0),N=a.useRef(0),[M,y]=a.useState(!0),[v,k]=Ve({prop:r,onChange:I=>{const $=I!=="",B=l>0;$?(window.clearTimeout(N.current),B&&y(!1)):(window.clearTimeout(N.current),N.current=window.setTimeout(()=>y(!0),l)),o?.(I)},defaultProp:s??"",caller:le}),S=a.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>k(""),150)},[k]),T=a.useCallback(I=>{window.clearTimeout(g.current),k(I)},[k]),h=a.useCallback(I=>{v===I?window.clearTimeout(g.current):x.current=window.setTimeout(()=>{window.clearTimeout(g.current),k(I)},i)},[v,k,i]);return a.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(g.current),window.clearTimeout(N.current)},[]),m.jsx($n,{scope:n,isRootMenu:!0,value:v,dir:R,orientation:c,rootNavigationMenu:f,onTriggerEnter:I=>{window.clearTimeout(x.current),M?h(I):T(I)},onTriggerLeave:()=>{window.clearTimeout(x.current),S()},onContentEnter:()=>window.clearTimeout(g.current),onContentLeave:S,onItemSelect:I=>{k($=>$===I?"":I)},onItemDismiss:()=>k(""),children:m.jsx(q.nav,{"aria-label":"Main","data-orientation":c,dir:R,...d,ref:E})})});Vn.displayName=le;var Xe="NavigationMenuSub",Ci=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",...l}=e,c=K(Xe,n),[u,d]=Ve({prop:r,onChange:o,defaultProp:s??"",caller:Xe});return m.jsx($n,{scope:n,isRootMenu:!1,value:u,dir:c.dir,orientation:i,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:f=>d(f),onItemSelect:f=>d(f),onItemDismiss:()=>d(""),children:m.jsx(q.div,{"data-orientation":i,...l,ref:t})})});Ci.displayName=Xe;var $n=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:s,children:i,value:l,onItemSelect:c,onItemDismiss:u,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:b,onContentLeave:E}=e,[R,x]=a.useState(null),[g,N]=a.useState(new Map),[M,y]=a.useState(null);return m.jsx(yi,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:l,previousValue:oi(l),baseId:Le(),dir:o,orientation:s,viewport:R,onViewportChange:x,indicatorTrack:M,onIndicatorTrackChange:y,onTriggerEnter:H(d),onTriggerLeave:H(f),onContentEnter:H(b),onContentLeave:H(E),onItemSelect:H(c),onItemDismiss:H(u),onViewportContentChange:a.useCallback((v,k)=>{N(S=>(S.set(v,k),new Map(S)))},[]),onViewportContentRemove:a.useCallback(v=>{N(k=>k.has(v)?(k.delete(v),new Map(k)):k)},[]),children:m.jsx(lt.Provider,{scope:t,children:m.jsx(xi,{scope:t,items:g,children:i})})})},zn="NavigationMenuList",Wn=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=K(zn,n),s=m.jsx(q.ul,{"data-orientation":o.orientation,...r,ref:t});return m.jsx(q.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:m.jsx(lt.Slot,{scope:n,children:o.isRootMenu?m.jsx(Xn,{asChild:!0,children:s}):s})})});Wn.displayName=zn;var Gn="NavigationMenuItem",[Ei,Bn]=ct(Gn),Un=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,s=Le(),i=r||s||"LEGACY_REACT_AUTO_VALUE",l=a.useRef(null),c=a.useRef(null),u=a.useRef(null),d=a.useRef(()=>{}),f=a.useRef(!1),b=a.useCallback((R="start")=>{if(l.current){d.current();const x=et(l.current);x.length&&ft(R==="start"?x:x.reverse())}},[]),E=a.useCallback(()=>{if(l.current){const R=et(l.current);R.length&&(d.current=Ii(R))}},[]);return m.jsx(Ei,{scope:n,value:i,triggerRef:c,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:f,onEntryKeyDown:b,onFocusProxyEnter:b,onRootContentClose:E,onContentFocusOutside:E,children:m.jsx(q.li,{...o,ref:t})})});Un.displayName=Gn;var Qe="NavigationMenuTrigger",Kn=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,s=K(Qe,e.__scopeNavigationMenu),i=Bn(Qe,e.__scopeNavigationMenu),l=a.useRef(null),c=Y(l,i.triggerRef,t),u=er(s.baseId,i.value),d=tr(s.baseId,i.value),f=a.useRef(!1),b=a.useRef(!1),E=i.value===s.value;return m.jsxs(m.Fragment,{children:[m.jsx(lt.ItemSlot,{scope:n,value:i.value,children:m.jsx(Qn,{asChild:!0,children:m.jsx(q.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":mt(E),"aria-expanded":E,"aria-controls":d,...o,ref:c,onPointerEnter:V(e.onPointerEnter,()=>{b.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:V(e.onPointerMove,je(()=>{r||b.current||i.wasEscapeCloseRef.current||f.current||(s.onTriggerEnter(i.value),f.current=!0)})),onPointerLeave:V(e.onPointerLeave,je(()=>{r||(s.onTriggerLeave(),f.current=!1)})),onClick:V(e.onClick,()=>{s.onItemSelect(i.value),b.current=E}),onKeyDown:V(e.onKeyDown,R=>{const g={horizontal:"ArrowDown",vertical:s.dir==="rtl"?"ArrowLeft":"ArrowRight"}[s.orientation];E&&R.key===g&&(i.onEntryKeyDown(),R.preventDefault())})})})}),E&&m.jsxs(m.Fragment,{children:[m.jsx(gi,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:R=>{const x=i.contentRef.current,g=R.relatedTarget,N=g===l.current,M=x?.contains(g);(N||!M)&&i.onFocusProxyEnter(N?"start":"end")}}),s.viewport&&m.jsx("span",{"aria-owns":d})]})]})});Kn.displayName=Qe;var Ri="NavigationMenuLink",Mt="navigationMenu.linkSelect",Hn=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...s}=e;return m.jsx(Qn,{asChild:!0,children:m.jsx(q.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...s,ref:t,onClick:V(e.onClick,i=>{const l=i.target,c=new CustomEvent(Mt,{bubbles:!0,cancelable:!0});if(l.addEventListener(Mt,u=>o?.(u),{once:!0}),Pt(l,c),!c.defaultPrevented&&!i.metaKey){const u=new CustomEvent(Ae,{bubbles:!0,cancelable:!0});Pt(l,u)}},{checkForDefaultPrevented:!1})})})});Hn.displayName=Ri;var ut="NavigationMenuIndicator",Yn=a.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=K(ut,e.__scopeNavigationMenu),s=!!o.value;return o.indicatorTrack?Ft.createPortal(m.jsx(ve,{present:n||s,children:m.jsx(ki,{...r,ref:t})}),o.indicatorTrack):null});Yn.displayName=ut;var ki=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=K(ut,n),s=Ln(n),[i,l]=a.useState(null),[c,u]=a.useState(null),d=o.orientation==="horizontal",f=!!o.value;a.useEffect(()=>{const R=s().find(x=>x.value===o.value)?.ref.current;R&&l(R)},[s,o.value]);const b=()=>{i&&u({size:d?i.offsetWidth:i.offsetHeight,offset:d?i.offsetLeft:i.offsetTop})};return tt(i,b),tt(o.indicatorTrack,b),c?m.jsx(q.div,{"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...d?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...r.style}}):null}),me="NavigationMenuContent",qn=a.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=K(me,e.__scopeNavigationMenu),s=Bn(me,e.__scopeNavigationMenu),i=Y(s.contentRef,t),l=s.value===o.value,c={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...r};return o.viewport?m.jsx(Ni,{forceMount:n,...c,ref:i}):m.jsx(ve,{present:n||l,children:m.jsx(Zn,{"data-state":mt(l),...c,ref:i,onPointerEnter:V(e.onPointerEnter,o.onContentEnter),onPointerLeave:V(e.onPointerLeave,je(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...c.style}})})});qn.displayName=me;var Ni=a.forwardRef((e,t)=>{const n=K(me,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return ae(()=>{r(e.value,{ref:t,...e})},[e,t,r]),ae(()=>()=>o(e.value),[e.value,o]),null}),Ae="navigationMenu.rootContentDismiss",Zn=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:i,onRootContentClose:l,onContentFocusOutside:c,...u}=e,d=K(me,n),f=a.useRef(null),b=Y(f,t),E=er(d.baseId,r),R=tr(d.baseId,r),x=Ln(n),g=a.useRef(null),{onItemDismiss:N}=d;a.useEffect(()=>{const y=f.current;if(d.isRootMenu&&y){const v=()=>{N(),l(),y.contains(document.activeElement)&&o.current?.focus()};return y.addEventListener(Ae,v),()=>y.removeEventListener(Ae,v)}},[d.isRootMenu,e.value,o,N,l]);const M=a.useMemo(()=>{const v=x().map($=>$.value);d.dir==="rtl"&&v.reverse();const k=v.indexOf(d.value),S=v.indexOf(d.previousValue),T=r===d.value,h=S===v.indexOf(r);if(!T&&!h)return g.current;const I=(()=>{if(k!==S){if(T&&S!==-1)return k>S?"from-end":"from-start";if(h&&k!==-1)return k>S?"to-start":"to-end"}return null})();return g.current=I,I},[d.previousValue,d.value,d.dir,x,r]);return m.jsx(Xn,{asChild:!0,children:m.jsx(jn,{id:R,"aria-labelledby":E,"data-motion":M,"data-orientation":d.orientation,...u,ref:b,disableOutsidePointerEvents:!1,onDismiss:()=>{const y=new Event(Ae,{bubbles:!0,cancelable:!0});f.current?.dispatchEvent(y)},onFocusOutside:V(e.onFocusOutside,y=>{c();const v=y.target;d.rootNavigationMenu?.contains(v)&&y.preventDefault()}),onPointerDownOutside:V(e.onPointerDownOutside,y=>{const v=y.target,k=x().some(T=>T.ref.current?.contains(v)),S=d.isRootMenu&&d.viewport?.contains(v);(k||S||!d.isRootMenu)&&y.preventDefault()}),onKeyDown:V(e.onKeyDown,y=>{const v=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!v){const S=et(y.currentTarget),T=document.activeElement,h=S.findIndex(B=>B===T),$=y.shiftKey?S.slice(0,h).reverse():S.slice(h+1,S.length);ft($)?y.preventDefault():s.current?.focus()}}),onEscapeKeyDown:V(e.onEscapeKeyDown,y=>{i.current=!0})})})}),dt="NavigationMenuViewport",Jn=a.forwardRef((e,t)=>{const{forceMount:n,...r}=e,s=!!K(dt,e.__scopeNavigationMenu).value;return m.jsx(ve,{present:n||s,children:m.jsx(Si,{...r,ref:t})})});Jn.displayName=dt;var Si=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,s=K(dt,n),i=Y(t,s.onViewportChange),l=wi(me,e.__scopeNavigationMenu),[c,u]=a.useState(null),[d,f]=a.useState(null),b=c?c?.width+"px":void 0,E=c?c?.height+"px":void 0,R=!!s.value,x=R?s.value:s.previousValue;return tt(d,()=>{d&&u({width:d.offsetWidth,height:d.offsetHeight})}),m.jsx(q.div,{"data-state":mt(R),"data-orientation":s.orientation,...o,ref:i,style:{pointerEvents:!R&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":b,"--radix-navigation-menu-viewport-height":E,...o.style},onPointerEnter:V(e.onPointerEnter,s.onContentEnter),onPointerLeave:V(e.onPointerLeave,je(s.onContentLeave)),children:Array.from(l.items).map(([N,{ref:M,forceMount:y,...v}])=>{const k=x===N;return m.jsx(ve,{present:y||k,children:m.jsx(Zn,{...v,ref:te(M,S=>{k&&S&&f(S)})})},N)})})}),_i="FocusGroup",Xn=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=K(_i,n);return m.jsx(Je.Provider,{scope:n,children:m.jsx(Je.Slot,{scope:n,children:m.jsx(q.div,{dir:o.dir,...r,ref:t})})})}),jt=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Ti="FocusGroupItem",Qn=a.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=bi(n),s=K(Ti,n);return m.jsx(Je.ItemSlot,{scope:n,children:m.jsx(q.button,{...r,ref:t,onKeyDown:V(e.onKeyDown,i=>{if(["Home","End",...jt].includes(i.key)){let c=o().map(f=>f.ref.current);if([s.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(i.key)&&c.reverse(),jt.includes(i.key)){const f=c.indexOf(i.currentTarget);c=c.slice(f+1)}setTimeout(()=>ft(c)),i.preventDefault()}})})})});function et(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ft(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function Ii(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function tt(e,t){const n=H(t);ae(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function mt(e){return e?"open":"closed"}function er(e,t){return`${e}-trigger-${t}`}function tr(e,t){return`${e}-content-${t}`}function je(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Pi=Vn,Ai=Wn,Oi=Un,Mi=Kn,ji=Hn,Fi=Yn,Di=qn,Li=Jn;function Vi({className:e,children:t,viewport:n=!0,...r}){return m.jsxs(Pi,{"data-slot":"navigation-menu","data-viewport":n,className:L("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,n&&m.jsx(rr,{})]})}function $i({className:e,...t}){return m.jsx(Ai,{"data-slot":"navigation-menu-list",className:L("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function zi({className:e,...t}){return m.jsx(Oi,{"data-slot":"navigation-menu-item",className:L("relative",e),...t})}const nr=Ut("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function Wi({className:e,children:t,...n}){return m.jsxs(Mi,{"data-slot":"navigation-menu-trigger",className:L(nr(),"group",e),...n,children:[t," ",m.jsx(Dt.ChevronDownIcon,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function Gi({className:e,...t}){return m.jsx(Di,{"data-slot":"navigation-menu-content",className:L("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...t})}function rr({className:e,...t}){return m.jsx("div",{className:L("absolute top-full left-0 isolate z-50 flex justify-center"),children:m.jsx(Li,{"data-slot":"navigation-menu-viewport",className:L("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function Bi({className:e,...t}){return m.jsx(ji,{"data-slot":"navigation-menu-link",className:L("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Ui({className:e,...t}){return m.jsx(Fi,{"data-slot":"navigation-menu-indicator",className:L("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",e),...t,children:m.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}exports.Button=no;exports.Card=oo;exports.CardAction=lo;exports.CardContent=co;exports.CardDescription=ao;exports.CardFooter=uo;exports.CardHeader=so;exports.CardTitle=io;exports.Form=To;exports.FormControl=Oo;exports.FormDescription=Mo;exports.FormField=Io;exports.FormItem=Po;exports.FormLabel=Ao;exports.FormMessage=jo;exports.Input=ro;exports.Label=an;exports.NavigationMenu=Vi;exports.NavigationMenuContent=Gi;exports.NavigationMenuIndicator=Ui;exports.NavigationMenuItem=zi;exports.NavigationMenuLink=Bi;exports.NavigationMenuList=$i;exports.NavigationMenuTrigger=Wi;exports.NavigationMenuViewport=rr;exports.Skeleton=Os;exports.Spinner=Ms;exports.Tabs=Ts;exports.TabsContent=As;exports.TabsList=Is;exports.TabsTrigger=Ps;exports.buttonVariants=on;exports.navigationMenuTriggerStyle=nr;exports.useFormField=Ee;
|
|
23
7
|
//# sourceMappingURL=index.cjs.js.map
|