aravint-ui-navigation 1.0.55 → 1.0.57
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/Readme.md +39 -3
- package/dist/navigation.cjs.js +40 -11
- package/dist/navigation.css +1 -1
- package/dist/navigation.es.js +2851 -2100
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/stepper.d.ts +12 -3
- package/package.json +2 -1
package/dist/navigation.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react/jsx-runtime"),se=require("react"),ko=require("lucide-react"),gn=require("react-dom");function yn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const y=yn(se),vn=yn(gn),_o=({tabs:e,defaultValue:t,value:r,onValueChange:n,className:i="",tabListClassName:s="",tabButtonClassName:a="",contentClassName:c="thin-scrollbar",showTabNumbers:l=!0,showContent:f=!0,animated:u=!0})=>{var E;const p=r!==void 0,[m,g]=se.useState(t||((E=e[0])==null?void 0:E.id)||""),b=p?r:m,x=F=>{p||g(F),n==null||n(F)},_=e.find(F=>F.id===b),k={display:"flex",alignItems:"flex-end",borderBottom:"1px solid #059669",position:"sticky",top:0,zIndex:100,flexShrink:0},v={display:"flex",alignItems:"center",fontFamily:"inherit",background:"transparent",cursor:"pointer",outline:"none",transition:"all .2s ease",position:"relative"},C={background:"#E8F7F1",color:"#059669",fontWeight:700,borderTop:"3px solid #059669",borderLeft:"1px solid #059669",borderRight:"1px solid #059669",borderBottom:"1px solid #E8F7F1",borderTopLeftRadius:8,borderTopRightRadius:8,marginBottom:-1,zIndex:2},R={background:"transparent",color:"#2D3748",borderTop:"3px solid transparent",borderLeft:"1px solid transparent",borderRight:"1px solid transparent",borderBottom:"1px solid transparent",borderTopLeftRadius:8,borderTopRightRadius:8},T={background:"#ECFDF5",color:"#059669",fontWeight:700,border:"1px solid #059669"},O={background:"#FFFFFF",color:"#1F2937",fontWeight:"500",border:"1px solid #1F2937"},N={background:"#FFFFFF",border:"1px solid #D9E1E7",borderTop:"none",borderBottomLeftRadius:12,borderBottomRightRadius:12,boxShadow:"0 2px 6px rgba(0,0,0,.05)",transition:u?"opacity .2s ease":void 0,opacity:1,flex:1,overflowY:"auto",minHeight:0};return Y.jsxs("div",{className:i,style:{display:"flex",flexDirection:"column",width:"100%",height:"100%",minHeight:0,overflow:"hidden"},children:[Y.jsx("style",{children:`
|
|
2
2
|
.ctabs-list {
|
|
3
3
|
padding: 0 10px;
|
|
4
4
|
gap: 0px;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
font-size: 10px;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
`}),
|
|
75
|
+
`}),Y.jsx("div",{style:k,className:`ctabs-list ${s}`,children:e.map((F,H)=>{const Z=b===F.id;return Y.jsxs("button",{role:"tab","aria-selected":Z,disabled:F.disabled,onClick:()=>!F.disabled&&x(F.id),style:{...v,...Z?C:R,opacity:F.disabled?.5:1,cursor:F.disabled?"not-allowed":"pointer"},className:`ctabs-btn ${a}`,children:[l&&Y.jsx("span",{className:"ctabs-badge",style:Z?T:O,children:H+1}),F.icon,Y.jsx("span",{className:"ctabs-label",children:F.label})]},F.id)})}),f&&_&&Y.jsx("div",{style:N,className:c,children:_.content})]})},So=e=>y.createElement("svg",{viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y.createElement("path",{d:"M2 6.2L4.6 8.8L10 3",stroke:"#ffffff",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"})),bn=se.memo(({computed:e,showTime:t})=>{const{step:r,index:n,status:i}=e,s="label"in r?r.label:r.title,a="num"in r?r.num:n,c=["rs-stepper__circle",i==="completed"?"rs-stepper__circle--completed":"",i==="active"?"rs-stepper__circle--active":"",i==="rejected"?"rs-stepper__circle--rejected":"",n===0&&i==="pending"?"rs-stepper__circle--start":""].filter(Boolean).join(" "),l=["rs-stepper__title",i==="pending"?"rs-stepper__title--pending":"",i==="active"?"rs-stepper__title--active":"",i==="rejected"?"rs-stepper__title--rejected":"",n===0&&i==="pending"?"rs-stepper__title--start":""].filter(Boolean).join(" "),f=n===0;return Y.jsxs("div",{className:"rs-stepper__step",children:[Y.jsxs("div",{className:"rs-stepper__circle-wrap",children:[Y.jsx("div",{className:c,children:f?Y.jsx(ko.FileText,{size:16,"aria-hidden":"true"}):a}),(i==="completed"||i==="rejected")&&Y.jsx("span",{className:`rs-stepper__check${i==="rejected"?" rs-stepper__check--rejected":""}`,"aria-hidden":"true",children:Y.jsx(So,{})})]}),Y.jsx("div",{className:l,children:s}),r.date&&Y.jsx("div",{className:"rs-stepper__date",children:r.date}),t&&r.time&&Y.jsx("div",{className:"rs-stepper__time",children:r.time})]})});bn.displayName="StepCircle";const Eo=({steps:e,currentStep:t,completedColor:r="#059669",pendingColor:n="#9ca3af",activeColor:i="#059669",lineColor:s="#e5e7eb",showTime:a=!0,orientation:c="responsive"})=>{const l=e.length,f=t??1,u=t!==void 0&&t>l&&e.every(T=>!("status"in T)),p=Math.max(1,Math.min(f,l)),m=u?Math.max(0,l-1):Math.max(0,Math.min(l-1,p-1)),g=se.useMemo(()=>e.map((T,O)=>{let N;return"status"in T?N=T.status:u||O<m?N="completed":O===m?N="active":N="pending",{step:T,index:O,status:N}}),[e,m,u]),b=l>0?100/l/2:0,x=g.reduce((T,O)=>O.status==="completed"||O.status==="active"||O.status==="rejected"?O.index:T,-1),_=l>1?u?100:Math.max(0,x)/(l-1)*100:0,k=x>=0?r:s,v=u?r:s,C={"--rs-completed-color":r,"--rs-pending-color":n,"--rs-active-color":i,"--rs-rejected-color":"#ef4444","--rs-line-color":s,"--rs-half-step":`${b}%`,"--rs-progress":`${_}%`,"--rs-left-side-color":k,"--rs-right-side-color":v};if(l===0)return null;const R=c==="vertical"?"rs-stepper--vertical":c==="horizontal"?"rs-stepper--horizontal":"rs-stepper--responsive";return Y.jsxs("div",{className:"border border-[#E5E7EB] py-2 mx-2 rounded-lg bg-[#F9FAFB] shadow-[0px_2px_4px_-1px_#00000008,0px_4px_6px_-1px_#0000000D]",children:[Y.jsx("div",{className:"pl-2 pt-2 pb-3 text-[14px] font-bold",children:"Workflow Progress"}),Y.jsx("div",{className:`rs-stepper ${R}`,style:C,children:Y.jsx("div",{className:"rs-stepper__scroll",children:Y.jsxs("div",{className:"rs-stepper__row",children:[Y.jsx("div",{className:"rs-stepper__track",children:Y.jsx("div",{className:"rs-stepper__progress"})}),g.map(T=>Y.jsx(bn,{computed:T,showTime:a},"key"in T.step?T.step.key:T.step.id))]})})})]})},Ro=se.memo(Eo);var mr={exports:{}},wt={};/**
|
|
76
76
|
* @license React
|
|
77
77
|
* react-jsx-runtime.production.min.js
|
|
78
78
|
*
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the MIT license found in the
|
|
82
82
|
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/var
|
|
83
|
+
*/var Ur;function jo(){if(Ur)return wt;Ur=1;var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(c,l,f){var u,p={},m=null,g=null;f!==void 0&&(m=""+f),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(g=l.ref);for(u in l)n.call(l,u)&&!s.hasOwnProperty(u)&&(p[u]=l[u]);if(c&&c.defaultProps)for(u in l=c.defaultProps,l)p[u]===void 0&&(p[u]=l[u]);return{$$typeof:t,type:c,key:m,ref:g,props:p,_owner:i.current}}return wt.Fragment=r,wt.jsx=a,wt.jsxs=a,wt}var Ot={};/**
|
|
84
84
|
* @license React
|
|
85
85
|
* react-jsx-runtime.development.js
|
|
86
86
|
*
|
|
@@ -88,17 +88,46 @@
|
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the MIT license found in the
|
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/var
|
|
92
|
-
`+
|
|
93
|
-
`),
|
|
94
|
-
`),
|
|
95
|
-
`+
|
|
91
|
+
*/var Yr;function Oo(){return Yr||(Yr=1,process.env.NODE_ENV!=="production"&&(function(){var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.iterator,x="@@iterator";function _(o){if(o===null||typeof o!="object")return null;var d=b&&o[b]||o[x];return typeof d=="function"?d:null}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(o){{for(var d=arguments.length,h=new Array(d>1?d-1:0),w=1;w<d;w++)h[w-1]=arguments[w];C("error",o,h)}}function C(o,d,h){{var w=k.ReactDebugCurrentFrame,z=w.getStackAddendum();z!==""&&(d+="%s",h=h.concat([z]));var I=h.map(function(P){return String(P)});I.unshift("Warning: "+d),Function.prototype.apply.call(console[o],console,I)}}var R=!1,T=!1,O=!1,N=!1,E=!1,F;F=Symbol.for("react.module.reference");function H(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===s||E||o===i||o===f||o===u||N||o===g||R||T||O||typeof o=="object"&&o!==null&&(o.$$typeof===m||o.$$typeof===p||o.$$typeof===a||o.$$typeof===c||o.$$typeof===l||o.$$typeof===F||o.getModuleId!==void 0))}function Z(o,d,h){var w=o.displayName;if(w)return w;var z=d.displayName||d.name||"";return z!==""?h+"("+z+")":h}function Q(o){return o.displayName||"Context"}function U(o){if(o==null)return null;if(typeof o.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case u:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case c:var d=o;return Q(d)+".Consumer";case a:var h=o;return Q(h._context)+".Provider";case l:return Z(o,o.render,"ForwardRef");case p:var w=o.displayName||null;return w!==null?w:U(o.type)||"Memo";case m:{var z=o,I=z._payload,P=z._init;try{return U(P(I))}catch{return null}}}return null}var A=Object.assign,X=0,V,G,S,ee,oe,be,xe;function te(){}te.__reactDisabledLog=!0;function ne(){{if(X===0){V=console.log,G=console.info,S=console.warn,ee=console.error,oe=console.group,be=console.groupCollapsed,xe=console.groupEnd;var o={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}X++}}function we(){{if(X--,X===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},o,{value:V}),info:A({},o,{value:G}),warn:A({},o,{value:S}),error:A({},o,{value:ee}),group:A({},o,{value:oe}),groupCollapsed:A({},o,{value:be}),groupEnd:A({},o,{value:xe})})}X<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=k.ReactCurrentDispatcher,J;function ce(o,d,h){{if(J===void 0)try{throw Error()}catch(z){var w=z.stack.trim().match(/\n( *(at )?)/);J=w&&w[1]||""}return`
|
|
92
|
+
`+J+o}}var ue=!1,ae;{var Te=typeof WeakMap=="function"?WeakMap:Map;ae=new Te}function ve(o,d){if(!o||ue)return"";{var h=ae.get(o);if(h!==void 0)return h}var w;ue=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=ye.current,ye.current=null,ne();try{if(d){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(q){w=q}Reflect.construct(o,[],P)}else{try{P.call()}catch(q){w=q}o.call(P.prototype)}}else{try{throw Error()}catch(q){w=q}o()}}catch(q){if(q&&w&&typeof q.stack=="string"){for(var j=q.stack.split(`
|
|
93
|
+
`),K=w.stack.split(`
|
|
94
|
+
`),M=j.length-1,W=K.length-1;M>=1&&W>=0&&j[M]!==K[W];)W--;for(;M>=1&&W>=0;M--,W--)if(j[M]!==K[W]){if(M!==1||W!==1)do if(M--,W--,W<0||j[M]!==K[W]){var re=`
|
|
95
|
+
`+j[M].replace(" at new "," at ");return o.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",o.displayName)),typeof o=="function"&&ae.set(o,re),re}while(M>=1&&W>=0);break}}}finally{ue=!1,ye.current=I,we(),Error.prepareStackTrace=z}var me=o?o.displayName||o.name:"",le=me?ce(me):"";return typeof o=="function"&&ae.set(o,le),le}function Ce(o,d,h){return ve(o,!1)}function lt(o){var d=o.prototype;return!!(d&&d.isReactComponent)}function ke(o,d,h){if(o==null)return"";if(typeof o=="function")return ve(o,lt(o));if(typeof o=="string")return ce(o);switch(o){case f:return ce("Suspense");case u:return ce("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case l:return Ce(o.render);case p:return ke(o.type,d,h);case m:{var w=o,z=w._payload,I=w._init;try{return ke(I(z),d,h)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Be={},Ue=k.ReactDebugCurrentFrame;function fe(o){if(o){var d=o._owner,h=ke(o.type,o._source,d?d.type:null);Ue.setExtraStackFrame(h)}else Ue.setExtraStackFrame(null)}function Ht(o,d,h,w,z){{var I=Function.call.bind(de);for(var P in o)if(I(o,P)){var j=void 0;try{if(typeof o[P]!="function"){var K=Error((w||"React class")+": "+h+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}j=o[P](d,P,w,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){j=M}j&&!(j instanceof Error)&&(fe(z),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",w||"React class",h,P,typeof j),fe(null)),j instanceof Error&&!(j.message in Be)&&(Be[j.message]=!0,fe(z),v("Failed %s type: %s",h,j.message),fe(null))}}}var Gt=Array.isArray;function Ye(o){return Gt(o)}function Xt(o){{var d=typeof Symbol=="function"&&Symbol.toStringTag,h=d&&o[Symbol.toStringTag]||o.constructor.name||"Object";return h}}function Kt(o){try{return ct(o),!1}catch{return!0}}function ct(o){return""+o}function ut(o){if(Kt(o))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xt(o)),ct(o)}var ft=k.ReactCurrentOwner,Jt={key:!0,ref:!0,__self:!0,__source:!0},dt,pt;function Qt(o){if(de.call(o,"ref")){var d=Object.getOwnPropertyDescriptor(o,"ref").get;if(d&&d.isReactWarning)return!1}return o.ref!==void 0}function qt(o){if(de.call(o,"key")){var d=Object.getOwnPropertyDescriptor(o,"key").get;if(d&&d.isReactWarning)return!1}return o.key!==void 0}function Zt(o,d){typeof o.ref=="string"&&ft.current}function er(o,d){{var h=function(){dt||(dt=!0,v("%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://reactjs.org/link/special-props)",d))};h.isReactWarning=!0,Object.defineProperty(o,"key",{get:h,configurable:!0})}}function tr(o,d){{var h=function(){pt||(pt=!0,v("%s: `ref` 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://reactjs.org/link/special-props)",d))};h.isReactWarning=!0,Object.defineProperty(o,"ref",{get:h,configurable:!0})}}var rr=function(o,d,h,w,z,I,P){var j={$$typeof:t,type:o,key:d,ref:h,props:P,_owner:I};return j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(j,"_self",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.defineProperty(j,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j};function nr(o,d,h,w,z){{var I,P={},j=null,K=null;h!==void 0&&(ut(h),j=""+h),qt(d)&&(ut(d.key),j=""+d.key),Qt(d)&&(K=d.ref,Zt(d));for(I in d)de.call(d,I)&&!Jt.hasOwnProperty(I)&&(P[I]=d[I]);if(o&&o.defaultProps){var M=o.defaultProps;for(I in M)P[I]===void 0&&(P[I]=M[I])}if(j||K){var W=typeof o=="function"?o.displayName||o.name||"Unknown":o;j&&er(P,W),K&&tr(P,W)}return rr(o,j,K,z,w,ft.current,P)}}var Ve=k.ReactCurrentOwner,mt=k.ReactDebugCurrentFrame;function pe(o){if(o){var d=o._owner,h=ke(o.type,o._source,d?d.type:null);mt.setExtraStackFrame(h)}else mt.setExtraStackFrame(null)}var He;He=!1;function Ge(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function ht(){{if(Ve.current){var o=U(Ve.current.type);if(o)return`
|
|
96
96
|
|
|
97
|
-
Check the render method of \``+
|
|
97
|
+
Check the render method of \``+o+"`."}return""}}function or(o){return""}var gt={};function ir(o){{var d=ht();if(!d){var h=typeof o=="string"?o:o.displayName||o.name;h&&(d=`
|
|
98
98
|
|
|
99
|
-
Check the top-level render call using <`+
|
|
99
|
+
Check the top-level render call using <`+h+">.")}return d}}function yt(o,d){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var h=ir(d);if(gt[h])return;gt[h]=!0;var w="";o&&o._owner&&o._owner!==Ve.current&&(w=" It was passed a child from "+U(o._owner.type)+"."),pe(o),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,w),pe(null)}}function vt(o,d){{if(typeof o!="object")return;if(Ye(o))for(var h=0;h<o.length;h++){var w=o[h];Ge(w)&&yt(w,d)}else if(Ge(o))o._store&&(o._store.validated=!0);else if(o){var z=_(o);if(typeof z=="function"&&z!==o.entries)for(var I=z.call(o),P;!(P=I.next()).done;)Ge(P.value)&&yt(P.value,d)}}}function sr(o){{var d=o.type;if(d==null||typeof d=="string")return;var h;if(typeof d=="function")h=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===l||d.$$typeof===p))h=d.propTypes;else return;if(h){var w=U(d);Ht(h,o.props,"prop",w,o)}else if(d.PropTypes!==void 0&&!He){He=!0;var z=U(d);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(o){{for(var d=Object.keys(o.props),h=0;h<d.length;h++){var w=d[h];if(w!=="children"&&w!=="key"){pe(o),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",w),pe(null);break}}o.ref!==null&&(pe(o),v("Invalid attribute `ref` supplied to `React.Fragment`."),pe(null))}}var bt={};function xt(o,d,h,w,z,I){{var P=H(o);if(!P){var j="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(j+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var K=or();K?j+=K:j+=ht();var M;o===null?M="null":Ye(o)?M="array":o!==void 0&&o.$$typeof===t?(M="<"+(U(o.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):M=typeof o,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",M,j)}var W=nr(o,d,h,z,I);if(W==null)return W;if(P){var re=d.children;if(re!==void 0)if(w)if(Ye(re)){for(var me=0;me<re.length;me++)vt(re[me],o);Object.freeze&&Object.freeze(re)}else v("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 vt(re,o)}if(de.call(d,"key")){var le=U(o),q=Object.keys(d).filter(function(pr){return pr!=="key"}),Xe=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!bt[le+Xe]){var dr=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
|
100
100
|
let props = %s;
|
|
101
101
|
<%s {...props} />
|
|
102
102
|
React keys must be passed directly to JSX without using spread:
|
|
103
103
|
let props = %s;
|
|
104
|
-
<%s key={someKey} {...props} />`,jt,Ae,uo,Ae),pr[Ae+jt]=!0}}return a===n?io(ee):oo(ee),ee}}function so(a,v,_){return mr(a,v,_,!0)}function ao(a,v,_){return mr(a,v,_,!1)}var lo=ao,co=so;st.Fragment=n,st.jsx=lo,st.jsxs=co})()),st}var yr;function bo(){return yr||(yr=1,process.env.NODE_ENV==="production"?Ot.exports=yo():Ot.exports=vo()),Ot.exports}var C=bo();function Br(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Br(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Hr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Br(e))&&(n&&(n+=" "),n+=t);return n}const vr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,br=Hr,xo=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return br(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(d=>{const u=r==null?void 0:r[d],f=i==null?void 0:i[d];if(u===null)return null;const m=vr(u)||vr(f);return o[d][m]}),c=r&&Object.entries(r).reduce((d,u)=>{let[f,m]=u;return m===void 0||(d[f]=m),d},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,u)=>{let{class:f,className:m,...h}=u;return Object.entries(h).every(g=>{let[y,b]=g;return Array.isArray(b)?b.includes({...i,...c}[y]):{...i,...c}[y]===b})?[...d,f,m]:d},[]);return br(e,s,l,r==null?void 0:r.class,r==null?void 0:r.className)},Ut="-",wo=e=>{const t=Eo(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const i=o.split(Ut);return i[0]===""&&i.length!==1&&i.shift(),Ur(i,t)||ko(o)},getConflictingClassGroupIds:(o,i)=>{const s=r[o]||[];return i&&n[o]?[...s,...n[o]]:s}}},Ur=(e,t)=>{var r;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),i=o?Ur(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Ut);return(r=t.validators.find(({validator:c})=>c(s)))==null?void 0:r.classGroupId},xr=/^\[(.+)\]$/,ko=e=>{if(xr.test(e)){const t=xr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Eo=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Ft(r[o],n,o,t);return n},Ft=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:wr(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(_o(o)){Ft(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Ft(s,wr(t,i),r,n)})})},wr=(e,t)=>{let r=e;return t.split(Ut).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},_o=e=>e.isThemeGetter,So=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},At="!",$t=":",Ro=$t.length,To=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,c=0,l=0,d;for(let g=0;g<o.length;g++){let y=o[g];if(s===0&&c===0){if(y===$t){i.push(o.slice(l,g)),l=g+Ro;continue}if(y==="/"){d=g;continue}}y==="["?s++:y==="]"?s--:y==="("?c++:y===")"&&c--}const u=i.length===0?o:o.substring(l),f=jo(u),m=f!==u,h=d&&d>l?d-l:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:h}};if(t){const o=t+$t,i=n;n=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},jo=e=>e.endsWith(At)?e.substring(0,e.length-1):e.startsWith(At)?e.substring(1):e,Oo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let o=[];return r.forEach(i=>{i[0]==="["||t[i]?(n.push(...o.sort(),i),o=[]):o.push(i)}),n.push(...o.sort()),n}},Co=e=>({cache:So(e.cacheSize),parseClassName:To(e),sortModifiers:Oo(e),...wo(e)}),Po=/\s+/,No=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],c=e.trim().split(Po);let l="";for(let d=c.length-1;d>=0;d-=1){const u=c[d],{isExternal:f,modifiers:m,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}=r(u);if(f){l=u+(l.length>0?" "+l:l);continue}let b=!!y,x=n(b?g.substring(0,y):g);if(!x){if(!b){l=u+(l.length>0?" "+l:l);continue}if(x=n(g),!x){l=u+(l.length>0?" "+l:l);continue}b=!1}const w=i(m).join(":"),R=h?w+At:w,S=R+x;if(s.includes(S))continue;s.push(S);const P=o(x,b);for(let N=0;N<P.length;++N){const O=P[N];s.push(R+O)}l=u+(l.length>0?" "+l:l)}return l};function Do(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Yr(t))&&(n&&(n+=" "),n+=r);return n}const Yr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Yr(e[n]))&&(r&&(r+=" "),r+=t);return r};function zo(e,...t){let r,n,o,i=s;function s(l){const d=t.reduce((u,f)=>f(u),e());return r=Co(d),n=r.cache.get,o=r.cache.set,i=c,c(l)}function c(l){const d=n(l);if(d)return d;const u=No(l,r);return o(l,u),u}return function(){return i(Do.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Gr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fo=/^\d+\/\d+$/,Ao=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$o=/\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$/,Lo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ue=e=>Fo.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),je=e=>!!e&&Number.isInteger(Number(e)),Ct=e=>e.endsWith("%")&&F(e.slice(0,-1)),be=e=>Ao.test(e),Wo=()=>!0,Bo=e=>$o.test(e)&&!Lo.test(e),Xr=()=>!1,Ho=e=>Io.test(e),Uo=e=>Mo.test(e),Yo=e=>!T(e)&&!j(e),Go=e=>Xe(e,Qr,Xr),T=e=>Gr.test(e),$e=e=>Xe(e,qr,Bo),Pt=e=>Xe(e,Qo,F),kr=e=>Xe(e,Kr,Xr),Vo=e=>Xe(e,Jr,Uo),at=e=>Xe(e,Zr,Ho),j=e=>Vr.test(e),Ze=e=>Ke(e,qr),Xo=e=>Ke(e,qo),Er=e=>Ke(e,Kr),Ko=e=>Ke(e,Qr),Jo=e=>Ke(e,Jr),lt=e=>Ke(e,Zr,!0),Xe=(e,t,r)=>{const n=Gr.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ke=(e,t,r=!1)=>{const n=Vr.exec(e);return n?n[1]?t(n[1]):r:!1},Kr=e=>e==="position"||e==="percentage",Jr=e=>e==="image"||e==="url",Qr=e=>e==="length"||e==="size"||e==="bg-size",qr=e=>e==="length",Qo=e=>e==="number",qo=e=>e==="family-name",Zr=e=>e==="shadow",Zo=()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),i=te("leading"),s=te("breakpoint"),c=te("container"),l=te("spacing"),d=te("radius"),u=te("shadow"),f=te("inset-shadow"),m=te("text-shadow"),h=te("drop-shadow"),g=te("blur"),y=te("perspective"),b=te("aspect"),x=te("ease"),w=te("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...S(),j,T],N=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],E=()=>[j,T,l],D=()=>[Ue,"full","auto",...E()],B=()=>[je,"none","subgrid",j,T],J=()=>["auto",{span:["full",je,j,T]},je,j,T],G=()=>[je,"auto",j,T],U=()=>["auto","min","max","fr",j,T],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...E()],W=()=>[Ue,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],k=()=>[e,j,T],K=()=>[...S(),Er,kr,{position:[j,T]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Se=()=>["auto","cover","contain",Ko,Go,{size:[j,T]}],Re=()=>[Ct,Ze,$e],Q=()=>["","none","full",d,j,T],q=()=>["",F,Ze,$e],he=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[F,Ct,Er,kr],ge=()=>["","none",g,j,T],de=()=>["none",F,j,T],le=()=>["none",F,j,T],De=()=>[F,j,T],ye=()=>[Ue,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[be],breakpoint:[be],color:[Wo],container:[be],"drop-shadow":[be],ease:["in","out","in-out"],font:[Yo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[be],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[be],shadow:[be],spacing:["px",F],text:[be],"text-shadow":[be],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ue,T,j,b]}],container:["container"],columns:[{columns:[F,T,j,c]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[je,"auto",j,T]}],basis:[{basis:[Ue,"full","auto",c,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,Ue,"auto","initial","none",T]}],grow:[{grow:["",F,j,T]}],shrink:[{shrink:["",F,j,T]}],order:[{order:[je,"first","last","none",j,T]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[c,"screen",...W()]}],"min-w":[{"min-w":[c,"screen","none",...W()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...W()]}],h:[{h:["screen",...W()]}],"min-h":[{"min-h":["screen","none",...W()]}],"max-h":[{"max-h":["screen",...W()]}],"font-size":[{text:["base",r,Ze,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,j,Pt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ct,T]}],"font-family":[{font:[Xo,T,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,j,T]}],"line-clamp":[{"line-clamp":[F,"none",j,Pt]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",j,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",j,$e]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[F,"auto",j,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:Se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},je,j,T],radial:["",j,T],conic:[je,j,T]},Jo,Vo]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Re()}],"gradient-via-pos":[{via:Re()}],"gradient-to-pos":[{to:Re()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,j,T]}],"outline-w":[{outline:["",F,Ze,$e]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",u,lt,at]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,lt,at]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[F,$e]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",m,lt,at]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[F,j,T]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[j,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:Se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,T]}],filter:[{filter:["","none",j,T]}],blur:[{blur:ge()}],brightness:[{brightness:[F,j,T]}],contrast:[{contrast:[F,j,T]}],"drop-shadow":[{"drop-shadow":["","none",h,lt,at]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",F,j,T]}],"hue-rotate":[{"hue-rotate":[F,j,T]}],invert:[{invert:["",F,j,T]}],saturate:[{saturate:[F,j,T]}],sepia:[{sepia:["",F,j,T]}],"backdrop-filter":[{"backdrop-filter":["","none",j,T]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[F,j,T]}],"backdrop-contrast":[{"backdrop-contrast":[F,j,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,j,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,j,T]}],"backdrop-invert":[{"backdrop-invert":["",F,j,T]}],"backdrop-opacity":[{"backdrop-opacity":[F,j,T]}],"backdrop-saturate":[{"backdrop-saturate":[F,j,T]}],"backdrop-sepia":[{"backdrop-sepia":["",F,j,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",j,T]}],ease:[{ease:["linear","initial",x,j,T]}],delay:[{delay:[F,j,T]}],animate:[{animate:["none",w,j,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,j,T]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[j,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",j,T]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[F,Ze,$e,Pt]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ei=zo(Zo);function ti(...e){return ei(Hr(e))}function xe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function _r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function en(...e){return t=>{let r=!1;const n=e.map(o=>{const i=_r(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():_r(e[o],null)}}}}function Me(...e){return p.useCallback(en(...e),e)}function tn(e,t=[]){let r=[];function n(i,s){const c=p.createContext(s),l=r.length;r=[...r,s];const d=f=>{var m;const{scope:h,children:g,...y}=f,b=((m=h==null?void 0:h[e])==null?void 0:m[l])||c,x=p.useMemo(()=>y,Object.values(y));return C.jsx(b.Provider,{value:x,children:g})};d.displayName=i+"Provider";function u(f,m){var h;const g=((h=m==null?void 0:m[e])==null?void 0:h[l])||c,y=p.useContext(g);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[d,u]}const o=()=>{const i=r.map(s=>p.createContext(s));return function(s){const c=(s==null?void 0:s[e])||i;return p.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,ri(o,...t)]}function ri(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=n.reduce((s,{useScope:c,scopeName:l})=>{const d=c(o)[`__scope${l}`];return{...s,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function ni(e){const t=oi(e),r=p.forwardRef((n,o)=>{const{children:i,...s}=n,c=p.Children.toArray(i),l=c.find(si);if(l){const d=l.props.children,u=c.map(f=>f===l?p.Children.count(d)>1?p.Children.only(null):p.isValidElement(d)?d.props.children:null:f);return C.jsx(t,{...s,ref:o,children:p.isValidElement(d)?p.cloneElement(d,void 0,u):null})}return C.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function oi(e){const t=p.forwardRef((r,n)=>{const{children:o,...i}=r;if(p.isValidElement(o)){const s=li(o),c=ai(i,o.props);return o.type!==p.Fragment&&(c.ref=n?en(n,s):s),p.cloneElement(o,c)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rn=Symbol("radix.slottable");function ii(e){const t=({children:r})=>C.jsx(C.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=rn,t}function si(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rn}function ai(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function li(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=ci.reduce((e,t)=>{const r=ni(`Primitive.${t}`),n=p.forwardRef((o,i)=>{const{asChild:s,...c}=o,l=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(l,{...c,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ui(e,t){e&&Mr.flushSync(()=>e.dispatchEvent(t))}function gt(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function di(e,t=globalThis==null?void 0:globalThis.document){const r=gt(e);p.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var fi="DismissableLayer",Lt="dismissableLayer.update",pi="dismissableLayer.pointerDownOutside",mi="dismissableLayer.focusOutside",Sr,nn=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),on=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...l}=e,d=p.useContext(nn),[u,f]=p.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=p.useState({}),g=Me(t,O=>f(O)),y=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(b),w=u?y.indexOf(u):-1,R=d.layersWithOutsidePointerEventsDisabled.size>0,S=w>=x,P=yi(O=>{const E=O.target,D=[...d.branches].some(B=>B.contains(E));!S||D||(o==null||o(O),s==null||s(O),O.defaultPrevented||c==null||c())},m),N=vi(O=>{const E=O.target;[...d.branches].some(D=>D.contains(E))||(i==null||i(O),s==null||s(O),O.defaultPrevented||c==null||c())},m);return di(O=>{w===d.layers.size-1&&(n==null||n(O),!O.defaultPrevented&&c&&(O.preventDefault(),c()))},m),p.useEffect(()=>{if(u)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Sr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Rr(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Sr)}},[u,m,r,d]),p.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Rr())},[u,d]),p.useEffect(()=>{const O=()=>h({});return document.addEventListener(Lt,O),()=>document.removeEventListener(Lt,O)},[]),C.jsx(Ne.div,{...l,ref:g,style:{pointerEvents:R?S?"auto":"none":void 0,...e.style},onFocusCapture:xe(e.onFocusCapture,N.onFocusCapture),onBlurCapture:xe(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:xe(e.onPointerDownCapture,P.onPointerDownCapture)})});on.displayName=fi;var hi="DismissableLayerBranch",gi=p.forwardRef((e,t)=>{const r=p.useContext(nn),n=p.useRef(null),o=Me(t,n);return p.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),C.jsx(Ne.div,{...e,ref:o})});gi.displayName=hi;function yi(e,t=globalThis==null?void 0:globalThis.document){const r=gt(e),n=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const i=c=>{if(c.target&&!n.current){let l=function(){sn(pi,r,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function vi(e,t=globalThis==null?void 0:globalThis.document){const r=gt(e),n=p.useRef(!1);return p.useEffect(()=>{const o=i=>{i.target&&!n.current&&sn(mi,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Rr(){const e=new CustomEvent(Lt);document.dispatchEvent(e)}function sn(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ui(o,i):o.dispatchEvent(i)}var Oe=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},bi=p[" useId ".trim().toString()]||(()=>{}),xi=0;function wi(e){const[t,r]=p.useState(bi());return Oe(()=>{r(n=>n??String(xi++))},[e]),t?`radix-${t}`:""}const ki=["top","right","bottom","left"],Ce=Math.min,ie=Math.max,ft=Math.round,ct=Math.floor,pe=e=>({x:e,y:e}),Ei={left:"right",right:"left",bottom:"top",top:"bottom"};function It(e,t,r){return ie(e,Ce(t,r))}function we(e,t){return typeof e=="function"?e(t):e}function ke(e){return e.split("-")[0]}function Je(e){return e.split("-")[1]}function Yt(e){return e==="x"?"y":"x"}function Gt(e){return e==="y"?"height":"width"}function fe(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Vt(e){return Yt(fe(e))}function _i(e,t,r){r===void 0&&(r=!1);const n=Je(e),o=Vt(e),i=Gt(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=pt(s)),[s,pt(s)]}function Si(e){const t=pt(e);return[Mt(e),t,Mt(t)]}function Mt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Tr=["left","right"],jr=["right","left"],Ri=["top","bottom"],Ti=["bottom","top"];function ji(e,t,r){switch(e){case"top":case"bottom":return r?t?jr:Tr:t?Tr:jr;case"left":case"right":return t?Ri:Ti;default:return[]}}function Oi(e,t,r,n){const o=Je(e);let i=ji(ke(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Mt)))),i}function pt(e){const t=ke(e);return Ei[t]+e.slice(t.length)}function Ci(e){return{top:0,right:0,bottom:0,left:0,...e}}function an(e){return typeof e!="number"?Ci(e):{top:e,right:e,bottom:e,left:e}}function mt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Or(e,t,r){let{reference:n,floating:o}=e;const i=fe(t),s=Vt(t),c=Gt(s),l=ke(t),d=i==="y",u=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,m=n[c]/2-o[c]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-o.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Je(t)){case"start":h[s]-=m*(r&&d?-1:1);break;case"end":h[s]+=m*(r&&d?-1:1);break}return h}async function Pi(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=we(t,e),g=an(h),y=c[m?f==="floating"?"reference":"floating":f],b=mt(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:d,rootBoundary:u,strategy:l})),x=f==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),R=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=mt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-S.top+g.top)/R.y,bottom:(S.bottom-b.bottom+g.bottom)/R.y,left:(b.left-S.left+g.left)/R.x,right:(S.right-b.right+g.right)/R.x}}const Ni=50,Di=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,c=s.detectOverflow?s:{...s,detectOverflow:Pi},l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Or(d,n,l),m=n,h=0;const g={};for(let y=0;y<i.length;y++){const b=i[y];if(!b)continue;const{name:x,fn:w}=b,{x:R,y:S,data:P,reset:N}=await w({x:u,y:f,initialPlacement:n,placement:m,strategy:o,middlewareData:g,rects:d,platform:c,elements:{reference:e,floating:t}});u=R??u,f=S??f,g[x]={...g[x],...P},N&&h<Ni&&(h++,typeof N=="object"&&(N.placement&&(m=N.placement),N.rects&&(d=N.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:u,y:f}=Or(d,m,l)),y=-1)}return{x:u,y:f,placement:m,strategy:o,middlewareData:g}},zi=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:u=0}=we(e,t)||{};if(d==null)return{};const f=an(u),m={x:r,y:n},h=Vt(o),g=Gt(h),y=await s.getDimensions(d),b=h==="y",x=b?"top":"left",w=b?"bottom":"right",R=b?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[h]-m[h]-i.floating[g],P=m[h]-i.reference[h],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let O=N?N[R]:0;(!O||!await(s.isElement==null?void 0:s.isElement(N)))&&(O=c.floating[R]||i.floating[g]);const E=S/2-P/2,D=O/2-y[g]/2-1,B=Ce(f[x],D),J=Ce(f[w],D),G=B,U=O-y[g]-J,$=O/2-y[g]/2+E,X=It(G,$,U),M=!l.arrow&&Je(o)!=null&&$!==X&&i.reference[g]/2-($<G?B:J)-y[g]/2<0,W=M?$<G?$-G:$-U:0;return{[h]:m[h]+W,data:{[h]:X,centerOffset:$-X-W,...M&&{alignmentOffset:W}},reset:M}}}),Fi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...b}=we(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const x=ke(o),w=fe(c),R=ke(c)===c,S=await(l.isRTL==null?void 0:l.isRTL(d.floating)),P=m||(R||!y?[pt(c)]:Si(c)),N=g!=="none";!m&&N&&P.push(...Oi(c,y,g,S));const O=[c,...P],E=await l.detectOverflow(t,b),D=[];let B=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&D.push(E[x]),f){const $=_i(o,s,S);D.push(E[$[0]],E[$[1]])}if(B=[...B,{placement:o,overflows:D}],!D.every($=>$<=0)){var J,G;const $=(((J=i.flip)==null?void 0:J.index)||0)+1,X=O[$];if(X&&(!(f==="alignment"&&w!==fe(X))||B.every(W=>fe(W.placement)===w?W.overflows[0]>0:!0)))return{data:{index:$,overflows:B},reset:{placement:X}};let M=(G=B.filter(W=>W.overflows[0]<=0).sort((W,k)=>W.overflows[1]-k.overflows[1])[0])==null?void 0:G.placement;if(!M)switch(h){case"bestFit":{var U;const W=(U=B.filter(k=>{if(N){const K=fe(k.placement);return K===w||K==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(K=>K>0).reduce((K,re)=>K+re,0)]).sort((k,K)=>k[1]-K[1])[0])==null?void 0:U[0];W&&(M=W);break}case"initialPlacement":M=c;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function Cr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pr(e){return ki.some(t=>e[t]>=0)}const Ai=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=we(e,t);switch(o){case"referenceHidden":{const s=await n.detectOverflow(t,{...i,elementContext:"reference"}),c=Cr(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Pr(c)}}}case"escaped":{const s=await n.detectOverflow(t,{...i,altBoundary:!0}),c=Cr(s,r.floating);return{data:{escapedOffsets:c,escaped:Pr(c)}}}default:return{}}}}},ln=new Set(["left","top"]);async function $i(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=ke(r),c=Je(r),l=fe(r)==="y",d=ln.has(s)?-1:1,u=i&&l?-1:1,f=we(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(h=c==="end"?g*-1:g),l?{x:h*u,y:m*d}:{x:m*d,y:h*u}}const Li=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:c}=t,l=await $i(t,e);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ii=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:x=>{let{x:w,y:R}=x;return{x:w,y:R}}},...d}=we(e,t),u={x:r,y:n},f=await i.detectOverflow(t,d),m=fe(ke(o)),h=Yt(m);let g=u[h],y=u[m];if(s){const x=h==="y"?"top":"left",w=h==="y"?"bottom":"right",R=g+f[x],S=g-f[w];g=It(R,g,S)}if(c){const x=m==="y"?"top":"left",w=m==="y"?"bottom":"right",R=y+f[x],S=y-f[w];y=It(R,y,S)}const b=l.fn({...t,[h]:g,[m]:y});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[h]:s,[m]:c}}}}}},Mi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=we(e,t),u={x:r,y:n},f=fe(o),m=Yt(f);let h=u[m],g=u[f];const y=we(c,t),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const R=m==="y"?"height":"width",S=i.reference[m]-i.floating[R]+b.mainAxis,P=i.reference[m]+i.reference[R]-b.mainAxis;h<S?h=S:h>P&&(h=P)}if(d){var x,w;const R=m==="y"?"width":"height",S=ln.has(ke(o)),P=i.reference[f]-i.floating[R]+(S&&((x=s.offset)==null?void 0:x[f])||0)+(S?0:b.crossAxis),N=i.reference[f]+i.reference[R]+(S?0:((w=s.offset)==null?void 0:w[f])||0)-(S?b.crossAxis:0);g<P?g=P:g>N&&(g=N)}return{[m]:h,[f]:g}}}},Wi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:c}=t,{apply:l=()=>{},...d}=we(e,t),u=await s.detectOverflow(t,d),f=ke(o),m=Je(o),h=fe(o)==="y",{width:g,height:y}=i.floating;let b,x;f==="top"||f==="bottom"?(b=f,x=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(x=f,b=m==="end"?"top":"bottom");const w=y-u.top-u.bottom,R=g-u.left-u.right,S=Ce(y-u[b],w),P=Ce(g-u[x],R),N=!t.middlewareData.shift;let O=S,E=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(E=R),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=w),N&&!m){const B=ie(u.left,0),J=ie(u.right,0),G=ie(u.top,0),U=ie(u.bottom,0);h?E=g-2*(B!==0||J!==0?B+J:ie(u.left,u.right)):O=y-2*(G!==0||U!==0?G+U:ie(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:O});const D=await s.getDimensions(c.floating);return g!==D.width||y!==D.height?{reset:{rects:!0}}:{}}}};function yt(){return typeof window<"u"}function Qe(e){return cn(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function me(e){var t;return(t=(cn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cn(e){return yt()?e instanceof Node||e instanceof se(e).Node:!1}function ce(e){return yt()?e instanceof Element||e instanceof se(e).Element:!1}function _e(e){return yt()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function Nr(e){return!yt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function rt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&o!=="inline"&&o!=="contents"}function Bi(e){return/^(table|td|th)$/.test(Qe(e))}function vt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Hi=/transform|translate|scale|rotate|perspective|filter/,Ui=/paint|layout|strict|content/,Le=e=>!!e&&e!=="none";let Nt;function Xt(e){const t=ce(e)?ue(e):e;return Le(t.transform)||Le(t.translate)||Le(t.scale)||Le(t.rotate)||Le(t.perspective)||!Kt()&&(Le(t.backdropFilter)||Le(t.filter))||Hi.test(t.willChange||"")||Ui.test(t.contain||"")}function Yi(e){let t=Pe(e);for(;_e(t)&&!Ge(t);){if(Xt(t))return t;if(vt(t))return null;t=Pe(t)}return null}function Kt(){return Nt==null&&(Nt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nt}function Ge(e){return/^(html|body|#document)$/.test(Qe(e))}function ue(e){return se(e).getComputedStyle(e)}function bt(e){return ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pe(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nr(e)&&e.host||me(e);return Nr(t)?t.host:t}function un(e){const t=Pe(e);return Ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:_e(t)&&rt(t)?t:un(t)}function et(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=un(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=se(o);if(i){const c=Wt(s);return t.concat(s,s.visualViewport||[],rt(o)?o:[],c&&r?et(c):[])}else return t.concat(o,et(o,[],r))}function Wt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dn(e){const t=ue(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=_e(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,c=ft(r)!==i||ft(n)!==s;return c&&(r=i,n=s),{width:r,height:n,$:c}}function Jt(e){return ce(e)?e:e.contextElement}function Ye(e){const t=Jt(e);if(!_e(t))return pe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=dn(t);let s=(i?ft(r.width):r.width)/n,c=(i?ft(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Gi=pe(0);function fn(e){const t=se(e);return!Kt()||!t.visualViewport?Gi:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vi(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==se(e)?!1:t}function Ie(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Jt(e);let s=pe(1);t&&(n?ce(n)&&(s=Ye(n)):s=Ye(e));const c=Vi(i,r,n)?fn(i):pe(0);let l=(o.left+c.x)/s.x,d=(o.top+c.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const m=se(i),h=n&&ce(n)?se(n):n;let g=m,y=Wt(g);for(;y&&n&&h!==g;){const b=Ye(y),x=y.getBoundingClientRect(),w=ue(y),R=x.left+(y.clientLeft+parseFloat(w.paddingLeft))*b.x,S=x.top+(y.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,d*=b.y,u*=b.x,f*=b.y,l+=R,d+=S,g=se(y),y=Wt(g)}}return mt({width:u,height:f,x:l,y:d})}function xt(e,t){const r=bt(e).scrollLeft;return t?t.left+r:Ie(me(e)).left+r}function pn(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-xt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Xi(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=me(n),c=t?vt(t.floating):!1;if(n===s||c&&i)return r;let l={scrollLeft:0,scrollTop:0},d=pe(1);const u=pe(0),f=_e(n);if((f||!f&&!i)&&((Qe(n)!=="body"||rt(s))&&(l=bt(n)),f)){const h=Ie(n);d=Ye(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const m=s&&!f&&!i?pn(s,l):pe(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+u.x+m.x,y:r.y*d.y-l.scrollTop*d.y+u.y+m.y}}function Ki(e){return Array.from(e.getClientRects())}function Ji(e){const t=me(e),r=bt(e),n=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ie(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+xt(e);const c=-r.scrollTop;return ue(n).direction==="rtl"&&(s+=ie(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:c}}const Dr=25;function Qi(e,t){const r=se(e),n=me(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,c=0,l=0;if(o){i=o.width,s=o.height;const u=Kt();(!u||u&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}const d=xt(n);if(d<=0){const u=n.ownerDocument,f=u.body,m=getComputedStyle(f),h=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(n.clientWidth-f.clientWidth-h);g<=Dr&&(i-=g)}else d<=Dr&&(i+=d);return{width:i,height:s,x:c,y:l}}function qi(e,t){const r=Ie(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=_e(e)?Ye(e):pe(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=o*i.x,d=n*i.y;return{width:s,height:c,x:l,y:d}}function zr(e,t,r){let n;if(t==="viewport")n=Qi(e,r);else if(t==="document")n=Ji(me(e));else if(ce(t))n=qi(t,r);else{const o=fn(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return mt(n)}function mn(e,t){const r=Pe(e);return r===t||!ce(r)||Ge(r)?!1:ue(r).position==="fixed"||mn(r,t)}function Zi(e,t){const r=t.get(e);if(r)return r;let n=et(e,[],!1).filter(c=>ce(c)&&Qe(c)!=="body"),o=null;const i=ue(e).position==="fixed";let s=i?Pe(e):e;for(;ce(s)&&!Ge(s);){const c=ue(s),l=Xt(s);!l&&c.position==="fixed"&&(o=null),(i?!l&&!o:!l&&c.position==="static"&&o&&(o.position==="absolute"||o.position==="fixed")||rt(s)&&!l&&mn(e,s))?n=n.filter(d=>d!==s):o=c,s=Pe(s)}return t.set(e,n),n}function es(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?vt(t)?[]:Zi(t,this._c):[].concat(r),n],s=zr(t,i[0],o);let c=s.top,l=s.right,d=s.bottom,u=s.left;for(let f=1;f<i.length;f++){const m=zr(t,i[f],o);c=ie(m.top,c),l=Ce(m.right,l),d=Ce(m.bottom,d),u=ie(m.left,u)}return{width:l-u,height:d-c,x:u,y:c}}function ts(e){const{width:t,height:r}=dn(e);return{width:t,height:r}}function rs(e,t,r){const n=_e(t),o=me(t),i=r==="fixed",s=Ie(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=pe(0);function d(){l.x=xt(o)}if(n||!n&&!i)if((Qe(t)!=="body"||rt(o))&&(c=bt(t)),n){const h=Ie(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&d();i&&!n&&o&&d();const u=o&&!n&&!i?pn(o,c):pe(0),f=s.left+c.scrollLeft-l.x-u.x,m=s.top+c.scrollTop-l.y-u.y;return{x:f,y:m,width:s.width,height:s.height}}function Dt(e){return ue(e).position==="static"}function Fr(e,t){if(!_e(e)||ue(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return me(e)===r&&(r=r.ownerDocument.body),r}function hn(e,t){const r=se(e);if(vt(e))return r;if(!_e(e)){let o=Pe(e);for(;o&&!Ge(o);){if(ce(o)&&!Dt(o))return o;o=Pe(o)}return r}let n=Fr(e,t);for(;n&&Bi(n)&&Dt(n);)n=Fr(n,t);return n&&Ge(n)&&Dt(n)&&!Xt(n)?r:n||Yi(e)||r}const ns=async function(e){const t=this.getOffsetParent||hn,r=this.getDimensions,n=await r(e.floating);return{reference:rs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function os(e){return ue(e).direction==="rtl"}const is={convertOffsetParentRelativeRectToViewportRelativeRect:Xi,getDocumentElement:me,getClippingRect:es,getOffsetParent:hn,getElementRects:ns,getClientRects:Ki,getDimensions:ts,getScale:Ye,isElement:ce,isRTL:os};function gn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ss(e,t){let r=null,n;const o=me(e);function i(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const d=e.getBoundingClientRect(),{left:u,top:f,width:m,height:h}=d;if(c||t(),!m||!h)return;const g=ct(f),y=ct(o.clientWidth-(u+m)),b=ct(o.clientHeight-(f+h)),x=ct(u),w={rootMargin:-g+"px "+-y+"px "+-b+"px "+-x+"px",threshold:ie(0,Ce(1,l))||1};let R=!0;function S(P){const N=P[0].intersectionRatio;if(N!==l){if(!R)return s();N?s(!1,N):n=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!gn(d,e.getBoundingClientRect())&&s(),R=!1}try{r=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,w)}r.observe(e)}return s(!0),i}function as(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,d=Jt(e),u=o||i?[...d?et(d):[],...t?et(t):[]]:[];u.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const f=d&&c?ss(d,r):null;let m=-1,h=null;s&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var R;(R=h)==null||R.observe(t)})),r()}),d&&!l&&h.observe(d),t&&h.observe(t));let g,y=l?Ie(e):null;l&&b();function b(){const x=Ie(e);y&&!gn(y,x)&&r(),y=x,g=requestAnimationFrame(b)}return r(),()=>{var x;u.forEach(w=>{o&&w.removeEventListener("scroll",r),i&&w.removeEventListener("resize",r)}),f==null||f(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const ls=Li,cs=Ii,us=Fi,ds=Wi,fs=Ai,Ar=zi,ps=Mi,ms=(e,t,r)=>{const n=new Map,o={platform:is,...r},i={...o.platform,_c:n};return Di(e,t,{...o,platform:i})};var hs=typeof document<"u",gs=function(){},dt=hs?Ee.useLayoutEffect:gs;function ht(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!ht(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!ht(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function yn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $r(e,t){const r=yn(e);return Math.round(t*r)/r}function zt(e){const t=p.useRef(e);return dt(()=>{t.current=e}),t}function ys(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[u,f]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=p.useState(n);ht(m,n)||h(n);const[g,y]=p.useState(null),[b,x]=p.useState(null),w=p.useCallback(k=>{k!==N.current&&(N.current=k,y(k))},[]),R=p.useCallback(k=>{k!==O.current&&(O.current=k,x(k))},[]),S=i||g,P=s||b,N=p.useRef(null),O=p.useRef(null),E=p.useRef(u),D=l!=null,B=zt(l),J=zt(o),G=zt(d),U=p.useCallback(()=>{if(!N.current||!O.current)return;const k={placement:t,strategy:r,middleware:m};J.current&&(k.platform=J.current),ms(N.current,O.current,k).then(K=>{const re={...K,isPositioned:G.current!==!1};$.current&&!ht(E.current,re)&&(E.current=re,Mr.flushSync(()=>{f(re)}))})},[m,t,r,J,G]);dt(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[d]);const $=p.useRef(!1);dt(()=>($.current=!0,()=>{$.current=!1}),[]),dt(()=>{if(S&&(N.current=S),P&&(O.current=P),S&&P){if(B.current)return B.current(S,P,U);U()}},[S,P,U,B,D]);const X=p.useMemo(()=>({reference:N,floating:O,setReference:w,setFloating:R}),[w,R]),M=p.useMemo(()=>({reference:S,floating:P}),[S,P]),W=p.useMemo(()=>{const k={position:r,left:0,top:0};if(!M.floating)return k;const K=$r(M.floating,u.x),re=$r(M.floating,u.y);return c?{...k,transform:"translate("+K+"px, "+re+"px)",...yn(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:K,top:re}},[r,c,M.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:U,refs:X,elements:M,floatingStyles:W}),[u,U,X,M,W])}const vs=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Ar({element:n.current,padding:o}).fn(r):{}:n?Ar({element:n,padding:o}).fn(r):{}}}},bs=(e,t)=>{const r=ls(e);return{name:r.name,fn:r.fn,options:[e,t]}},xs=(e,t)=>{const r=cs(e);return{name:r.name,fn:r.fn,options:[e,t]}},ws=(e,t)=>({fn:ps(e).fn,options:[e,t]}),ks=(e,t)=>{const r=us(e);return{name:r.name,fn:r.fn,options:[e,t]}},Es=(e,t)=>{const r=ds(e);return{name:r.name,fn:r.fn,options:[e,t]}},_s=(e,t)=>{const r=fs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ss=(e,t)=>{const r=vs(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Rs="Arrow",vn=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return C.jsx(Ne.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});vn.displayName=Rs;var Ts=vn;function js(e){const[t,r]=p.useState(void 0);return Oe(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,c;if("borderBoxSize"in i){const l=i.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;r({width:s,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Qt="Popper",[bn,xn]=tn(Qt),[Os,wn]=bn(Qt),kn=e=>{const{__scopePopper:t,children:r}=e,[n,o]=p.useState(null);return C.jsx(Os,{scope:t,anchor:n,onAnchorChange:o,children:r})};kn.displayName=Qt;var En="PopperAnchor",_n=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=wn(En,r),s=p.useRef(null),c=Me(t,s),l=p.useRef(null);return p.useEffect(()=>{const d=l.current;l.current=(n==null?void 0:n.current)||s.current,d!==l.current&&i.onAnchorChange(l.current)}),n?null:C.jsx(Ne.div,{...o,ref:c})});_n.displayName=En;var qt="PopperContent",[Cs,Ps]=bn(qt),Sn=p.forwardRef((e,t)=>{var r,n,o,i,s,c;const{__scopePopper:l,side:d="bottom",sideOffset:u=0,align:f="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:R="optimized",onPlaced:S,...P}=e,N=wn(qt,l),[O,E]=p.useState(null),D=Me(t,ze=>E(ze)),[B,J]=p.useState(null),G=js(B),U=(G==null?void 0:G.width)??0,$=(G==null?void 0:G.height)??0,X=d+(f!=="center"?"-"+f:""),M=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},W=Array.isArray(y)?y:[y],k=W.length>0,K={padding:M,boundary:W.filter(Ds),altBoundary:k},{refs:re,floatingStyles:Se,placement:Re,isPositioned:Q,middlewareData:q}=ys({strategy:"fixed",placement:X,whileElementsMounted:(...ze)=>as(...ze,{animationFrame:R==="always"}),elements:{reference:N.anchor},middleware:[bs({mainAxis:u+$,alignmentAxis:m}),g&&xs({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?ws():void 0,...K}),g&&ks({...K}),Es({...K,apply:({elements:ze,rects:Et,availableWidth:We,availableHeight:Fe})=>{const{width:ot,height:it}=Et.reference,ve=ze.floating.style;ve.setProperty("--radix-popper-available-width",`${We}px`),ve.setProperty("--radix-popper-available-height",`${Fe}px`),ve.setProperty("--radix-popper-anchor-width",`${ot}px`),ve.setProperty("--radix-popper-anchor-height",`${it}px`)}}),B&&Ss({element:B,padding:h}),zs({arrowWidth:U,arrowHeight:$}),w&&_s({strategy:"referenceHidden",...K})]}),[he,Te]=jn(Re),V=gt(S);Oe(()=>{Q&&(V==null||V())},[Q,V]);const ge=(r=q.arrow)==null?void 0:r.x,de=(n=q.arrow)==null?void 0:n.y,le=((o=q.arrow)==null?void 0:o.centerOffset)!==0,[De,ye]=p.useState();return Oe(()=>{O&&ye(window.getComputedStyle(O).zIndex)},[O]),C.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...Se,transform:Q?Se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:De,"--radix-popper-transform-origin":[(i=q.transformOrigin)==null?void 0:i.x,(s=q.transformOrigin)==null?void 0:s.y].join(" "),...((c=q.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(Cs,{scope:l,placedSide:he,onArrowChange:J,arrowX:ge,arrowY:de,shouldHideArrow:le,children:C.jsx(Ne.div,{"data-side":he,"data-align":Te,...P,ref:D,style:{...P.style,animation:Q?void 0:"none"}})})})});Sn.displayName=qt;var Rn="PopperArrow",Ns={top:"bottom",right:"left",bottom:"top",left:"right"},Tn=p.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=Ps(Rn,r),i=Ns[o.placedSide];return C.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:C.jsx(Ts,{...n,ref:t,style:{...n.style,display:"block"}})})});Tn.displayName=Rn;function Ds(e){return e!==null}var zs=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o;const{placement:i,rects:s,middlewareData:c}=t,l=((r=c.arrow)==null?void 0:r.centerOffset)!==0,d=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[f,m]=jn(i),h={start:"0%",center:"50%",end:"100%"}[m],g=(((n=c.arrow)==null?void 0:n.x)??0)+d/2,y=(((o=c.arrow)==null?void 0:o.y)??0)+u/2;let b="",x="";return f==="bottom"?(b=l?h:`${g}px`,x=`${-u}px`):f==="top"?(b=l?h:`${g}px`,x=`${s.floating.height+u}px`):f==="right"?(b=`${-u}px`,x=l?h:`${y}px`):f==="left"&&(b=`${s.floating.width+u}px`,x=l?h:`${y}px`),{data:{x:b,y:x}}}});function jn(e){const[t,r="center"]=e.split("-");return[t,r]}var Fs=kn,As=_n,$s=Sn,Ls=Tn,Is="Portal",On=p.forwardRef((e,t)=>{var r;const{container:n,...o}=e,[i,s]=p.useState(!1);Oe(()=>s(!0),[]);const c=n||i&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return c?Lr.createPortal(C.jsx(Ne.div,{...o,ref:t}),c):null});On.displayName=Is;function Ms(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var Zt=e=>{const{present:t,children:r}=e,n=Ws(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),i=Me(n.ref,Bs(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:i}):null};Zt.displayName="Presence";function Ws(e){const[t,r]=p.useState(),n=p.useRef(null),o=p.useRef(e),i=p.useRef("none"),s=e?"mounted":"unmounted",[c,l]=Ms(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const d=ut(n.current);i.current=c==="mounted"?d:"none"},[c]),Oe(()=>{const d=n.current,u=o.current;if(u!==e){const f=i.current,m=ut(d);e?l("MOUNT"):m==="none"||(d==null?void 0:d.display)==="none"?l("UNMOUNT"):l(u&&f!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Oe(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,f=h=>{const g=ut(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&g&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},m=h=>{h.target===t&&(i.current=ut(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:p.useCallback(d=>{n.current=d?getComputedStyle(d):null,r(d)},[])}}function ut(e){return(e==null?void 0:e.animationName)||"none"}function Bs(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var Hs=p[" useInsertionEffect ".trim().toString()]||Oe;function Us({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=Ys({defaultProp:t,onChange:r}),c=e!==void 0,l=c?e:o;{const u=p.useRef(e!==void 0);p.useEffect(()=>{const f=u.current;f!==c&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=c},[c,n])}const d=p.useCallback(u=>{var f;if(c){const m=Gs(u)?u(e):u;m!==e&&((f=s.current)==null||f.call(s,m))}else i(u)},[c,e,i,s]);return[l,d]}function Ys({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),o=p.useRef(r),i=p.useRef(t);return Hs(()=>{i.current=t},[t]),p.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Gs(e){return typeof e=="function"}var Vs=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Xs="VisuallyHidden",Cn=p.forwardRef((e,t)=>C.jsx(Ne.span,{...e,ref:t,style:{...Vs,...e.style}}));Cn.displayName=Xs;var Ks=Cn,[wt]=tn("Tooltip",[xn]),kt=xn(),Pn="TooltipProvider",Js=700,Bt="tooltip.open",[Qs,er]=wt(Pn),Nn=e=>{const{__scopeTooltip:t,delayDuration:r=Js,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,s=p.useRef(!0),c=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),C.jsx(Qs,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:p.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:p.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:i})};Nn.displayName=Pn;var tt="Tooltip",[qs,nt]=wt(tt),Dn=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:c}=e,l=er(tt,e.__scopeTooltip),d=kt(t),[u,f]=p.useState(null),m=wi(),h=p.useRef(0),g=s??l.disableHoverableContent,y=c??l.delayDuration,b=p.useRef(!1),[x,w]=Us({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(Bt))):l.onClose(),i==null||i(O)},caller:tt}),R=p.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),S=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,w(!0)},[w]),P=p.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),N=p.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,w(!0),h.current=0},y)},[y,w]);return p.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),C.jsx(Fs,{...d,children:C.jsx(qs,{scope:t,contentId:m,open:x,stateAttribute:R,trigger:u,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayedRef.current?N():S()},[l.isOpenDelayedRef,N,S]),onTriggerLeave:p.useCallback(()=>{g?P():(window.clearTimeout(h.current),h.current=0)},[P,g]),onOpen:S,onClose:P,disableHoverableContent:g,children:r})})};Dn.displayName=tt;var Ht="TooltipTrigger",zn=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=nt(Ht,r),i=er(Ht,r),s=kt(r),c=p.useRef(null),l=Me(t,c,o.onTriggerChange),d=p.useRef(!1),u=p.useRef(!1),f=p.useCallback(()=>d.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),C.jsx(As,{asChild:!0,...s,children:C.jsx(Ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:xe(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:xe(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:xe(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:xe(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:xe(e.onBlur,o.onClose),onClick:xe(e.onClick,o.onClose)})})});zn.displayName=Ht;var tr="TooltipPortal",[Zs,ea]=wt(tr,{forceMount:void 0}),Fn=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=nt(tr,t);return C.jsx(Zs,{scope:t,forceMount:r,children:C.jsx(Zt,{present:r||i.open,children:C.jsx(On,{asChild:!0,container:o,children:n})})})};Fn.displayName=tr;var Ve="TooltipContent",An=p.forwardRef((e,t)=>{const r=ea(Ve,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,s=nt(Ve,e.__scopeTooltip);return C.jsx(Zt,{present:n||s.open,children:s.disableHoverableContent?C.jsx($n,{side:o,...i,ref:t}):C.jsx(ta,{side:o,...i,ref:t})})}),ta=p.forwardRef((e,t)=>{const r=nt(Ve,e.__scopeTooltip),n=er(Ve,e.__scopeTooltip),o=p.useRef(null),i=Me(t,o),[s,c]=p.useState(null),{trigger:l,onClose:d}=r,u=o.current,{onPointerInTransitChange:f}=n,m=p.useCallback(()=>{c(null),f(!1)},[f]),h=p.useCallback((g,y)=>{const b=g.currentTarget,x={x:g.clientX,y:g.clientY},w=ia(x,b.getBoundingClientRect()),R=sa(x,w),S=aa(y.getBoundingClientRect()),P=ca([...R,...S]);c(P),f(!0)},[f]);return p.useEffect(()=>()=>m(),[m]),p.useEffect(()=>{if(l&&u){const g=b=>h(b,u),y=b=>h(b,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",y)}}},[l,u,h,m]),p.useEffect(()=>{if(s){const g=y=>{const b=y.target,x={x:y.clientX,y:y.clientY},w=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),R=!la(x,s);w?m():R&&(m(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,s,d,m]),C.jsx($n,{...e,ref:i})}),[ra,na]=wt(tt,{isInside:!1}),oa=ii("TooltipContent"),$n=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...c}=e,l=nt(Ve,r),d=kt(r),{onClose:u}=l;return p.useEffect(()=>(document.addEventListener(Bt,u),()=>document.removeEventListener(Bt,u)),[u]),p.useEffect(()=>{if(l.trigger){const f=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),C.jsx(on,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:C.jsxs($s,{"data-state":l.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(oa,{children:n}),C.jsx(ra,{scope:r,isInside:!0,children:C.jsx(Ks,{id:l.contentId,role:"tooltip",children:o||n})})]})})});An.displayName=Ve;var Ln="TooltipArrow",In=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=kt(r);return na(Ln,r).isInside?null:C.jsx(Ls,{...o,...n,ref:t})});In.displayName=Ln;function ia(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function sa(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function aa(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function la(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const c=t[i],l=t[s],d=c.x,u=c.y,f=l.x,m=l.y;u>n!=m>n&&r<(f-d)*(n-u)/(m-u)+d&&(o=!o)}return o}function ca(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ua(t)}function ua(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],s=r[r.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var da=Nn,fa=Dn,pa=zn,ma=Fn,Mn=An,ha=In;const Wn=da,Bn=fa,Hn=pa,rr=p.forwardRef(({className:e,sideOffset:t=6,style:r,...n},o)=>{const i={backgroundColor:"#000000",color:"#ffffff",zIndex:99999,...r};return C.jsx(ma,{children:C.jsxs(Mn,{ref:o,sideOffset:t,className:`overflow-hidden rounded-lg border border-slate-950 px-3 py-1 text-xs text-white ${e??""}`,style:i,...n,children:[n.children,C.jsx(ha,{style:{fill:"#000000"}})]})})});rr.displayName=Mn.displayName;const ga=xo("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-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-blue-500 text-white",save:"text-white",delete:"text-white",update:"text-white",cancel:"text-[#414651] border border-[#D5D7DA]",outline:"text-[#003B71]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",xs:"h-5 px-1 text-xs rounded"}},defaultVariants:{variant:"default",size:"default"}}),ya=Ee.forwardRef(({className:e,variant:t,size:r,loading:n=!1,disabled:o,children:i,leftIcon:s,datatestid:c,rightIcon:l,style:d,iconButton:u=!1,tooltipLabel:f,saveColor:m="#003B71",deleteColor:h="#FF6070",updateColor:g="#003B71",cancelColor:y="#ffffff",outlineColor:b="#003B71",...x},w)=>{const R={...t&&{save:{backgroundColor:m},delete:{backgroundColor:h},update:{backgroundColor:g},cancel:{backgroundColor:y},outline:{backgroundColor:b}}[t],...d},S=C.jsx("button",{ref:w,"data-testid":c,className:ti(ga({variant:t,size:r}),e),style:R,disabled:o||n,...x,children:C.jsxs(C.Fragment,{children:[n&&C.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),!n&&s&&s,i,!n&&l&&l]})});return u?C.jsx(Wn,{children:C.jsxs(Bn,{children:[C.jsx(Hn,{asChild:!0,children:S}),f&&C.jsx(rr,{children:f})]})}):S});ya.displayName="Button";const va=({text:e="",maxLength:t=20,className:r=""})=>{const n=String(e??""),o=n.length>t,i=o?`${n.slice(0,t)}..`:n;return o?C.jsx(Wn,{children:C.jsxs(Bn,{children:[C.jsx(Hn,{asChild:!0,children:C.jsx("div",{className:`flex items-center cursor-pointer ${r}`,children:i})}),n&&C.jsx(rr,{children:n})]})}):C.jsx("div",{className:`flex items-center ${r}`,children:i})},ba=({rows:e,className:t="mt-2 mx-2"})=>I.jsx("div",{className:`summary-detail-card ${t}`.trim(),children:e.map((r,n)=>I.jsx("div",{className:"summary-detail-card__row",children:r.map((o,i)=>I.jsxs("div",{className:"summary-detail-card__field",style:{"--dc-span":o.span??1},children:[I.jsx("p",{className:"summary-detail-card__label",children:o.label}),I.jsx("p",{className:`summary-detail-card__value${o.size==="lg"?" summary-detail-card__value--lg":""}`,children:I.jsx(va,{text:o.value==null?"":String(o.value),maxLength:20})})]},i))},n))}),xa=({title:e,description:t,icon:r,className:n="",children:o})=>I.jsxs("div",{className:`flex flex-col items-center justify-center py-4 px-4 text-center ${n}`,children:[r&&I.jsx("div",{className:"mb-2",children:r}),I.jsx("div",{className:"text-[14px] font-semibold text-[#34343F]",children:e}),(t||o)&&I.jsx("div",{className:"mt-2 max-w-[650px]",style:{fontSize:"12px",lineHeight:1.6,color:"#A19D9D"},children:o??t})]});exports.CustomTabs=po;exports.EmptyState=xa;exports.Stepper=go;exports.SummaryDetailsCard=ba;
|
|
104
|
+
<%s key={someKey} {...props} />`,Xe,le,dr,le),bt[le+Xe]=!0}}return o===n?ar(W):sr(W),W}}function lr(o,d,h){return xt(o,d,h,!0)}function cr(o,d,h){return xt(o,d,h,!1)}var ur=cr,fr=lr;Ot.Fragment=n,Ot.jsx=ur,Ot.jsxs=fr})()),Ot}var Vr;function To(){return Vr||(Vr=1,process.env.NODE_ENV==="production"?mr.exports=jo():mr.exports=Oo()),mr.exports}var L=To();function xn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=xn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wn(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=xn(e))&&(n&&(n+=" "),n+=t);return n}const Hr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gr=wn,Co=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Gr(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=t,a=Object.keys(i).map(f=>{const u=r==null?void 0:r[f],p=s==null?void 0:s[f];if(u===null)return null;const m=Hr(u)||Hr(p);return i[f][m]}),c=r&&Object.entries(r).reduce((f,u)=>{let[p,m]=u;return m===void 0||(f[p]=m),f},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((f,u)=>{let{class:p,className:m,...g}=u;return Object.entries(g).every(b=>{let[x,_]=b;return Array.isArray(_)?_.includes({...s,...c}[x]):{...s,...c}[x]===_})?[...f,p,m]:f},[]);return Gr(e,a,l,r==null?void 0:r.class,r==null?void 0:r.className)},Cr="-",No=e=>{const t=Do(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(Cr);return s[0]===""&&s.length!==1&&s.shift(),kn(s,t)||Po(i)},getConflictingClassGroupIds:(i,s)=>{const a=r[i]||[];return s&&n[i]?[...a,...n[i]]:a}}},kn=(e,t)=>{var r;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),s=i?kn(e.slice(1),i):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(Cr);return(r=t.validators.find(({validator:c})=>c(a)))==null?void 0:r.classGroupId},Xr=/^\[(.+)\]$/,Po=e=>{if(Xr.test(e)){const t=Xr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Do=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const i in r)wr(r[i],n,i,t);return n},wr=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Kr(t,i);s.classGroupId=r;return}if(typeof i=="function"){if($o(i)){wr(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,a])=>{wr(a,Kr(t,s),r,n)})})},Kr=(e,t)=>{let r=e;return t.split(Cr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},$o=e=>e.isThemeGetter,zo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=n.get(s))!==void 0)return i(s,a),a},set(s,a){r.has(s)?r.set(s,a):i(s,a)}}},kr="!",_r=":",Fo=_r.length,Io=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const s=[];let a=0,c=0,l=0,f;for(let b=0;b<i.length;b++){let x=i[b];if(a===0&&c===0){if(x===_r){s.push(i.slice(l,b)),l=b+Fo;continue}if(x==="/"){f=b;continue}}x==="["?a++:x==="]"?a--:x==="("?c++:x===")"&&c--}const u=s.length===0?i:i.substring(l),p=Lo(u),m=p!==u,g=f&&f>l?f-l:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:g}};if(t){const i=t+_r,s=n;n=a=>a.startsWith(i)?s(a.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(r){const i=n;n=s=>r({className:s,parseClassName:i})}return n},Lo=e=>e.endsWith(kr)?e.substring(0,e.length-1):e.startsWith(kr)?e.substring(1):e,Mo=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let i=[];return r.forEach(s=>{s[0]==="["||t[s]?(n.push(...i.sort(),s),i=[]):i.push(s)}),n.push(...i.sort()),n}},Ao=e=>({cache:zo(e.cacheSize),parseClassName:Io(e),sortModifiers:Mo(e),...No(e)}),Wo=/\s+/,Bo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],c=e.trim().split(Wo);let l="";for(let f=c.length-1;f>=0;f-=1){const u=c[f],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:x}=r(u);if(p){l=u+(l.length>0?" "+l:l);continue}let _=!!x,k=n(_?b.substring(0,x):b);if(!k){if(!_){l=u+(l.length>0?" "+l:l);continue}if(k=n(b),!k){l=u+(l.length>0?" "+l:l);continue}_=!1}const v=s(m).join(":"),C=g?v+kr:v,R=C+k;if(a.includes(R))continue;a.push(R);const T=i(k,_);for(let O=0;O<T.length;++O){const N=T[O];a.push(C+N)}l=u+(l.length>0?" "+l:l)}return l};function Uo(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=_n(t))&&(n&&(n+=" "),n+=r);return n}const _n=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=_n(e[n]))&&(r&&(r+=" "),r+=t);return r};function Yo(e,...t){let r,n,i,s=a;function a(l){const f=t.reduce((u,p)=>p(u),e());return r=Ao(f),n=r.cache.get,i=r.cache.set,s=c,c(l)}function c(l){const f=n(l);if(f)return f;const u=Bo(l,r);return i(l,u),u}return function(){return s(Uo.apply(null,arguments))}}const ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Sn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,En=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vo=/^\d+\/\d+$/,Ho=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Go=/\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$/,Xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>Vo.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>!!e&&Number.isInteger(Number(e)),hr=e=>e.endsWith("%")&&B(e.slice(0,-1)),Ne=e=>Ho.test(e),Qo=()=>!0,qo=e=>Go.test(e)&&!Xo.test(e),Rn=()=>!1,Zo=e=>Ko.test(e),ei=e=>Jo.test(e),ti=e=>!D(e)&&!$(e),ri=e=>ot(e,Tn,Rn),D=e=>Sn.test(e),Ke=e=>ot(e,Cn,qo),gr=e=>ot(e,ai,B),Jr=e=>ot(e,jn,Rn),ni=e=>ot(e,On,ei),Tt=e=>ot(e,Nn,Zo),$=e=>En.test(e),kt=e=>it(e,Cn),oi=e=>it(e,li),Qr=e=>it(e,jn),ii=e=>it(e,Tn),si=e=>it(e,On),Ct=e=>it(e,Nn,!0),ot=(e,t,r)=>{const n=Sn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},it=(e,t,r=!1)=>{const n=En.exec(e);return n?n[1]?t(n[1]):r:!1},jn=e=>e==="position"||e==="percentage",On=e=>e==="image"||e==="url",Tn=e=>e==="length"||e==="size"||e==="bg-size",Cn=e=>e==="length",ai=e=>e==="number",li=e=>e==="family-name",Nn=e=>e==="shadow",ci=()=>{const e=ie("color"),t=ie("font"),r=ie("text"),n=ie("font-weight"),i=ie("tracking"),s=ie("leading"),a=ie("breakpoint"),c=ie("container"),l=ie("spacing"),f=ie("radius"),u=ie("shadow"),p=ie("inset-shadow"),m=ie("text-shadow"),g=ie("drop-shadow"),b=ie("blur"),x=ie("perspective"),_=ie("aspect"),k=ie("ease"),v=ie("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...R(),$,D],O=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],E=()=>[$,D,l],F=()=>[Ze,"full","auto",...E()],H=()=>[Fe,"none","subgrid",$,D],Z=()=>["auto",{span:["full",Fe,$,D]},Fe,$,D],Q=()=>[Fe,"auto",$,D],U=()=>["auto","min","max","fr",$,D],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...E()],G=()=>[Ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],S=()=>[e,$,D],ee=()=>[...R(),Qr,Jr,{position:[$,D]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",ii,ri,{size:[$,D]}],xe=()=>[hr,kt,Ke],te=()=>["","none","full",f,$,D],ne=()=>["",B,kt,Ke],we=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[B,hr,Qr,Jr],ce=()=>["","none",b,$,D],ue=()=>["none",B,$,D],ae=()=>["none",B,$,D],Te=()=>[B,$,D],ve=()=>[Ze,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ne],breakpoint:[Ne],color:[Qo],container:[Ne],"drop-shadow":[Ne],ease:["in","out","in-out"],font:[ti],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ne],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ne],shadow:[Ne],spacing:["px",B],text:[Ne],"text-shadow":[Ne],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ze,D,$,_]}],container:["container"],columns:[{columns:[B,D,$,c]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",$,D]}],basis:[{basis:[Ze,"full","auto",c,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,Ze,"auto","initial","none",D]}],grow:[{grow:["",B,$,D]}],shrink:[{shrink:["",B,$,D]}],order:[{order:[Fe,"first","last","none",$,D]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:Z()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:Z()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[c,"screen",...G()]}],"min-w":[{"min-w":[c,"screen","none",...G()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...G()]}],h:[{h:["screen",...G()]}],"min-h":[{"min-h":["screen","none",...G()]}],"max-h":[{"max-h":["screen",...G()]}],"font-size":[{text:["base",r,kt,Ke]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,$,gr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hr,D]}],"font-family":[{font:[oi,D,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,$,D]}],"line-clamp":[{"line-clamp":[B,"none",$,gr]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",$,D]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",$,Ke]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[B,"auto",$,D]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,D]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:be()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fe,$,D],radial:["",$,D],conic:[Fe,$,D]},si,ni]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,$,D]}],"outline-w":[{outline:["",B,kt,Ke]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",u,Ct,Tt]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",p,Ct,Tt]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[B,Ke]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",m,Ct,Tt]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[B,$,D]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[$,D]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:be()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,D]}],filter:[{filter:["","none",$,D]}],blur:[{blur:ce()}],brightness:[{brightness:[B,$,D]}],contrast:[{contrast:[B,$,D]}],"drop-shadow":[{"drop-shadow":["","none",g,Ct,Tt]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",B,$,D]}],"hue-rotate":[{"hue-rotate":[B,$,D]}],invert:[{invert:["",B,$,D]}],saturate:[{saturate:[B,$,D]}],sepia:[{sepia:["",B,$,D]}],"backdrop-filter":[{"backdrop-filter":["","none",$,D]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[B,$,D]}],"backdrop-contrast":[{"backdrop-contrast":[B,$,D]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,$,D]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,$,D]}],"backdrop-invert":[{"backdrop-invert":["",B,$,D]}],"backdrop-opacity":[{"backdrop-opacity":[B,$,D]}],"backdrop-saturate":[{"backdrop-saturate":[B,$,D]}],"backdrop-sepia":[{"backdrop-sepia":["",B,$,D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,D]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",$,D]}],ease:[{ease:["linear","initial",k,$,D]}],delay:[{delay:[B,$,D]}],animate:[{animate:["none",v,$,D]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,$,D]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[$,D,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,D]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",$,D]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[B,kt,Ke,gr]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ui=Yo(ci);function fi(...e){return ui(wn(e))}function Pe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function qr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pn(...e){return t=>{let r=!1;const n=e.map(i=>{const s=qr(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<n.length;i++){const s=n[i];typeof s=="function"?s():qr(e[i],null)}}}}function qe(...e){return y.useCallback(Pn(...e),e)}function Dn(e,t=[]){let r=[];function n(s,a){const c=y.createContext(a),l=r.length;r=[...r,a];const f=p=>{var m;const{scope:g,children:b,...x}=p,_=((m=g==null?void 0:g[e])==null?void 0:m[l])||c,k=y.useMemo(()=>x,Object.values(x));return L.jsx(_.Provider,{value:k,children:b})};f.displayName=s+"Provider";function u(p,m){var g;const b=((g=m==null?void 0:m[e])==null?void 0:g[l])||c,x=y.useContext(b);if(x)return x;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[f,u]}const i=()=>{const s=r.map(a=>y.createContext(a));return function(a){const c=(a==null?void 0:a[e])||s;return y.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return i.scopeName=e,[n,di(i,...t)]}function di(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const s=n.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function pi(e){const t=mi(e),r=y.forwardRef((n,i)=>{const{children:s,...a}=n,c=y.Children.toArray(s),l=c.find(gi);if(l){const f=l.props.children,u=c.map(p=>p===l?y.Children.count(f)>1?y.Children.only(null):y.isValidElement(f)?f.props.children:null:p);return L.jsx(t,{...a,ref:i,children:y.isValidElement(f)?y.cloneElement(f,void 0,u):null})}return L.jsx(t,{...a,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}function mi(e){const t=y.forwardRef((r,n)=>{const{children:i,...s}=r;if(y.isValidElement(i)){const a=vi(i),c=yi(s,i.props);return i.type!==y.Fragment&&(c.ref=n?Pn(n,a):a),y.cloneElement(i,c)}return y.Children.count(i)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $n=Symbol("radix.slottable");function hi(e){const t=({children:r})=>L.jsx(L.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=$n,t}function gi(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$n}function yi(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{const c=s(...a);return i(...a),c}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function vi(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var bi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=bi.reduce((e,t)=>{const r=pi(`Primitive.${t}`),n=y.forwardRef((i,s)=>{const{asChild:a,...c}=i,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),L.jsx(l,{...c,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function xi(e,t){e&&vn.flushSync(()=>e.dispatchEvent(t))}function Mt(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function wi(e,t=globalThis==null?void 0:globalThis.document){const r=Mt(e);y.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var ki="DismissableLayer",Sr="dismissableLayer.update",_i="dismissableLayer.pointerDownOutside",Si="dismissableLayer.focusOutside",Zr,zn=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Fn=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,f=y.useContext(zn),[u,p]=y.useState(null),m=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=y.useState({}),b=qe(t,N=>p(N)),x=Array.from(f.layers),[_]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),k=x.indexOf(_),v=u?x.indexOf(u):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,R=v>=k,T=ji(N=>{const E=N.target,F=[...f.branches].some(H=>H.contains(E));!R||F||(i==null||i(N),a==null||a(N),N.defaultPrevented||c==null||c())},m),O=Oi(N=>{const E=N.target;[...f.branches].some(F=>F.contains(E))||(s==null||s(N),a==null||a(N),N.defaultPrevented||c==null||c())},m);return wi(N=>{v===f.layers.size-1&&(n==null||n(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))},m),y.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Zr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),en(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Zr)}},[u,m,r,f]),y.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),en())},[u,f]),y.useEffect(()=>{const N=()=>g({});return document.addEventListener(Sr,N),()=>document.removeEventListener(Sr,N)},[]),L.jsx(We.div,{...l,ref:b,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:Pe(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Pe(e.onPointerDownCapture,T.onPointerDownCapture)})});Fn.displayName=ki;var Ei="DismissableLayerBranch",Ri=y.forwardRef((e,t)=>{const r=y.useContext(zn),n=y.useRef(null),i=qe(t,n);return y.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),L.jsx(We.div,{...e,ref:i})});Ri.displayName=Ei;function ji(e,t=globalThis==null?void 0:globalThis.document){const r=Mt(e),n=y.useRef(!1),i=y.useRef(()=>{});return y.useEffect(()=>{const s=c=>{if(c.target&&!n.current){let l=function(){In(_i,r,f,{discrete:!0})};const f={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Oi(e,t=globalThis==null?void 0:globalThis.document){const r=Mt(e),n=y.useRef(!1);return y.useEffect(()=>{const i=s=>{s.target&&!n.current&&In(Si,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function en(){const e=new CustomEvent(Sr);document.dispatchEvent(e)}function In(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?xi(i,s):i.dispatchEvent(s)}var Le=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},Ti=y[" useId ".trim().toString()]||(()=>{}),Ci=0;function Ni(e){const[t,r]=y.useState(Ti());return Le(()=>{r(n=>n??String(Ci++))},[e]),t?`radix-${t}`:""}const Pi=["top","right","bottom","left"],Me=Math.min,he=Math.max,zt=Math.round,Nt=Math.floor,je=e=>({x:e,y:e}),Di={left:"right",right:"left",bottom:"top",top:"bottom"};function Er(e,t,r){return he(e,Me(t,r))}function De(e,t){return typeof e=="function"?e(t):e}function $e(e){return e.split("-")[0]}function st(e){return e.split("-")[1]}function Nr(e){return e==="x"?"y":"x"}function Pr(e){return e==="y"?"height":"width"}function Re(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Dr(e){return Nr(Re(e))}function $i(e,t,r){r===void 0&&(r=!1);const n=st(e),i=Dr(e),s=Pr(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ft(a)),[a,Ft(a)]}function zi(e){const t=Ft(e);return[Rr(e),t,Rr(t)]}function Rr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const tn=["left","right"],rn=["right","left"],Fi=["top","bottom"],Ii=["bottom","top"];function Li(e,t,r){switch(e){case"top":case"bottom":return r?t?rn:tn:t?tn:rn;case"left":case"right":return t?Fi:Ii;default:return[]}}function Mi(e,t,r,n){const i=st(e);let s=Li($e(e),r==="start",n);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(Rr)))),s}function Ft(e){const t=$e(e);return Di[t]+e.slice(t.length)}function Ai(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ln(e){return typeof e!="number"?Ai(e):{top:e,right:e,bottom:e,left:e}}function It(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function nn(e,t,r){let{reference:n,floating:i}=e;const s=Re(t),a=Dr(t),c=Pr(a),l=$e(t),f=s==="y",u=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,m=n[c]/2-i[c]/2;let g;switch(l){case"top":g={x:u,y:n.y-i.height};break;case"bottom":g={x:u,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-i.width,y:p};break;default:g={x:n.x,y:n.y}}switch(st(t)){case"start":g[a]-=m*(r&&f?-1:1);break;case"end":g[a]+=m*(r&&f?-1:1);break}return g}async function Wi(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=De(t,e),b=Ln(g),x=c[m?p==="floating"?"reference":"floating":p],_=It(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(x)))==null||r?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:l})),k=p==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},R=It(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:k,offsetParent:v,strategy:l}):k);return{top:(_.top-R.top+b.top)/C.y,bottom:(R.bottom-_.bottom+b.bottom)/C.y,left:(_.left-R.left+b.left)/C.x,right:(R.right-_.right+b.right)/C.x}}const Bi=50,Ui=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:a}=r,c=a.detectOverflow?a:{...a,detectOverflow:Wi},l=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:p}=nn(f,n,l),m=n,g=0;const b={};for(let x=0;x<s.length;x++){const _=s[x];if(!_)continue;const{name:k,fn:v}=_,{x:C,y:R,data:T,reset:O}=await v({x:u,y:p,initialPlacement:n,placement:m,strategy:i,middlewareData:b,rects:f,platform:c,elements:{reference:e,floating:t}});u=C??u,p=R??p,b[k]={...b[k],...T},O&&g<Bi&&(g++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(f=O.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:u,y:p}=nn(f,m,l)),x=-1)}return{x:u,y:p,placement:m,strategy:i,middlewareData:b}},Yi=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:s,platform:a,elements:c,middlewareData:l}=t,{element:f,padding:u=0}=De(e,t)||{};if(f==null)return{};const p=Ln(u),m={x:r,y:n},g=Dr(i),b=Pr(g),x=await a.getDimensions(f),_=g==="y",k=_?"top":"left",v=_?"bottom":"right",C=_?"clientHeight":"clientWidth",R=s.reference[b]+s.reference[g]-m[g]-s.floating[b],T=m[g]-s.reference[g],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let N=O?O[C]:0;(!N||!await(a.isElement==null?void 0:a.isElement(O)))&&(N=c.floating[C]||s.floating[b]);const E=R/2-T/2,F=N/2-x[b]/2-1,H=Me(p[k],F),Z=Me(p[v],F),Q=H,U=N-x[b]-Z,A=N/2-x[b]/2+E,X=Er(Q,A,U),V=!l.arrow&&st(i)!=null&&A!==X&&s.reference[b]/2-(A<Q?H:Z)-x[b]/2<0,G=V?A<Q?A-Q:A-U:0;return{[g]:m[g]+G,data:{[g]:X,centerOffset:A-X-G,...V&&{alignmentOffset:G}},reset:V}}}),Vi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:s,rects:a,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,..._}=De(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const k=$e(i),v=Re(c),C=$e(c)===c,R=await(l.isRTL==null?void 0:l.isRTL(f.floating)),T=m||(C||!x?[Ft(c)]:zi(c)),O=b!=="none";!m&&O&&T.push(...Mi(c,x,b,R));const N=[c,...T],E=await l.detectOverflow(t,_),F=[];let H=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&F.push(E[k]),p){const A=$i(i,a,R);F.push(E[A[0]],E[A[1]])}if(H=[...H,{placement:i,overflows:F}],!F.every(A=>A<=0)){var Z,Q;const A=(((Z=s.flip)==null?void 0:Z.index)||0)+1,X=N[A];if(X&&(!(p==="alignment"&&v!==Re(X))||H.every(G=>Re(G.placement)===v?G.overflows[0]>0:!0)))return{data:{index:A,overflows:H},reset:{placement:X}};let V=(Q=H.filter(G=>G.overflows[0]<=0).sort((G,S)=>G.overflows[1]-S.overflows[1])[0])==null?void 0:Q.placement;if(!V)switch(g){case"bestFit":{var U;const G=(U=H.filter(S=>{if(O){const ee=Re(S.placement);return ee===v||ee==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(ee=>ee>0).reduce((ee,oe)=>ee+oe,0)]).sort((S,ee)=>S[1]-ee[1])[0])==null?void 0:U[0];G&&(V=G);break}case"initialPlacement":V=c;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function on(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sn(e){return Pi.some(t=>e[t]>=0)}const Hi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:i="referenceHidden",...s}=De(e,t);switch(i){case"referenceHidden":{const a=await n.detectOverflow(t,{...s,elementContext:"reference"}),c=on(a,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:sn(c)}}}case"escaped":{const a=await n.detectOverflow(t,{...s,altBoundary:!0}),c=on(a,r.floating);return{data:{escapedOffsets:c,escaped:sn(c)}}}default:return{}}}}},Mn=new Set(["left","top"]);async function Gi(e,t){const{placement:r,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=$e(r),c=st(r),l=Re(r)==="y",f=Mn.has(a)?-1:1,u=s&&l?-1:1,p=De(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof b=="number"&&(g=c==="end"?b*-1:b),l?{x:g*u,y:m*f}:{x:m*f,y:g*u}}const Xi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:s,placement:a,middlewareData:c}=t,l=await Gi(t,e);return a===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},Ki=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:k=>{let{x:v,y:C}=k;return{x:v,y:C}}},...f}=De(e,t),u={x:r,y:n},p=await s.detectOverflow(t,f),m=Re($e(i)),g=Nr(m);let b=u[g],x=u[m];if(a){const k=g==="y"?"top":"left",v=g==="y"?"bottom":"right",C=b+p[k],R=b-p[v];b=Er(C,b,R)}if(c){const k=m==="y"?"top":"left",v=m==="y"?"bottom":"right",C=x+p[k],R=x-p[v];x=Er(C,x,R)}const _=l.fn({...t,[g]:b,[m]:x});return{..._,data:{x:_.x-r,y:_.y-n,enabled:{[g]:a,[m]:c}}}}}},Ji=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:f=!0}=De(e,t),u={x:r,y:n},p=Re(i),m=Nr(p);let g=u[m],b=u[p];const x=De(c,t),_=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){const C=m==="y"?"height":"width",R=s.reference[m]-s.floating[C]+_.mainAxis,T=s.reference[m]+s.reference[C]-_.mainAxis;g<R?g=R:g>T&&(g=T)}if(f){var k,v;const C=m==="y"?"width":"height",R=Mn.has($e(i)),T=s.reference[p]-s.floating[C]+(R&&((k=a.offset)==null?void 0:k[p])||0)+(R?0:_.crossAxis),O=s.reference[p]+s.reference[C]+(R?0:((v=a.offset)==null?void 0:v[p])||0)-(R?_.crossAxis:0);b<T?b=T:b>O&&(b=O)}return{[m]:g,[p]:b}}}},Qi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:s,platform:a,elements:c}=t,{apply:l=()=>{},...f}=De(e,t),u=await a.detectOverflow(t,f),p=$e(i),m=st(i),g=Re(i)==="y",{width:b,height:x}=s.floating;let _,k;p==="top"||p==="bottom"?(_=p,k=m===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(k=p,_=m==="end"?"top":"bottom");const v=x-u.top-u.bottom,C=b-u.left-u.right,R=Me(x-u[_],v),T=Me(b-u[k],C),O=!t.middlewareData.shift;let N=R,E=T;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(E=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(N=v),O&&!m){const H=he(u.left,0),Z=he(u.right,0),Q=he(u.top,0),U=he(u.bottom,0);g?E=b-2*(H!==0||Z!==0?H+Z:he(u.left,u.right)):N=x-2*(Q!==0||U!==0?Q+U:he(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:N});const F=await a.getDimensions(c.floating);return b!==F.width||x!==F.height?{reset:{rects:!0}}:{}}}};function At(){return typeof window<"u"}function at(e){return An(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Oe(e){var t;return(t=(An(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function An(e){return At()?e instanceof Node||e instanceof ge(e).Node:!1}function _e(e){return At()?e instanceof Element||e instanceof ge(e).Element:!1}function ze(e){return At()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function an(e){return!At()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}function Rt(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Se(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function qi(e){return/^(table|td|th)$/.test(at(e))}function Wt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Zi=/transform|translate|scale|rotate|perspective|filter/,es=/paint|layout|strict|content/,Je=e=>!!e&&e!=="none";let yr;function $r(e){const t=_e(e)?Se(e):e;return Je(t.transform)||Je(t.translate)||Je(t.scale)||Je(t.rotate)||Je(t.perspective)||!zr()&&(Je(t.backdropFilter)||Je(t.filter))||Zi.test(t.willChange||"")||es.test(t.contain||"")}function ts(e){let t=Ae(e);for(;ze(t)&&!rt(t);){if($r(t))return t;if(Wt(t))return null;t=Ae(t)}return null}function zr(){return yr==null&&(yr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yr}function rt(e){return/^(html|body|#document)$/.test(at(e))}function Se(e){return ge(e).getComputedStyle(e)}function Bt(e){return _e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||an(e)&&e.host||Oe(e);return an(t)?t.host:t}function Wn(e){const t=Ae(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ze(t)&&Rt(t)?t:Wn(t)}function St(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=Wn(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),a=ge(i);if(s){const c=jr(a);return t.concat(a,a.visualViewport||[],Rt(i)?i:[],c&&r?St(c):[])}else return t.concat(i,St(i,[],r))}function jr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bn(e){const t=Se(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=ze(e),s=i?e.offsetWidth:r,a=i?e.offsetHeight:n,c=zt(r)!==s||zt(n)!==a;return c&&(r=s,n=a),{width:r,height:n,$:c}}function Fr(e){return _e(e)?e:e.contextElement}function tt(e){const t=Fr(e);if(!ze(t))return je(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:s}=Bn(t);let a=(s?zt(r.width):r.width)/n,c=(s?zt(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const rs=je(0);function Un(e){const t=ge(e);return!zr()||!t.visualViewport?rs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ns(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ge(e)?!1:t}function Qe(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=Fr(e);let a=je(1);t&&(n?_e(n)&&(a=tt(n)):a=tt(e));const c=ns(s,r,n)?Un(s):je(0);let l=(i.left+c.x)/a.x,f=(i.top+c.y)/a.y,u=i.width/a.x,p=i.height/a.y;if(s){const m=ge(s),g=n&&_e(n)?ge(n):n;let b=m,x=jr(b);for(;x&&n&&g!==b;){const _=tt(x),k=x.getBoundingClientRect(),v=Se(x),C=k.left+(x.clientLeft+parseFloat(v.paddingLeft))*_.x,R=k.top+(x.clientTop+parseFloat(v.paddingTop))*_.y;l*=_.x,f*=_.y,u*=_.x,p*=_.y,l+=C,f+=R,b=ge(x),x=jr(b)}}return It({width:u,height:p,x:l,y:f})}function Ut(e,t){const r=Bt(e).scrollLeft;return t?t.left+r:Qe(Oe(e)).left+r}function Yn(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ut(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function os(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const s=i==="fixed",a=Oe(n),c=t?Wt(t.floating):!1;if(n===a||c&&s)return r;let l={scrollLeft:0,scrollTop:0},f=je(1);const u=je(0),p=ze(n);if((p||!p&&!s)&&((at(n)!=="body"||Rt(a))&&(l=Bt(n)),p)){const g=Qe(n);f=tt(n),u.x=g.x+n.clientLeft,u.y=g.y+n.clientTop}const m=a&&!p&&!s?Yn(a,l):je(0);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-l.scrollLeft*f.x+u.x+m.x,y:r.y*f.y-l.scrollTop*f.y+u.y+m.y}}function is(e){return Array.from(e.getClientRects())}function ss(e){const t=Oe(e),r=Bt(e),n=e.ownerDocument.body,i=he(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=he(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Ut(e);const c=-r.scrollTop;return Se(n).direction==="rtl"&&(a+=he(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:a,y:c}}const ln=25;function as(e,t){const r=ge(e),n=Oe(e),i=r.visualViewport;let s=n.clientWidth,a=n.clientHeight,c=0,l=0;if(i){s=i.width,a=i.height;const u=zr();(!u||u&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const f=Ut(n);if(f<=0){const u=n.ownerDocument,p=u.body,m=getComputedStyle(p),g=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-g);b<=ln&&(s-=b)}else f<=ln&&(s+=f);return{width:s,height:a,x:c,y:l}}function ls(e,t){const r=Qe(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=ze(e)?tt(e):je(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=i*s.x,f=n*s.y;return{width:a,height:c,x:l,y:f}}function cn(e,t,r){let n;if(t==="viewport")n=as(e,r);else if(t==="document")n=ss(Oe(e));else if(_e(t))n=ls(t,r);else{const i=Un(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return It(n)}function Vn(e,t){const r=Ae(e);return r===t||!_e(r)||rt(r)?!1:Se(r).position==="fixed"||Vn(r,t)}function cs(e,t){const r=t.get(e);if(r)return r;let n=St(e,[],!1).filter(c=>_e(c)&&at(c)!=="body"),i=null;const s=Se(e).position==="fixed";let a=s?Ae(e):e;for(;_e(a)&&!rt(a);){const c=Se(a),l=$r(a);!l&&c.position==="fixed"&&(i=null),(s?!l&&!i:!l&&c.position==="static"&&i&&(i.position==="absolute"||i.position==="fixed")||Rt(a)&&!l&&Vn(e,a))?n=n.filter(f=>f!==a):i=c,a=Ae(a)}return t.set(e,n),n}function us(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=[...r==="clippingAncestors"?Wt(t)?[]:cs(t,this._c):[].concat(r),n],a=cn(t,s[0],i);let c=a.top,l=a.right,f=a.bottom,u=a.left;for(let p=1;p<s.length;p++){const m=cn(t,s[p],i);c=he(m.top,c),l=Me(m.right,l),f=Me(m.bottom,f),u=he(m.left,u)}return{width:l-u,height:f-c,x:u,y:c}}function fs(e){const{width:t,height:r}=Bn(e);return{width:t,height:r}}function ds(e,t,r){const n=ze(t),i=Oe(t),s=r==="fixed",a=Qe(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=je(0);function f(){l.x=Ut(i)}if(n||!n&&!s)if((at(t)!=="body"||Rt(i))&&(c=Bt(t)),n){const g=Qe(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else i&&f();s&&!n&&i&&f();const u=i&&!n&&!s?Yn(i,c):je(0),p=a.left+c.scrollLeft-l.x-u.x,m=a.top+c.scrollTop-l.y-u.y;return{x:p,y:m,width:a.width,height:a.height}}function vr(e){return Se(e).position==="static"}function un(e,t){if(!ze(e)||Se(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Oe(e)===r&&(r=r.ownerDocument.body),r}function Hn(e,t){const r=ge(e);if(Wt(e))return r;if(!ze(e)){let i=Ae(e);for(;i&&!rt(i);){if(_e(i)&&!vr(i))return i;i=Ae(i)}return r}let n=un(e,t);for(;n&&qi(n)&&vr(n);)n=un(n,t);return n&&rt(n)&&vr(n)&&!$r(n)?r:n||ts(e)||r}const ps=async function(e){const t=this.getOffsetParent||Hn,r=this.getDimensions,n=await r(e.floating);return{reference:ds(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ms(e){return Se(e).direction==="rtl"}const hs={convertOffsetParentRelativeRectToViewportRelativeRect:os,getDocumentElement:Oe,getClippingRect:us,getOffsetParent:Hn,getElementRects:ps,getClientRects:is,getDimensions:fs,getScale:tt,isElement:_e,isRTL:ms};function Gn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gs(e,t){let r=null,n;const i=Oe(e);function s(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const f=e.getBoundingClientRect(),{left:u,top:p,width:m,height:g}=f;if(c||t(),!m||!g)return;const b=Nt(p),x=Nt(i.clientWidth-(u+m)),_=Nt(i.clientHeight-(p+g)),k=Nt(u),v={rootMargin:-b+"px "+-x+"px "+-_+"px "+-k+"px",threshold:he(0,Me(1,l))||1};let C=!0;function R(T){const O=T[0].intersectionRatio;if(O!==l){if(!C)return a();O?a(!1,O):n=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!Gn(f,e.getBoundingClientRect())&&a(),C=!1}try{r=new IntersectionObserver(R,{...v,root:i.ownerDocument})}catch{r=new IntersectionObserver(R,v)}r.observe(e)}return a(!0),s}function ys(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,f=Fr(e),u=i||s?[...f?St(f):[],...t?St(t):[]]:[];u.forEach(k=>{i&&k.addEventListener("scroll",r,{passive:!0}),s&&k.addEventListener("resize",r)});const p=f&&c?gs(f,r):null;let m=-1,g=null;a&&(g=new ResizeObserver(k=>{let[v]=k;v&&v.target===f&&g&&t&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),r()}),f&&!l&&g.observe(f),t&&g.observe(t));let b,x=l?Qe(e):null;l&&_();function _(){const k=Qe(e);x&&!Gn(x,k)&&r(),x=k,b=requestAnimationFrame(_)}return r(),()=>{var k;u.forEach(v=>{i&&v.removeEventListener("scroll",r),s&&v.removeEventListener("resize",r)}),p==null||p(),(k=g)==null||k.disconnect(),g=null,l&&cancelAnimationFrame(b)}}const vs=Xi,bs=Ki,xs=Vi,ws=Qi,ks=Hi,fn=Yi,_s=Ji,Ss=(e,t,r)=>{const n=new Map,i={platform:hs,...r},s={...i.platform,_c:n};return Ui(e,t,{...i,platform:s})};var Es=typeof document<"u",Rs=function(){},$t=Es?se.useLayoutEffect:Rs;function Lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Lt(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&e.$$typeof)&&!Lt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Xn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dn(e,t){const r=Xn(e);return Math.round(t*r)/r}function br(e){const t=y.useRef(e);return $t(()=>{t.current=e}),t}function js(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:f}=e,[u,p]=y.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=y.useState(n);Lt(m,n)||g(n);const[b,x]=y.useState(null),[_,k]=y.useState(null),v=y.useCallback(S=>{S!==O.current&&(O.current=S,x(S))},[]),C=y.useCallback(S=>{S!==N.current&&(N.current=S,k(S))},[]),R=s||b,T=a||_,O=y.useRef(null),N=y.useRef(null),E=y.useRef(u),F=l!=null,H=br(l),Z=br(i),Q=br(f),U=y.useCallback(()=>{if(!O.current||!N.current)return;const S={placement:t,strategy:r,middleware:m};Z.current&&(S.platform=Z.current),Ss(O.current,N.current,S).then(ee=>{const oe={...ee,isPositioned:Q.current!==!1};A.current&&!Lt(E.current,oe)&&(E.current=oe,vn.flushSync(()=>{p(oe)}))})},[m,t,r,Z,Q]);$t(()=>{f===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(S=>({...S,isPositioned:!1})))},[f]);const A=y.useRef(!1);$t(()=>(A.current=!0,()=>{A.current=!1}),[]),$t(()=>{if(R&&(O.current=R),T&&(N.current=T),R&&T){if(H.current)return H.current(R,T,U);U()}},[R,T,U,H,F]);const X=y.useMemo(()=>({reference:O,floating:N,setReference:v,setFloating:C}),[v,C]),V=y.useMemo(()=>({reference:R,floating:T}),[R,T]),G=y.useMemo(()=>{const S={position:r,left:0,top:0};if(!V.floating)return S;const ee=dn(V.floating,u.x),oe=dn(V.floating,u.y);return c?{...S,transform:"translate("+ee+"px, "+oe+"px)",...Xn(V.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ee,top:oe}},[r,c,V.floating,u.x,u.y]);return y.useMemo(()=>({...u,update:U,refs:X,elements:V,floatingStyles:G}),[u,U,X,V,G])}const Os=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?fn({element:n.current,padding:i}).fn(r):{}:n?fn({element:n,padding:i}).fn(r):{}}}},Ts=(e,t)=>{const r=vs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Cs=(e,t)=>{const r=bs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ns=(e,t)=>({fn:_s(e).fn,options:[e,t]}),Ps=(e,t)=>{const r=xs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ds=(e,t)=>{const r=ws(e);return{name:r.name,fn:r.fn,options:[e,t]}},$s=(e,t)=>{const r=ks(e);return{name:r.name,fn:r.fn,options:[e,t]}},zs=(e,t)=>{const r=Os(e);return{name:r.name,fn:r.fn,options:[e,t]}};var Fs="Arrow",Kn=y.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...s}=e;return L.jsx(We.svg,{...s,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:L.jsx("polygon",{points:"0,0 30,0 15,10"})})});Kn.displayName=Fs;var Is=Kn;function Ls(e){const[t,r]=y.useState(void 0);return Le(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,f=Array.isArray(l)?l[0]:l;a=f.inlineSize,c=f.blockSize}else a=e.offsetWidth,c=e.offsetHeight;r({width:a,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Ir="Popper",[Jn,Qn]=Dn(Ir),[Ms,qn]=Jn(Ir),Zn=e=>{const{__scopePopper:t,children:r}=e,[n,i]=y.useState(null);return L.jsx(Ms,{scope:t,anchor:n,onAnchorChange:i,children:r})};Zn.displayName=Ir;var eo="PopperAnchor",to=y.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=qn(eo,r),a=y.useRef(null),c=qe(t,a),l=y.useRef(null);return y.useEffect(()=>{const f=l.current;l.current=(n==null?void 0:n.current)||a.current,f!==l.current&&s.onAnchorChange(l.current)}),n?null:L.jsx(We.div,{...i,ref:c})});to.displayName=eo;var Lr="PopperContent",[As,Ws]=Jn(Lr),ro=y.forwardRef((e,t)=>{var r,n,i,s,a,c;const{__scopePopper:l,side:f="bottom",sideOffset:u=0,align:p="center",alignOffset:m=0,arrowPadding:g=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:_=0,sticky:k="partial",hideWhenDetached:v=!1,updatePositionStrategy:C="optimized",onPlaced:R,...T}=e,O=qn(Lr,l),[N,E]=y.useState(null),F=qe(t,Ce=>E(Ce)),[H,Z]=y.useState(null),Q=Ls(H),U=(Q==null?void 0:Q.width)??0,A=(Q==null?void 0:Q.height)??0,X=f+(p!=="center"?"-"+p:""),V=typeof _=="number"?_:{top:0,right:0,bottom:0,left:0,..._},G=Array.isArray(x)?x:[x],S=G.length>0,ee={padding:V,boundary:G.filter(Us),altBoundary:S},{refs:oe,floatingStyles:be,placement:xe,isPositioned:te,middlewareData:ne}=js({strategy:"fixed",placement:X,whileElementsMounted:(...Ce)=>ys(...Ce,{animationFrame:C==="always"}),elements:{reference:O.anchor},middleware:[Ts({mainAxis:u+A,alignmentAxis:m}),b&&Cs({mainAxis:!0,crossAxis:!1,limiter:k==="partial"?Ns():void 0,...ee}),b&&Ps({...ee}),Ds({...ee,apply:({elements:Ce,rects:lt,availableWidth:ke,availableHeight:de})=>{const{width:Be,height:Ue}=lt.reference,fe=Ce.floating.style;fe.setProperty("--radix-popper-available-width",`${ke}px`),fe.setProperty("--radix-popper-available-height",`${de}px`),fe.setProperty("--radix-popper-anchor-width",`${Be}px`),fe.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),H&&zs({element:H,padding:g}),Ys({arrowWidth:U,arrowHeight:A}),v&&$s({strategy:"referenceHidden",...ee})]}),[we,ye]=io(xe),J=Mt(R);Le(()=>{te&&(J==null||J())},[te,J]);const ce=(r=ne.arrow)==null?void 0:r.x,ue=(n=ne.arrow)==null?void 0:n.y,ae=((i=ne.arrow)==null?void 0:i.centerOffset)!==0,[Te,ve]=y.useState();return Le(()=>{N&&ve(window.getComputedStyle(N).zIndex)},[N]),L.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...be,transform:te?be.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Te,"--radix-popper-transform-origin":[(s=ne.transformOrigin)==null?void 0:s.x,(a=ne.transformOrigin)==null?void 0:a.y].join(" "),...((c=ne.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:L.jsx(As,{scope:l,placedSide:we,onArrowChange:Z,arrowX:ce,arrowY:ue,shouldHideArrow:ae,children:L.jsx(We.div,{"data-side":we,"data-align":ye,...T,ref:F,style:{...T.style,animation:te?void 0:"none"}})})})});ro.displayName=Lr;var no="PopperArrow",Bs={top:"bottom",right:"left",bottom:"top",left:"right"},oo=y.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,i=Ws(no,r),s=Bs[i.placedSide];return L.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:L.jsx(Is,{...n,ref:t,style:{...n.style,display:"block"}})})});oo.displayName=no;function Us(e){return e!==null}var Ys=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i;const{placement:s,rects:a,middlewareData:c}=t,l=((r=c.arrow)==null?void 0:r.centerOffset)!==0,f=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[p,m]=io(s),g={start:"0%",center:"50%",end:"100%"}[m],b=(((n=c.arrow)==null?void 0:n.x)??0)+f/2,x=(((i=c.arrow)==null?void 0:i.y)??0)+u/2;let _="",k="";return p==="bottom"?(_=l?g:`${b}px`,k=`${-u}px`):p==="top"?(_=l?g:`${b}px`,k=`${a.floating.height+u}px`):p==="right"?(_=`${-u}px`,k=l?g:`${x}px`):p==="left"&&(_=`${a.floating.width+u}px`,k=l?g:`${x}px`),{data:{x:_,y:k}}}});function io(e){const[t,r="center"]=e.split("-");return[t,r]}var Vs=Zn,Hs=to,Gs=ro,Xs=oo,Ks="Portal",so=y.forwardRef((e,t)=>{var r;const{container:n,...i}=e,[s,a]=y.useState(!1);Le(()=>a(!0),[]);const c=n||s&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return c?gn.createPortal(L.jsx(We.div,{...i,ref:t}),c):null});so.displayName=Ks;function Js(e,t){return y.useReducer((r,n)=>t[r][n]??r,e)}var Mr=e=>{const{present:t,children:r}=e,n=Qs(t),i=typeof r=="function"?r({present:n.isPresent}):y.Children.only(r),s=qe(n.ref,qs(i));return typeof r=="function"||n.isPresent?y.cloneElement(i,{ref:s}):null};Mr.displayName="Presence";function Qs(e){const[t,r]=y.useState(),n=y.useRef(null),i=y.useRef(e),s=y.useRef("none"),a=e?"mounted":"unmounted",[c,l]=Js(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const f=Pt(n.current);s.current=c==="mounted"?f:"none"},[c]),Le(()=>{const f=n.current,u=i.current;if(u!==e){const p=s.current,m=Pt(f);e?l("MOUNT"):m==="none"||(f==null?void 0:f.display)==="none"?l("UNMOUNT"):l(u&&p!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Le(()=>{if(t){let f;const u=t.ownerDocument.defaultView??window,p=g=>{const b=Pt(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&b&&(l("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",f=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=g=>{g.target===t&&(s.current=Pt(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{u.clearTimeout(f),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:y.useCallback(f=>{n.current=f?getComputedStyle(f):null,r(f)},[])}}function Pt(e){return(e==null?void 0:e.animationName)||"none"}function qs(e){var t,r;let n=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(n=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,i=n&&"isReactWarning"in n&&n.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var Zs=y[" useInsertionEffect ".trim().toString()]||Le;function ea({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,s,a]=ta({defaultProp:t,onChange:r}),c=e!==void 0,l=c?e:i;{const u=y.useRef(e!==void 0);y.useEffect(()=>{const p=u.current;p!==c&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=c},[c,n])}const f=y.useCallback(u=>{var p;if(c){const m=ra(u)?u(e):u;m!==e&&((p=a.current)==null||p.call(a,m))}else s(u)},[c,e,s,a]);return[l,f]}function ta({defaultProp:e,onChange:t}){const[r,n]=y.useState(e),i=y.useRef(r),s=y.useRef(t);return Zs(()=>{s.current=t},[t]),y.useEffect(()=>{var a;i.current!==r&&((a=s.current)==null||a.call(s,r),i.current=r)},[r,i]),[r,n,s]}function ra(e){return typeof e=="function"}var na=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),oa="VisuallyHidden",ao=y.forwardRef((e,t)=>L.jsx(We.span,{...e,ref:t,style:{...na,...e.style}}));ao.displayName=oa;var ia=ao,[Yt]=Dn("Tooltip",[Qn]),Vt=Qn(),lo="TooltipProvider",sa=700,Or="tooltip.open",[aa,Ar]=Yt(lo),co=e=>{const{__scopeTooltip:t,delayDuration:r=sa,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:s}=e,a=y.useRef(!0),c=y.useRef(!1),l=y.useRef(0);return y.useEffect(()=>{const f=l.current;return()=>window.clearTimeout(f)},[]),L.jsx(aa,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:y.useCallback(f=>{c.current=f},[]),disableHoverableContent:i,children:s})};co.displayName=lo;var Et="Tooltip",[la,jt]=Yt(Et),uo=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:i,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,l=Ar(Et,e.__scopeTooltip),f=Vt(t),[u,p]=y.useState(null),m=Ni(),g=y.useRef(0),b=a??l.disableHoverableContent,x=c??l.delayDuration,_=y.useRef(!1),[k,v]=ea({prop:n,defaultProp:i??!1,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(Or))):l.onClose(),s==null||s(N)},caller:Et}),C=y.useMemo(()=>k?_.current?"delayed-open":"instant-open":"closed",[k]),R=y.useCallback(()=>{window.clearTimeout(g.current),g.current=0,_.current=!1,v(!0)},[v]),T=y.useCallback(()=>{window.clearTimeout(g.current),g.current=0,v(!1)},[v]),O=y.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{_.current=!0,v(!0),g.current=0},x)},[x,v]);return y.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),L.jsx(Vs,{...f,children:L.jsx(la,{scope:t,contentId:m,open:k,stateAttribute:C,trigger:u,onTriggerChange:p,onTriggerEnter:y.useCallback(()=>{l.isOpenDelayedRef.current?O():R()},[l.isOpenDelayedRef,O,R]),onTriggerLeave:y.useCallback(()=>{b?T():(window.clearTimeout(g.current),g.current=0)},[T,b]),onOpen:R,onClose:T,disableHoverableContent:b,children:r})})};uo.displayName=Et;var Tr="TooltipTrigger",fo=y.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=jt(Tr,r),s=Ar(Tr,r),a=Vt(r),c=y.useRef(null),l=qe(t,c,i.onTriggerChange),f=y.useRef(!1),u=y.useRef(!1),p=y.useCallback(()=>f.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),L.jsx(Hs,{asChild:!0,...a,children:L.jsx(We.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:l,onPointerMove:Pe(e.onPointerMove,m=>{m.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Pe(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Pe(e.onPointerDown,()=>{i.open&&i.onClose(),f.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:Pe(e.onFocus,()=>{f.current||i.onOpen()}),onBlur:Pe(e.onBlur,i.onClose),onClick:Pe(e.onClick,i.onClose)})})});fo.displayName=Tr;var Wr="TooltipPortal",[ca,ua]=Yt(Wr,{forceMount:void 0}),po=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,s=jt(Wr,t);return L.jsx(ca,{scope:t,forceMount:r,children:L.jsx(Mr,{present:r||s.open,children:L.jsx(so,{asChild:!0,container:i,children:n})})})};po.displayName=Wr;var nt="TooltipContent",mo=y.forwardRef((e,t)=>{const r=ua(nt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...s}=e,a=jt(nt,e.__scopeTooltip);return L.jsx(Mr,{present:n||a.open,children:a.disableHoverableContent?L.jsx(ho,{side:i,...s,ref:t}):L.jsx(fa,{side:i,...s,ref:t})})}),fa=y.forwardRef((e,t)=>{const r=jt(nt,e.__scopeTooltip),n=Ar(nt,e.__scopeTooltip),i=y.useRef(null),s=qe(t,i),[a,c]=y.useState(null),{trigger:l,onClose:f}=r,u=i.current,{onPointerInTransitChange:p}=n,m=y.useCallback(()=>{c(null),p(!1)},[p]),g=y.useCallback((b,x)=>{const _=b.currentTarget,k={x:b.clientX,y:b.clientY},v=ha(k,_.getBoundingClientRect()),C=ga(k,v),R=ya(x.getBoundingClientRect()),T=ba([...C,...R]);c(T),p(!0)},[p]);return y.useEffect(()=>()=>m(),[m]),y.useEffect(()=>{if(l&&u){const b=_=>g(_,u),x=_=>g(_,l);return l.addEventListener("pointerleave",b),u.addEventListener("pointerleave",x),()=>{l.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",x)}}},[l,u,g,m]),y.useEffect(()=>{if(a){const b=x=>{const _=x.target,k={x:x.clientX,y:x.clientY},v=(l==null?void 0:l.contains(_))||(u==null?void 0:u.contains(_)),C=!va(k,a);v?m():C&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,u,a,f,m]),L.jsx(ho,{...e,ref:s})}),[da,pa]=Yt(Et,{isInside:!1}),ma=hi("TooltipContent"),ho=y.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,l=jt(nt,r),f=Vt(r),{onClose:u}=l;return y.useEffect(()=>(document.addEventListener(Or,u),()=>document.removeEventListener(Or,u)),[u]),y.useEffect(()=>{if(l.trigger){const p=m=>{const g=m.target;g!=null&&g.contains(l.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[l.trigger,u]),L.jsx(Fn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:u,children:L.jsxs(Gs,{"data-state":l.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[L.jsx(ma,{children:n}),L.jsx(da,{scope:r,isInside:!0,children:L.jsx(ia,{id:l.contentId,role:"tooltip",children:i||n})})]})})});mo.displayName=nt;var go="TooltipArrow",yo=y.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Vt(r);return pa(go,r).isInside?null:L.jsx(Xs,{...i,...n,ref:t})});yo.displayName=go;function ha(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,i,s)){case s:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ga(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function ya(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function va(e,t){const{x:r,y:n}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],l=t[a],f=c.x,u=c.y,p=l.x,m=l.y;u>n!=m>n&&r<(p-f)*(n-u)/(m-u)+f&&(i=!i)}return i}function ba(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),xa(t)}function xa(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const s=r[r.length-1],a=r[r.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var wa=co,ka=uo,_a=fo,Sa=po,vo=mo,Ea=yo;const bo=wa,xo=ka,wo=_a,Br=y.forwardRef(({className:e,sideOffset:t=6,style:r,...n},i)=>{const s={backgroundColor:"#000000",color:"#ffffff",zIndex:99999,...r};return L.jsx(Sa,{children:L.jsxs(vo,{ref:i,sideOffset:t,className:`overflow-hidden rounded-lg border border-slate-950 px-3 py-1 text-xs text-white ${e??""}`,style:s,...n,children:[n.children,L.jsx(Ea,{style:{fill:"#000000"}})]})})});Br.displayName=vo.displayName;const Ra=Co("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-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-blue-500 text-white",save:"text-white",delete:"text-white",update:"text-white",cancel:"text-[#414651] border border-[#D5D7DA]",outline:"text-[#003B71]"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",xs:"h-5 px-1 text-xs rounded"}},defaultVariants:{variant:"default",size:"default"}}),ja=se.forwardRef(({className:e,variant:t,size:r,loading:n=!1,disabled:i,children:s,leftIcon:a,datatestid:c,rightIcon:l,style:f,iconButton:u=!1,tooltipLabel:p,saveColor:m="#003B71",deleteColor:g="#FF6070",updateColor:b="#003B71",cancelColor:x="#ffffff",outlineColor:_="#003B71",...k},v)=>{const C={...t&&{save:{backgroundColor:m},delete:{backgroundColor:g},update:{backgroundColor:b},cancel:{backgroundColor:x},outline:{backgroundColor:_}}[t],...f},R=L.jsx("button",{ref:v,"data-testid":c,className:fi(Ra({variant:t,size:r}),e),style:C,disabled:i||n,...k,children:L.jsxs(L.Fragment,{children:[n&&L.jsx("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),!n&&a&&a,s,!n&&l&&l]})});return u?L.jsx(bo,{children:L.jsxs(xo,{children:[L.jsx(wo,{asChild:!0,children:R}),p&&L.jsx(Br,{children:p})]})}):R});ja.displayName="Button";const Oa=({text:e="",maxLength:t=20,className:r=""})=>{const n=String(e??""),i=n.length>t,s=i?`${n.slice(0,t)}..`:n;return i?L.jsx(bo,{children:L.jsxs(xo,{children:[L.jsx(wo,{asChild:!0,children:L.jsx("div",{className:`flex items-center cursor-pointer ${r}`,children:s})}),n&&L.jsx(Br,{children:n})]})}):L.jsx("div",{className:`flex items-center ${r}`,children:s})};var xr={exports:{}},_t={};/**
|
|
105
|
+
* @license React
|
|
106
|
+
* react-jsx-runtime.production.min.js
|
|
107
|
+
*
|
|
108
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the MIT license found in the
|
|
111
|
+
* LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/var pn;function Ta(){if(pn)return _t;pn=1;var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(c,l,f){var u,p={},m=null,g=null;f!==void 0&&(m=""+f),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(g=l.ref);for(u in l)n.call(l,u)&&!s.hasOwnProperty(u)&&(p[u]=l[u]);if(c&&c.defaultProps)for(u in l=c.defaultProps,l)p[u]===void 0&&(p[u]=l[u]);return{$$typeof:t,type:c,key:m,ref:g,props:p,_owner:i.current}}return _t.Fragment=r,_t.jsx=a,_t.jsxs=a,_t}var Dt={};/**
|
|
113
|
+
* @license React
|
|
114
|
+
* react-jsx-runtime.development.js
|
|
115
|
+
*
|
|
116
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the MIT license found in the
|
|
119
|
+
* LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/var mn;function Ca(){return mn||(mn=1,process.env.NODE_ENV!=="production"&&(function(){var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.iterator,x="@@iterator";function _(o){if(o===null||typeof o!="object")return null;var d=b&&o[b]||o[x];return typeof d=="function"?d:null}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(o){{for(var d=arguments.length,h=new Array(d>1?d-1:0),w=1;w<d;w++)h[w-1]=arguments[w];C("error",o,h)}}function C(o,d,h){{var w=k.ReactDebugCurrentFrame,z=w.getStackAddendum();z!==""&&(d+="%s",h=h.concat([z]));var I=h.map(function(P){return String(P)});I.unshift("Warning: "+d),Function.prototype.apply.call(console[o],console,I)}}var R=!1,T=!1,O=!1,N=!1,E=!1,F;F=Symbol.for("react.module.reference");function H(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===s||E||o===i||o===f||o===u||N||o===g||R||T||O||typeof o=="object"&&o!==null&&(o.$$typeof===m||o.$$typeof===p||o.$$typeof===a||o.$$typeof===c||o.$$typeof===l||o.$$typeof===F||o.getModuleId!==void 0))}function Z(o,d,h){var w=o.displayName;if(w)return w;var z=d.displayName||d.name||"";return z!==""?h+"("+z+")":h}function Q(o){return o.displayName||"Context"}function U(o){if(o==null)return null;if(typeof o.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case u:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case c:var d=o;return Q(d)+".Consumer";case a:var h=o;return Q(h._context)+".Provider";case l:return Z(o,o.render,"ForwardRef");case p:var w=o.displayName||null;return w!==null?w:U(o.type)||"Memo";case m:{var z=o,I=z._payload,P=z._init;try{return U(P(I))}catch{return null}}}return null}var A=Object.assign,X=0,V,G,S,ee,oe,be,xe;function te(){}te.__reactDisabledLog=!0;function ne(){{if(X===0){V=console.log,G=console.info,S=console.warn,ee=console.error,oe=console.group,be=console.groupCollapsed,xe=console.groupEnd;var o={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}X++}}function we(){{if(X--,X===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},o,{value:V}),info:A({},o,{value:G}),warn:A({},o,{value:S}),error:A({},o,{value:ee}),group:A({},o,{value:oe}),groupCollapsed:A({},o,{value:be}),groupEnd:A({},o,{value:xe})})}X<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=k.ReactCurrentDispatcher,J;function ce(o,d,h){{if(J===void 0)try{throw Error()}catch(z){var w=z.stack.trim().match(/\n( *(at )?)/);J=w&&w[1]||""}return`
|
|
121
|
+
`+J+o}}var ue=!1,ae;{var Te=typeof WeakMap=="function"?WeakMap:Map;ae=new Te}function ve(o,d){if(!o||ue)return"";{var h=ae.get(o);if(h!==void 0)return h}var w;ue=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=ye.current,ye.current=null,ne();try{if(d){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(q){w=q}Reflect.construct(o,[],P)}else{try{P.call()}catch(q){w=q}o.call(P.prototype)}}else{try{throw Error()}catch(q){w=q}o()}}catch(q){if(q&&w&&typeof q.stack=="string"){for(var j=q.stack.split(`
|
|
122
|
+
`),K=w.stack.split(`
|
|
123
|
+
`),M=j.length-1,W=K.length-1;M>=1&&W>=0&&j[M]!==K[W];)W--;for(;M>=1&&W>=0;M--,W--)if(j[M]!==K[W]){if(M!==1||W!==1)do if(M--,W--,W<0||j[M]!==K[W]){var re=`
|
|
124
|
+
`+j[M].replace(" at new "," at ");return o.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",o.displayName)),typeof o=="function"&&ae.set(o,re),re}while(M>=1&&W>=0);break}}}finally{ue=!1,ye.current=I,we(),Error.prepareStackTrace=z}var me=o?o.displayName||o.name:"",le=me?ce(me):"";return typeof o=="function"&&ae.set(o,le),le}function Ce(o,d,h){return ve(o,!1)}function lt(o){var d=o.prototype;return!!(d&&d.isReactComponent)}function ke(o,d,h){if(o==null)return"";if(typeof o=="function")return ve(o,lt(o));if(typeof o=="string")return ce(o);switch(o){case f:return ce("Suspense");case u:return ce("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case l:return Ce(o.render);case p:return ke(o.type,d,h);case m:{var w=o,z=w._payload,I=w._init;try{return ke(I(z),d,h)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Be={},Ue=k.ReactDebugCurrentFrame;function fe(o){if(o){var d=o._owner,h=ke(o.type,o._source,d?d.type:null);Ue.setExtraStackFrame(h)}else Ue.setExtraStackFrame(null)}function Ht(o,d,h,w,z){{var I=Function.call.bind(de);for(var P in o)if(I(o,P)){var j=void 0;try{if(typeof o[P]!="function"){var K=Error((w||"React class")+": "+h+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}j=o[P](d,P,w,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){j=M}j&&!(j instanceof Error)&&(fe(z),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",w||"React class",h,P,typeof j),fe(null)),j instanceof Error&&!(j.message in Be)&&(Be[j.message]=!0,fe(z),v("Failed %s type: %s",h,j.message),fe(null))}}}var Gt=Array.isArray;function Ye(o){return Gt(o)}function Xt(o){{var d=typeof Symbol=="function"&&Symbol.toStringTag,h=d&&o[Symbol.toStringTag]||o.constructor.name||"Object";return h}}function Kt(o){try{return ct(o),!1}catch{return!0}}function ct(o){return""+o}function ut(o){if(Kt(o))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xt(o)),ct(o)}var ft=k.ReactCurrentOwner,Jt={key:!0,ref:!0,__self:!0,__source:!0},dt,pt;function Qt(o){if(de.call(o,"ref")){var d=Object.getOwnPropertyDescriptor(o,"ref").get;if(d&&d.isReactWarning)return!1}return o.ref!==void 0}function qt(o){if(de.call(o,"key")){var d=Object.getOwnPropertyDescriptor(o,"key").get;if(d&&d.isReactWarning)return!1}return o.key!==void 0}function Zt(o,d){typeof o.ref=="string"&&ft.current}function er(o,d){{var h=function(){dt||(dt=!0,v("%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://reactjs.org/link/special-props)",d))};h.isReactWarning=!0,Object.defineProperty(o,"key",{get:h,configurable:!0})}}function tr(o,d){{var h=function(){pt||(pt=!0,v("%s: `ref` 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://reactjs.org/link/special-props)",d))};h.isReactWarning=!0,Object.defineProperty(o,"ref",{get:h,configurable:!0})}}var rr=function(o,d,h,w,z,I,P){var j={$$typeof:t,type:o,key:d,ref:h,props:P,_owner:I};return j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(j,"_self",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.defineProperty(j,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j};function nr(o,d,h,w,z){{var I,P={},j=null,K=null;h!==void 0&&(ut(h),j=""+h),qt(d)&&(ut(d.key),j=""+d.key),Qt(d)&&(K=d.ref,Zt(d));for(I in d)de.call(d,I)&&!Jt.hasOwnProperty(I)&&(P[I]=d[I]);if(o&&o.defaultProps){var M=o.defaultProps;for(I in M)P[I]===void 0&&(P[I]=M[I])}if(j||K){var W=typeof o=="function"?o.displayName||o.name||"Unknown":o;j&&er(P,W),K&&tr(P,W)}return rr(o,j,K,z,w,ft.current,P)}}var Ve=k.ReactCurrentOwner,mt=k.ReactDebugCurrentFrame;function pe(o){if(o){var d=o._owner,h=ke(o.type,o._source,d?d.type:null);mt.setExtraStackFrame(h)}else mt.setExtraStackFrame(null)}var He;He=!1;function Ge(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function ht(){{if(Ve.current){var o=U(Ve.current.type);if(o)return`
|
|
125
|
+
|
|
126
|
+
Check the render method of \``+o+"`."}return""}}function or(o){return""}var gt={};function ir(o){{var d=ht();if(!d){var h=typeof o=="string"?o:o.displayName||o.name;h&&(d=`
|
|
127
|
+
|
|
128
|
+
Check the top-level render call using <`+h+">.")}return d}}function yt(o,d){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var h=ir(d);if(gt[h])return;gt[h]=!0;var w="";o&&o._owner&&o._owner!==Ve.current&&(w=" It was passed a child from "+U(o._owner.type)+"."),pe(o),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,w),pe(null)}}function vt(o,d){{if(typeof o!="object")return;if(Ye(o))for(var h=0;h<o.length;h++){var w=o[h];Ge(w)&&yt(w,d)}else if(Ge(o))o._store&&(o._store.validated=!0);else if(o){var z=_(o);if(typeof z=="function"&&z!==o.entries)for(var I=z.call(o),P;!(P=I.next()).done;)Ge(P.value)&&yt(P.value,d)}}}function sr(o){{var d=o.type;if(d==null||typeof d=="string")return;var h;if(typeof d=="function")h=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===l||d.$$typeof===p))h=d.propTypes;else return;if(h){var w=U(d);Ht(h,o.props,"prop",w,o)}else if(d.PropTypes!==void 0&&!He){He=!0;var z=U(d);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(o){{for(var d=Object.keys(o.props),h=0;h<d.length;h++){var w=d[h];if(w!=="children"&&w!=="key"){pe(o),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",w),pe(null);break}}o.ref!==null&&(pe(o),v("Invalid attribute `ref` supplied to `React.Fragment`."),pe(null))}}var bt={};function xt(o,d,h,w,z,I){{var P=H(o);if(!P){var j="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(j+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var K=or();K?j+=K:j+=ht();var M;o===null?M="null":Ye(o)?M="array":o!==void 0&&o.$$typeof===t?(M="<"+(U(o.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):M=typeof o,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",M,j)}var W=nr(o,d,h,z,I);if(W==null)return W;if(P){var re=d.children;if(re!==void 0)if(w)if(Ye(re)){for(var me=0;me<re.length;me++)vt(re[me],o);Object.freeze&&Object.freeze(re)}else v("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 vt(re,o)}if(de.call(d,"key")){var le=U(o),q=Object.keys(d).filter(function(pr){return pr!=="key"}),Xe=q.length>0?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}";if(!bt[le+Xe]){var dr=q.length>0?"{"+q.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
|
|
129
|
+
let props = %s;
|
|
130
|
+
<%s {...props} />
|
|
131
|
+
React keys must be passed directly to JSX without using spread:
|
|
132
|
+
let props = %s;
|
|
133
|
+
<%s key={someKey} {...props} />`,Xe,le,dr,le),bt[le+Xe]=!0}}return o===n?ar(W):sr(W),W}}function lr(o,d,h){return xt(o,d,h,!0)}function cr(o,d,h){return xt(o,d,h,!1)}var ur=cr,fr=lr;Dt.Fragment=n,Dt.jsx=ur,Dt.jsxs=fr})()),Dt}var hn;function Na(){return hn||(hn=1,process.env.NODE_ENV==="production"?xr.exports=Ta():xr.exports=Ca()),xr.exports}var Ee=Na();const et=7,Ie=6,Pa=({text:e,maxLength:t=40,maxWidth:r=280,position:n="top",bgColor:i="#1a1a1a",textColor:s="#fff",borderColor:a="#1a1a1a",className:c,style:l})=>{const[f,u]=se.useState(!1),[p,m]=se.useState({box:{x:0,y:0},arrow:{x:0,y:0},rotate:0}),g=se.useRef(null),b=se.useRef(null),x=e.length>t,_=x?e.slice(0,t)+"…":e,k=se.useCallback(()=>{if(!g.current||!b.current)return;const v=g.current.getBoundingClientRect(),C=b.current.offsetWidth||r,R=b.current.offsetHeight||44;let T=0,O=0,N=0,E=0,F=0;n==="top"?(T=v.left+v.width/2-C/2,O=v.top-R-et-Ie,N=v.left+v.width/2-6,E=v.top-et-Ie,F=0):n==="bottom"?(T=v.left+v.width/2-C/2,O=v.bottom+et+Ie,N=v.left+v.width/2-6,E=v.bottom+Ie,F=180):n==="left"?(T=v.left-C-et-Ie,O=v.top+v.height/2-R/2,N=v.left-et-Ie,E=v.top+v.height/2-6,F=90):n==="right"&&(T=v.right+et+Ie,O=v.top+v.height/2-R/2,N=v.right+Ie,E=v.top+v.height/2-6,F=-90);const H=window.innerWidth,Z=window.innerHeight;T=Math.max(8,Math.min(T,H-C-8)),O=Math.max(8,Math.min(O,Z-R-8)),m({box:{x:T,y:O},arrow:{x:N,y:E},rotate:F})},[n,r]);return se.useEffect(()=>{f&&setTimeout(k,0)},[f,k]),x?Ee.jsxs(Ee.Fragment,{children:[Ee.jsx("span",{ref:g,className:c,style:{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"default",maxWidth:"100%",...l},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:_}),f&&Ee.jsxs(Ee.Fragment,{children:[Ee.jsx("div",{ref:b,style:{position:"fixed",left:p.box.x,top:p.box.y,background:i,border:`1px solid ${a}`,borderRadius:8,padding:"8px 12px",fontSize:13,color:s,maxWidth:r,lineHeight:1.5,zIndex:99999,pointerEvents:"none",boxShadow:"0 2px 8px rgba(0,0,0,0.12)",wordBreak:"break-word",whiteSpace:"normal"},children:e}),Ee.jsx("div",{style:{position:"fixed",left:p.arrow.x,top:p.arrow.y,width:12,height:7,zIndex:1e5,pointerEvents:"none",transform:`rotate(${p.rotate}deg)`,transformOrigin:"center"},children:Ee.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",xmlns:"http://www.w3.org/2000/svg",children:Ee.jsx("polygon",{points:"6,7 0,0 12,0",fill:i})})})]})]}):Ee.jsx("span",{className:c,style:l,children:e})},Da=({rows:e,className:t="mt-2 mx-2"})=>Y.jsx("div",{className:`summary-detail-card ${t}`.trim(),children:e.map((r,n)=>Y.jsx("div",{className:"summary-detail-card__row",children:r.map((i,s)=>Y.jsxs("div",{className:"summary-detail-card__field",style:{"--dc-span":i.span??1},children:[Y.jsx("p",{className:"summary-detail-card__label",children:i.label}),Y.jsx("p",{className:`summary-detail-card__value${i.size==="lg"?" summary-detail-card__value--lg":""}`,children:i.value!=null&&String(i.value).length>60?Y.jsx("div",{children:Y.jsx(Pa,{text:i.value==null?"":String(i.value),maxLength:20,maxWidth:380})}):Y.jsx("div",{children:Y.jsx(Oa,{text:i.value==null?"":String(i.value),maxLength:100})})})]},s))},n))}),$a=({title:e,description:t,icon:r,className:n="",children:i})=>Y.jsxs("div",{className:`flex flex-col items-center justify-center py-4 px-4 text-center ${n}`,children:[r&&Y.jsx("div",{className:"mb-2",children:r}),Y.jsx("div",{className:"text-[14px] font-semibold text-[#34343F]",children:e}),(t||i)&&Y.jsx("div",{className:"mt-2 max-w-[650px]",style:{fontSize:"12px",lineHeight:1.6,color:"#A19D9D"},children:i??t})]});exports.CustomTabs=_o;exports.EmptyState=$a;exports.Stepper=Ro;exports.SummaryDetailsCard=Da;
|