buildgrid-ui 1.1.0-dev.11 → 1.1.0-dev.13
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/buildgrid-ui.es.js +2015 -1833
- package/dist/buildgrid-ui.umd.js +30 -30
- package/dist/components/index.d.ts +1 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/tabs.d.ts +7 -0
- package/package.json +24 -1
package/dist/buildgrid-ui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(A,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],B):(A=typeof globalThis<"u"?globalThis:A||self,B(A.BuildgridUI={},A.React,A.ReactDOM))})(this,function(A,B,zr){"use strict";function Br(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 c=Br(B),Gr=Br(zr);var Ot={exports:{}},mt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Vr;function Wc(){if(Vr)return mt;Vr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return mt.Fragment=t,mt.jsx=n,mt.jsxs=n,mt}var gt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Ur;function zc(){return Ur||(Ur=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===j?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case _:return"Fragment";case E:return"Portal";case O:return"Profiler";case N:return"StrictMode";case k:return"Suspense";case U:return"SuspenseList"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case L:return(g.displayName||"Context")+".Provider";case G:return(g._context.displayName||"Context")+".Consumer";case K:var P=g.render;return g=g.displayName,g||(g=P.displayName||P.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case z:return P=g.displayName||null,P!==null?P:e(g.type)||"Memo";case J:P=g._payload,g=g._init;try{return e(g(P))}catch{}}return null}function t(g){return""+g}function n(g){try{t(g);var P=!1}catch{P=!0}if(P){P=console;var M=P.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return M.call(P,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),t(g)}}function r(){}function o(){if(ge===0){Xe=console.log,we=console.info,de=console.warn,Be=console.error,ne=console.group,Ge=console.groupCollapsed,_t=console.groupEnd;var g={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}ge++}function a(){if(ge--,ge===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},g,{value:Xe}),info:V({},g,{value:we}),warn:V({},g,{value:de}),error:V({},g,{value:Be}),group:V({},g,{value:ne}),groupCollapsed:V({},g,{value:Ge}),groupEnd:V({},g,{value:_t})})}0>ge&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function i(g){if(dt===void 0)try{throw Error()}catch(M){var P=M.stack.trim().match(/\n( *(at )?)/);dt=P&&P[1]||"",Ve=-1<M.stack.indexOf(`
|
|
18
18
|
at`)?" (<anonymous>)":-1<M.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+dt+g+
|
|
19
|
+
`+dt+g+Ve}function s(g,P){if(!g||ft)return"";var M=Tt.get(g);if(M!==void 0)return M;ft=!0,M=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var H=null;H=S.H,S.H=null,o();try{var te={DetermineComponentFrameRoot:function(){try{if(P){var Ue=function(){throw Error()};if(Object.defineProperty(Ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ue,[])}catch(De){var vn=De}Reflect.construct(g,[],Ue)}else{try{Ue.call()}catch(De){vn=De}g.call(Ue.prototype)}}else{try{throw Error()}catch(De){vn=De}(Ue=g())&&typeof Ue.catch=="function"&&Ue.catch(function(){})}}catch(De){if(De&&vn&&typeof De.stack=="string")return[De.stack,vn.stack]}return[null,null]}};te.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Q=Object.getOwnPropertyDescriptor(te.DetermineComponentFrameRoot,"name");Q&&Q.configurable&&Object.defineProperty(te.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var F=te.DetermineComponentFrameRoot(),Me=F[0],pt=F[1];if(Me&&pt){var re=Me.split(`
|
|
20
20
|
`),Ze=pt.split(`
|
|
21
|
-
`);for(
|
|
22
|
-
`+re[Q].replace(" at new "," at ");return g.displayName&&kt.includes("<anonymous>")&&(kt=kt.replace("<anonymous>",g.displayName)),typeof g=="function"&&
|
|
21
|
+
`);for(F=Q=0;Q<re.length&&!re[Q].includes("DetermineComponentFrameRoot");)Q++;for(;F<Ze.length&&!Ze[F].includes("DetermineComponentFrameRoot");)F++;if(Q===re.length||F===Ze.length)for(Q=re.length-1,F=Ze.length-1;1<=Q&&0<=F&&re[Q]!==Ze[F];)F--;for(;1<=Q&&0<=F;Q--,F--)if(re[Q]!==Ze[F]){if(Q!==1||F!==1)do if(Q--,F--,0>F||re[Q]!==Ze[F]){var kt=`
|
|
22
|
+
`+re[Q].replace(" at new "," at ");return g.displayName&&kt.includes("<anonymous>")&&(kt=kt.replace("<anonymous>",g.displayName)),typeof g=="function"&&Tt.set(g,kt),kt}while(1<=Q&&0<=F);break}}}finally{ft=!1,S.H=H,a(),Error.prepareStackTrace=M}return re=(re=g?g.displayName||g.name:"")?i(re):"",typeof g=="function"&&Tt.set(g,re),re}function d(g){if(g==null)return"";if(typeof g=="function"){var P=g.prototype;return s(g,!(!P||!P.isReactComponent))}if(typeof g=="string")return i(g);switch(g){case k:return i("Suspense");case U:return i("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case K:return g=s(g.render,!1),g;case z:return d(g.type);case J:P=g._payload,g=g._init;try{return d(g(P))}catch{}}return""}function u(){var g=S.A;return g===null?null:g.getOwner()}function f(g){if(Y.call(g,"key")){var P=Object.getOwnPropertyDescriptor(g,"key").get;if(P&&P.isReactWarning)return!1}return g.key!==void 0}function p(g,P){function M(){gn||(gn=!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))}M.isReactWarning=!0,Object.defineProperty(g,"key",{get:M,configurable:!0})}function m(){var g=e(this.type);return hn[g]||(hn[g]=!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.")),g=this.props.ref,g!==void 0?g:null}function v(g,P,M,H,te,Q){return M=Q.ref,g={$$typeof:C,type:g,key:P,props:Q,_owner:te},(M!==void 0?M:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:m}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function b(g,P,M,H,te,Q){if(typeof g=="string"||typeof g=="function"||g===_||g===O||g===N||g===k||g===U||g===$||typeof g=="object"&&g!==null&&(g.$$typeof===J||g.$$typeof===z||g.$$typeof===L||g.$$typeof===G||g.$$typeof===K||g.$$typeof===ue||g.getModuleId!==void 0)){var F=P.children;if(F!==void 0)if(H)if(Pe(F)){for(H=0;H<F.length;H++)h(F[H],g);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 h(F,g)}else F="",(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),g===null?H="null":Pe(g)?H="array":g!==void 0&&g.$$typeof===C?(H="<"+(e(g.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):H=typeof g,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",H,F);if(Y.call(P,"key")){F=e(g);var Me=Object.keys(P).filter(function(re){return re!=="key"});H=0<Me.length?"{key: someKey, "+Me.join(": ..., ")+": ...}":"{key: someKey}",qe[F+H]||(Me=0<Me.length?"{"+Me.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
23
|
let props = %s;
|
|
24
24
|
<%s {...props} />
|
|
25
25
|
React keys must be passed directly to JSX without using spread:
|
|
26
26
|
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,H,
|
|
27
|
+
<%s key={someKey} {...props} />`,H,F,Me,F),qe[F+H]=!0)}if(F=null,M!==void 0&&(n(M),F=""+M),f(P)&&(n(P.key),F=""+P.key),"key"in P){M={};for(var pt in P)pt!=="key"&&(M[pt]=P[pt])}else M=P;return F&&p(M,typeof g=="function"?g.displayName||g.name||"Unknown":g),v(g,F,Q,te,u(),M)}function h(g,P){if(typeof g=="object"&&g&&g.$$typeof!==Wr){if(Pe(g))for(var M=0;M<g.length;M++){var H=g[M];x(H)&&y(H,P)}else if(x(g))g._store&&(g._store.validated=1);else if(g===null||typeof g!="object"?M=null:(M=X&&g[X]||g["@@iterator"],M=typeof M=="function"?M:null),typeof M=="function"&&M!==g.entries&&(M=M.call(g),M!==g))for(;!(g=M.next()).done;)x(g.value)&&y(g.value,P)}}function x(g){return typeof g=="object"&&g!==null&&g.$$typeof===C}function y(g,P){if(g._store&&!g._store.validated&&g.key==null&&(g._store.validated=1,P=w(P),!$c[P])){$c[P]=!0;var M="";g&&g._owner!=null&&g._owner!==u()&&(M=null,typeof g._owner.tag=="number"?M=e(g._owner.type):typeof g._owner.name=="string"&&(M=g._owner.name),M=" It was passed a child from "+M+".");var H=S.getCurrentStack;S.getCurrentStack=function(){var te=d(g.type);return H&&(te+=H()||""),te},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',P,M),S.getCurrentStack=H}}function w(g){var P="",M=u();return M&&(M=e(M.type))&&(P=`
|
|
28
28
|
|
|
29
29
|
Check the render method of \``+M+"`."),P||(g=e(g))&&(P=`
|
|
30
30
|
|
|
31
|
-
Check the top-level render call using <`+g+">."),P}var A=z,C=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),F=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),X=Symbol.iterator,T=Symbol.for("react.client.reference"),R=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,G=Object.assign,le=Symbol.for("react.client.reference"),Pe=Array.isArray,ge=0,Xe,we,ue,ze,ne,Be,_t;r.__reactDisabledLog=!0;var dt,Ge,ft=!1,Ot=new(typeof WeakMap=="function"?WeakMap:Map),Ir=Symbol.for("react.client.reference"),mn,gn={},qe={},yc={};gt.Fragment=_,gt.jsx=function(g,P,M,H,te){return b(g,P,M,!1,H,te)},gt.jsxs=function(g,P,M,H,te){return b(g,P,M,!0,H,te)}}()),gt}var Br;function Cc(){return Br||(Br=1,process.env.NODE_ENV==="production"?jt.exports=wc():jt.exports=xc()),jt.exports}var l=Cc();function Gr(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=Gr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gr(e))&&(r&&(r+=" "),r+=t);return r}const vn="-",Ec=e=>{const t=Sc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(vn);return s[0]===""&&s.length!==1&&s.shift(),Ur(s,t)||Ac(i)},getConflictingClassGroupIds:(i,s)=>{const d=n[i]||[];return s&&r[i]?[...d,...r[i]]:d}}},Ur=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ur(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(vn);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},Hr=/^\[(.+)\]$/,Ac=e=>{if(Hr.test(e)){const t=Hr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Sc=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Nc(Object.entries(e.classGroups),n).forEach(([a,i])=>{bn(i,r,a,t)}),r},bn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Kr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Rc(o)){bn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{bn(i,Kr(t,a),n,r)})})},Kr=(e,t)=>{let n=e;return t.split(vn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Rc=e=>e.isThemeGetter,Nc=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[n,o]}):e,Pc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},Yr="!",Mc=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,i=s=>{const d=[];let u=0,f=0,p;for(let w=0;w<s.length;w++){let y=s[w];if(u===0){if(y===o&&(r||s.slice(w,w+a)===t)){d.push(s.slice(f,w)),f=w+a;continue}if(y==="/"){p=w;continue}}y==="["?u++:y==="]"&&u--}const m=d.length===0?s:s.substring(f),v=m.startsWith(Yr),b=v?m.substring(1):m,h=p&&p>f?p-f:void 0;return{modifiers:d,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:h}};return n?s=>n({className:s,parseClassName:i}):i},Dc=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},_c=e=>({cache:Pc(e.cacheSize),parseClassName:Mc(e),...Ec(e)}),Oc=/\s+/,kc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(Oc);let s="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:v}=n(u);let b=!!v,h=r(b?m.substring(0,v):m);if(!h){if(!b){s=u+(s.length>0?" "+s:s);continue}if(h=r(m),!h){s=u+(s.length>0?" "+s:s);continue}b=!1}const w=Dc(f).join(":"),y=p?w+Yr:w,x=y+h;if(a.includes(x))continue;a.push(x);const A=o(h,b);for(let C=0;C<A.length;++C){const E=A[C];a.push(y+E)}s=u+(s.length>0?" "+s:s)}return s};function jc(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Xr(t))&&(r&&(r+=" "),r+=n);return r}const Xr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Xr(e[r]))&&(n&&(n+=" "),n+=t);return n};function Tc(e,...t){let n,r,o,a=i;function i(d){const u=t.reduce((f,p)=>p(f),e());return n=_c(u),r=n.cache.get,o=n.cache.set,a=s,s(d)}function s(d){const u=r(d);if(u)return u;const f=kc(d,n);return o(d,f),f}return function(){return a(jc.apply(null,arguments))}}const q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},qr=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ic=/^\d+\/\d+$/,Lc=new Set(["px","full","screen"]),Fc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$c=/\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$/,Wc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=e=>Je(e)||Lc.has(e)||Ic.test(e),_e=e=>Qe(e,"length",qc),Je=e=>!!e&&!Number.isNaN(Number(e)),yn=e=>Qe(e,"number",Je),ht=e=>!!e&&Number.isInteger(Number(e)),Gc=e=>e.endsWith("%")&&Je(e.slice(0,-1)),I=e=>qr.test(e),Oe=e=>Fc.test(e),Vc=new Set(["length","size","percentage"]),Uc=e=>Qe(e,Vc,Zr),Hc=e=>Qe(e,"position",Zr),Kc=new Set(["image","url"]),Yc=e=>Qe(e,Kc,Jc),Xc=e=>Qe(e,"",Zc),vt=()=>!0,Qe=(e,t,n)=>{const r=qr.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},qc=e=>$c.test(e)&&!Wc.test(e),Zr=()=>!1,Zc=e=>zc.test(e),Jc=e=>Bc.test(e),Qc=Tc(()=>{const e=q("colors"),t=q("spacing"),n=q("blur"),r=q("brightness"),o=q("borderColor"),a=q("borderRadius"),i=q("borderSpacing"),s=q("borderWidth"),d=q("contrast"),u=q("grayscale"),f=q("hueRotate"),p=q("invert"),m=q("gap"),v=q("gradientColorStops"),b=q("gradientColorStopPositions"),h=q("inset"),w=q("margin"),y=q("opacity"),x=q("padding"),A=q("saturate"),C=q("scale"),E=q("sepia"),_=q("skew"),N=q("space"),k=q("translate"),B=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",I,t],O=()=>[I,t],U=()=>["",xe,_e],W=()=>["auto",Je,I],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",I],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Je,I];return{cacheSize:500,separator:":",theme:{colors:[vt],spacing:[xe,_e],blur:["none","",Oe,I],brightness:G(),borderColor:[e],borderRadius:["none","","full",Oe,I],borderSpacing:O(),borderWidth:U(),contrast:G(),grayscale:R(),hueRotate:G(),invert:R(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Gc,_e],inset:K(),margin:K(),opacity:G(),padding:O(),saturate:G(),scale:G(),sepia:R(),skew:G(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Oe]}],"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"],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:[...J(),I]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ht,I]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",ht,I]}],"grid-cols":[{"grid-cols":[vt]}],"col-start-end":[{col:["auto",{span:["full",ht,I]},I]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[vt]}],"row-start-end":[{row:["auto",{span:[ht,I]},I]}],"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":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Oe]},Oe]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Oe,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yn]}],"font-family":[{font:[vt]}],"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:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",Je,yn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xe,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xe,_e]}],"underline-offset":[{"underline-offset":["auto",xe,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Hc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Uc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[xe,I]}],"outline-w":[{outline:[xe,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[xe,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Oe,Xc]}],"shadow-color":[{shadow:[vt]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Oe,I]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[A]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[ht,I]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[xe,_e,yn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}});function D(...e){return Qc(Vr(e))}const el=(e,t="pt-BR",n="BRL")=>new Intl.NumberFormat(t,{style:"currency",currency:n,minimumFractionDigits:2}).format(e),tl=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long"}).format(new Date(e)),nl=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long",year:"numeric"}).format(new Date(e)),rl=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long"}).format(new Date(e)),ol=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"long"}).format(typeof e=="string"?new Date(e):e),al=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"short"}).format(e),sl=e=>e.slice(0,7),il=(e,t="pt-BR")=>e.toLocaleDateString(t,{weekday:"short",day:"2-digit",month:"2-digit"}),Jr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qr=Vr,wn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Qr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=a==null?void 0:a[u];if(f===null)return null;const m=Jr(f)||Jr(p);return o[u][m]}),s=n&&Object.entries(n).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:m,...v}=f;return Object.entries(v).every(b=>{let[h,w]=b;return Array.isArray(w)?w.includes({...a,...s}[h]):{...a,...s}[h]===w})?[...u,p,m]:u},[]);return Qr(e,i,d,n==null?void 0:n.class,n==null?void 0:n.className)},cl=wn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{sizing:{sm:"h-8 text-xs px-2",md:"h-10 text-sm px-3",lg:"h-12 text-base px-4",xl:"h-14 text-lg px-5","2xl":"h-16 text-xl px-6"}},defaultVariants:{sizing:"md"}}),Tt=c.forwardRef(({className:e,sizing:t,type:n,...r},o)=>l.jsx("input",{type:n,className:D(cl({sizing:t,className:e})),ref:o,...r}));Tt.displayName="Input";const ll=(e,t)=>{const n=e.replace(/\D/g,"");let r="",o=0,a=0;for(;o<t.length&&a<n.length;)t[o]==="0"?(r+=n[a],a++):r+=t[o],o++;return r},It=c.forwardRef(({className:e,leftIcon:t,rightIcon:n,mask:r,onChange:o,...a},i)=>{const s=d=>{const u=d.target;if(r){const f=ll(u.value,r);u.value=f}o==null||o(d)};return l.jsxs("div",{className:"relative w-full",children:[t&&l.jsx("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:t}),l.jsx(Tt,{className:D(t&&"pl-8",n&&"pr-8",e),ref:i,onInput:s,...a}),n&&l.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:n})]})});It.displayName="AdaptiveInput";function ul(e,t){const n=c.createContext(t),r=a=>{const{children:i,...s}=a,d=c.useMemo(()=>s,Object.values(s));return l.jsx(n.Provider,{value:d,children:i})};r.displayName=e+"Provider";function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ie(e,t=[]){let n=[];function r(a,i){const s=c.createContext(i),d=n.length;n=[...n,i];const u=p=>{var y;const{scope:m,children:v,...b}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[d])||s,w=c.useMemo(()=>b,Object.values(b));return l.jsx(h.Provider,{value:w,children:v})};u.displayName=a+"Provider";function f(p,m){var h;const v=((h=m==null?void 0:m[e])==null?void 0:h[d])||s,b=c.useContext(v);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(s){const d=(s==null?void 0:s[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:d}}),[s,d])}};return o.scopeName=e,[r,dl(o,...t)]}function dl(...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(a){const i=r.reduce((s,{useScope:d,scopeName:u})=>{const p=d(a)[`__scope${u}`];return{...s,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function eo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=eo(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():eo(e[o],null)}}}}function Z(...e){return c.useCallback(Lt(...e),e)}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Ce=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},fl=c.useId||(()=>{}),pl=0;function Ee(e){const[t,n]=c.useState(fl());return Ce(()=>{e||n(r=>r??String(pl++))},[e]),e||(t?`radix-${t}`:"")}function oe(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ue({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=ml({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=oe(n),d=c.useCallback(u=>{if(a){const p=typeof u=="function"?u(e):u;p!==e&&s(p)}else o(u)},[a,e,o,s]);return[i,d]}function ml({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),a=oe(t);return c.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var ke=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),a=o.find(gl);if(a){const i=a.props.children,s=o.map(d=>d===a?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:d);return l.jsx(xn,{...r,ref:t,children:c.isValidElement(i)?c.cloneElement(i,void 0,s):null})}return l.jsx(xn,{...r,ref:t,children:n})});ke.displayName="Slot";var xn=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const o=vl(n);return c.cloneElement(n,{...hl(r,n.props),ref:t?Lt(t,o):o})}return c.Children.count(n)>1?c.Children.only(null):null});xn.displayName="SlotClone";var to=({children:e})=>l.jsx(l.Fragment,{children:e});function gl(e){return c.isValidElement(e)&&e.type===to}function hl(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function vl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var bl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],V=bl.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?ke:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(s,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function no(e,t){e&&$r.flushSync(()=>e.dispatchEvent(t))}function yl(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e);c.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 wl="DismissableLayer",Cn="dismissableLayer.update",xl="dismissableLayer.pointerDownOutside",Cl="dismissableLayer.focusOutside",ro,oo=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ft=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...d}=e,u=c.useContext(oo),[f,p]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=c.useState({}),b=Z(t,N=>p(N)),h=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(w),x=f?h.indexOf(f):-1,A=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,E=Sl(N=>{const k=N.target,B=[...u.branches].some(F=>F.contains(k));!C||B||(o==null||o(N),i==null||i(N),N.defaultPrevented||s==null||s())},m),_=Rl(N=>{const k=N.target;[...u.branches].some(F=>F.contains(k))||(a==null||a(N),i==null||i(N),N.defaultPrevented||s==null||s())},m);return yl(N=>{x===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},m),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ro=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),ao(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ro)}},[f,m,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),ao())},[f,u]),c.useEffect(()=>{const N=()=>v({});return document.addEventListener(Cn,N),()=>document.removeEventListener(Cn,N)},[]),l.jsx(V.div,{...d,ref:b,style:{pointerEvents:A?C?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,_.onFocusCapture),onBlurCapture:j(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,E.onPointerDownCapture)})});Ft.displayName=wl;var El="DismissableLayerBranch",Al=c.forwardRef((e,t)=>{const n=c.useContext(oo),r=c.useRef(null),o=Z(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),l.jsx(V.div,{...e,ref:o})});Al.displayName=El;function Sl(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let d=function(){so(xl,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Rl(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&so(Cl,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ao(){const e=new CustomEvent(Cn);document.dispatchEvent(e)}function so(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?no(o,a):o.dispatchEvent(a)}var En="focusScope.autoFocusOnMount",An="focusScope.autoFocusOnUnmount",io={bubbles:!1,cancelable:!0},Nl="FocusScope",$t=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,d]=c.useState(null),u=oe(o),f=oe(a),p=c.useRef(null),m=Z(t,h=>d(h)),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let h=function(A){if(v.paused||!s)return;const C=A.target;s.contains(C)?p.current=C:je(p.current,{select:!0})},w=function(A){if(v.paused||!s)return;const C=A.relatedTarget;C!==null&&(s.contains(C)||je(p.current,{select:!0}))},y=function(A){if(document.activeElement===document.body)for(const E of A)E.removedNodes.length>0&&je(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",w);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),x.disconnect()}}},[r,s,v.paused]),c.useEffect(()=>{if(s){uo.add(v);const h=document.activeElement;if(!s.contains(h)){const y=new CustomEvent(En,io);s.addEventListener(En,u),s.dispatchEvent(y),y.defaultPrevented||(Pl(kl(co(s)),{select:!0}),document.activeElement===h&&je(s))}return()=>{s.removeEventListener(En,u),setTimeout(()=>{const y=new CustomEvent(An,io);s.addEventListener(An,f),s.dispatchEvent(y),y.defaultPrevented||je(h??document.body,{select:!0}),s.removeEventListener(An,f),uo.remove(v)},0)}}},[s,u,f,v]);const b=c.useCallback(h=>{if(!n&&!r||v.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(w&&y){const x=h.currentTarget,[A,C]=Ml(x);A&&C?!h.shiftKey&&y===C?(h.preventDefault(),n&&je(A,{select:!0})):h.shiftKey&&y===A&&(h.preventDefault(),n&&je(C,{select:!0})):y===x&&h.preventDefault()}},[n,r,v.paused]);return l.jsx(V.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});$t.displayName=Nl;function Pl(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(je(r,{select:t}),document.activeElement!==n)return}function Ml(e){const t=co(e),n=lo(t,e),r=lo(t.reverse(),e);return[n,r]}function co(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 lo(e,t){for(const n of e)if(!Dl(n,{upTo:t}))return n}function Dl(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _l(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_l(e)&&t&&e.select()}}var uo=Ol();function Ol(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=fo(e,t),e.unshift(t)},remove(t){var n;e=fo(e,t),(n=e[0])==null||n.resume()}}}function fo(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function kl(e){return e.filter(t=>t.tagName!=="A")}var jl="Portal",Wt=c.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=c.useState(!1);Ce(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Lr.createPortal(l.jsx(V.div,{...r,ref:t}),i):null});Wt.displayName=jl;function Tl(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var de=e=>{const{present:t,children:n}=e,r=Il(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=Z(r.ref,Ll(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};de.displayName="Presence";function Il(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,d]=Tl(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=zt(r.current);a.current=s==="mounted"?u:"none"},[s]),Ce(()=>{const u=r.current,f=o.current;if(f!==e){const m=a.current,v=zt(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ce(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=v=>{const h=zt(r.current).includes(v.animationName);if(v.target===t&&h&&(d("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=v=>{v.target===t&&(a.current=zt(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function zt(e){return(e==null?void 0:e.animationName)||"none"}function Ll(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sn=0;function Rn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??po()),document.body.insertAdjacentElement("beforeend",e[1]??po()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function po(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},he.apply(this,arguments)};function mo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Fl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Bt="right-scroll-bar-position",Gt="width-before-scroll-bar",$l="with-scroll-bars-hidden",Wl="--removed-body-scroll-bar-size";function Nn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zl(e,t){var n=z.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Bl=typeof window<"u"?c.useLayoutEffect:c.useEffect,go=new WeakMap;function Gl(e,t){var n=zl(null,function(r){return e.forEach(function(o){return Nn(o,r)})});return Bl(function(){var r=go.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||Nn(s,null)}),a.forEach(function(s){o.has(s)||Nn(s,i)})}go.set(n,e)},[e]),n}function Vl(e){return e}function Ul(e,t){t===void 0&&(t=Vl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var d=function(){var f=i;i=[],f.forEach(a)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function Hl(e){e===void 0&&(e={});var t=Ul(null);return t.options=he({async:!0,ssr:!1},e),t}var ho=function(e){var t=e.sideCar,n=mo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,he({},n))};ho.isSideCarExport=!0;function Kl(e,t){return e.useMedium(t),ho}var vo=Hl(),Pn=function(){},Vt=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Pn,onWheelCapture:Pn,onTouchMoveCapture:Pn}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,v=e.noIsolation,b=e.inert,h=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,x=e.gapMode,A=mo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,E=Gl([n,t]),_=he(he({},A),o);return c.createElement(c.Fragment,null,f&&c.createElement(C,{sideCar:vo,removeScrollBar:u,shards:p,noIsolation:v,inert:b,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:x}),i?c.cloneElement(c.Children.only(s),he(he({},_),{ref:E})):c.createElement(y,he({},_,{className:d,ref:E}),s))});Vt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vt.classNames={fullWidth:Gt,zeroRight:Bt};var Yl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xl(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yl();return t&&e.setAttribute("nonce",t),e}function ql(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Zl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Jl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xl())&&(ql(t,n),Zl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ql=function(){var e=Jl();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bo=function(){var e=Ql(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},eu={left:0,top:0,right:0,gap:0},Mn=function(e){return parseInt(e||"",10)||0},tu=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Mn(n),Mn(r),Mn(o)]},nu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eu;var t=tu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ru=bo(),et="data-scroll-locked",ou=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
32
|
-
.`.concat(
|
|
31
|
+
Check the top-level render call using <`+g+">."),P}var R=B,C=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),L=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),X=Symbol.iterator,j=Symbol.for("react.client.reference"),S=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,V=Object.assign,ue=Symbol.for("react.client.reference"),Pe=Array.isArray,ge=0,Xe,we,de,Be,ne,Ge,_t;r.__reactDisabledLog=!0;var dt,Ve,ft=!1,Tt=new(typeof WeakMap=="function"?WeakMap:Map),Wr=Symbol.for("react.client.reference"),gn,hn={},qe={},$c={};gt.Fragment=_,gt.jsx=function(g,P,M,H,te){return b(g,P,M,!1,H,te)},gt.jsxs=function(g,P,M,H,te){return b(g,P,M,!0,H,te)}}()),gt}var Hr;function Bc(){return Hr||(Hr=1,process.env.NODE_ENV==="production"?Ot.exports=Wc():Ot.exports=zc()),Ot.exports}var l=Bc();function Kr(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=Kr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Yr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Kr(e))&&(r&&(r+=" "),r+=t);return r}const bn="-",Gc=e=>{const t=Uc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(bn);return s[0]===""&&s.length!==1&&s.shift(),Xr(s,t)||Vc(i)},getConflictingClassGroupIds:(i,s)=>{const d=n[i]||[];return s&&r[i]?[...d,...r[i]]:d}}},Xr=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Xr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(bn);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},qr=/^\[(.+)\]$/,Vc=e=>{if(qr.test(e)){const t=qr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Uc=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Kc(Object.entries(e.classGroups),n).forEach(([a,i])=>{yn(i,r,a,t)}),r},yn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Zr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Hc(o)){yn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{yn(i,Zr(t,a),n,r)})})},Zr=(e,t)=>{let n=e;return t.split(bn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Hc=e=>e.isThemeGetter,Kc=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[n,o]}):e,Yc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},Jr="!",Xc=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,i=s=>{const d=[];let u=0,f=0,p;for(let x=0;x<s.length;x++){let y=s[x];if(u===0){if(y===o&&(r||s.slice(x,x+a)===t)){d.push(s.slice(f,x)),f=x+a;continue}if(y==="/"){p=x;continue}}y==="["?u++:y==="]"&&u--}const m=d.length===0?s:s.substring(f),v=m.startsWith(Jr),b=v?m.substring(1):m,h=p&&p>f?p-f:void 0;return{modifiers:d,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:h}};return n?s=>n({className:s,parseClassName:i}):i},qc=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Zc=e=>({cache:Yc(e.cacheSize),parseClassName:Xc(e),...Gc(e)}),Jc=/\s+/,Qc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(Jc);let s="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:v}=n(u);let b=!!v,h=r(b?m.substring(0,v):m);if(!h){if(!b){s=u+(s.length>0?" "+s:s);continue}if(h=r(m),!h){s=u+(s.length>0?" "+s:s);continue}b=!1}const x=qc(f).join(":"),y=p?x+Jr:x,w=y+h;if(a.includes(w))continue;a.push(w);const R=o(h,b);for(let C=0;C<R.length;++C){const E=R[C];a.push(y+E)}s=u+(s.length>0?" "+s:s)}return s};function el(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Qr(t))&&(r&&(r+=" "),r+=n);return r}const Qr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Qr(e[r]))&&(n&&(n+=" "),n+=t);return n};function tl(e,...t){let n,r,o,a=i;function i(d){const u=t.reduce((f,p)=>p(f),e());return n=Zc(u),r=n.cache.get,o=n.cache.set,a=s,s(d)}function s(d){const u=r(d);if(u)return u;const f=Qc(d,n);return o(d,f),f}return function(){return a(el.apply(null,arguments))}}const q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},eo=/^\[(?:([a-z-]+):)?(.+)\]$/i,nl=/^\d+\/\d+$/,rl=new Set(["px","full","screen"]),ol=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,al=/\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$/,sl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,il=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ce=e=>Je(e)||rl.has(e)||nl.test(e),_e=e=>Qe(e,"length",hl),Je=e=>!!e&&!Number.isNaN(Number(e)),xn=e=>Qe(e,"number",Je),ht=e=>!!e&&Number.isInteger(Number(e)),ll=e=>e.endsWith("%")&&Je(e.slice(0,-1)),I=e=>eo.test(e),Te=e=>ol.test(e),ul=new Set(["length","size","percentage"]),dl=e=>Qe(e,ul,to),fl=e=>Qe(e,"position",to),pl=new Set(["image","url"]),ml=e=>Qe(e,pl,bl),gl=e=>Qe(e,"",vl),vt=()=>!0,Qe=(e,t,n)=>{const r=eo.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},hl=e=>al.test(e)&&!sl.test(e),to=()=>!1,vl=e=>il.test(e),bl=e=>cl.test(e),yl=tl(()=>{const e=q("colors"),t=q("spacing"),n=q("blur"),r=q("brightness"),o=q("borderColor"),a=q("borderRadius"),i=q("borderSpacing"),s=q("borderWidth"),d=q("contrast"),u=q("grayscale"),f=q("hueRotate"),p=q("invert"),m=q("gap"),v=q("gradientColorStops"),b=q("gradientColorStopPositions"),h=q("inset"),x=q("margin"),y=q("opacity"),w=q("padding"),R=q("saturate"),C=q("scale"),E=q("sepia"),_=q("skew"),N=q("space"),O=q("translate"),G=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",I,t],k=()=>[I,t],U=()=>["",Ce,_e],z=()=>["auto",Je,I],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",I],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Je,I];return{cacheSize:500,separator:":",theme:{colors:[vt],spacing:[Ce,_e],blur:["none","",Te,I],brightness:V(),borderColor:[e],borderRadius:["none","","full",Te,I],borderSpacing:k(),borderWidth:U(),contrast:V(),grayscale:S(),hueRotate:V(),invert:S(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[ll,_e],inset:K(),margin:K(),opacity:V(),padding:k(),saturate:V(),scale:V(),sepia:S(),skew:V(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Te]}],"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"],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:[...J(),I]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ht,I]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",ht,I]}],"grid-cols":[{"grid-cols":[vt]}],"col-start-end":[{col:["auto",{span:["full",ht,I]},I]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[vt]}],"row-start-end":[{row:["auto",{span:[ht,I]},I]}],"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":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Te]},Te]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Te,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xn]}],"font-family":[{font:[vt]}],"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:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",Je,xn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ce,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ce,_e]}],"underline-offset":[{"underline-offset":["auto",Ce,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),fl]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ml]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Ce,I]}],"outline-w":[{outline:[Ce,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ce,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Te,gl]}],"shadow-color":[{shadow:[vt]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Te,I]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[R]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[ht,I]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ce,_e,xn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}});function D(...e){return yl(Yr(e))}const xl=(e,t="pt-BR",n="BRL")=>new Intl.NumberFormat(t,{style:"currency",currency:n,minimumFractionDigits:2}).format(e),wl=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long"}).format(new Date(e)),Cl=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long",year:"numeric"}).format(new Date(e)),El=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long"}).format(new Date(e)),Al=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"long"}).format(typeof e=="string"?new Date(e):e),Rl=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"short"}).format(e),Sl=e=>e.slice(0,7),Nl=(e,t="pt-BR")=>e.toLocaleDateString(t,{weekday:"short",day:"2-digit",month:"2-digit"}),no=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ro=Yr,wn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return ro(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],p=a==null?void 0:a[u];if(f===null)return null;const m=no(f)||no(p);return o[u][m]}),s=n&&Object.entries(n).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:m,...v}=f;return Object.entries(v).every(b=>{let[h,x]=b;return Array.isArray(x)?x.includes({...a,...s}[h]):{...a,...s}[h]===x})?[...u,p,m]:u},[]);return ro(e,i,d,n==null?void 0:n.class,n==null?void 0:n.className)},Pl=wn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{sizing:{sm:"h-8 text-xs px-2",md:"h-10 text-sm px-3",lg:"h-12 text-base px-4",xl:"h-14 text-lg px-5","2xl":"h-16 text-xl px-6"}},defaultVariants:{sizing:"md"}}),jt=c.forwardRef(({className:e,sizing:t,type:n,...r},o)=>l.jsx("input",{type:n,className:D(Pl({sizing:t,className:e})),ref:o,...r}));jt.displayName="Input";const Ml=(e,t)=>{const n=e.replace(/\D/g,"");let r="",o=0,a=0;for(;o<t.length&&a<n.length;)t[o]==="0"?(r+=n[a],a++):r+=t[o],o++;return r},It=c.forwardRef(({className:e,leftIcon:t,rightIcon:n,mask:r,onChange:o,...a},i)=>{const s=d=>{const u=d.target;if(r){const f=Ml(u.value,r);u.value=f}o==null||o(d)};return l.jsxs("div",{className:"relative w-full",children:[t&&l.jsx("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:t}),l.jsx(jt,{className:D(t&&"pl-8",n&&"pr-8",e),ref:i,onInput:s,...a}),n&&l.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:n})]})});It.displayName="AdaptiveInput";function Dl(e,t){const n=c.createContext(t),r=a=>{const{children:i,...s}=a,d=c.useMemo(()=>s,Object.values(s));return l.jsx(n.Provider,{value:d,children:i})};r.displayName=e+"Provider";function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function oe(e,t=[]){let n=[];function r(a,i){const s=c.createContext(i),d=n.length;n=[...n,i];const u=p=>{var y;const{scope:m,children:v,...b}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[d])||s,x=c.useMemo(()=>b,Object.values(b));return l.jsx(h.Provider,{value:x,children:v})};u.displayName=a+"Provider";function f(p,m){var h;const v=((h=m==null?void 0:m[e])==null?void 0:h[d])||s,b=c.useContext(v);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(s){const d=(s==null?void 0:s[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:d}}),[s,d])}};return o.scopeName=e,[r,_l(o,...t)]}function _l(...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(a){const i=r.reduce((s,{useScope:d,scopeName:u})=>{const p=d(a)[`__scope${u}`];return{...s,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function oo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ft(...e){return t=>{let n=!1;const r=e.map(o=>{const a=oo(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():oo(e[o],null)}}}}function Z(...e){return c.useCallback(Ft(...e),e)}function T(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Ee=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Tl=c.useId||(()=>{}),kl=0;function he(e){const[t,n]=c.useState(Tl());return Ee(()=>{e||n(r=>r??String(kl++))},[e]),e||(t?`radix-${t}`:"")}function ae(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ke({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Ol({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=ae(n),d=c.useCallback(u=>{if(a){const p=typeof u=="function"?u(e):u;p!==e&&s(p)}else o(u)},[a,e,o,s]);return[i,d]}function Ol({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),a=ae(t);return c.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var Oe=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),a=o.find(jl);if(a){const i=a.props.children,s=o.map(d=>d===a?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:d);return l.jsx(Cn,{...r,ref:t,children:c.isValidElement(i)?c.cloneElement(i,void 0,s):null})}return l.jsx(Cn,{...r,ref:t,children:n})});Oe.displayName="Slot";var Cn=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const o=Fl(n);return c.cloneElement(n,{...Il(r,n.props),ref:t?Ft(t,o):o})}return c.Children.count(n)>1?c.Children.only(null):null});Cn.displayName="SlotClone";var ao=({children:e})=>l.jsx(l.Fragment,{children:e});function jl(e){return c.isValidElement(e)&&e.type===ao}function Il(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Fl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ll=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],W=Ll.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Oe:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(s,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function so(e,t){e&&Gr.flushSync(()=>e.dispatchEvent(t))}function $l(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e);c.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 Wl="DismissableLayer",En="dismissableLayer.update",zl="dismissableLayer.pointerDownOutside",Bl="dismissableLayer.focusOutside",io,co=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...d}=e,u=c.useContext(co),[f,p]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=c.useState({}),b=Z(t,N=>p(N)),h=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(x),w=f?h.indexOf(f):-1,R=u.layersWithOutsidePointerEventsDisabled.size>0,C=w>=y,E=Ul(N=>{const O=N.target,G=[...u.branches].some(L=>L.contains(O));!C||G||(o==null||o(N),i==null||i(N),N.defaultPrevented||s==null||s())},m),_=Hl(N=>{const O=N.target;[...u.branches].some(L=>L.contains(O))||(a==null||a(N),i==null||i(N),N.defaultPrevented||s==null||s())},m);return $l(N=>{w===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},m),c.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(io=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),lo(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=io)}},[f,m,n,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),lo())},[f,u]),c.useEffect(()=>{const N=()=>v({});return document.addEventListener(En,N),()=>document.removeEventListener(En,N)},[]),l.jsx(W.div,{...d,ref:b,style:{pointerEvents:R?C?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,_.onFocusCapture),onBlurCapture:T(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,E.onPointerDownCapture)})});Lt.displayName=Wl;var Gl="DismissableLayerBranch",Vl=c.forwardRef((e,t)=>{const n=c.useContext(co),r=c.useRef(null),o=Z(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),l.jsx(W.div,{...e,ref:o})});Vl.displayName=Gl;function Ul(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let d=function(){uo(zl,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Hl(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&uo(Bl,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function lo(){const e=new CustomEvent(En);document.dispatchEvent(e)}function uo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?so(o,a):o.dispatchEvent(a)}var An="focusScope.autoFocusOnMount",Rn="focusScope.autoFocusOnUnmount",fo={bubbles:!1,cancelable:!0},Kl="FocusScope",$t=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,d]=c.useState(null),u=ae(o),f=ae(a),p=c.useRef(null),m=Z(t,h=>d(h)),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let h=function(R){if(v.paused||!s)return;const C=R.target;s.contains(C)?p.current=C:je(p.current,{select:!0})},x=function(R){if(v.paused||!s)return;const C=R.relatedTarget;C!==null&&(s.contains(C)||je(p.current,{select:!0}))},y=function(R){if(document.activeElement===document.body)for(const E of R)E.removedNodes.length>0&&je(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),w.disconnect()}}},[r,s,v.paused]),c.useEffect(()=>{if(s){go.add(v);const h=document.activeElement;if(!s.contains(h)){const y=new CustomEvent(An,fo);s.addEventListener(An,u),s.dispatchEvent(y),y.defaultPrevented||(Yl(Ql(po(s)),{select:!0}),document.activeElement===h&&je(s))}return()=>{s.removeEventListener(An,u),setTimeout(()=>{const y=new CustomEvent(Rn,fo);s.addEventListener(Rn,f),s.dispatchEvent(y),y.defaultPrevented||je(h??document.body,{select:!0}),s.removeEventListener(Rn,f),go.remove(v)},0)}}},[s,u,f,v]);const b=c.useCallback(h=>{if(!n&&!r||v.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(x&&y){const w=h.currentTarget,[R,C]=Xl(w);R&&C?!h.shiftKey&&y===C?(h.preventDefault(),n&&je(R,{select:!0})):h.shiftKey&&y===R&&(h.preventDefault(),n&&je(C,{select:!0})):y===w&&h.preventDefault()}},[n,r,v.paused]);return l.jsx(W.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});$t.displayName=Kl;function Yl(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(je(r,{select:t}),document.activeElement!==n)return}function Xl(e){const t=po(e),n=mo(t,e),r=mo(t.reverse(),e);return[n,r]}function po(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 mo(e,t){for(const n of e)if(!ql(n,{upTo:t}))return n}function ql(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Zl(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Zl(e)&&t&&e.select()}}var go=Jl();function Jl(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ho(e,t),e.unshift(t)},remove(t){var n;e=ho(e,t),(n=e[0])==null||n.resume()}}}function ho(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ql(e){return e.filter(t=>t.tagName!=="A")}var eu="Portal",Wt=c.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=c.useState(!1);Ee(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?zr.createPortal(l.jsx(W.div,{...r,ref:t}),i):null});Wt.displayName=eu;function tu(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ce=e=>{const{present:t,children:n}=e,r=nu(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=Z(r.ref,ru(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};ce.displayName="Presence";function nu(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,d]=tu(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=zt(r.current);a.current=s==="mounted"?u:"none"},[s]),Ee(()=>{const u=r.current,f=o.current;if(f!==e){const m=a.current,v=zt(u);e?d("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Ee(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=v=>{const h=zt(r.current).includes(v.animationName);if(v.target===t&&h&&(d("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=v=>{v.target===t&&(a.current=zt(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function zt(e){return(e==null?void 0:e.animationName)||"none"}function ru(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Sn=0;function Nn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vo()),document.body.insertAdjacentElement("beforeend",e[1]??vo()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function vo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ve=function(){return ve=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ve.apply(this,arguments)};function bo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ou(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Bt="right-scroll-bar-position",Gt="width-before-scroll-bar",au="with-scroll-bars-hidden",su="--removed-body-scroll-bar-size";function Pn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function iu(e,t){var n=B.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var cu=typeof window<"u"?c.useLayoutEffect:c.useEffect,yo=new WeakMap;function lu(e,t){var n=iu(null,function(r){return e.forEach(function(o){return Pn(o,r)})});return cu(function(){var r=yo.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||Pn(s,null)}),a.forEach(function(s){o.has(s)||Pn(s,i)})}yo.set(n,e)},[e]),n}function uu(e){return e}function du(e,t){t===void 0&&(t=uu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var d=function(){var f=i;i=[],f.forEach(a)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function fu(e){e===void 0&&(e={});var t=du(null);return t.options=ve({async:!0,ssr:!1},e),t}var xo=function(e){var t=e.sideCar,n=bo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,ve({},n))};xo.isSideCarExport=!0;function pu(e,t){return e.useMedium(t),xo}var wo=fu(),Mn=function(){},Vt=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Mn,onWheelCapture:Mn,onTouchMoveCapture:Mn}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,v=e.noIsolation,b=e.inert,h=e.allowPinchZoom,x=e.as,y=x===void 0?"div":x,w=e.gapMode,R=bo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,E=lu([n,t]),_=ve(ve({},R),o);return c.createElement(c.Fragment,null,f&&c.createElement(C,{sideCar:wo,removeScrollBar:u,shards:p,noIsolation:v,inert:b,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:w}),i?c.cloneElement(c.Children.only(s),ve(ve({},_),{ref:E})):c.createElement(y,ve({},_,{className:d,ref:E}),s))});Vt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vt.classNames={fullWidth:Gt,zeroRight:Bt};var mu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=mu();return t&&e.setAttribute("nonce",t),e}function hu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=gu())&&(hu(t,n),vu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yu=function(){var e=bu();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Co=function(){var e=yu(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},xu={left:0,top:0,right:0,gap:0},Dn=function(e){return parseInt(e||"",10)||0},wu=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Dn(n),Dn(r),Dn(o)]},Cu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xu;var t=wu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Eu=Co(),et="data-scroll-locked",Au=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
32
|
+
.`.concat(au,` {
|
|
33
33
|
overflow: hidden `).concat(r,`;
|
|
34
34
|
padding-right: `).concat(s,"px ").concat(r,`;
|
|
35
35
|
}
|
|
@@ -63,89 +63,89 @@ Check the top-level render call using <`+g+">."),P}var A=z,C=Symbol.for("react.t
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
body[`).concat(et,`] {
|
|
66
|
-
`).concat(
|
|
66
|
+
`).concat(su,": ").concat(s,`px;
|
|
67
67
|
}
|
|
68
|
-
`)},
|
|
68
|
+
`)},Eo=function(){var e=parseInt(document.body.getAttribute(et)||"0",10);return isFinite(e)?e:0},Ru=function(){c.useEffect(function(){return document.body.setAttribute(et,(Eo()+1).toString()),function(){var e=Eo()-1;e<=0?document.body.removeAttribute(et):document.body.setAttribute(et,e.toString())}},[])},Su=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ru();var a=c.useMemo(function(){return Cu(o)},[o]);return c.createElement(Eu,{styles:Au(a,!t,o,n?"":"!important")})},_n=!1;if(typeof window<"u")try{var Ut=Object.defineProperty({},"passive",{get:function(){return _n=!0,!0}});window.addEventListener("test",Ut,Ut),window.removeEventListener("test",Ut,Ut)}catch{_n=!1}var tt=_n?{passive:!1}:!1,Nu=function(e){return e.tagName==="TEXTAREA"},Ao=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Nu(e)&&n[t]==="visible")},Pu=function(e){return Ao(e,"overflowY")},Mu=function(e){return Ao(e,"overflowX")},Ro=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=So(e,r);if(o){var a=No(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Du=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_u=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},So=function(e,t){return e==="v"?Pu(t):Mu(t)},No=function(e,t){return e==="v"?Du(t):_u(t)},Tu=function(e,t){return e==="h"&&t==="rtl"?-1:1},ku=function(e,t,n,r,o){var a=Tu(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,d=t.contains(s),u=!1,f=i>0,p=0,m=0;do{var v=No(e,s),b=v[0],h=v[1],x=v[2],y=h-x-a*b;(b||y)&&So(e,s)&&(p+=y,m+=b),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!d&&s!==document.body||d&&(t.contains(s)||t===s));return(f&&(Math.abs(p)<1||!o)||!f&&(Math.abs(m)<1||!o))&&(u=!0),u},Ht=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Po=function(e){return[e.deltaX,e.deltaY]},Mo=function(e){return e&&"current"in e?e.current:e},Ou=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ju=function(e){return`
|
|
69
69
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
70
70
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
71
|
-
`)},
|
|
71
|
+
`)},Iu=0,nt=[];function Fu(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Iu++)[0],a=c.useState(Co)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=ou([e.lockRef.current],(e.shards||[]).map(Mo),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=Ht(h),w=n.current,R="deltaX"in h?h.deltaX:w[0]-y[0],C="deltaY"in h?h.deltaY:w[1]-y[1],E,_=h.target,N=Math.abs(R)>Math.abs(C)?"h":"v";if("touches"in h&&N==="h"&&_.type==="range")return!1;var O=Ro(N,_);if(!O)return!0;if(O?E=N:(E=N==="v"?"h":"v",O=Ro(N,_)),!O)return!1;if(!r.current&&"changedTouches"in h&&(R||C)&&(r.current=E),!E)return!0;var G=r.current||E;return ku(G,x,h,G==="h"?R:C,!0)},[]),d=c.useCallback(function(h){var x=h;if(!(!nt.length||nt[nt.length-1]!==a)){var y="deltaY"in x?Po(x):Ht(x),w=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&Ou(E.delta,y)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var R=(i.current.shards||[]).map(Mo).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=R.length>0?s(x,R[0]):!i.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),u=c.useCallback(function(h,x,y,w){var R={name:h,delta:x,target:y,should:w,shadowParent:Lu(y)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(C){return C!==R})},1)},[]),f=c.useCallback(function(h){n.current=Ht(h),r.current=void 0},[]),p=c.useCallback(function(h){u(h.type,Po(h),h.target,s(h,e.lockRef.current))},[]),m=c.useCallback(function(h){u(h.type,Ht(h),h.target,s(h,e.lockRef.current))},[]);c.useEffect(function(){return nt.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",d,tt),document.addEventListener("touchmove",d,tt),document.addEventListener("touchstart",f,tt),function(){nt=nt.filter(function(h){return h!==a}),document.removeEventListener("wheel",d,tt),document.removeEventListener("touchmove",d,tt),document.removeEventListener("touchstart",f,tt)}},[]);var v=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(a,{styles:ju(o)}):null,v?c.createElement(Su,{gapMode:e.gapMode}):null)}function Lu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $u=pu(wo,Fu);var Kt=c.forwardRef(function(e,t){return c.createElement(Vt,ve({},e,{ref:t,sideCar:$u}))});Kt.classNames=Vt.classNames;var Wu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rt=new WeakMap,Yt=new WeakMap,Xt={},Tn=0,Do=function(e){return e&&(e.host||Do(e.parentNode))},zu=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Do(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Bu=function(e,t,n,r){var o=zu(t,Array.isArray(e)?e:[e]);Xt[n]||(Xt[n]=new WeakMap);var a=Xt[n],i=[],s=new Set,d=new Set(o),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(m){if(s.has(m))f(m);else try{var v=m.getAttribute(r),b=v!==null&&v!=="false",h=(rt.get(m)||0)+1,x=(a.get(m)||0)+1;rt.set(m,h),a.set(m,x),i.push(m),h===1&&b&&Yt.set(m,!0),x===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),s.clear(),Tn++,function(){i.forEach(function(p){var m=rt.get(p)-1,v=a.get(p)-1;rt.set(p,m),a.set(p,v),m||(Yt.has(p)||p.removeAttribute(r),Yt.delete(p)),v||p.removeAttribute(n)}),Tn--,Tn||(rt=new WeakMap,rt=new WeakMap,Yt=new WeakMap,Xt={})}},kn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Wu(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Bu(r,o,n,"aria-hidden")):function(){return null}},On="Dialog",[_o,To]=oe(On),[Gu,fe]=_o(On),ko=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=c.useRef(null),d=c.useRef(null),[u=!1,f]=ke({prop:r,defaultProp:o,onChange:a});return l.jsx(Gu,{scope:t,triggerRef:s,contentRef:d,contentId:he(),titleId:he(),descriptionId:he(),open:u,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:i,children:n})};ko.displayName=On;var Oo="DialogTrigger",jo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Oo,n),a=Z(t,o.triggerRef);return l.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Fn(o.open),...r,ref:a,onClick:T(e.onClick,o.onOpenToggle)})});jo.displayName=Oo;var jn="DialogPortal",[Vu,Io]=_o(jn,{forceMount:void 0}),Fo=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=fe(jn,t);return l.jsx(Vu,{scope:t,forceMount:n,children:c.Children.map(r,i=>l.jsx(ce,{present:n||a.open,children:l.jsx(Wt,{asChild:!0,container:o,children:i})}))})};Fo.displayName=jn;var qt="DialogOverlay",Lo=c.forwardRef((e,t)=>{const n=Io(qt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=fe(qt,e.__scopeDialog);return a.modal?l.jsx(ce,{present:r||a.open,children:l.jsx(Uu,{...o,ref:t})}):null});Lo.displayName=qt;var Uu=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(qt,n);return l.jsx(Kt,{as:Oe,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(W.div,{"data-state":Fn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),He="DialogContent",$o=c.forwardRef((e,t)=>{const n=Io(He,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=fe(He,e.__scopeDialog);return l.jsx(ce,{present:r||a.open,children:a.modal?l.jsx(Hu,{...o,ref:t}):l.jsx(Ku,{...o,ref:t})})});$o.displayName=He;var Hu=c.forwardRef((e,t)=>{const n=fe(He,e.__scopeDialog),r=c.useRef(null),o=Z(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return kn(a)},[]),l.jsx(Wo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:T(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:T(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:T(e.onFocusOutside,a=>a.preventDefault())})}),Ku=c.forwardRef((e,t)=>{const n=fe(He,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return l.jsx(Wo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Wo=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=fe(He,n),d=c.useRef(null),u=Z(t,d);return Nn(),l.jsxs(l.Fragment,{children:[l.jsx($t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(Lt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Fn(s.open),...i,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(Xu,{titleId:s.titleId}),l.jsx(Zu,{contentRef:d,descriptionId:s.descriptionId})]})]})}),In="DialogTitle",zo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(In,n);return l.jsx(W.h2,{id:o.titleId,...r,ref:t})});zo.displayName=In;var Bo="DialogDescription",Go=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Bo,n);return l.jsx(W.p,{id:o.descriptionId,...r,ref:t})});Go.displayName=Bo;var Vo="DialogClose",Uo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Vo,n);return l.jsx(W.button,{type:"button",...r,ref:t,onClick:T(e.onClick,()=>o.onOpenChange(!1))})});Uo.displayName=Vo;function Fn(e){return e?"open":"closed"}var Ho="DialogTitleWarning",[Yu,Ko]=Dl(Ho,{contentName:He,titleName:In,docsSlug:"dialog"}),Xu=({titleId:e})=>{const t=Ko(Ho),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
72
72
|
|
|
73
73
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
74
74
|
|
|
75
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},
|
|
75
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},qu="DialogDescriptionWarning",Zu=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ko(qu).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Yo=ko,Xo=jo,qo=Fo,Ln=Lo,$n=$o,Wn=zo,zn=Go,Zt=Uo,Zo="AlertDialog",[Ju,Gm]=oe(Zo,[To]),Ae=To(),Jo=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ae(t);return l.jsx(Yo,{...r,...n,modal:!0})};Jo.displayName=Zo;var Qu="AlertDialogTrigger",Qo=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return l.jsx(Xo,{...o,...r,ref:t})});Qo.displayName=Qu;var ed="AlertDialogPortal",ea=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ae(t);return l.jsx(qo,{...r,...n})};ea.displayName=ed;var td="AlertDialogOverlay",ta=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return l.jsx(Ln,{...o,...r,ref:t})});ta.displayName=td;var ot="AlertDialogContent",[nd,rd]=Ju(ot),na=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Ae(n),i=c.useRef(null),s=Z(t,i),d=c.useRef(null);return l.jsx(Yu,{contentName:ot,titleName:ra,docsSlug:"alert-dialog",children:l.jsx(nd,{scope:n,cancelRef:d,children:l.jsxs($n,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:T(o.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=d.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[l.jsx(ao,{children:r}),l.jsx(ad,{contentRef:i})]})})})});na.displayName=ot;var ra="AlertDialogTitle",oa=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return l.jsx(Wn,{...o,...r,ref:t})});oa.displayName=ra;var aa="AlertDialogDescription",sa=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return l.jsx(zn,{...o,...r,ref:t})});sa.displayName=aa;var od="AlertDialogAction",ia=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return l.jsx(Zt,{...o,...r,ref:t})});ia.displayName=od;var ca="AlertDialogCancel",la=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=rd(ca,n),a=Ae(n),i=Z(t,o);return l.jsx(Zt,{...a,...r,ref:i})});la.displayName=ca;var ad=({contentRef:e})=>{const t=`\`${ot}\` requires a description for the component to be accessible for screen reader users.
|
|
76
76
|
|
|
77
|
-
You can add a description to the \`${ot}\` by passing a \`${
|
|
77
|
+
You can add a description to the \`${ot}\` by passing a \`${aa}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
78
78
|
|
|
79
79
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ot}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
80
80
|
|
|
81
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},
|
|
81
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},sd=Jo,id=Qo,cd=ea,ua=ta,da=na,fa=ia,pa=la,ma=oa,ga=sa;const bt=wn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",xl:"h-12 rounded-md px-10 text-xl",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),at=c.forwardRef(({className:e,variant:t,size:n,isLoading:r=!1,asChild:o=!1,...a},i)=>{const s=o?Oe:"button";return l.jsxs(s,{className:D(bt({variant:t,size:n,className:e})),ref:i,...a,disabled:r||a.disabled,children:[r&&l.jsxs("svg",{className:"animate-spin -ml-1 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),a.children]})});at.displayName="Button";const ld=sd,ud=id,ha=cd,Bn=c.forwardRef(({className:e,...t},n)=>l.jsx(ua,{className:D("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Bn.displayName=ua.displayName;const va=c.forwardRef(({className:e,...t},n)=>l.jsxs(ha,{children:[l.jsx(Bn,{}),l.jsx(da,{ref:n,className:D("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));va.displayName=da.displayName;const ba=({className:e,...t})=>l.jsx("div",{className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t});ba.displayName="AlertDialogHeader";const ya=({className:e,...t})=>l.jsx("div",{className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ya.displayName="AlertDialogFooter";const xa=c.forwardRef(({className:e,...t},n)=>l.jsx(ma,{ref:n,className:D("text-lg font-semibold",e),...t}));xa.displayName=ma.displayName;const wa=c.forwardRef(({className:e,...t},n)=>l.jsx(ga,{ref:n,className:D("text-sm text-muted-foreground",e),...t}));wa.displayName=ga.displayName;const Ca=c.forwardRef(({className:e,...t},n)=>l.jsx(fa,{ref:n,className:D(bt(),e),...t}));Ca.displayName=fa.displayName;const Ea=c.forwardRef(({className:e,...t},n)=>l.jsx(pa,{ref:n,className:D(bt({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Ea.displayName=pa.displayName;/**
|
|
82
82
|
* @license lucide-react v0.469.0 - ISC
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
86
|
+
*/const dd=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Aa=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
87
87
|
* @license lucide-react v0.469.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/var
|
|
91
|
+
*/var fd={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
92
92
|
* @license lucide-react v0.469.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
96
|
+
*/const pd=B.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},d)=>B.createElement("svg",{ref:d,...fd,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Aa("lucide",o),...s},[...i.map(([u,f])=>B.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
|
|
97
97
|
* @license lucide-react v0.469.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
101
|
+
*/const Re=(e,t)=>{const n=B.forwardRef(({className:r,...o},a)=>B.createElement(pd,{ref:a,iconNode:t,className:Aa(`lucide-${dd(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
102
102
|
* @license lucide-react v0.469.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const
|
|
106
|
+
*/const Ra=Re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
107
107
|
* @license lucide-react v0.469.0 - ISC
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
111
|
+
*/const Sa=Re("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
112
112
|
* @license lucide-react v0.469.0 - ISC
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
116
|
+
*/const Gn=Re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
117
117
|
* @license lucide-react v0.469.0 - ISC
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the ISC license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
121
|
+
*/const md=Re("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
122
122
|
* @license lucide-react v0.469.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
126
|
+
*/const gd=Re("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
127
127
|
* @license lucide-react v0.469.0 - ISC
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const
|
|
131
|
+
*/const hd=Re("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
132
132
|
* @license lucide-react v0.469.0 - ISC
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
136
|
+
*/const vd=Re("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
137
137
|
* @license lucide-react v0.469.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const
|
|
141
|
+
*/const bd=Re("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
142
142
|
* @license lucide-react v0.469.0 - ISC
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the ISC license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const Qu=Se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ed=["top","right","bottom","left"],Te=Math.min,ae=Math.max,Jt=Math.round,Qt=Math.floor,ve=e=>({x:e,y:e}),td={left:"right",right:"left",bottom:"top",top:"bottom"},nd={start:"end",end:"start"};function Gn(e,t,n){return ae(e,Te(t,n))}function Re(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function Vn(e){return e==="x"?"y":"x"}function Un(e){return e==="y"?"height":"width"}function Ie(e){return["top","bottom"].includes(Ne(e))?"y":"x"}function Hn(e){return Vn(Ie(e))}function rd(e,t,n){n===void 0&&(n=!1);const r=st(e),o=Hn(e),a=Un(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=en(i)),[i,en(i)]}function od(e){const t=en(e);return[Kn(e),t,Kn(t)]}function Kn(e){return e.replace(/start|end/g,t=>nd[t])}function ad(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function sd(e,t,n,r){const o=st(e);let a=ad(Ne(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Kn)))),a}function en(e){return e.replace(/left|right|bottom|top/g,t=>td[t])}function id(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ea(e){return typeof e!="number"?id(e):{top:e,right:e,bottom:e,left:e}}function tn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Aa(e,t,n){let{reference:r,floating:o}=e;const a=Ie(t),i=Hn(t),s=Un(i),d=Ne(t),u=a==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let v;switch(d){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:p};break;case"left":v={x:r.x-o.width,y:p};break;default:v={x:r.x,y:r.y}}switch(st(t)){case"start":v[i]-=m*(n&&u?-1:1);break;case"end":v[i]+=m*(n&&u?-1:1);break}return v}const cd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Aa(u,r,d),m=r,v={},b=0;for(let h=0;h<s.length;h++){const{name:w,fn:y}=s[h],{x,y:A,data:C,reset:E}=await y({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,p=A??p,v={...v,[w]:{...v[w],...C}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=Aa(u,m,d)),h=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:v}};async function yt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:v=0}=Re(t,e),b=Ea(v),w=s[m?p==="floating"?"reference":"floating":p],y=tn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:d})),x=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(A))?await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1}:{x:1,y:1},E=tn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:A,strategy:d}):x);return{top:(y.top-E.top+b.top)/C.y,bottom:(E.bottom-y.bottom+b.bottom)/C.y,left:(y.left-E.left+b.left)/C.x,right:(E.right-y.right+b.right)/C.x}}const ld=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:d}=t,{element:u,padding:f=0}=Re(e,t)||{};if(u==null)return{};const p=Ea(f),m={x:n,y:r},v=Hn(o),b=Un(v),h=await i.getDimensions(u),w=v==="y",y=w?"top":"left",x=w?"bottom":"right",A=w?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[v]-m[v]-a.floating[b],E=m[v]-a.reference[v],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let N=_?_[A]:0;(!N||!await(i.isElement==null?void 0:i.isElement(_)))&&(N=s.floating[A]||a.floating[b]);const k=C/2-E/2,B=N/2-h[b]/2-1,F=Te(p[y],B),K=Te(p[x],B),O=F,U=N-h[b]-K,W=N/2-h[b]/2+k,J=Gn(O,W,U),$=!d.arrow&&st(o)!=null&&W!==J&&a.reference[b]/2-(W<O?F:K)-h[b]/2<0,X=$?W<O?W-O:W-U:0;return{[v]:m[v]+X,data:{[v]:J,centerOffset:W-J-X,...$&&{alignmentOffset:X}},reset:$}}}),ud=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...w}=Re(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Ne(o),x=Ie(s),A=Ne(s)===s,C=await(d.isRTL==null?void 0:d.isRTL(u.floating)),E=m||(A||!h?[en(s)]:od(s)),_=b!=="none";!m&&_&&E.push(...sd(s,h,b,C));const N=[s,...E],k=await yt(t,w),B=[];let F=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&B.push(k[y]),p){const W=rd(o,i,C);B.push(k[W[0]],k[W[1]])}if(F=[...F,{placement:o,overflows:B}],!B.every(W=>W<=0)){var K,O;const W=(((K=a.flip)==null?void 0:K.index)||0)+1,J=N[W];if(J)return{data:{index:W,overflows:F},reset:{placement:J}};let $=(O=F.filter(X=>X.overflows[0]<=0).sort((X,T)=>X.overflows[1]-T.overflows[1])[0])==null?void 0:O.placement;if(!$)switch(v){case"bestFit":{var U;const X=(U=F.filter(T=>{if(_){const R=Ie(T.placement);return R===x||R==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(R=>R>0).reduce((R,Y)=>R+Y,0)]).sort((T,R)=>T[1]-R[1])[0])==null?void 0:U[0];X&&($=X);break}case"initialPlacement":$=s;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Sa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ra(e){return ed.some(t=>e[t]>=0)}const dd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Re(e,t);switch(r){case"referenceHidden":{const a=await yt(t,{...o,elementContext:"reference"}),i=Sa(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ra(i)}}}case"escaped":{const a=await yt(t,{...o,altBoundary:!0}),i=Sa(a,n.floating);return{data:{escapedOffsets:i,escaped:Ra(i)}}}default:return{}}}}};async function fd(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ne(n),s=st(n),d=Ie(n)==="y",u=["left","top"].includes(i)?-1:1,f=a&&d?-1:1,p=Re(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(v=s==="end"?b*-1:b),d?{x:v*f,y:m*u}:{x:m*u,y:v*f}}const pd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,d=await fd(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:i}}}}},md=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:w=>{let{x:y,y:x}=w;return{x:y,y:x}}},...d}=Re(e,t),u={x:n,y:r},f=await yt(t,d),p=Ie(Ne(o)),m=Vn(p);let v=u[m],b=u[p];if(a){const w=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=v+f[w],A=v-f[y];v=Gn(x,v,A)}if(i){const w=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=b+f[w],A=b-f[y];b=Gn(x,b,A)}const h=s.fn({...t,[m]:v,[p]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:a,[p]:i}}}}}},gd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:d=!0,crossAxis:u=!0}=Re(e,t),f={x:n,y:r},p=Ie(o),m=Vn(p);let v=f[m],b=f[p];const h=Re(s,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(d){const A=m==="y"?"height":"width",C=a.reference[m]-a.floating[A]+w.mainAxis,E=a.reference[m]+a.reference[A]-w.mainAxis;v<C?v=C:v>E&&(v=E)}if(u){var y,x;const A=m==="y"?"width":"height",C=["top","left"].includes(Ne(o)),E=a.reference[p]-a.floating[A]+(C&&((y=i.offset)==null?void 0:y[p])||0)+(C?0:w.crossAxis),_=a.reference[p]+a.reference[A]+(C?0:((x=i.offset)==null?void 0:x[p])||0)-(C?w.crossAxis:0);b<E?b=E:b>_&&(b=_)}return{[m]:v,[p]:b}}}},hd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:d=()=>{},...u}=Re(e,t),f=await yt(t,u),p=Ne(o),m=st(o),v=Ie(o)==="y",{width:b,height:h}=a.floating;let w,y;p==="top"||p==="bottom"?(w=p,y=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,A=b-f.left-f.right,C=Te(h-f[w],x),E=Te(b-f[y],A),_=!t.middlewareData.shift;let N=C,k=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=x),_&&!m){const F=ae(f.left,0),K=ae(f.right,0),O=ae(f.top,0),U=ae(f.bottom,0);v?k=b-2*(F!==0||K!==0?F+K:ae(f.left,f.right)):N=h-2*(O!==0||U!==0?O+U:ae(f.top,f.bottom))}await d({...t,availableWidth:k,availableHeight:N});const B=await i.getDimensions(s.floating);return b!==B.width||h!==B.height?{reset:{rects:!0}}:{}}}};function nn(){return typeof window<"u"}function it(e){return Na(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(Na(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Na(e){return nn()?e instanceof Node||e instanceof se(e).Node:!1}function pe(e){return nn()?e instanceof Element||e instanceof se(e).Element:!1}function ye(e){return nn()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function Pa(e){return!nn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function vd(e){return["table","td","th"].includes(it(e))}function rn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Yn(e){const t=Xn(),n=pe(e)?me(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function bd(e){let t=Le(e);for(;ye(t)&&!ct(t);){if(Yn(t))return t;if(rn(t))return null;t=Le(t)}return null}function Xn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ct(e){return["html","body","#document"].includes(it(e))}function me(e){return se(e).getComputedStyle(e)}function on(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Le(e){if(it(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pa(e)&&e.host||be(e);return Pa(t)?t.host:t}function Ma(e){const t=Le(e);return ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&wt(t)?t:Ma(t)}function xt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ma(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=se(o);if(a){const s=qn(i);return t.concat(i,i.visualViewport||[],wt(o)?o:[],s&&n?xt(s):[])}return t.concat(o,xt(o,[],n))}function qn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Da(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ye(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Jt(n)!==a||Jt(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Zn(e){return pe(e)?e:e.contextElement}function lt(e){const t=Zn(e);if(!ye(t))return ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Da(t);let i=(a?Jt(n.width):n.width)/r,s=(a?Jt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const yd=ve(0);function _a(e){const t=se(e);return!Xn()||!t.visualViewport?yd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==se(e)?!1:t}function Ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Zn(e);let i=ve(1);t&&(r?pe(r)&&(i=lt(r)):i=lt(e));const s=wd(a,n,r)?_a(a):ve(0);let d=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const m=se(a),v=r&&pe(r)?se(r):r;let b=m,h=qn(b);for(;h&&r&&v!==b;){const w=lt(h),y=h.getBoundingClientRect(),x=me(h),A=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,C=y.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;d*=w.x,u*=w.y,f*=w.x,p*=w.y,d+=A,u+=C,b=se(h),h=qn(b)}}return tn({width:f,height:p,x:d,y:u})}function Jn(e,t){const n=on(e).scrollLeft;return t?t.left+n:Ke(be(e)).left+n}function Oa(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Jn(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function xd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=be(r),s=t?rn(t.floating):!1;if(r===i||s&&a)return n;let d={scrollLeft:0,scrollTop:0},u=ve(1);const f=ve(0),p=ye(r);if((p||!p&&!a)&&((it(r)!=="body"||wt(i))&&(d=on(r)),ye(r))){const v=Ke(r);u=lt(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const m=i&&!p&&!a?Oa(i,d,!0):ve(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-d.scrollTop*u.y+f.y+m.y}}function Cd(e){return Array.from(e.getClientRects())}function Ed(e){const t=be(e),n=on(e),r=e.ownerDocument.body,o=ae(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ae(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Jn(e);const s=-n.scrollTop;return me(r).direction==="rtl"&&(i+=ae(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Ad(e,t){const n=se(e),r=be(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,d=0;if(o){a=o.width,i=o.height;const u=Xn();(!u||u&&t==="fixed")&&(s=o.offsetLeft,d=o.offsetTop)}return{width:a,height:i,x:s,y:d}}function Sd(e,t){const n=Ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ye(e)?lt(e):ve(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,d=o*a.x,u=r*a.y;return{width:i,height:s,x:d,y:u}}function ka(e,t,n){let r;if(t==="viewport")r=Ad(e,n);else if(t==="document")r=Ed(be(e));else if(pe(t))r=Sd(t,n);else{const o=_a(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return tn(r)}function ja(e,t){const n=Le(e);return n===t||!pe(n)||ct(n)?!1:me(n).position==="fixed"||ja(n,t)}function Rd(e,t){const n=t.get(e);if(n)return n;let r=xt(e,[],!1).filter(s=>pe(s)&&it(s)!=="body"),o=null;const a=me(e).position==="fixed";let i=a?Le(e):e;for(;pe(i)&&!ct(i);){const s=me(i),d=Yn(i);!d&&s.position==="fixed"&&(o=null),(a?!d&&!o:!d&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||wt(i)&&!d&&ja(e,i))?r=r.filter(f=>f!==i):o=s,i=Le(i)}return t.set(e,r),r}function Nd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?rn(t)?[]:Rd(t,this._c):[].concat(n),r],s=i[0],d=i.reduce((u,f)=>{const p=ka(t,f,o);return u.top=ae(p.top,u.top),u.right=Te(p.right,u.right),u.bottom=Te(p.bottom,u.bottom),u.left=ae(p.left,u.left),u},ka(t,s,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Pd(e){const{width:t,height:n}=Da(e);return{width:t,height:n}}function Md(e,t,n){const r=ye(t),o=be(t),a=n==="fixed",i=Ke(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const d=ve(0);if(r||!r&&!a)if((it(t)!=="body"||wt(o))&&(s=on(t)),r){const m=Ke(t,!0,a,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&(d.x=Jn(o));const u=o&&!r&&!a?Oa(o,s):ve(0),f=i.left+s.scrollLeft-d.x-u.x,p=i.top+s.scrollTop-d.y-u.y;return{x:f,y:p,width:i.width,height:i.height}}function Qn(e){return me(e).position==="static"}function Ta(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return be(e)===n&&(n=n.ownerDocument.body),n}function Ia(e,t){const n=se(e);if(rn(e))return n;if(!ye(e)){let o=Le(e);for(;o&&!ct(o);){if(pe(o)&&!Qn(o))return o;o=Le(o)}return n}let r=Ta(e,t);for(;r&&vd(r)&&Qn(r);)r=Ta(r,t);return r&&ct(r)&&Qn(r)&&!Yn(r)?n:r||bd(e)||n}const Dd=async function(e){const t=this.getOffsetParent||Ia,n=this.getDimensions,r=await n(e.floating);return{reference:Md(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _d(e){return me(e).direction==="rtl"}const Od={convertOffsetParentRelativeRectToViewportRelativeRect:xd,getDocumentElement:be,getClippingRect:Nd,getOffsetParent:Ia,getElementRects:Dd,getClientRects:Cd,getDimensions:Pd,getScale:lt,isElement:pe,isRTL:_d};function kd(e,t){let n=null,r;const o=be(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),a();const{left:u,top:f,width:p,height:m}=e.getBoundingClientRect();if(s||t(),!p||!m)return;const v=Qt(f),b=Qt(o.clientWidth-(u+p)),h=Qt(o.clientHeight-(f+m)),w=Qt(u),x={rootMargin:-v+"px "+-b+"px "+-h+"px "+-w+"px",threshold:ae(0,Te(1,d))||1};let A=!0;function C(E){const _=E[0].intersectionRatio;if(_!==d){if(!A)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),a}function jd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=Zn(e),f=o||a?[...u?xt(u):[],...xt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const p=u&&s?kd(u,n):null;let m=-1,v=null;i&&(v=new ResizeObserver(y=>{let[x]=y;x&&x.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var A;(A=v)==null||A.observe(t)})),n()}),u&&!d&&v.observe(u),v.observe(t));let b,h=d?Ke(e):null;d&&w();function w(){const y=Ke(e);h&&(y.x!==h.x||y.y!==h.y||y.width!==h.width||y.height!==h.height)&&n(),h=y,b=requestAnimationFrame(w)}return n(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),p==null||p(),(y=v)==null||y.disconnect(),v=null,d&&cancelAnimationFrame(b)}}const Td=pd,Id=md,Ld=ud,Fd=hd,$d=dd,La=ld,Wd=gd,zd=(e,t,n)=>{const r=new Map,o={platform:Od,...n},a={...o.platform,_c:r};return cd(e,t,{...o,platform:a})};var an=typeof document<"u"?z.useLayoutEffect:z.useEffect;function sn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!sn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Fa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $a(e,t){const n=Fa(e);return Math.round(t*n)/n}function er(e){const t=c.useRef(e);return an(()=>{t.current=e}),t}function Bd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:d,open:u}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=c.useState(r);sn(m,r)||v(r);const[b,h]=c.useState(null),[w,y]=c.useState(null),x=c.useCallback(T=>{T!==_.current&&(_.current=T,h(T))},[]),A=c.useCallback(T=>{T!==N.current&&(N.current=T,y(T))},[]),C=a||b,E=i||w,_=c.useRef(null),N=c.useRef(null),k=c.useRef(f),B=d!=null,F=er(d),K=er(o),O=er(u),U=c.useCallback(()=>{if(!_.current||!N.current)return;const T={placement:t,strategy:n,middleware:m};K.current&&(T.platform=K.current),zd(_.current,N.current,T).then(R=>{const Y={...R,isPositioned:O.current!==!1};W.current&&!sn(k.current,Y)&&(k.current=Y,$r.flushSync(()=>{p(Y)}))})},[m,t,n,K,O]);an(()=>{u===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(T=>({...T,isPositioned:!1})))},[u]);const W=c.useRef(!1);an(()=>(W.current=!0,()=>{W.current=!1}),[]),an(()=>{if(C&&(_.current=C),E&&(N.current=E),C&&E){if(F.current)return F.current(C,E,U);U()}},[C,E,U,F,B]);const J=c.useMemo(()=>({reference:_,floating:N,setReference:x,setFloating:A}),[x,A]),$=c.useMemo(()=>({reference:C,floating:E}),[C,E]),X=c.useMemo(()=>{const T={position:n,left:0,top:0};if(!$.floating)return T;const R=$a($.floating,f.x),Y=$a($.floating,f.y);return s?{...T,transform:"translate("+R+"px, "+Y+"px)",...Fa($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:Y}},[n,s,$.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:U,refs:J,elements:$,floatingStyles:X}),[f,U,J,$,X])}const Gd=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?La({element:r.current,padding:o}).fn(n):{}:r?La({element:r,padding:o}).fn(n):{}}}},Vd=(e,t)=>({...Td(e),options:[e,t]}),Ud=(e,t)=>({...Id(e),options:[e,t]}),Hd=(e,t)=>({...Wd(e),options:[e,t]}),Kd=(e,t)=>({...Ld(e),options:[e,t]}),Yd=(e,t)=>({...Fd(e),options:[e,t]}),Xd=(e,t)=>({...$d(e),options:[e,t]}),qd=(e,t)=>({...Gd(e),options:[e,t]});var Zd="Arrow",Wa=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return l.jsx(V.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});Wa.displayName=Zd;var Jd=Wa;function tr(e){const[t,n]=c.useState(void 0);return Ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var nr="Popper",[za,cn]=ie(nr),[Qd,Ba]=za(nr),Ga=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return l.jsx(Qd,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ga.displayName=nr;var Va="PopperAnchor",Ua=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ba(Va,n),i=c.useRef(null),s=Z(t,i);return c.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l.jsx(V.div,{...o,ref:s})});Ua.displayName=Va;var rr="PopperContent",[ef,tf]=za(rr),Ha=c.forwardRef((e,t)=>{var ue,ze,ne,Be,_t,dt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:b,...h}=e,w=Ba(rr,n),[y,x]=c.useState(null),A=Z(t,Ge=>x(Ge)),[C,E]=c.useState(null),_=tr(C),N=(_==null?void 0:_.width)??0,k=(_==null?void 0:_.height)??0,B=r+(a!=="center"?"-"+a:""),F=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},K=Array.isArray(u)?u:[u],O=K.length>0,U={padding:F,boundary:K.filter(rf),altBoundary:O},{refs:W,floatingStyles:J,placement:$,isPositioned:X,middlewareData:T}=Bd({strategy:"fixed",placement:B,whileElementsMounted:(...Ge)=>jd(...Ge,{animationFrame:v==="always"}),elements:{reference:w.anchor},middleware:[Vd({mainAxis:o+k,alignmentAxis:i}),d&&Ud({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Hd():void 0,...U}),d&&Kd({...U}),Yd({...U,apply:({elements:Ge,rects:ft,availableWidth:Ot,availableHeight:Ir})=>{const{width:mn,height:gn}=ft.reference,qe=Ge.floating.style;qe.setProperty("--radix-popper-available-width",`${Ot}px`),qe.setProperty("--radix-popper-available-height",`${Ir}px`),qe.setProperty("--radix-popper-anchor-width",`${mn}px`),qe.setProperty("--radix-popper-anchor-height",`${gn}px`)}}),C&&qd({element:C,padding:s}),of({arrowWidth:N,arrowHeight:k}),m&&Xd({strategy:"referenceHidden",...U})]}),[R,Y]=Xa($),G=oe(b);Ce(()=>{X&&(G==null||G())},[X,G]);const le=(ue=T.arrow)==null?void 0:ue.x,Pe=(ze=T.arrow)==null?void 0:ze.y,ge=((ne=T.arrow)==null?void 0:ne.centerOffset)!==0,[Xe,we]=c.useState();return Ce(()=>{y&&we(window.getComputedStyle(y).zIndex)},[y]),l.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:X?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xe,"--radix-popper-transform-origin":[(Be=T.transformOrigin)==null?void 0:Be.x,(_t=T.transformOrigin)==null?void 0:_t.y].join(" "),...((dt=T.hide)==null?void 0:dt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(ef,{scope:n,placedSide:R,onArrowChange:E,arrowX:le,arrowY:Pe,shouldHideArrow:ge,children:l.jsx(V.div,{"data-side":R,"data-align":Y,...h,ref:A,style:{...h.style,animation:X?void 0:"none"}})})})});Ha.displayName=rr;var Ka="PopperArrow",nf={top:"bottom",right:"left",bottom:"top",left:"right"},Ya=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=tf(Ka,r),i=nf[a.placedSide];return l.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:l.jsx(Jd,{...o,ref:n,style:{...o.style,display:"block"}})})});Ya.displayName=Ka;function rf(e){return e!==null}var of=e=>({name:"transformOrigin",options:e,fn(t){var w,y,x;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,s=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[u,f]=Xa(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,v=(((x=o.arrow)==null?void 0:x.y)??0)+d/2;let b="",h="";return u==="bottom"?(b=i?p:`${m}px`,h=`${-d}px`):u==="top"?(b=i?p:`${m}px`,h=`${r.floating.height+d}px`):u==="right"?(b=`${-d}px`,h=i?p:`${v}px`):u==="left"&&(b=`${r.floating.width+d}px`,h=i?p:`${v}px`),{data:{x:b,y:h}}}});function Xa(e){const[t,n="center"]=e.split("-");return[t,n]}var or=Ga,ar=Ua,qa=Ha,Za=Ya,sr="Popover",[Ja,Cm]=ie(sr,[cn]),Ct=cn(),[af,Fe]=Ja(sr),Qa=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Ct(t),d=c.useRef(null),[u,f]=c.useState(!1),[p=!1,m]=Ue({prop:r,defaultProp:o,onChange:a});return l.jsx(or,{...s,children:l.jsx(af,{scope:t,contentId:Ee(),triggerRef:d,open:p,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(v=>!v),[m]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:i,children:n})})};Qa.displayName=sr;var es="PopoverAnchor",ts=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fe(es,n),a=Ct(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return c.useEffect(()=>(i(),()=>s()),[i,s]),l.jsx(ar,{...a,...r,ref:t})});ts.displayName=es;var ns="PopoverTrigger",rs=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fe(ns,n),a=Ct(n),i=Z(t,o.triggerRef),s=l.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cs(o.open),...r,ref:i,onClick:j(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:l.jsx(ar,{asChild:!0,...a,children:s})});rs.displayName=ns;var ir="PopoverPortal",[sf,cf]=Ja(ir,{forceMount:void 0}),os=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Fe(ir,t);return l.jsx(sf,{scope:t,forceMount:n,children:l.jsx(de,{present:n||a.open,children:l.jsx(Wt,{asChild:!0,container:o,children:r})})})};os.displayName=ir;var ut="PopoverContent",as=c.forwardRef((e,t)=>{const n=cf(ut,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Fe(ut,e.__scopePopover);return l.jsx(de,{present:r||a.open,children:a.modal?l.jsx(lf,{...o,ref:t}):l.jsx(uf,{...o,ref:t})})});as.displayName=ut;var lf=c.forwardRef((e,t)=>{const n=Fe(ut,e.__scopePopover),r=c.useRef(null),o=Z(t,r),a=c.useRef(!1);return c.useEffect(()=>{const i=r.current;if(i)return On(i)},[]),l.jsx(Kt,{as:ke,allowPinchZoom:!0,children:l.jsx(ss,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,d=s.button===0&&s.ctrlKey===!0,u=s.button===2||d;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:j(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),uf=c.forwardRef((e,t)=>{const n=Fe(ut,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return l.jsx(ss,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ss=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,...p}=e,m=Fe(ut,n),v=Ct(n);return Rn(),l.jsx($t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:l.jsx(qa,{"data-state":cs(m.open),role:"dialog",id:m.contentId,...v,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),is="PopoverClose",df=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fe(is,n);return l.jsx(V.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});df.displayName=is;var ff="PopoverArrow",pf=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ct(n);return l.jsx(Za,{...o,...r,ref:t})});pf.displayName=ff;function cs(e){return e?"open":"closed"}var mf=Qa,gf=ts,hf=rs,vf=os,ls=as;const us=mf,ds=hf,bf=gf,cr=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsx(vf,{children:l.jsx(ls,{ref:o,align:t,sideOffset:n,className:D("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));cr.displayName=ls.displayName;function yf(e){const{value:t="",onChange:n,options:r,className:o,placeholder:a="Search...",emptyMessage:i="Nothing found"}=e,[s,d]=z.useState(t),[u,f]=z.useState(r),[p,m]=z.useState(-1),[v,b]=z.useState(!1),h=C=>{const E=C.target.value;d(E),n==null||n(E),m(-1),b(!0),E.trim()===""?f(r):f(r.filter(_=>_.label.toLowerCase().includes(E.toLowerCase())))},w=C=>{if(C.key==="ArrowDown")C.preventDefault(),m(E=>E<u.length-1?E+1:E);else if(C.key==="ArrowUp")C.preventDefault(),m(E=>E>0?E-1:-1);else if(C.key==="Enter"&&p>=0){const E=u[p];d(E.label),n==null||n(E.value),f([]),m(-1),b(!1)}else C.key==="Escape"&&(f([]),m(-1))},y=C=>{b(!1),d(C.label),n==null||n(C.value),f(r),m(-1)},x=()=>{b(!0)},A=()=>{b(!1)};return l.jsxs(us,{open:v,children:[l.jsx(ds,{asChild:!0,children:l.jsx("div",{className:"relative w-full",children:l.jsx(It,{type:"text",placeholder:a,value:s,onChange:h,onKeyDown:w,onClick:x,onFocus:x,onBlur:A,className:D("pr-10",o),"aria-label":"Search field","aria-autocomplete":"list","aria-controls":"suggestions-list","aria-expanded":u.length>0,leftIcon:l.jsx(Ju,{className:"w-4 h-4"})})})}),l.jsx(cr,{className:"p-0 w-[var(--radix-popover-trigger-width)] max-h-96 overflow-y-auto",children:u.length>0?l.jsx("ul",{id:"suggestions-list",role:"listbox",children:u.map((C,E)=>l.jsx("li",{className:`px-4 py-2 cursor-pointer hover:bg-muted ${E===p?"bg-muted":""}`,onClick:()=>y(C),role:"option","aria-selected":E===p,children:C.label},C.value))}):l.jsx("span",{className:"px-4 py-2 block",children:i})})]})}var lr="Avatar",[wf,Em]=ie(lr),[xf,fs]=wf(lr),ps=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=c.useState("idle");return l.jsx(xf,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:l.jsx(V.span,{...r,ref:t})})});ps.displayName=lr;var ms="AvatarImage",gs=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=fs(ms,n),s=Cf(r,a.referrerPolicy),d=oe(u=>{o(u),i.onImageLoadingStatusChange(u)});return Ce(()=>{s!=="idle"&&d(s)},[s,d]),s==="loaded"?l.jsx(V.img,{...a,ref:t,src:r}):null});gs.displayName=ms;var hs="AvatarFallback",vs=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=fs(hs,n),[i,s]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(d)}},[r]),i&&a.imageLoadingStatus!=="loaded"?l.jsx(V.span,{...o,ref:t}):null});vs.displayName=hs;function Cf(e,t){const[n,r]=c.useState("idle");return Ce(()=>{if(!e){r("error");return}let o=!0;const a=new window.Image,i=s=>()=>{o&&r(s)};return r("loading"),a.onload=i("loaded"),a.onerror=i("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var bs=ps,ys=gs,ws=vs;const xs=c.forwardRef(({className:e,...t},n)=>l.jsx(bs,{ref:n,className:D("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));xs.displayName=bs.displayName;const Cs=c.forwardRef(({className:e,...t},n)=>l.jsx(ys,{ref:n,className:D("aspect-square h-full w-full",e),...t}));Cs.displayName=ys.displayName;const Es=c.forwardRef(({className:e,...t},n)=>l.jsx(ws,{ref:n,className:D("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Es.displayName=ws.displayName;const As=wn("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ef({className:e,variant:t,...n}){return l.jsx("div",{className:D(As({variant:t}),e),...n})}const Ss=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ss.displayName="Card";const Rs=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("flex flex-col space-y-1.5 p-6",e),...t}));Rs.displayName="CardHeader";const Ns=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("font-semibold leading-none tracking-tight pb-4",e),...t}));Ns.displayName="CardTitle";const Ps=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("text-sm text-muted-foreground",e),...t}));Ps.displayName="CardDescription";const Ms=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("p-6 py-0",e),...t}));Ms.displayName="CardContent";const Ds=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("flex items-center p-6 pt-6",e),...t}));Ds.displayName="CardFooter";function _s(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ur="Checkbox",[Af,Am]=ie(ur),[Sf,Rf]=Af(ur),Os=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:d="on",onCheckedChange:u,form:f,...p}=e,[m,v]=c.useState(null),b=Z(t,C=>v(C)),h=c.useRef(!1),w=m?f||!!m.closest("form"):!0,[y=!1,x]=Ue({prop:o,defaultProp:a,onChange:u}),A=c.useRef(y);return c.useEffect(()=>{const C=m==null?void 0:m.form;if(C){const E=()=>x(A.current);return C.addEventListener("reset",E),()=>C.removeEventListener("reset",E)}},[m,x]),l.jsxs(Sf,{scope:n,state:y,disabled:s,children:[l.jsx(V.button,{type:"button",role:"checkbox","aria-checked":$e(y)?"mixed":y,"aria-required":i,"data-state":Ts(y),"data-disabled":s?"":void 0,disabled:s,value:d,...p,ref:b,onKeyDown:j(e.onKeyDown,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:j(e.onClick,C=>{x(E=>$e(E)?!0:!E),w&&(h.current=C.isPropagationStopped(),h.current||C.stopPropagation())})}),w&&l.jsx(Nf,{control:m,bubbles:!h.current,name:r,value:d,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"},defaultChecked:$e(a)?!1:a})]})});Os.displayName=ur;var ks="CheckboxIndicator",js=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Rf(ks,n);return l.jsx(de,{present:r||$e(a.state)||a.state===!0,children:l.jsx(V.span,{"data-state":Ts(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});js.displayName=ks;var Nf=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...a}=e,i=c.useRef(null),s=_s(n),d=tr(t);c.useEffect(()=>{const f=i.current,p=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(p,"checked").set;if(s!==n&&v){const b=new Event("click",{bubbles:r});f.indeterminate=$e(n),v.call(f,$e(n)?!1:n),f.dispatchEvent(b)}},[s,n,r]);const u=c.useRef($e(n)?!1:n);return l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??u.current,...a,tabIndex:-1,ref:i,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function $e(e){return e==="indeterminate"}function Ts(e){return $e(e)?"indeterminate":e?"checked":"unchecked"}var Is=Os,Pf=js;const Ls=c.forwardRef(({className:e,...t},n)=>l.jsx(Is,{ref:n,className:D("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:l.jsx(Pf,{className:D("flex items-center justify-center text-current"),children:l.jsx(xa,{className:"h-4 w-4"})})}));Ls.displayName=Is.displayName;const Fs=z.forwardRef((e,t)=>{const{currencySymbol:n="$",decimalSeparator:r=".",thousandSeparator:o=",",onValueChange:a,className:i,value:s=0,...d}=e,u=z.useRef(null);z.useImperativeHandle(t,()=>u.current);const[f,p]=z.useState(""),m=h=>{const w=h.toFixed(2).split("."),y=w[0].replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${n} ${y}${r}${w[1]}`},v=h=>{const w=h.target.value,y=parseFloat(w.replace(/\D/g,""))/100;p(m(y)),a(y),u.current&&window.requestAnimationFrame(()=>{var x;(x=u.current)==null||x.setSelectionRange(u.current.value.length,u.current.value.length)})},b=()=>{u.current&&u.current.setSelectionRange(u.current.value.length,u.current.value.length)};return z.useEffect(()=>{p(m(+s))},[s]),l.jsx(It,{type:"text",inputMode:"numeric",value:f,ref:u,onChange:v,onFocus:b,onClick:b,placeholder:`${n} 0${r}00`,className:i,...d})});Fs.displayName="CurrencyInput";const $s=Vo,Ws=Uo,zs=Ho,Mf=Zt,dr=c.forwardRef(({className:e,...t},n)=>l.jsx(Ln,{ref:n,className:D("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));dr.displayName=Ln.displayName;const fr=c.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(zs,{children:[l.jsx(dr,{}),l.jsxs(Fn,{ref:r,className:D("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border","bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","sm:rounded-lg max-h-[100dvh] overflow-y-auto",e),...n,children:[t,l.jsxs(Zt,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[l.jsx(Qu,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));fr.displayName=Fn.displayName;const pr=({className:e,...t})=>l.jsx("div",{className:D("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});pr.displayName="DialogHeader";const Bs=({className:e,...t})=>l.jsx("div",{className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Bs.displayName="DialogFooter";const mr=c.forwardRef(({className:e,...t},n)=>l.jsx($n,{ref:n,className:D("text-lg font-semibold leading-none tracking-tight",e),...t}));mr.displayName=$n.displayName;const gr=c.forwardRef(({className:e,...t},n)=>l.jsx(Wn,{ref:n,className:D("text-sm text-muted-foreground",e),...t}));gr.displayName=Wn.displayName;function Gs(e){const t=e+"CollectionProvider",[n,r]=ie(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:b,children:h}=v,w=z.useRef(null),y=z.useRef(new Map).current;return l.jsx(o,{scope:b,itemMap:y,collectionRef:w,children:h})};i.displayName=t;const s=e+"CollectionSlot",d=z.forwardRef((v,b)=>{const{scope:h,children:w}=v,y=a(s,h),x=Z(b,y.collectionRef);return l.jsx(ke,{ref:x,children:w})});d.displayName=s;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=z.forwardRef((v,b)=>{const{scope:h,children:w,...y}=v,x=z.useRef(null),A=Z(b,x),C=a(u,h);return z.useEffect(()=>(C.itemMap.set(x,{ref:x,...y}),()=>void C.itemMap.delete(x))),l.jsx(ke,{[f]:"",ref:A,children:w})});p.displayName=u;function m(v){const b=a(e+"CollectionConsumer",v);return z.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((C,E)=>y.indexOf(C.ref.current)-y.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:d,ItemSlot:p},m,r]}var Df=c.createContext(void 0);function Vs(e){const t=c.useContext(Df);return e||t||"ltr"}var hr="rovingFocusGroup.onEntryFocus",_f={bubbles:!1,cancelable:!0},ln="RovingFocusGroup",[vr,Us,Of]=Gs(ln),[kf,Hs]=ie(ln,[Of]),[jf,Tf]=kf(ln),Ks=c.forwardRef((e,t)=>l.jsx(vr.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(vr.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(If,{...e,ref:t})})}));Ks.displayName=ln;var If=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,m=c.useRef(null),v=Z(t,m),b=Vs(a),[h=null,w]=Ue({prop:i,defaultProp:s,onChange:d}),[y,x]=c.useState(!1),A=oe(u),C=Us(n),E=c.useRef(!1),[_,N]=c.useState(0);return c.useEffect(()=>{const k=m.current;if(k)return k.addEventListener(hr,A),()=>k.removeEventListener(hr,A)},[A]),l.jsx(jf,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:c.useCallback(k=>w(k),[w]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>N(k=>k+1),[]),onFocusableItemRemove:c.useCallback(()=>N(k=>k-1),[]),children:l.jsx(V.div,{tabIndex:y||_===0?-1:0,"data-orientation":r,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{E.current=!0}),onFocus:j(e.onFocus,k=>{const B=!E.current;if(k.target===k.currentTarget&&B&&!y){const F=new CustomEvent(hr,_f);if(k.currentTarget.dispatchEvent(F),!F.defaultPrevented){const K=C().filter($=>$.focusable),O=K.find($=>$.active),U=K.find($=>$.id===h),J=[O,U,...K].filter(Boolean).map($=>$.ref.current);qs(J,f)}}E.current=!1}),onBlur:j(e.onBlur,()=>x(!1))})})}),Ys="RovingFocusGroupItem",Xs=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Ee(),d=a||s,u=Tf(Ys,n),f=u.currentTabStopId===d,p=Us(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=u;return c.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),l.jsx(vr.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:l.jsx(V.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,b=>{r?u.onItemFocus(d):b.preventDefault()}),onFocus:j(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:j(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const h=$f(b,u.orientation,u.dir);if(h!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=p().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const x=y.indexOf(b.currentTarget);y=u.loop?Wf(y,x+1):y.slice(x+1)}setTimeout(()=>qs(y))}})})})});Xs.displayName=Ys;var Lf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ff(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $f(e,t,n){const r=Ff(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Lf[r]}function qs(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Wf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var zf=Ks,Bf=Xs,br=["Enter"," "],Gf=["ArrowDown","PageUp","Home"],Zs=["ArrowUp","PageDown","End"],Vf=[...Gf,...Zs],Uf={ltr:[...br,"ArrowRight"],rtl:[...br,"ArrowLeft"]},Hf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Et="Menu",[At,Kf,Yf]=Gs(Et),[Ye,Js]=ie(Et,[Yf,cn,Hs]),St=cn(),Qs=Hs(),[ei,We]=Ye(Et),[Xf,Rt]=Ye(Et),ti=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=St(t),[d,u]=c.useState(null),f=c.useRef(!1),p=oe(a),m=Vs(o);return c.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),l.jsx(or,{...s,children:l.jsx(ei,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:u,children:l.jsx(Xf,{scope:t,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:i,children:r})})})};ti.displayName=Et;var qf="MenuAnchor",yr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=St(n);return l.jsx(ar,{...o,...r,ref:t})});yr.displayName=qf;var wr="MenuPortal",[Zf,ni]=Ye(wr,{forceMount:void 0}),ri=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=We(wr,t);return l.jsx(Zf,{scope:t,forceMount:n,children:l.jsx(de,{present:n||a.open,children:l.jsx(Wt,{asChild:!0,container:o,children:r})})})};ri.displayName=wr;var ce="MenuContent",[Jf,xr]=Ye(ce),oi=c.forwardRef((e,t)=>{const n=ni(ce,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=We(ce,e.__scopeMenu),i=Rt(ce,e.__scopeMenu);return l.jsx(At.Provider,{scope:e.__scopeMenu,children:l.jsx(de,{present:r||a.open,children:l.jsx(At.Slot,{scope:e.__scopeMenu,children:i.modal?l.jsx(Qf,{...o,ref:t}):l.jsx(ep,{...o,ref:t})})})})}),Qf=c.forwardRef((e,t)=>{const n=We(ce,e.__scopeMenu),r=c.useRef(null),o=Z(t,r);return c.useEffect(()=>{const a=r.current;if(a)return On(a)},[]),l.jsx(Cr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ep=c.forwardRef((e,t)=>{const n=We(ce,e.__scopeMenu);return l.jsx(Cr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Cr=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,disableOutsideScroll:b,...h}=e,w=We(ce,n),y=Rt(ce,n),x=St(n),A=Qs(n),C=Kf(n),[E,_]=c.useState(null),N=c.useRef(null),k=Z(t,N,w.onContentChange),B=c.useRef(0),F=c.useRef(""),K=c.useRef(0),O=c.useRef(null),U=c.useRef("right"),W=c.useRef(0),J=b?Kt:c.Fragment,$=b?{as:ke,allowPinchZoom:!0}:void 0,X=R=>{var ue,ze;const Y=F.current+R,G=C().filter(ne=>!ne.disabled),le=document.activeElement,Pe=(ue=G.find(ne=>ne.ref.current===le))==null?void 0:ue.textValue,ge=G.map(ne=>ne.textValue),Xe=fp(ge,Y,Pe),we=(ze=G.find(ne=>ne.textValue===Xe))==null?void 0:ze.ref.current;(function ne(Be){F.current=Be,window.clearTimeout(B.current),Be!==""&&(B.current=window.setTimeout(()=>ne(""),1e3))})(Y),we&&setTimeout(()=>we.focus())};c.useEffect(()=>()=>window.clearTimeout(B.current),[]),Rn();const T=c.useCallback(R=>{var G,le;return U.current===((G=O.current)==null?void 0:G.side)&&mp(R,(le=O.current)==null?void 0:le.area)},[]);return l.jsx(Jf,{scope:n,searchRef:F,onItemEnter:c.useCallback(R=>{T(R)&&R.preventDefault()},[T]),onItemLeave:c.useCallback(R=>{var Y;T(R)||((Y=N.current)==null||Y.focus(),_(null))},[T]),onTriggerLeave:c.useCallback(R=>{T(R)&&R.preventDefault()},[T]),pointerGraceTimerRef:K,onPointerGraceIntentChange:c.useCallback(R=>{O.current=R},[]),children:l.jsx(J,{...$,children:l.jsx($t,{asChild:!0,trapped:o,onMountAutoFocus:j(a,R=>{var Y;R.preventDefault(),(Y=N.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:l.jsx(Ft,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,children:l.jsx(zf,{asChild:!0,...A,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:j(d,R=>{y.isUsingKeyboardRef.current||R.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(qa,{role:"menu","aria-orientation":"vertical","data-state":Ci(w.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:k,style:{outline:"none",...h.style},onKeyDown:j(h.onKeyDown,R=>{const G=R.target.closest("[data-radix-menu-content]")===R.currentTarget,le=R.ctrlKey||R.altKey||R.metaKey,Pe=R.key.length===1;G&&(R.key==="Tab"&&R.preventDefault(),!le&&Pe&&X(R.key));const ge=N.current;if(R.target!==ge||!Vf.includes(R.key))return;R.preventDefault();const we=C().filter(ue=>!ue.disabled).map(ue=>ue.ref.current);Zs.includes(R.key)&&we.reverse(),up(we)}),onBlur:j(e.onBlur,R=>{R.currentTarget.contains(R.target)||(window.clearTimeout(B.current),F.current="")}),onPointerMove:j(e.onPointerMove,Pt(R=>{const Y=R.target,G=W.current!==R.clientX;if(R.currentTarget.contains(Y)&&G){const le=R.clientX>W.current?"right":"left";U.current=le,W.current=R.clientX}}))})})})})})})});oi.displayName=ce;var tp="MenuGroup",Er=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(V.div,{role:"group",...r,ref:t})});Er.displayName=tp;var np="MenuLabel",ai=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(V.div,{...r,ref:t})});ai.displayName=np;var un="MenuItem",si="menu.itemSelect",dn=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=Rt(un,e.__scopeMenu),s=xr(un,e.__scopeMenu),d=Z(t,a),u=c.useRef(!1),f=()=>{const p=a.current;if(!n&&p){const m=new CustomEvent(si,{bubbles:!0,cancelable:!0});p.addEventListener(si,v=>r==null?void 0:r(v),{once:!0}),no(p,m),m.defaultPrevented?u.current=!1:i.onClose()}};return l.jsx(ii,{...o,ref:d,disabled:n,onClick:j(e.onClick,f),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),u.current=!0},onPointerUp:j(e.onPointerUp,p=>{var m;u.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:j(e.onKeyDown,p=>{const m=s.searchRef.current!=="";n||m&&p.key===" "||br.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});dn.displayName=un;var ii=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=xr(un,n),s=Qs(n),d=c.useRef(null),u=Z(t,d),[f,p]=c.useState(!1),[m,v]=c.useState("");return c.useEffect(()=>{const b=d.current;b&&v((b.textContent??"").trim())},[a.children]),l.jsx(At.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:l.jsx(Bf,{asChild:!0,...s,focusable:!r,children:l.jsx(V.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:j(e.onPointerMove,Pt(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,Pt(b=>i.onItemLeave(b))),onFocus:j(e.onFocus,()=>p(!0)),onBlur:j(e.onBlur,()=>p(!1))})})})}),rp="MenuCheckboxItem",ci=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return l.jsx(pi,{scope:e.__scopeMenu,checked:n,children:l.jsx(dn,{role:"menuitemcheckbox","aria-checked":fn(n)?"mixed":n,...o,ref:t,"data-state":Rr(n),onSelect:j(o.onSelect,()=>r==null?void 0:r(fn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ci.displayName=rp;var li="MenuRadioGroup",[op,ap]=Ye(li,{value:void 0,onValueChange:()=>{}}),ui=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=oe(r);return l.jsx(op,{scope:e.__scopeMenu,value:n,onValueChange:a,children:l.jsx(Er,{...o,ref:t})})});ui.displayName=li;var di="MenuRadioItem",fi=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=ap(di,e.__scopeMenu),a=n===o.value;return l.jsx(pi,{scope:e.__scopeMenu,checked:a,children:l.jsx(dn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Rr(a),onSelect:j(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});fi.displayName=di;var Ar="MenuItemIndicator",[pi,sp]=Ye(Ar,{checked:!1}),mi=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=sp(Ar,n);return l.jsx(de,{present:r||fn(a.checked)||a.checked===!0,children:l.jsx(V.span,{...o,ref:t,"data-state":Rr(a.checked)})})});mi.displayName=Ar;var ip="MenuSeparator",gi=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(V.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});gi.displayName=ip;var cp="MenuArrow",hi=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=St(n);return l.jsx(Za,{...o,...r,ref:t})});hi.displayName=cp;var Sr="MenuSub",[lp,vi]=Ye(Sr),bi=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=We(Sr,t),i=St(t),[s,d]=c.useState(null),[u,f]=c.useState(null),p=oe(o);return c.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),l.jsx(or,{...i,children:l.jsx(ei,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:f,children:l.jsx(lp,{scope:t,contentId:Ee(),triggerId:Ee(),trigger:s,onTriggerChange:d,children:n})})})};bi.displayName=Sr;var Nt="MenuSubTrigger",yi=c.forwardRef((e,t)=>{const n=We(Nt,e.__scopeMenu),r=Rt(Nt,e.__scopeMenu),o=vi(Nt,e.__scopeMenu),a=xr(Nt,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=a,u={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const p=s.current;return()=>{window.clearTimeout(p),d(null)}},[s,d]),l.jsx(yr,{asChild:!0,...u,children:l.jsx(ii,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ci(n.open),...e,ref:Lt(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,Pt(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:j(e.onPointerLeave,Pt(p=>{var v,b;f();const m=(v=n.content)==null?void 0:v.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,w=h==="right",y=w?-5:5,x=m[w?"left":"right"],A=m[w?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x,y:m.top},{x:A,y:m.top},{x:A,y:m.bottom},{x,y:m.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,p=>{var v;const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||Uf[r.dir].includes(p.key)&&(n.onOpenChange(!0),(v=n.content)==null||v.focus(),p.preventDefault())})})})});yi.displayName=Nt;var wi="MenuSubContent",xi=c.forwardRef((e,t)=>{const n=ni(ce,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=We(ce,e.__scopeMenu),i=Rt(ce,e.__scopeMenu),s=vi(wi,e.__scopeMenu),d=c.useRef(null),u=Z(t,d);return l.jsx(At.Provider,{scope:e.__scopeMenu,children:l.jsx(de,{present:r||a.open,children:l.jsx(At.Slot,{scope:e.__scopeMenu,children:l.jsx(Cr,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;i.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:j(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:j(e.onKeyDown,f=>{var v;const p=f.currentTarget.contains(f.target),m=Hf[i.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),(v=s.trigger)==null||v.focus(),f.preventDefault())})})})})})});xi.displayName=wi;function Ci(e){return e?"open":"closed"}function fn(e){return e==="indeterminate"}function Rr(e){return fn(e)?"indeterminate":e?"checked":"unchecked"}function up(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function dp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function fp(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=dp(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const d=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function pp(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,d=t[a].y,u=t[i].x,f=t[i].y;d>r!=f>r&&n<(u-s)*(r-d)/(f-d)+s&&(o=!o)}return o}function mp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return pp(n,t)}function Pt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var gp=ti,hp=yr,vp=ri,bp=oi,yp=Er,wp=ai,xp=dn,Cp=ci,Ep=ui,Ap=fi,Sp=mi,Rp=gi,Np=hi,Pp=bi,Mp=yi,Dp=xi,Nr="DropdownMenu",[_p,Sm]=ie(Nr,[Js]),ee=Js(),[Op,Ei]=_p(Nr),Ai=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,d=ee(t),u=c.useRef(null),[f=!1,p]=Ue({prop:o,defaultProp:a,onChange:i});return l.jsx(Op,{scope:t,triggerId:Ee(),triggerRef:u,contentId:Ee(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(m=>!m),[p]),modal:s,children:l.jsx(gp,{...d,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};Ai.displayName=Nr;var Si="DropdownMenuTrigger",Ri=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Ei(Si,n),i=ee(n);return l.jsx(hp,{asChild:!0,...i,children:l.jsx(V.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Lt(t,a.triggerRef),onPointerDown:j(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:j(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Ri.displayName=Si;var kp="DropdownMenuPortal",Ni=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ee(t);return l.jsx(vp,{...r,...n})};Ni.displayName=kp;var Pi="DropdownMenuContent",Mi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ei(Pi,n),a=ee(n),i=c.useRef(!1);return l.jsx(bp,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,s=>{var d;i.current||(d=o.triggerRef.current)==null||d.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:j(e.onInteractOutside,s=>{const d=s.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Mi.displayName=Pi;var jp="DropdownMenuGroup",Di=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(yp,{...o,...r,ref:t})});Di.displayName=jp;var Tp="DropdownMenuLabel",_i=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(wp,{...o,...r,ref:t})});_i.displayName=Tp;var Ip="DropdownMenuItem",Oi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(xp,{...o,...r,ref:t})});Oi.displayName=Ip;var Lp="DropdownMenuCheckboxItem",ki=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Cp,{...o,...r,ref:t})});ki.displayName=Lp;var Fp="DropdownMenuRadioGroup",ji=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Ep,{...o,...r,ref:t})});ji.displayName=Fp;var $p="DropdownMenuRadioItem",Ti=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Ap,{...o,...r,ref:t})});Ti.displayName=$p;var Wp="DropdownMenuItemIndicator",Ii=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Sp,{...o,...r,ref:t})});Ii.displayName=Wp;var zp="DropdownMenuSeparator",Li=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Rp,{...o,...r,ref:t})});Li.displayName=zp;var Bp="DropdownMenuArrow",Gp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Np,{...o,...r,ref:t})});Gp.displayName=Bp;var Vp=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=ee(t),[s=!1,d]=Ue({prop:r,defaultProp:a,onChange:o});return l.jsx(Pp,{...i,open:s,onOpenChange:d,children:n})},Up="DropdownMenuSubTrigger",Fi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Mp,{...o,...r,ref:t})});Fi.displayName=Up;var Hp="DropdownMenuSubContent",$i=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Dp,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});$i.displayName=Hp;var Kp=Ai,Yp=Ri,Wi=Ni,zi=Mi,Xp=Di,Bi=_i,Gi=Oi,Vi=ki,qp=ji,Ui=Ti,Hi=Ii,Ki=Li,Zp=Vp,Yi=Fi,Xi=$i;const Jp=Kp,Qp=Yp,em=Xp,tm=Wi,nm=Zp,rm=qp,qi=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>l.jsxs(Yi,{ref:o,className:D("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,l.jsx(Bn,{className:"ml-auto"})]}));qi.displayName=Yi.displayName;const Zi=c.forwardRef(({className:e,...t},n)=>l.jsx(Xi,{ref:n,className:D("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Zi.displayName=Xi.displayName;const Ji=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(Wi,{children:l.jsx(zi,{ref:r,sideOffset:t,className:D("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ji.displayName=zi.displayName;const Qi=c.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(Gi,{ref:r,className:D("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));Qi.displayName=Gi.displayName;const ec=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>l.jsxs(Vi,{ref:o,className:D("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Hi,{children:l.jsx(xa,{className:"h-4 w-4"})})}),t]}));ec.displayName=Vi.displayName;const tc=c.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Ui,{ref:r,className:D("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Hi,{children:l.jsx(Yu,{className:"h-2 w-2 fill-current"})})}),t]}));tc.displayName=Ui.displayName;const nc=c.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(Bi,{ref:r,className:D("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));nc.displayName=Bi.displayName;const rc=c.forwardRef(({className:e,...t},n)=>l.jsx(Ki,{ref:n,className:D("-mx-1 my-1 h-px bg-muted",e),...t}));rc.displayName=Ki.displayName;const oc=({className:e,...t})=>l.jsx("span",{className:D("ml-auto text-xs tracking-widest opacity-60",e),...t});oc.displayName="DropdownMenuShortcut";const Pr=({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:D("mx-auto flex w-full justify-center",e),...t});Pr.displayName="Pagination";const Mr=c.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:D("flex flex-row items-center gap-1",e),...t}));Mr.displayName="PaginationContent";const Mt=c.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:D("",e),...t}));Mt.displayName="PaginationItem";const Dt=({className:e,isActive:t,size:n="icon",...r})=>l.jsx(at,{"aria-current":t?"page":void 0,className:D(bt({variant:t?"default":"outline",size:n}),t?"text-primary-foreground":"text-foreground",e),...r,children:r.children});Dt.displayName="PaginationLink";const Dr=({className:e,...t})=>l.jsx(Dt,{"aria-label":"Previous page",size:"default",className:D("gap-1",e),...t,children:l.jsx(Ca,{className:"h-4 w-4"})});Dr.displayName="PaginationPrevious";const _r=({className:e,...t})=>l.jsx(Dt,{"aria-label":"Next page",size:"default",className:D("gap-1",e),...t,children:l.jsx(Bn,{className:"h-4 w-4"})});_r.displayName="PaginationNext";const ac=({className:e,...t})=>l.jsxs("span",{"aria-hidden":!0,className:D("flex h-9 w-9 items-center justify-center",e),...t,children:[l.jsx(Xu,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"More pages"})]});ac.displayName="PaginationEllipsis";var Or="Progress",kr=100,[om,Rm]=ie(Or),[am,sm]=om(Or),sc=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=im,...i}=e;(o||o===0)&&!uc(o)&&console.error(cm(`${o}`,"Progress"));const s=uc(o)?o:kr;r!==null&&!dc(r,s)&&console.error(lm(`${r}`,"Progress"));const d=dc(r,s)?r:null,u=pn(d)?a(d,s):void 0;return l.jsx(am,{scope:n,value:d,max:s,children:l.jsx(V.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":pn(d)?d:void 0,"aria-valuetext":u,role:"progressbar","data-state":lc(d,s),"data-value":d??void 0,"data-max":s,...i,ref:t})})});sc.displayName=Or;var ic="ProgressIndicator",cc=c.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=sm(ic,n);return l.jsx(V.div,{"data-state":lc(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});cc.displayName=ic;function im(e,t){return`${Math.round(e/t*100)}%`}function lc(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function pn(e){return typeof e=="number"}function uc(e){return pn(e)&&!isNaN(e)&&e>0}function dc(e,t){return pn(e)&&!isNaN(e)&&e<=t&&e>=0}function cm(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${kr}\`.`}function lm(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
146
|
+
*/const yd=Re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),xd=["top","right","bottom","left"],Ie=Math.min,se=Math.max,Jt=Math.round,Qt=Math.floor,be=e=>({x:e,y:e}),wd={left:"right",right:"left",bottom:"top",top:"bottom"},Cd={start:"end",end:"start"};function Vn(e,t,n){return se(e,Ie(t,n))}function Se(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function Un(e){return e==="x"?"y":"x"}function Hn(e){return e==="y"?"height":"width"}function Fe(e){return["top","bottom"].includes(Ne(e))?"y":"x"}function Kn(e){return Un(Fe(e))}function Ed(e,t,n){n===void 0&&(n=!1);const r=st(e),o=Kn(e),a=Hn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=en(i)),[i,en(i)]}function Ad(e){const t=en(e);return[Yn(e),t,Yn(t)]}function Yn(e){return e.replace(/start|end/g,t=>Cd[t])}function Rd(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function Sd(e,t,n,r){const o=st(e);let a=Rd(Ne(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Yn)))),a}function en(e){return e.replace(/left|right|bottom|top/g,t=>wd[t])}function Nd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Na(e){return typeof e!="number"?Nd(e):{top:e,right:e,bottom:e,left:e}}function tn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Pa(e,t,n){let{reference:r,floating:o}=e;const a=Fe(t),i=Kn(t),s=Hn(i),d=Ne(t),u=a==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let v;switch(d){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:p};break;case"left":v={x:r.x-o.width,y:p};break;default:v={x:r.x,y:r.y}}switch(st(t)){case"start":v[i]-=m*(n&&u?-1:1);break;case"end":v[i]+=m*(n&&u?-1:1);break}return v}const Pd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Pa(u,r,d),m=r,v={},b=0;for(let h=0;h<s.length;h++){const{name:x,fn:y}=s[h],{x:w,y:R,data:C,reset:E}=await y({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:u,platform:i,elements:{reference:e,floating:t}});f=w??f,p=R??p,v={...v,[x]:{...v[x],...C}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=Pa(u,m,d)),h=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:v}};async function yt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:v=0}=Se(t,e),b=Na(v),x=s[m?p==="floating"?"reference":"floating":p],y=tn(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:d})),w=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},E=tn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:R,strategy:d}):w);return{top:(y.top-E.top+b.top)/C.y,bottom:(E.bottom-y.bottom+b.bottom)/C.y,left:(y.left-E.left+b.left)/C.x,right:(E.right-y.right+b.right)/C.x}}const Md=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:d}=t,{element:u,padding:f=0}=Se(e,t)||{};if(u==null)return{};const p=Na(f),m={x:n,y:r},v=Kn(o),b=Hn(v),h=await i.getDimensions(u),x=v==="y",y=x?"top":"left",w=x?"bottom":"right",R=x?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[v]-m[v]-a.floating[b],E=m[v]-a.reference[v],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let N=_?_[R]:0;(!N||!await(i.isElement==null?void 0:i.isElement(_)))&&(N=s.floating[R]||a.floating[b]);const O=C/2-E/2,G=N/2-h[b]/2-1,L=Ie(p[y],G),K=Ie(p[w],G),k=L,U=N-h[b]-K,z=N/2-h[b]/2+O,J=Vn(k,z,U),$=!d.arrow&&st(o)!=null&&z!==J&&a.reference[b]/2-(z<k?L:K)-h[b]/2<0,X=$?z<k?z-k:z-U:0;return{[v]:m[v]+X,data:{[v]:J,centerOffset:z-J-X,...$&&{alignmentOffset:X}},reset:$}}}),Dd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...x}=Se(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Ne(o),w=Fe(s),R=Ne(s)===s,C=await(d.isRTL==null?void 0:d.isRTL(u.floating)),E=m||(R||!h?[en(s)]:Ad(s)),_=b!=="none";!m&&_&&E.push(...Sd(s,h,b,C));const N=[s,...E],O=await yt(t,x),G=[];let L=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&G.push(O[y]),p){const z=Ed(o,i,C);G.push(O[z[0]],O[z[1]])}if(L=[...L,{placement:o,overflows:G}],!G.every(z=>z<=0)){var K,k;const z=(((K=a.flip)==null?void 0:K.index)||0)+1,J=N[z];if(J)return{data:{index:z,overflows:L},reset:{placement:J}};let $=(k=L.filter(X=>X.overflows[0]<=0).sort((X,j)=>X.overflows[1]-j.overflows[1])[0])==null?void 0:k.placement;if(!$)switch(v){case"bestFit":{var U;const X=(U=L.filter(j=>{if(_){const S=Fe(j.placement);return S===w||S==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(S=>S>0).reduce((S,Y)=>S+Y,0)]).sort((j,S)=>j[1]-S[1])[0])==null?void 0:U[0];X&&($=X);break}case"initialPlacement":$=s;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Ma(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Da(e){return xd.some(t=>e[t]>=0)}const _d=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Se(e,t);switch(r){case"referenceHidden":{const a=await yt(t,{...o,elementContext:"reference"}),i=Ma(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Da(i)}}}case"escaped":{const a=await yt(t,{...o,altBoundary:!0}),i=Ma(a,n.floating);return{data:{escapedOffsets:i,escaped:Da(i)}}}default:return{}}}}};async function Td(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ne(n),s=st(n),d=Fe(n)==="y",u=["left","top"].includes(i)?-1:1,f=a&&d?-1:1,p=Se(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(v=s==="end"?b*-1:b),d?{x:v*f,y:m*u}:{x:m*u,y:v*f}}const kd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,d=await Td(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:i}}}}},Od=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:x=>{let{x:y,y:w}=x;return{x:y,y:w}}},...d}=Se(e,t),u={x:n,y:r},f=await yt(t,d),p=Fe(Ne(o)),m=Un(p);let v=u[m],b=u[p];if(a){const x=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=v+f[x],R=v-f[y];v=Vn(w,v,R)}if(i){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=b+f[x],R=b-f[y];b=Vn(w,b,R)}const h=s.fn({...t,[m]:v,[p]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:a,[p]:i}}}}}},jd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:d=!0,crossAxis:u=!0}=Se(e,t),f={x:n,y:r},p=Fe(o),m=Un(p);let v=f[m],b=f[p];const h=Se(s,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(d){const R=m==="y"?"height":"width",C=a.reference[m]-a.floating[R]+x.mainAxis,E=a.reference[m]+a.reference[R]-x.mainAxis;v<C?v=C:v>E&&(v=E)}if(u){var y,w;const R=m==="y"?"width":"height",C=["top","left"].includes(Ne(o)),E=a.reference[p]-a.floating[R]+(C&&((y=i.offset)==null?void 0:y[p])||0)+(C?0:x.crossAxis),_=a.reference[p]+a.reference[R]+(C?0:((w=i.offset)==null?void 0:w[p])||0)-(C?x.crossAxis:0);b<E?b=E:b>_&&(b=_)}return{[m]:v,[p]:b}}}},Id=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:d=()=>{},...u}=Se(e,t),f=await yt(t,u),p=Ne(o),m=st(o),v=Fe(o)==="y",{width:b,height:h}=a.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,x=m==="end"?"top":"bottom");const w=h-f.top-f.bottom,R=b-f.left-f.right,C=Ie(h-f[x],w),E=Ie(b-f[y],R),_=!t.middlewareData.shift;let N=C,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=w),_&&!m){const L=se(f.left,0),K=se(f.right,0),k=se(f.top,0),U=se(f.bottom,0);v?O=b-2*(L!==0||K!==0?L+K:se(f.left,f.right)):N=h-2*(k!==0||U!==0?k+U:se(f.top,f.bottom))}await d({...t,availableWidth:O,availableHeight:N});const G=await i.getDimensions(s.floating);return b!==G.width||h!==G.height?{reset:{rects:!0}}:{}}}};function nn(){return typeof window<"u"}function it(e){return _a(e)?(e.nodeName||"").toLowerCase():"#document"}function ie(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ye(e){var t;return(t=(_a(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _a(e){return nn()?e instanceof Node||e instanceof ie(e).Node:!1}function pe(e){return nn()?e instanceof Element||e instanceof ie(e).Element:!1}function xe(e){return nn()?e instanceof HTMLElement||e instanceof ie(e).HTMLElement:!1}function Ta(e){return!nn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ie(e).ShadowRoot}function xt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Fd(e){return["table","td","th"].includes(it(e))}function rn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xn(e){const t=qn(),n=pe(e)?me(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ld(e){let t=Le(e);for(;xe(t)&&!ct(t);){if(Xn(t))return t;if(rn(t))return null;t=Le(t)}return null}function qn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ct(e){return["html","body","#document"].includes(it(e))}function me(e){return ie(e).getComputedStyle(e)}function on(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Le(e){if(it(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ta(e)&&e.host||ye(e);return Ta(t)?t.host:t}function ka(e){const t=Le(e);return ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&xt(t)?t:ka(t)}function wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ka(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=ie(o);if(a){const s=Zn(i);return t.concat(i,i.visualViewport||[],xt(o)?o:[],s&&n?wt(s):[])}return t.concat(o,wt(o,[],n))}function Zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oa(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xe(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Jt(n)!==a||Jt(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Jn(e){return pe(e)?e:e.contextElement}function lt(e){const t=Jn(e);if(!xe(t))return be(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Oa(t);let i=(a?Jt(n.width):n.width)/r,s=(a?Jt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const $d=be(0);function ja(e){const t=ie(e);return!qn()||!t.visualViewport?$d:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ie(e)?!1:t}function Ke(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Jn(e);let i=be(1);t&&(r?pe(r)&&(i=lt(r)):i=lt(e));const s=Wd(a,n,r)?ja(a):be(0);let d=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const m=ie(a),v=r&&pe(r)?ie(r):r;let b=m,h=Zn(b);for(;h&&r&&v!==b;){const x=lt(h),y=h.getBoundingClientRect(),w=me(h),R=y.left+(h.clientLeft+parseFloat(w.paddingLeft))*x.x,C=y.top+(h.clientTop+parseFloat(w.paddingTop))*x.y;d*=x.x,u*=x.y,f*=x.x,p*=x.y,d+=R,u+=C,b=ie(h),h=Zn(b)}}return tn({width:f,height:p,x:d,y:u})}function Qn(e,t){const n=on(e).scrollLeft;return t?t.left+n:Ke(ye(e)).left+n}function Ia(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Qn(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function zd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=ye(r),s=t?rn(t.floating):!1;if(r===i||s&&a)return n;let d={scrollLeft:0,scrollTop:0},u=be(1);const f=be(0),p=xe(r);if((p||!p&&!a)&&((it(r)!=="body"||xt(i))&&(d=on(r)),xe(r))){const v=Ke(r);u=lt(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const m=i&&!p&&!a?Ia(i,d,!0):be(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+f.x+m.x,y:n.y*u.y-d.scrollTop*u.y+f.y+m.y}}function Bd(e){return Array.from(e.getClientRects())}function Gd(e){const t=ye(e),n=on(e),r=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Qn(e);const s=-n.scrollTop;return me(r).direction==="rtl"&&(i+=se(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Vd(e,t){const n=ie(e),r=ye(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,d=0;if(o){a=o.width,i=o.height;const u=qn();(!u||u&&t==="fixed")&&(s=o.offsetLeft,d=o.offsetTop)}return{width:a,height:i,x:s,y:d}}function Ud(e,t){const n=Ke(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=xe(e)?lt(e):be(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,d=o*a.x,u=r*a.y;return{width:i,height:s,x:d,y:u}}function Fa(e,t,n){let r;if(t==="viewport")r=Vd(e,n);else if(t==="document")r=Gd(ye(e));else if(pe(t))r=Ud(t,n);else{const o=ja(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return tn(r)}function La(e,t){const n=Le(e);return n===t||!pe(n)||ct(n)?!1:me(n).position==="fixed"||La(n,t)}function Hd(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(s=>pe(s)&&it(s)!=="body"),o=null;const a=me(e).position==="fixed";let i=a?Le(e):e;for(;pe(i)&&!ct(i);){const s=me(i),d=Xn(i);!d&&s.position==="fixed"&&(o=null),(a?!d&&!o:!d&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||xt(i)&&!d&&La(e,i))?r=r.filter(f=>f!==i):o=s,i=Le(i)}return t.set(e,r),r}function Kd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?rn(t)?[]:Hd(t,this._c):[].concat(n),r],s=i[0],d=i.reduce((u,f)=>{const p=Fa(t,f,o);return u.top=se(p.top,u.top),u.right=Ie(p.right,u.right),u.bottom=Ie(p.bottom,u.bottom),u.left=se(p.left,u.left),u},Fa(t,s,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Yd(e){const{width:t,height:n}=Oa(e);return{width:t,height:n}}function Xd(e,t,n){const r=xe(t),o=ye(t),a=n==="fixed",i=Ke(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const d=be(0);if(r||!r&&!a)if((it(t)!=="body"||xt(o))&&(s=on(t)),r){const m=Ke(t,!0,a,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&(d.x=Qn(o));const u=o&&!r&&!a?Ia(o,s):be(0),f=i.left+s.scrollLeft-d.x-u.x,p=i.top+s.scrollTop-d.y-u.y;return{x:f,y:p,width:i.width,height:i.height}}function er(e){return me(e).position==="static"}function $a(e,t){if(!xe(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ye(e)===n&&(n=n.ownerDocument.body),n}function Wa(e,t){const n=ie(e);if(rn(e))return n;if(!xe(e)){let o=Le(e);for(;o&&!ct(o);){if(pe(o)&&!er(o))return o;o=Le(o)}return n}let r=$a(e,t);for(;r&&Fd(r)&&er(r);)r=$a(r,t);return r&&ct(r)&&er(r)&&!Xn(r)?n:r||Ld(e)||n}const qd=async function(e){const t=this.getOffsetParent||Wa,n=this.getDimensions,r=await n(e.floating);return{reference:Xd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Zd(e){return me(e).direction==="rtl"}const Jd={convertOffsetParentRelativeRectToViewportRelativeRect:zd,getDocumentElement:ye,getClippingRect:Kd,getOffsetParent:Wa,getElementRects:qd,getClientRects:Bd,getDimensions:Yd,getScale:lt,isElement:pe,isRTL:Zd};function Qd(e,t){let n=null,r;const o=ye(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),a();const{left:u,top:f,width:p,height:m}=e.getBoundingClientRect();if(s||t(),!p||!m)return;const v=Qt(f),b=Qt(o.clientWidth-(u+p)),h=Qt(o.clientHeight-(f+m)),x=Qt(u),w={rootMargin:-v+"px "+-b+"px "+-h+"px "+-x+"px",threshold:se(0,Ie(1,d))||1};let R=!0;function C(E){const _=E[0].intersectionRatio;if(_!==d){if(!R)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return i(!0),a}function ef(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=Jn(e),f=o||a?[...u?wt(u):[],...wt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const p=u&&s?Qd(u,n):null;let m=-1,v=null;i&&(v=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(t)})),n()}),u&&!d&&v.observe(u),v.observe(t));let b,h=d?Ke(e):null;d&&x();function x(){const y=Ke(e);h&&(y.x!==h.x||y.y!==h.y||y.width!==h.width||y.height!==h.height)&&n(),h=y,b=requestAnimationFrame(x)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),p==null||p(),(y=v)==null||y.disconnect(),v=null,d&&cancelAnimationFrame(b)}}const tf=kd,nf=Od,rf=Dd,of=Id,af=_d,za=Md,sf=jd,cf=(e,t,n)=>{const r=new Map,o={platform:Jd,...n},a={...o.platform,_c:r};return Pd(e,t,{...o,platform:a})};var an=typeof document<"u"?B.useLayoutEffect:B.useEffect;function sn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!sn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!sn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ba(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ga(e,t){const n=Ba(e);return Math.round(t*n)/n}function tr(e){const t=c.useRef(e);return an(()=>{t.current=e}),t}function lf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:d,open:u}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=c.useState(r);sn(m,r)||v(r);const[b,h]=c.useState(null),[x,y]=c.useState(null),w=c.useCallback(j=>{j!==_.current&&(_.current=j,h(j))},[]),R=c.useCallback(j=>{j!==N.current&&(N.current=j,y(j))},[]),C=a||b,E=i||x,_=c.useRef(null),N=c.useRef(null),O=c.useRef(f),G=d!=null,L=tr(d),K=tr(o),k=tr(u),U=c.useCallback(()=>{if(!_.current||!N.current)return;const j={placement:t,strategy:n,middleware:m};K.current&&(j.platform=K.current),cf(_.current,N.current,j).then(S=>{const Y={...S,isPositioned:k.current!==!1};z.current&&!sn(O.current,Y)&&(O.current=Y,Gr.flushSync(()=>{p(Y)}))})},[m,t,n,K,k]);an(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,p(j=>({...j,isPositioned:!1})))},[u]);const z=c.useRef(!1);an(()=>(z.current=!0,()=>{z.current=!1}),[]),an(()=>{if(C&&(_.current=C),E&&(N.current=E),C&&E){if(L.current)return L.current(C,E,U);U()}},[C,E,U,L,G]);const J=c.useMemo(()=>({reference:_,floating:N,setReference:w,setFloating:R}),[w,R]),$=c.useMemo(()=>({reference:C,floating:E}),[C,E]),X=c.useMemo(()=>{const j={position:n,left:0,top:0};if(!$.floating)return j;const S=Ga($.floating,f.x),Y=Ga($.floating,f.y);return s?{...j,transform:"translate("+S+"px, "+Y+"px)",...Ba($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:Y}},[n,s,$.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:U,refs:J,elements:$,floatingStyles:X}),[f,U,J,$,X])}const uf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?za({element:r.current,padding:o}).fn(n):{}:r?za({element:r,padding:o}).fn(n):{}}}},df=(e,t)=>({...tf(e),options:[e,t]}),ff=(e,t)=>({...nf(e),options:[e,t]}),pf=(e,t)=>({...sf(e),options:[e,t]}),mf=(e,t)=>({...rf(e),options:[e,t]}),gf=(e,t)=>({...of(e),options:[e,t]}),hf=(e,t)=>({...af(e),options:[e,t]}),vf=(e,t)=>({...uf(e),options:[e,t]});var bf="Arrow",Va=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return l.jsx(W.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});Va.displayName=bf;var yf=Va;function nr(e){const[t,n]=c.useState(void 0);return Ee(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;i=u.inlineSize,s=u.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var rr="Popper",[Ua,cn]=oe(rr),[xf,Ha]=Ua(rr),Ka=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return l.jsx(xf,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ka.displayName=rr;var Ya="PopperAnchor",Xa=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ha(Ya,n),i=c.useRef(null),s=Z(t,i);return c.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l.jsx(W.div,{...o,ref:s})});Xa.displayName=Ya;var or="PopperContent",[wf,Cf]=Ua(or),qa=c.forwardRef((e,t)=>{var de,Be,ne,Ge,_t,dt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:b,...h}=e,x=Ha(or,n),[y,w]=c.useState(null),R=Z(t,Ve=>w(Ve)),[C,E]=c.useState(null),_=nr(C),N=(_==null?void 0:_.width)??0,O=(_==null?void 0:_.height)??0,G=r+(a!=="center"?"-"+a:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},K=Array.isArray(u)?u:[u],k=K.length>0,U={padding:L,boundary:K.filter(Af),altBoundary:k},{refs:z,floatingStyles:J,placement:$,isPositioned:X,middlewareData:j}=lf({strategy:"fixed",placement:G,whileElementsMounted:(...Ve)=>ef(...Ve,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[df({mainAxis:o+O,alignmentAxis:i}),d&&ff({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?pf():void 0,...U}),d&&mf({...U}),gf({...U,apply:({elements:Ve,rects:ft,availableWidth:Tt,availableHeight:Wr})=>{const{width:gn,height:hn}=ft.reference,qe=Ve.floating.style;qe.setProperty("--radix-popper-available-width",`${Tt}px`),qe.setProperty("--radix-popper-available-height",`${Wr}px`),qe.setProperty("--radix-popper-anchor-width",`${gn}px`),qe.setProperty("--radix-popper-anchor-height",`${hn}px`)}}),C&&vf({element:C,padding:s}),Rf({arrowWidth:N,arrowHeight:O}),m&&hf({strategy:"referenceHidden",...U})]}),[S,Y]=Qa($),V=ae(b);Ee(()=>{X&&(V==null||V())},[X,V]);const ue=(de=j.arrow)==null?void 0:de.x,Pe=(Be=j.arrow)==null?void 0:Be.y,ge=((ne=j.arrow)==null?void 0:ne.centerOffset)!==0,[Xe,we]=c.useState();return Ee(()=>{y&&we(window.getComputedStyle(y).zIndex)},[y]),l.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:X?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Xe,"--radix-popper-transform-origin":[(Ge=j.transformOrigin)==null?void 0:Ge.x,(_t=j.transformOrigin)==null?void 0:_t.y].join(" "),...((dt=j.hide)==null?void 0:dt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(wf,{scope:n,placedSide:S,onArrowChange:E,arrowX:ue,arrowY:Pe,shouldHideArrow:ge,children:l.jsx(W.div,{"data-side":S,"data-align":Y,...h,ref:R,style:{...h.style,animation:X?void 0:"none"}})})})});qa.displayName=or;var Za="PopperArrow",Ef={top:"bottom",right:"left",bottom:"top",left:"right"},Ja=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Cf(Za,r),i=Ef[a.placedSide];return l.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:l.jsx(yf,{...o,ref:n,style:{...o.style,display:"block"}})})});Ja.displayName=Za;function Af(e){return e!==null}var Rf=e=>({name:"transformOrigin",options:e,fn(t){var x,y,w;const{placement:n,rects:r,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,s=i?0:e.arrowWidth,d=i?0:e.arrowHeight,[u,f]=Qa(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,v=(((w=o.arrow)==null?void 0:w.y)??0)+d/2;let b="",h="";return u==="bottom"?(b=i?p:`${m}px`,h=`${-d}px`):u==="top"?(b=i?p:`${m}px`,h=`${r.floating.height+d}px`):u==="right"?(b=`${-d}px`,h=i?p:`${v}px`):u==="left"&&(b=`${r.floating.width+d}px`,h=i?p:`${v}px`),{data:{x:b,y:h}}}});function Qa(e){const[t,n="center"]=e.split("-");return[t,n]}var ar=Ka,sr=Xa,es=qa,ts=Ja,ir="Popover",[ns,Vm]=oe(ir,[cn]),Ct=cn(),[Sf,$e]=ns(ir),rs=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Ct(t),d=c.useRef(null),[u,f]=c.useState(!1),[p=!1,m]=ke({prop:r,defaultProp:o,onChange:a});return l.jsx(ar,{...s,children:l.jsx(Sf,{scope:t,contentId:he(),triggerRef:d,open:p,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(v=>!v),[m]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:i,children:n})})};rs.displayName=ir;var os="PopoverAnchor",as=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=$e(os,n),a=Ct(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return c.useEffect(()=>(i(),()=>s()),[i,s]),l.jsx(sr,{...a,...r,ref:t})});as.displayName=os;var ss="PopoverTrigger",is=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=$e(ss,n),a=Ct(n),i=Z(t,o.triggerRef),s=l.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fs(o.open),...r,ref:i,onClick:T(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:l.jsx(sr,{asChild:!0,...a,children:s})});is.displayName=ss;var cr="PopoverPortal",[Nf,Pf]=ns(cr,{forceMount:void 0}),cs=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=$e(cr,t);return l.jsx(Nf,{scope:t,forceMount:n,children:l.jsx(ce,{present:n||a.open,children:l.jsx(Wt,{asChild:!0,container:o,children:r})})})};cs.displayName=cr;var ut="PopoverContent",ls=c.forwardRef((e,t)=>{const n=Pf(ut,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=$e(ut,e.__scopePopover);return l.jsx(ce,{present:r||a.open,children:a.modal?l.jsx(Mf,{...o,ref:t}):l.jsx(Df,{...o,ref:t})})});ls.displayName=ut;var Mf=c.forwardRef((e,t)=>{const n=$e(ut,e.__scopePopover),r=c.useRef(null),o=Z(t,r),a=c.useRef(!1);return c.useEffect(()=>{const i=r.current;if(i)return kn(i)},[]),l.jsx(Kt,{as:Oe,allowPinchZoom:!0,children:l.jsx(us,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:T(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:T(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,d=s.button===0&&s.ctrlKey===!0,u=s.button===2||d;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:T(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Df=c.forwardRef((e,t)=>{const n=$e(ut,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return l.jsx(us,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),us=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,...p}=e,m=$e(ut,n),v=Ct(n);return Nn(),l.jsx($t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(Lt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:l.jsx(es,{"data-state":fs(m.open),role:"dialog",id:m.contentId,...v,...p,ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ds="PopoverClose",_f=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=$e(ds,n);return l.jsx(W.button,{type:"button",...r,ref:t,onClick:T(e.onClick,()=>o.onOpenChange(!1))})});_f.displayName=ds;var Tf="PopoverArrow",kf=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ct(n);return l.jsx(ts,{...o,...r,ref:t})});kf.displayName=Tf;function fs(e){return e?"open":"closed"}var Of=rs,jf=as,If=is,Ff=cs,ps=ls;const ms=Of,gs=If,Lf=jf,lr=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>l.jsx(Ff,{children:l.jsx(ps,{ref:o,align:t,sideOffset:n,className:D("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));lr.displayName=ps.displayName;function $f(e){const{value:t="",onChange:n,options:r,className:o,placeholder:a="Search...",emptyMessage:i="Nothing found"}=e,[s,d]=B.useState(t),[u,f]=B.useState(r),[p,m]=B.useState(-1),[v,b]=B.useState(!1),h=C=>{const E=C.target.value;d(E),n==null||n(E),m(-1),b(!0),E.trim()===""?f(r):f(r.filter(_=>_.label.toLowerCase().includes(E.toLowerCase())))},x=C=>{if(C.key==="ArrowDown")C.preventDefault(),m(E=>E<u.length-1?E+1:E);else if(C.key==="ArrowUp")C.preventDefault(),m(E=>E>0?E-1:-1);else if(C.key==="Enter"&&p>=0){const E=u[p];d(E.label),n==null||n(E.value),f([]),m(-1),b(!1)}else C.key==="Escape"&&(f([]),m(-1))},y=C=>{b(!1),d(C.label),n==null||n(C.value),f(r),m(-1)},w=()=>{b(!0)},R=()=>{b(!1)};return l.jsxs(ms,{open:v,children:[l.jsx(gs,{asChild:!0,children:l.jsx("div",{className:"relative w-full",children:l.jsx(It,{type:"text",placeholder:a,value:s,onChange:h,onKeyDown:x,onClick:w,onFocus:w,onBlur:R,className:D("pr-10",o),"aria-label":"Search field","aria-autocomplete":"list","aria-controls":"suggestions-list","aria-expanded":u.length>0,leftIcon:l.jsx(bd,{className:"w-4 h-4"})})})}),l.jsx(lr,{className:"p-0 w-[var(--radix-popover-trigger-width)] max-h-96 overflow-y-auto",children:u.length>0?l.jsx("ul",{id:"suggestions-list",role:"listbox",children:u.map((C,E)=>l.jsx("li",{className:`px-4 py-2 cursor-pointer hover:bg-muted ${E===p?"bg-muted":""}`,onClick:()=>y(C),role:"option","aria-selected":E===p,children:C.label},C.value))}):l.jsx("span",{className:"px-4 py-2 block",children:i})})]})}var ur="Avatar",[Wf,Um]=oe(ur),[zf,hs]=Wf(ur),vs=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=c.useState("idle");return l.jsx(zf,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:l.jsx(W.span,{...r,ref:t})})});vs.displayName=ur;var bs="AvatarImage",ys=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=hs(bs,n),s=Bf(r,a.referrerPolicy),d=ae(u=>{o(u),i.onImageLoadingStatusChange(u)});return Ee(()=>{s!=="idle"&&d(s)},[s,d]),s==="loaded"?l.jsx(W.img,{...a,ref:t,src:r}):null});ys.displayName=bs;var xs="AvatarFallback",ws=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=hs(xs,n),[i,s]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(d)}},[r]),i&&a.imageLoadingStatus!=="loaded"?l.jsx(W.span,{...o,ref:t}):null});ws.displayName=xs;function Bf(e,t){const[n,r]=c.useState("idle");return Ee(()=>{if(!e){r("error");return}let o=!0;const a=new window.Image,i=s=>()=>{o&&r(s)};return r("loading"),a.onload=i("loaded"),a.onerror=i("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var Cs=vs,Es=ys,As=ws;const Rs=c.forwardRef(({className:e,...t},n)=>l.jsx(Cs,{ref:n,className:D("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Rs.displayName=Cs.displayName;const Ss=c.forwardRef(({className:e,...t},n)=>l.jsx(Es,{ref:n,className:D("aspect-square h-full w-full",e),...t}));Ss.displayName=Es.displayName;const Ns=c.forwardRef(({className:e,...t},n)=>l.jsx(As,{ref:n,className:D("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ns.displayName=As.displayName;const Ps=wn("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Gf({className:e,variant:t,...n}){return l.jsx("div",{className:D(Ps({variant:t}),e),...n})}const Ms=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ms.displayName="Card";const Ds=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("flex flex-col space-y-1.5 p-6",e),...t}));Ds.displayName="CardHeader";const _s=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("font-semibold leading-none tracking-tight pb-4",e),...t}));_s.displayName="CardTitle";const Ts=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("text-sm text-muted-foreground",e),...t}));Ts.displayName="CardDescription";const ks=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("p-6 py-0",e),...t}));ks.displayName="CardContent";const Os=c.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:D("flex items-center p-6 pt-6",e),...t}));Os.displayName="CardFooter";function js(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var dr="Checkbox",[Vf,Hm]=oe(dr),[Uf,Hf]=Vf(dr),Is=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:d="on",onCheckedChange:u,form:f,...p}=e,[m,v]=c.useState(null),b=Z(t,C=>v(C)),h=c.useRef(!1),x=m?f||!!m.closest("form"):!0,[y=!1,w]=ke({prop:o,defaultProp:a,onChange:u}),R=c.useRef(y);return c.useEffect(()=>{const C=m==null?void 0:m.form;if(C){const E=()=>w(R.current);return C.addEventListener("reset",E),()=>C.removeEventListener("reset",E)}},[m,w]),l.jsxs(Uf,{scope:n,state:y,disabled:s,children:[l.jsx(W.button,{type:"button",role:"checkbox","aria-checked":We(y)?"mixed":y,"aria-required":i,"data-state":$s(y),"data-disabled":s?"":void 0,disabled:s,value:d,...p,ref:b,onKeyDown:T(e.onKeyDown,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:T(e.onClick,C=>{w(E=>We(E)?!0:!E),x&&(h.current=C.isPropagationStopped(),h.current||C.stopPropagation())})}),x&&l.jsx(Kf,{control:m,bubbles:!h.current,name:r,value:d,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"},defaultChecked:We(a)?!1:a})]})});Is.displayName=dr;var Fs="CheckboxIndicator",Ls=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=Hf(Fs,n);return l.jsx(ce,{present:r||We(a.state)||a.state===!0,children:l.jsx(W.span,{"data-state":$s(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Ls.displayName=Fs;var Kf=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...a}=e,i=c.useRef(null),s=js(n),d=nr(t);c.useEffect(()=>{const f=i.current,p=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(p,"checked").set;if(s!==n&&v){const b=new Event("click",{bubbles:r});f.indeterminate=We(n),v.call(f,We(n)?!1:n),f.dispatchEvent(b)}},[s,n,r]);const u=c.useRef(We(n)?!1:n);return l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??u.current,...a,tabIndex:-1,ref:i,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function We(e){return e==="indeterminate"}function $s(e){return We(e)?"indeterminate":e?"checked":"unchecked"}var Ws=Is,Yf=Ls;const zs=c.forwardRef(({className:e,...t},n)=>l.jsx(Ws,{ref:n,className:D("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:l.jsx(Yf,{className:D("flex items-center justify-center text-current"),children:l.jsx(Ra,{className:"h-4 w-4"})})}));zs.displayName=Ws.displayName;const Bs=B.forwardRef((e,t)=>{const{currencySymbol:n="$",decimalSeparator:r=".",thousandSeparator:o=",",onValueChange:a,className:i,value:s=0,...d}=e,u=B.useRef(null);B.useImperativeHandle(t,()=>u.current);const[f,p]=B.useState(""),m=h=>{const x=h.toFixed(2).split("."),y=x[0].replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${n} ${y}${r}${x[1]}`},v=h=>{const x=h.target.value,y=parseFloat(x.replace(/\D/g,""))/100;p(m(y)),a(y),u.current&&window.requestAnimationFrame(()=>{var w;(w=u.current)==null||w.setSelectionRange(u.current.value.length,u.current.value.length)})},b=()=>{u.current&&u.current.setSelectionRange(u.current.value.length,u.current.value.length)};return B.useEffect(()=>{p(m(+s))},[s]),l.jsx(It,{type:"text",inputMode:"numeric",value:f,ref:u,onChange:v,onFocus:b,onClick:b,placeholder:`${n} 0${r}00`,className:i,...d})});Bs.displayName="CurrencyInput";const Gs=Yo,Vs=Xo,Us=qo,Xf=Zt,fr=c.forwardRef(({className:e,...t},n)=>l.jsx(Ln,{ref:n,className:D("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));fr.displayName=Ln.displayName;const pr=c.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Us,{children:[l.jsx(fr,{}),l.jsxs($n,{ref:r,className:D("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border","bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","sm:rounded-lg max-h-[100dvh] overflow-y-auto",e),...n,children:[t,l.jsxs(Zt,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[l.jsx(yd,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));pr.displayName=$n.displayName;const mr=({className:e,...t})=>l.jsx("div",{className:D("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});mr.displayName="DialogHeader";const Hs=({className:e,...t})=>l.jsx("div",{className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Hs.displayName="DialogFooter";const gr=c.forwardRef(({className:e,...t},n)=>l.jsx(Wn,{ref:n,className:D("text-lg font-semibold leading-none tracking-tight",e),...t}));gr.displayName=Wn.displayName;const hr=c.forwardRef(({className:e,...t},n)=>l.jsx(zn,{ref:n,className:D("text-sm text-muted-foreground",e),...t}));hr.displayName=zn.displayName;function Ks(e){const t=e+"CollectionProvider",[n,r]=oe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:b,children:h}=v,x=B.useRef(null),y=B.useRef(new Map).current;return l.jsx(o,{scope:b,itemMap:y,collectionRef:x,children:h})};i.displayName=t;const s=e+"CollectionSlot",d=B.forwardRef((v,b)=>{const{scope:h,children:x}=v,y=a(s,h),w=Z(b,y.collectionRef);return l.jsx(Oe,{ref:w,children:x})});d.displayName=s;const u=e+"CollectionItemSlot",f="data-radix-collection-item",p=B.forwardRef((v,b)=>{const{scope:h,children:x,...y}=v,w=B.useRef(null),R=Z(b,w),C=a(u,h);return B.useEffect(()=>(C.itemMap.set(w,{ref:w,...y}),()=>void C.itemMap.delete(w))),l.jsx(Oe,{[f]:"",ref:R,children:x})});p.displayName=u;function m(v){const b=a(e+"CollectionConsumer",v);return B.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const y=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((C,E)=>y.indexOf(C.ref.current)-y.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:d,ItemSlot:p},m,r]}var qf=c.createContext(void 0);function vr(e){const t=c.useContext(qf);return e||t||"ltr"}var br="rovingFocusGroup.onEntryFocus",Zf={bubbles:!1,cancelable:!0},ln="RovingFocusGroup",[yr,Ys,Jf]=Ks(ln),[Qf,un]=oe(ln,[Jf]),[ep,tp]=Qf(ln),Xs=c.forwardRef((e,t)=>l.jsx(yr.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(yr.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(np,{...e,ref:t})})}));Xs.displayName=ln;var np=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,m=c.useRef(null),v=Z(t,m),b=vr(a),[h=null,x]=ke({prop:i,defaultProp:s,onChange:d}),[y,w]=c.useState(!1),R=ae(u),C=Ys(n),E=c.useRef(!1),[_,N]=c.useState(0);return c.useEffect(()=>{const O=m.current;if(O)return O.addEventListener(br,R),()=>O.removeEventListener(br,R)},[R]),l.jsx(ep,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:c.useCallback(O=>x(O),[x]),onItemShiftTab:c.useCallback(()=>w(!0),[]),onFocusableItemAdd:c.useCallback(()=>N(O=>O+1),[]),onFocusableItemRemove:c.useCallback(()=>N(O=>O-1),[]),children:l.jsx(W.div,{tabIndex:y||_===0?-1:0,"data-orientation":r,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:T(e.onMouseDown,()=>{E.current=!0}),onFocus:T(e.onFocus,O=>{const G=!E.current;if(O.target===O.currentTarget&&G&&!y){const L=new CustomEvent(br,Zf);if(O.currentTarget.dispatchEvent(L),!L.defaultPrevented){const K=C().filter($=>$.focusable),k=K.find($=>$.active),U=K.find($=>$.id===h),J=[k,U,...K].filter(Boolean).map($=>$.ref.current);Js(J,f)}}E.current=!1}),onBlur:T(e.onBlur,()=>w(!1))})})}),qs="RovingFocusGroupItem",Zs=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=he(),d=a||s,u=tp(qs,n),f=u.currentTabStopId===d,p=Ys(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=u;return c.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),l.jsx(yr.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:l.jsx(W.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...i,ref:t,onMouseDown:T(e.onMouseDown,b=>{r?u.onItemFocus(d):b.preventDefault()}),onFocus:T(e.onFocus,()=>u.onItemFocus(d)),onKeyDown:T(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){u.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const h=ap(b,u.orientation,u.dir);if(h!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=p().filter(w=>w.focusable).map(w=>w.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const w=y.indexOf(b.currentTarget);y=u.loop?sp(y,w+1):y.slice(w+1)}setTimeout(()=>Js(y))}})})})});Zs.displayName=qs;var rp={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function op(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ap(e,t,n){const r=op(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return rp[r]}function Js(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function sp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Qs=Xs,ei=Zs,xr=["Enter"," "],ip=["ArrowDown","PageUp","Home"],ti=["ArrowUp","PageDown","End"],cp=[...ip,...ti],lp={ltr:[...xr,"ArrowRight"],rtl:[...xr,"ArrowLeft"]},up={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Et="Menu",[At,dp,fp]=Ks(Et),[Ye,ni]=oe(Et,[fp,cn,un]),Rt=cn(),ri=un(),[oi,ze]=Ye(Et),[pp,St]=Ye(Et),ai=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Rt(t),[d,u]=c.useState(null),f=c.useRef(!1),p=ae(a),m=vr(o);return c.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),l.jsx(ar,{...s,children:l.jsx(oi,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:u,children:l.jsx(pp,{scope:t,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:i,children:r})})})};ai.displayName=Et;var mp="MenuAnchor",wr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Rt(n);return l.jsx(sr,{...o,...r,ref:t})});wr.displayName=mp;var Cr="MenuPortal",[gp,si]=Ye(Cr,{forceMount:void 0}),ii=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=ze(Cr,t);return l.jsx(gp,{scope:t,forceMount:n,children:l.jsx(ce,{present:n||a.open,children:l.jsx(Wt,{asChild:!0,container:o,children:r})})})};ii.displayName=Cr;var le="MenuContent",[hp,Er]=Ye(le),ci=c.forwardRef((e,t)=>{const n=si(le,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ze(le,e.__scopeMenu),i=St(le,e.__scopeMenu);return l.jsx(At.Provider,{scope:e.__scopeMenu,children:l.jsx(ce,{present:r||a.open,children:l.jsx(At.Slot,{scope:e.__scopeMenu,children:i.modal?l.jsx(vp,{...o,ref:t}):l.jsx(bp,{...o,ref:t})})})})}),vp=c.forwardRef((e,t)=>{const n=ze(le,e.__scopeMenu),r=c.useRef(null),o=Z(t,r);return c.useEffect(()=>{const a=r.current;if(a)return kn(a)},[]),l.jsx(Ar,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:T(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),bp=c.forwardRef((e,t)=>{const n=ze(le,e.__scopeMenu);return l.jsx(Ar,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Ar=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,disableOutsideScroll:b,...h}=e,x=ze(le,n),y=St(le,n),w=Rt(n),R=ri(n),C=dp(n),[E,_]=c.useState(null),N=c.useRef(null),O=Z(t,N,x.onContentChange),G=c.useRef(0),L=c.useRef(""),K=c.useRef(0),k=c.useRef(null),U=c.useRef("right"),z=c.useRef(0),J=b?Kt:c.Fragment,$=b?{as:Oe,allowPinchZoom:!0}:void 0,X=S=>{var de,Be;const Y=L.current+S,V=C().filter(ne=>!ne.disabled),ue=document.activeElement,Pe=(de=V.find(ne=>ne.ref.current===ue))==null?void 0:de.textValue,ge=V.map(ne=>ne.textValue),Xe=Dp(ge,Y,Pe),we=(Be=V.find(ne=>ne.textValue===Xe))==null?void 0:Be.ref.current;(function ne(Ge){L.current=Ge,window.clearTimeout(G.current),Ge!==""&&(G.current=window.setTimeout(()=>ne(""),1e3))})(Y),we&&setTimeout(()=>we.focus())};c.useEffect(()=>()=>window.clearTimeout(G.current),[]),Nn();const j=c.useCallback(S=>{var V,ue;return U.current===((V=k.current)==null?void 0:V.side)&&Tp(S,(ue=k.current)==null?void 0:ue.area)},[]);return l.jsx(hp,{scope:n,searchRef:L,onItemEnter:c.useCallback(S=>{j(S)&&S.preventDefault()},[j]),onItemLeave:c.useCallback(S=>{var Y;j(S)||((Y=N.current)==null||Y.focus(),_(null))},[j]),onTriggerLeave:c.useCallback(S=>{j(S)&&S.preventDefault()},[j]),pointerGraceTimerRef:K,onPointerGraceIntentChange:c.useCallback(S=>{k.current=S},[]),children:l.jsx(J,{...$,children:l.jsx($t,{asChild:!0,trapped:o,onMountAutoFocus:T(a,S=>{var Y;S.preventDefault(),(Y=N.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:l.jsx(Lt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,children:l.jsx(Qs,{asChild:!0,...R,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:T(d,S=>{y.isUsingKeyboardRef.current||S.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(es,{role:"menu","aria-orientation":"vertical","data-state":Si(x.open),"data-radix-menu-content":"",dir:y.dir,...w,...h,ref:O,style:{outline:"none",...h.style},onKeyDown:T(h.onKeyDown,S=>{const V=S.target.closest("[data-radix-menu-content]")===S.currentTarget,ue=S.ctrlKey||S.altKey||S.metaKey,Pe=S.key.length===1;V&&(S.key==="Tab"&&S.preventDefault(),!ue&&Pe&&X(S.key));const ge=N.current;if(S.target!==ge||!cp.includes(S.key))return;S.preventDefault();const we=C().filter(de=>!de.disabled).map(de=>de.ref.current);ti.includes(S.key)&&we.reverse(),Pp(we)}),onBlur:T(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(G.current),L.current="")}),onPointerMove:T(e.onPointerMove,Pt(S=>{const Y=S.target,V=z.current!==S.clientX;if(S.currentTarget.contains(Y)&&V){const ue=S.clientX>z.current?"right":"left";U.current=ue,z.current=S.clientX}}))})})})})})})});ci.displayName=le;var yp="MenuGroup",Rr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(W.div,{role:"group",...r,ref:t})});Rr.displayName=yp;var xp="MenuLabel",li=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(W.div,{...r,ref:t})});li.displayName=xp;var dn="MenuItem",ui="menu.itemSelect",fn=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=St(dn,e.__scopeMenu),s=Er(dn,e.__scopeMenu),d=Z(t,a),u=c.useRef(!1),f=()=>{const p=a.current;if(!n&&p){const m=new CustomEvent(ui,{bubbles:!0,cancelable:!0});p.addEventListener(ui,v=>r==null?void 0:r(v),{once:!0}),so(p,m),m.defaultPrevented?u.current=!1:i.onClose()}};return l.jsx(di,{...o,ref:d,disabled:n,onClick:T(e.onClick,f),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),u.current=!0},onPointerUp:T(e.onPointerUp,p=>{var m;u.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:T(e.onKeyDown,p=>{const m=s.searchRef.current!=="";n||m&&p.key===" "||xr.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});fn.displayName=dn;var di=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=Er(dn,n),s=ri(n),d=c.useRef(null),u=Z(t,d),[f,p]=c.useState(!1),[m,v]=c.useState("");return c.useEffect(()=>{const b=d.current;b&&v((b.textContent??"").trim())},[a.children]),l.jsx(At.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:l.jsx(ei,{asChild:!0,...s,focusable:!r,children:l.jsx(W.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:u,onPointerMove:T(e.onPointerMove,Pt(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:T(e.onPointerLeave,Pt(b=>i.onItemLeave(b))),onFocus:T(e.onFocus,()=>p(!0)),onBlur:T(e.onBlur,()=>p(!1))})})})}),wp="MenuCheckboxItem",fi=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return l.jsx(vi,{scope:e.__scopeMenu,checked:n,children:l.jsx(fn,{role:"menuitemcheckbox","aria-checked":pn(n)?"mixed":n,...o,ref:t,"data-state":Pr(n),onSelect:T(o.onSelect,()=>r==null?void 0:r(pn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});fi.displayName=wp;var pi="MenuRadioGroup",[Cp,Ep]=Ye(pi,{value:void 0,onValueChange:()=>{}}),mi=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=ae(r);return l.jsx(Cp,{scope:e.__scopeMenu,value:n,onValueChange:a,children:l.jsx(Rr,{...o,ref:t})})});mi.displayName=pi;var gi="MenuRadioItem",hi=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=Ep(gi,e.__scopeMenu),a=n===o.value;return l.jsx(vi,{scope:e.__scopeMenu,checked:a,children:l.jsx(fn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":Pr(a),onSelect:T(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});hi.displayName=gi;var Sr="MenuItemIndicator",[vi,Ap]=Ye(Sr,{checked:!1}),bi=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Ap(Sr,n);return l.jsx(ce,{present:r||pn(a.checked)||a.checked===!0,children:l.jsx(W.span,{...o,ref:t,"data-state":Pr(a.checked)})})});bi.displayName=Sr;var Rp="MenuSeparator",yi=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(W.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});yi.displayName=Rp;var Sp="MenuArrow",xi=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Rt(n);return l.jsx(ts,{...o,...r,ref:t})});xi.displayName=Sp;var Nr="MenuSub",[Np,wi]=Ye(Nr),Ci=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=ze(Nr,t),i=Rt(t),[s,d]=c.useState(null),[u,f]=c.useState(null),p=ae(o);return c.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),l.jsx(ar,{...i,children:l.jsx(oi,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:f,children:l.jsx(Np,{scope:t,contentId:he(),triggerId:he(),trigger:s,onTriggerChange:d,children:n})})})};Ci.displayName=Nr;var Nt="MenuSubTrigger",Ei=c.forwardRef((e,t)=>{const n=ze(Nt,e.__scopeMenu),r=St(Nt,e.__scopeMenu),o=wi(Nt,e.__scopeMenu),a=Er(Nt,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=a,u={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const p=s.current;return()=>{window.clearTimeout(p),d(null)}},[s,d]),l.jsx(wr,{asChild:!0,...u,children:l.jsx(di,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Si(n.open),...e,ref:Ft(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:T(e.onPointerMove,Pt(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:T(e.onPointerLeave,Pt(p=>{var v,b;f();const m=(v=n.content)==null?void 0:v.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,x=h==="right",y=x?-5:5,w=m[x?"left":"right"],R=m[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x:w,y:m.top},{x:R,y:m.top},{x:R,y:m.bottom},{x:w,y:m.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:T(e.onKeyDown,p=>{var v;const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||lp[r.dir].includes(p.key)&&(n.onOpenChange(!0),(v=n.content)==null||v.focus(),p.preventDefault())})})})});Ei.displayName=Nt;var Ai="MenuSubContent",Ri=c.forwardRef((e,t)=>{const n=si(le,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ze(le,e.__scopeMenu),i=St(le,e.__scopeMenu),s=wi(Ai,e.__scopeMenu),d=c.useRef(null),u=Z(t,d);return l.jsx(At.Provider,{scope:e.__scopeMenu,children:l.jsx(ce,{present:r||a.open,children:l.jsx(At.Slot,{scope:e.__scopeMenu,children:l.jsx(Ar,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;i.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:T(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:T(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:T(e.onKeyDown,f=>{var v;const p=f.currentTarget.contains(f.target),m=up[i.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),(v=s.trigger)==null||v.focus(),f.preventDefault())})})})})})});Ri.displayName=Ai;function Si(e){return e?"open":"closed"}function pn(e){return e==="indeterminate"}function Pr(e){return pn(e)?"indeterminate":e?"checked":"unchecked"}function Pp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Mp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Dp(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Mp(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==n));const d=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function _p(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,d=t[a].y,u=t[i].x,f=t[i].y;d>r!=f>r&&n<(u-s)*(r-d)/(f-d)+s&&(o=!o)}return o}function Tp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return _p(n,t)}function Pt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var kp=ai,Op=wr,jp=ii,Ip=ci,Fp=Rr,Lp=li,$p=fn,Wp=fi,zp=mi,Bp=hi,Gp=bi,Vp=yi,Up=xi,Hp=Ci,Kp=Ei,Yp=Ri,Mr="DropdownMenu",[Xp,Km]=oe(Mr,[ni]),ee=ni(),[qp,Ni]=Xp(Mr),Pi=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,d=ee(t),u=c.useRef(null),[f=!1,p]=ke({prop:o,defaultProp:a,onChange:i});return l.jsx(qp,{scope:t,triggerId:he(),triggerRef:u,contentId:he(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(m=>!m),[p]),modal:s,children:l.jsx(kp,{...d,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};Pi.displayName=Mr;var Mi="DropdownMenuTrigger",Di=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Ni(Mi,n),i=ee(n);return l.jsx(Op,{asChild:!0,...i,children:l.jsx(W.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ft(t,a.triggerRef),onPointerDown:T(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:T(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Di.displayName=Mi;var Zp="DropdownMenuPortal",_i=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ee(t);return l.jsx(jp,{...r,...n})};_i.displayName=Zp;var Ti="DropdownMenuContent",ki=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ni(Ti,n),a=ee(n),i=c.useRef(!1);return l.jsx(Ip,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:T(e.onCloseAutoFocus,s=>{var d;i.current||(d=o.triggerRef.current)==null||d.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:T(e.onInteractOutside,s=>{const d=s.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ki.displayName=Ti;var Jp="DropdownMenuGroup",Oi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Fp,{...o,...r,ref:t})});Oi.displayName=Jp;var Qp="DropdownMenuLabel",ji=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Lp,{...o,...r,ref:t})});ji.displayName=Qp;var em="DropdownMenuItem",Ii=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx($p,{...o,...r,ref:t})});Ii.displayName=em;var tm="DropdownMenuCheckboxItem",Fi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Wp,{...o,...r,ref:t})});Fi.displayName=tm;var nm="DropdownMenuRadioGroup",Li=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(zp,{...o,...r,ref:t})});Li.displayName=nm;var rm="DropdownMenuRadioItem",$i=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Bp,{...o,...r,ref:t})});$i.displayName=rm;var om="DropdownMenuItemIndicator",Wi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Gp,{...o,...r,ref:t})});Wi.displayName=om;var am="DropdownMenuSeparator",zi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Vp,{...o,...r,ref:t})});zi.displayName=am;var sm="DropdownMenuArrow",im=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Up,{...o,...r,ref:t})});im.displayName=sm;var cm=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=ee(t),[s=!1,d]=ke({prop:r,defaultProp:a,onChange:o});return l.jsx(Hp,{...i,open:s,onOpenChange:d,children:n})},lm="DropdownMenuSubTrigger",Bi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Kp,{...o,...r,ref:t})});Bi.displayName=lm;var um="DropdownMenuSubContent",Gi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return l.jsx(Yp,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Gi.displayName=um;var dm=Pi,fm=Di,Vi=_i,Ui=ki,pm=Oi,Hi=ji,Ki=Ii,Yi=Fi,mm=Li,Xi=$i,qi=Wi,Zi=zi,gm=cm,Ji=Bi,Qi=Gi;const hm=dm,vm=fm,bm=pm,ym=Vi,xm=gm,wm=mm,ec=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>l.jsxs(Ji,{ref:o,className:D("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,l.jsx(Gn,{className:"ml-auto"})]}));ec.displayName=Ji.displayName;const tc=c.forwardRef(({className:e,...t},n)=>l.jsx(Qi,{ref:n,className:D("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));tc.displayName=Qi.displayName;const nc=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(Vi,{children:l.jsx(Ui,{ref:r,sideOffset:t,className:D("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));nc.displayName=Ui.displayName;const rc=c.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(Ki,{ref:r,className:D("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));rc.displayName=Ki.displayName;const oc=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>l.jsxs(Yi,{ref:o,className:D("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(qi,{children:l.jsx(Ra,{className:"h-4 w-4"})})}),t]}));oc.displayName=Yi.displayName;const ac=c.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(Xi,{ref:r,className:D("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(qi,{children:l.jsx(md,{className:"h-2 w-2 fill-current"})})}),t]}));ac.displayName=Xi.displayName;const sc=c.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(Hi,{ref:r,className:D("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));sc.displayName=Hi.displayName;const ic=c.forwardRef(({className:e,...t},n)=>l.jsx(Zi,{ref:n,className:D("-mx-1 my-1 h-px bg-muted",e),...t}));ic.displayName=Zi.displayName;const cc=({className:e,...t})=>l.jsx("span",{className:D("ml-auto text-xs tracking-widest opacity-60",e),...t});cc.displayName="DropdownMenuShortcut";const Dr=({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:D("mx-auto flex w-full justify-center",e),...t});Dr.displayName="Pagination";const _r=c.forwardRef(({className:e,...t},n)=>l.jsx("ul",{ref:n,className:D("flex flex-row items-center gap-1",e),...t}));_r.displayName="PaginationContent";const Mt=c.forwardRef(({className:e,...t},n)=>l.jsx("li",{ref:n,className:D("",e),...t}));Mt.displayName="PaginationItem";const Dt=({className:e,isActive:t,size:n="icon",...r})=>l.jsx(at,{"aria-current":t?"page":void 0,className:D(bt({variant:t?"default":"outline",size:n}),t?"text-primary-foreground":"text-foreground",e),...r,children:r.children});Dt.displayName="PaginationLink";const Tr=({className:e,...t})=>l.jsx(Dt,{"aria-label":"Previous page",size:"default",className:D("gap-1",e),...t,children:l.jsx(Sa,{className:"h-4 w-4"})});Tr.displayName="PaginationPrevious";const kr=({className:e,...t})=>l.jsx(Dt,{"aria-label":"Next page",size:"default",className:D("gap-1",e),...t,children:l.jsx(Gn,{className:"h-4 w-4"})});kr.displayName="PaginationNext";const lc=({className:e,...t})=>l.jsxs("span",{"aria-hidden":!0,className:D("flex h-9 w-9 items-center justify-center",e),...t,children:[l.jsx(gd,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"More pages"})]});lc.displayName="PaginationEllipsis";var Or="Progress",jr=100,[Cm,Ym]=oe(Or),[Em,Am]=Cm(Or),uc=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=Rm,...i}=e;(o||o===0)&&!mc(o)&&console.error(Sm(`${o}`,"Progress"));const s=mc(o)?o:jr;r!==null&&!gc(r,s)&&console.error(Nm(`${r}`,"Progress"));const d=gc(r,s)?r:null,u=mn(d)?a(d,s):void 0;return l.jsx(Em,{scope:n,value:d,max:s,children:l.jsx(W.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":mn(d)?d:void 0,"aria-valuetext":u,role:"progressbar","data-state":pc(d,s),"data-value":d??void 0,"data-max":s,...i,ref:t})})});uc.displayName=Or;var dc="ProgressIndicator",fc=c.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=Am(dc,n);return l.jsx(W.div,{"data-state":pc(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});fc.displayName=dc;function Rm(e,t){return`${Math.round(e/t*100)}%`}function pc(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function mn(e){return typeof e=="number"}function mc(e){return mn(e)&&!isNaN(e)&&e>0}function gc(e,t){return mn(e)&&!isNaN(e)&&e<=t&&e>=0}function Sm(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${jr}\`.`}function Nm(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
147
147
|
- a positive number
|
|
148
|
-
- less than the value passed to \`max\` (or ${
|
|
148
|
+
- less than the value passed to \`max\` (or ${jr} if no \`max\` prop is set)
|
|
149
149
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
150
150
|
|
|
151
|
-
Defaulting to \`null\`.`}var fc=sc,um=cc;const jr=c.forwardRef(({className:e,value:t,...n},r)=>l.jsx(fc,{ref:r,className:D("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:l.jsx(um,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));jr.displayName=fc.displayName;function dm(e){const{showStrengthMeter:t=!0,className:n,strengthLabels:r={veryWeak:"Very weak",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very strong"},showPasswordLabel:o="Show password",hidePasswordLabel:a="Hide password",strengthTitle:i="Password strength",...s}=e,[d,u]=z.useState(""),[f,p]=z.useState(!1),m=y=>{let x=0;return y.length>=8&&(x+=25),y.match(/[a-z]/)&&(x+=25),y.match(/[A-Z]/)&&(x+=25),y.match(/[0-9]/)&&(x+=25),x},v=y=>y===0?r.veryWeak:y<=25?r.weak:y<=50?r.medium:y<=75?r.strong:r.veryStrong,b=m(d),h=v(b),w=y=>{var x;u(y.target.value),(x=e.onChange)==null||x.call(e,y)};return l.jsxs("div",{className:"w-full space-y-4",children:[l.jsxs("div",{className:"relative",children:[l.jsx(Tt,{...s,type:f?"text":"password",value:d,onChange:w,className:`pr-10 ${n||""}`}),l.jsx(at,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full",onClick:()=>p(!f),"aria-label":f?a:o,children:f?l.jsx(qu,{className:"h-4 w-4"}):l.jsx(Zu,{className:"h-4 w-4"})})]}),t&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsxs("span",{children:[i,":"]}),l.jsx("span",{children:h})]}),l.jsx(jr,{value:b,className:"h-2"})]})]})}const fm=({className:e,repeat:t=1,...n})=>l.jsx(l.Fragment,{children:Array.from({length:t??1}).map((r,o)=>l.jsx("div",{className:D("animate-pulse rounded-md bg-gray-700/10",e),...n},o))});var Tr="Switch",[pm,Nm]=ie(Tr),[mm,gm]=pm(Tr),pc=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:d="on",onCheckedChange:u,form:f,...p}=e,[m,v]=c.useState(null),b=Z(t,A=>v(A)),h=c.useRef(!1),w=m?f||!!m.closest("form"):!0,[y=!1,x]=Ue({prop:o,defaultProp:a,onChange:u});return l.jsxs(mm,{scope:n,checked:y,disabled:s,children:[l.jsx(V.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":hc(y),"data-disabled":s?"":void 0,disabled:s,value:d,...p,ref:b,onClick:j(e.onClick,A=>{x(C=>!C),w&&(h.current=A.isPropagationStopped(),h.current||A.stopPropagation())})}),w&&l.jsx(hm,{control:m,bubbles:!h.current,name:r,value:d,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});pc.displayName=Tr;var mc="SwitchThumb",gc=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=gm(mc,n);return l.jsx(V.span,{"data-state":hc(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});gc.displayName=mc;var hm=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=c.useRef(null),i=_s(n),s=tr(t);return c.useEffect(()=>{const d=a.current,u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==n&&p){const m=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(m)}},[i,n,r]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function hc(e){return e?"checked":"unchecked"}var vc=pc,vm=gc;const bc=c.forwardRef(({className:e,...t},n)=>l.jsx(vc,{className:D("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:l.jsx(vm,{className:D("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));bc.displayName=vc.displayName;function bm(e){const{triggerElement:t,steps:n}=e,[r,o]=z.useState(!1),[a,i]=z.useState(0),s=()=>{i(u=>u<n.length-1?u+1:u)},d=()=>{i(u=>u>0?u-1:u)};return l.jsxs($s,{open:r,onOpenChange:o,children:[l.jsx(Ws,{asChild:!0,children:t}),l.jsxs(fr,{className:"sm:max-w-[425px]",children:[l.jsxs(pr,{className:D(n[a].title===""&&"sr-only"),children:[l.jsx(mr,{children:n[a].title}),l.jsx(gr,{className:"sr-only",children:n[a].title})]}),l.jsx("div",{children:n[a].description}),l.jsxs("div",{className:"flex items-center justify-between mt-4",children:[l.jsx(at,{variant:"outline",size:"icon",onClick:d,disabled:a===0,children:l.jsx(Ca,{className:"h-4 w-4"})}),l.jsx("div",{className:"flex justify-center gap-1",children:n.map((u,f)=>l.jsx("div",{className:D("h-3 w-3 rounded-full",f===a?"bg-primary":"bg-gray-200")},f))}),l.jsx(at,{variant:"outline",size:"icon",onClick:s,disabled:a===n.length-1,children:l.jsx(Bn,{className:"h-4 w-4"})})]})]})]})}function ym({currentPage:e,totalPages:t,onPageChange:n}){const r=Array.from({length:t},(o,a)=>a+1);return l.jsx(Pr,{children:l.jsxs(Mr,{children:[l.jsx(Mt,{children:l.jsx(Dr,{onClick:()=>n(Math.max(1,e-1)),disabled:e===1})}),r.map(o=>l.jsx(Mt,{children:l.jsx(Dt,{onClick:()=>n(o),isActive:e===o,children:o})},o)),l.jsx(Mt,{children:l.jsx(_r,{onClick:()=>n(Math.min(t,e+1)),disabled:e===t})})]})})}S.AdaptiveInput=It,S.AlertDialog=Gu,S.AlertDialogAction=ba,S.AlertDialogCancel=ya,S.AlertDialogContent=pa,S.AlertDialogDescription=va,S.AlertDialogFooter=ga,S.AlertDialogHeader=ma,S.AlertDialogOverlay=zn,S.AlertDialogPortal=fa,S.AlertDialogTitle=ha,S.AlertDialogTrigger=Vu,S.Autocomplete=yf,S.Avatar=xs,S.AvatarFallback=Es,S.AvatarImage=Cs,S.Badge=Ef,S.Button=at,S.Card=Ss,S.CardContent=Ms,S.CardDescription=Ps,S.CardFooter=Ds,S.CardHeader=Rs,S.CardTitle=Ns,S.Checkbox=Ls,S.CurrencyInput=Fs,S.Dialog=$s,S.DialogClose=Mf,S.DialogContent=fr,S.DialogDescription=gr,S.DialogFooter=Bs,S.DialogHeader=pr,S.DialogOverlay=dr,S.DialogPortal=zs,S.DialogTitle=mr,S.DialogTrigger=Ws,S.DropdownMenu=Jp,S.DropdownMenuCheckboxItem=ec,S.DropdownMenuContent=Ji,S.DropdownMenuGroup=em,S.DropdownMenuItem=Qi,S.DropdownMenuLabel=nc,S.DropdownMenuPortal=tm,S.DropdownMenuRadioGroup=rm,S.DropdownMenuRadioItem=tc,S.DropdownMenuSeparator=rc,S.DropdownMenuShortcut=oc,S.DropdownMenuSub=nm,S.DropdownMenuSubContent=Zi,S.DropdownMenuSubTrigger=qi,S.DropdownMenuTrigger=Qp,S.HelpCarousel=bm,S.Input=Tt,S.Pagination=Pr,S.PaginationContent=Mr,S.PaginationControls=ym,S.PaginationEllipsis=ac,S.PaginationItem=Mt,S.PaginationLink=Dt,S.PaginationNext=_r,S.PaginationPrevious=Dr,S.PasswordInput=dm,S.Popover=us,S.PopoverAnchor=bf,S.PopoverContent=cr,S.PopoverTrigger=ds,S.Progress=jr,S.Skeleton=fm,S.Switch=bc,S.badgeVariants=As,S.buttonVariants=bt,S.cn=D,S.formatCurrency=el,S.formatDateAndMonth=rl,S.formatDateAndWeekday=tl,S.formatDateAndWeekdayAndYear=nl,S.formatLongDate=ol,S.formatShortDate=al,S.formatWeekDayAndShortDate=il,S.getMonthYearFromISODate=sl,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
|
151
|
+
Defaulting to \`null\`.`}var hc=uc,Pm=fc;const Ir=c.forwardRef(({className:e,value:t,...n},r)=>l.jsx(hc,{ref:r,className:D("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:l.jsx(Pm,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Ir.displayName=hc.displayName;function Mm(e){const{showStrengthMeter:t=!0,className:n,strengthLabels:r={veryWeak:"Very weak",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very strong"},showPasswordLabel:o="Show password",hidePasswordLabel:a="Hide password",strengthTitle:i="Password strength",...s}=e,[d,u]=B.useState(""),[f,p]=B.useState(!1),m=y=>{let w=0;return y.length>=8&&(w+=25),y.match(/[a-z]/)&&(w+=25),y.match(/[A-Z]/)&&(w+=25),y.match(/[0-9]/)&&(w+=25),w},v=y=>y===0?r.veryWeak:y<=25?r.weak:y<=50?r.medium:y<=75?r.strong:r.veryStrong,b=m(d),h=v(b),x=y=>{var w;u(y.target.value),(w=e.onChange)==null||w.call(e,y)};return l.jsxs("div",{className:"w-full space-y-4",children:[l.jsxs("div",{className:"relative",children:[l.jsx(jt,{...s,type:f?"text":"password",value:d,onChange:x,className:`pr-10 ${n||""}`}),l.jsx(at,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full",onClick:()=>p(!f),"aria-label":f?a:o,children:f?l.jsx(hd,{className:"h-4 w-4"}):l.jsx(vd,{className:"h-4 w-4"})})]}),t&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{className:"flex justify-between text-sm",children:[l.jsxs("span",{children:[i,":"]}),l.jsx("span",{children:h})]}),l.jsx(Ir,{value:b,className:"h-2"})]})]})}const Dm=({className:e,repeat:t=1,...n})=>l.jsx(l.Fragment,{children:Array.from({length:t??1}).map((r,o)=>l.jsx("div",{className:D("animate-pulse rounded-md bg-gray-700/10",e),...n},o))});var Fr="Switch",[_m,Xm]=oe(Fr),[Tm,km]=_m(Fr),vc=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:d="on",onCheckedChange:u,form:f,...p}=e,[m,v]=c.useState(null),b=Z(t,R=>v(R)),h=c.useRef(!1),x=m?f||!!m.closest("form"):!0,[y=!1,w]=ke({prop:o,defaultProp:a,onChange:u});return l.jsxs(Tm,{scope:n,checked:y,disabled:s,children:[l.jsx(W.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":xc(y),"data-disabled":s?"":void 0,disabled:s,value:d,...p,ref:b,onClick:T(e.onClick,R=>{w(C=>!C),x&&(h.current=R.isPropagationStopped(),h.current||R.stopPropagation())})}),x&&l.jsx(Om,{control:m,bubbles:!h.current,name:r,value:d,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});vc.displayName=Fr;var bc="SwitchThumb",yc=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=km(bc,n);return l.jsx(W.span,{"data-state":xc(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});yc.displayName=bc;var Om=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=c.useRef(null),i=js(n),s=nr(t);return c.useEffect(()=>{const d=a.current,u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(i!==n&&p){const m=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(m)}},[i,n,r]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function xc(e){return e?"checked":"unchecked"}var wc=vc,jm=yc;const Cc=c.forwardRef(({className:e,...t},n)=>l.jsx(wc,{className:D("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:l.jsx(jm,{className:D("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Cc.displayName=wc.displayName;var Lr="Tabs",[Im,qm]=oe(Lr,[un]),Ec=un(),[Fm,$r]=Im(Lr),Ac=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:s,activationMode:d="automatic",...u}=e,f=vr(s),[p,m]=ke({prop:r,onChange:o,defaultProp:a});return l.jsx(Fm,{scope:n,baseId:he(),value:p,onValueChange:m,orientation:i,dir:f,activationMode:d,children:l.jsx(W.div,{dir:f,"data-orientation":i,...u,ref:t})})});Ac.displayName=Lr;var Rc="TabsList",Sc=c.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,a=$r(Rc,n),i=Ec(n);return l.jsx(Qs,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:r,children:l.jsx(W.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Sc.displayName=Rc;var Nc="TabsTrigger",Pc=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...a}=e,i=$r(Nc,n),s=Ec(n),d=_c(i.baseId,r),u=Tc(i.baseId,r),f=r===i.value;return l.jsx(ei,{asChild:!0,...s,focusable:!o,active:f,children:l.jsx(W.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...a,ref:t,onMouseDown:T(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?i.onValueChange(r):p.preventDefault()}),onKeyDown:T(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(r)}),onFocus:T(e.onFocus,()=>{const p=i.activationMode!=="manual";!f&&!o&&p&&i.onValueChange(r)})})})});Pc.displayName=Nc;var Mc="TabsContent",Dc=c.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:a,...i}=e,s=$r(Mc,n),d=_c(s.baseId,r),u=Tc(s.baseId,r),f=r===s.value,p=c.useRef(f);return c.useEffect(()=>{const m=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(m)},[]),l.jsx(ce,{present:o||f,children:({present:m})=>l.jsx(W.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":d,hidden:!m,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:m&&a})})});Dc.displayName=Mc;function _c(e,t){return`${e}-trigger-${t}`}function Tc(e,t){return`${e}-content-${t}`}var Lm=Ac,kc=Sc,Oc=Pc,jc=Dc;const $m=Lm,Ic=c.forwardRef(({className:e,...t},n)=>l.jsx(kc,{ref:n,className:D("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Ic.displayName=kc.displayName;const Fc=c.forwardRef(({className:e,...t},n)=>l.jsx(Oc,{ref:n,className:D("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));Fc.displayName=Oc.displayName;const Lc=c.forwardRef(({className:e,...t},n)=>l.jsx(jc,{ref:n,className:D("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Lc.displayName=jc.displayName;function Wm(e){const{triggerElement:t,steps:n}=e,[r,o]=B.useState(!1),[a,i]=B.useState(0),s=()=>{i(u=>u<n.length-1?u+1:u)},d=()=>{i(u=>u>0?u-1:u)};return l.jsxs(Gs,{open:r,onOpenChange:o,children:[l.jsx(Vs,{asChild:!0,children:t}),l.jsxs(pr,{className:"sm:max-w-[425px]",children:[l.jsxs(mr,{className:D(n[a].title===""&&"sr-only"),children:[l.jsx(gr,{children:n[a].title}),l.jsx(hr,{className:"sr-only",children:n[a].title})]}),l.jsx("div",{children:n[a].description}),l.jsxs("div",{className:"flex items-center justify-between mt-4",children:[l.jsx(at,{variant:"ghost",size:"icon",onClick:d,disabled:a===0,children:l.jsx(Sa,{className:"h-4 w-4"})}),l.jsx("div",{className:"flex justify-center gap-1",children:n.map((u,f)=>l.jsx("div",{className:D("h-3 w-3 rounded-full",f===a?"bg-primary":"bg-gray-200")},f))}),l.jsx(at,{variant:"ghost",size:"icon",onClick:s,disabled:a===n.length-1,children:l.jsx(Gn,{className:"h-4 w-4"})})]})]})]})}function zm({currentPage:e,totalPages:t,onPageChange:n}){const r=Array.from({length:t},(o,a)=>a+1);return l.jsx(Dr,{children:l.jsxs(_r,{children:[l.jsx(Mt,{children:l.jsx(Tr,{onClick:()=>n(Math.max(1,e-1)),disabled:e===1})}),r.map(o=>l.jsx(Mt,{children:l.jsx(Dt,{onClick:()=>n(o),isActive:e===o,children:o})},o)),l.jsx(Mt,{children:l.jsx(kr,{onClick:()=>n(Math.min(t,e+1)),disabled:e===t})})]})})}A.AdaptiveInput=It,A.AlertDialog=ld,A.AlertDialogAction=Ca,A.AlertDialogCancel=Ea,A.AlertDialogContent=va,A.AlertDialogDescription=wa,A.AlertDialogFooter=ya,A.AlertDialogHeader=ba,A.AlertDialogOverlay=Bn,A.AlertDialogPortal=ha,A.AlertDialogTitle=xa,A.AlertDialogTrigger=ud,A.Autocomplete=$f,A.Avatar=Rs,A.AvatarFallback=Ns,A.AvatarImage=Ss,A.Badge=Gf,A.Button=at,A.Card=Ms,A.CardContent=ks,A.CardDescription=Ts,A.CardFooter=Os,A.CardHeader=Ds,A.CardTitle=_s,A.Checkbox=zs,A.CurrencyInput=Bs,A.Dialog=Gs,A.DialogClose=Xf,A.DialogContent=pr,A.DialogDescription=hr,A.DialogFooter=Hs,A.DialogHeader=mr,A.DialogOverlay=fr,A.DialogPortal=Us,A.DialogTitle=gr,A.DialogTrigger=Vs,A.DropdownMenu=hm,A.DropdownMenuCheckboxItem=oc,A.DropdownMenuContent=nc,A.DropdownMenuGroup=bm,A.DropdownMenuItem=rc,A.DropdownMenuLabel=sc,A.DropdownMenuPortal=ym,A.DropdownMenuRadioGroup=wm,A.DropdownMenuRadioItem=ac,A.DropdownMenuSeparator=ic,A.DropdownMenuShortcut=cc,A.DropdownMenuSub=xm,A.DropdownMenuSubContent=tc,A.DropdownMenuSubTrigger=ec,A.DropdownMenuTrigger=vm,A.HelpCarousel=Wm,A.Input=jt,A.Pagination=Dr,A.PaginationContent=_r,A.PaginationControls=zm,A.PaginationEllipsis=lc,A.PaginationItem=Mt,A.PaginationLink=Dt,A.PaginationNext=kr,A.PaginationPrevious=Tr,A.PasswordInput=Mm,A.Popover=ms,A.PopoverAnchor=Lf,A.PopoverContent=lr,A.PopoverTrigger=gs,A.Progress=Ir,A.Skeleton=Dm,A.Switch=Cc,A.Tabs=$m,A.TabsContent=Lc,A.TabsList=Ic,A.TabsTrigger=Fc,A.badgeVariants=Ps,A.buttonVariants=bt,A.cn=D,A.formatCurrency=xl,A.formatDateAndMonth=El,A.formatDateAndWeekday=wl,A.formatDateAndWeekdayAndYear=Cl,A.formatLongDate=Al,A.formatShortDate=Rl,A.formatWeekDayAndShortDate=Nl,A.getMonthYearFromISODate=Sl,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|