aravint-ui-navigation 1.0.58 → 1.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "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"},j={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:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("react/jsx-runtime"),se=require("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),ko=({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 S;const p=r!==void 0,[m,h]=se.useState(t||((S=e[0])==null?void 0:S.id)||""),b=p?r:m,x=$=>{p||h($),n==null||n($)},_=e.find($=>$.id===b),w={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"},T={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},j={background:"transparent",color:"#2D3748",borderTop:"3px solid transparent",borderLeft:"1px solid transparent",borderRight:"1px solid transparent",borderBottom:"1px solid transparent",borderTopLeftRadius:8,borderTopRightRadius:8},F={background:"#ECFDF5",color:"#059669",fontWeight:700,border:"1px solid #059669"},D={background:"#FFFFFF",color:"#1F2937",fontWeight:"500",border:"1px solid #1F2937"},R={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
- `}),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:j,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=i==="active"||i==="current",a="label"in r?r.label:r.title,c="num"in r?r.num:n,l=["rs-stepper__circle",i==="completed"?"rs-stepper__circle--completed":"",s?"rs-stepper__circle--active":"",i==="rejected"?"rs-stepper__circle--rejected":"",n===0&&i==="pending"?"rs-stepper__circle--start":""].filter(Boolean).join(" "),f=["rs-stepper__title",i==="pending"?"rs-stepper__title--pending":"",s?"rs-stepper__title--active":"",i==="rejected"?"rs-stepper__title--rejected":"",n===0&&i==="pending"?"rs-stepper__title--start":""].filter(Boolean).join(" "),u=n===0;return Y.jsxs("div",{className:"rs-stepper__step",children:[Y.jsxs("div",{className:"rs-stepper__circle-wrap",children:[Y.jsx("div",{className:l,children:u?Y.jsx(ko.FileText,{size:16,"aria-hidden":"true"}):c}),(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:f,children:a}),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,j)=>{let N;return"status"in T?N=T.status:u||j<m?N="completed":j===m?N="active":N="pending",{step:T,index:j,status:N}}),[e,m,u]),b=l>0?100/l/2:0,x=g.reduce((T,j)=>j.status==="completed"||j.status==="active"||j.status==="current"||j.status==="rejected"?j.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={};/**
75
+ `}),Y.jsx("div",{style:w,className:`ctabs-list ${s}`,children:e.map(($,H)=>{const Z=b===$.id;return Y.jsxs("button",{role:"tab","aria-selected":Z,disabled:$.disabled,onClick:()=>!$.disabled&&x($.id),style:{...v,...Z?T:j,opacity:$.disabled?.5:1,cursor:$.disabled?"not-allowed":"pointer"},className:`ctabs-btn ${a}`,children:[l&&Y.jsx("span",{className:"ctabs-badge",style:Z?F:D,children:H+1}),$.icon,Y.jsx("span",{className:"ctabs-label",children:$.label})]},$.id)})}),f&&_&&Y.jsx("div",{style:R,className:c,children:_.content})]})},_o=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=i==="active"||i==="current",a="label"in r?r.label:r.title,c="num"in r?r.num:n,l=["rs-stepper__circle",i==="completed"?"rs-stepper__circle--completed":"",s?"rs-stepper__circle--active":"",i==="rejected"?"rs-stepper__circle--rejected":"",n===0&&i==="pending"?"rs-stepper__circle--start":""].filter(Boolean).join(" "),f=["rs-stepper__title",i==="pending"?"rs-stepper__title--pending":"",s?"rs-stepper__title--active":"",i==="rejected"?"rs-stepper__title--rejected":"",n===0&&i==="pending"?"rs-stepper__title--start":""].filter(Boolean).join(" ");return Y.jsxs("div",{className:"rs-stepper__step",children:[Y.jsxs("div",{className:"rs-stepper__circle-wrap",children:[Y.jsx("div",{className:l,children:c}),(i==="completed"||i==="rejected")&&Y.jsx("span",{className:`rs-stepper__check${i==="rejected"?" rs-stepper__check--rejected":""}`,"aria-hidden":"true",children:Y.jsx(_o,{})})]}),Y.jsx("div",{className:f,children:a}),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 So=({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(R=>!("status"in R)),p=Math.max(1,Math.min(f,l)),m=u?Math.max(0,l-1):Math.max(0,Math.min(l-1,p-1)),h=se.useMemo(()=>e.map((R,S)=>{let $;return"status"in R?$=R.status:u||S<m?$="completed":S===m?$="active":$="pending",{step:R,index:S,status:$}}),[e,m,u]),b=h.length>0&&h.every(R=>R.status==="completed"),x=u||b,_=l>0?100/l/2:0,w=h.reduce((R,S)=>S.status==="completed"||S.status==="active"||S.status==="current"||S.status==="rejected"?S.index:R,-1),v=l>1?x?100:Math.max(0,w)/(l-1)*100:0,T=w>=0?r:s,j=x?r:s,F={"--rs-completed-color":r,"--rs-pending-color":n,"--rs-active-color":i,"--rs-rejected-color":"#ef4444","--rs-line-color":s,"--rs-half-step":`${_}%`,"--rs-progress":`${v}%`,"--rs-left-side-color":T,"--rs-right-side-color":j};if(l===0)return null;const D=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 ${D}`,style:F,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"})}),h.map(R=>Y.jsx(bn,{computed:R,showTime:a},"key"in R.step?R.step.key:R.step.id))]})})})]})},Eo=se.memo(So);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 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={};/**
83
+ */var Ur;function Ro(){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,h=null;f!==void 0&&(m=""+f),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(h=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:h,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,20 +88,20 @@
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 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,j=!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||j||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 O=q.stack.split(`
93
- `),K=w.stack.split(`
91
+ */var Yr;function jo(){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"),h=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 w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(o){{for(var d=arguments.length,g=new Array(d>1?d-1:0),k=1;k<d;k++)g[k-1]=arguments[k];T("error",o,g)}}function T(o,d,g){{var k=w.ReactDebugCurrentFrame,z=k.getStackAddendum();z!==""&&(d+="%s",g=g.concat([z]));var I=g.map(function(C){return String(C)});I.unshift("Warning: "+d),Function.prototype.apply.call(console[o],console,I)}}var j=!1,F=!1,D=!1,R=!1,S=!1,$;$=Symbol.for("react.module.reference");function H(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===s||S||o===i||o===f||o===u||R||o===h||j||F||D||typeof o=="object"&&o!==null&&(o.$$typeof===m||o.$$typeof===p||o.$$typeof===a||o.$$typeof===c||o.$$typeof===l||o.$$typeof===$||o.getModuleId!==void 0))}function Z(o,d,g){var k=o.displayName;if(k)return k;var z=d.displayName||d.name||"";return z!==""?g+"("+z+")":g}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 g=o;return Q(g._context)+".Provider";case l:return Z(o,o.render,"ForwardRef");case p:var k=o.displayName||null;return k!==null?k:U(o.type)||"Memo";case m:{var z=o,I=z._payload,C=z._init;try{return U(C(I))}catch{return null}}}return null}var A=Object.assign,X=0,V,G,E,ee,oe,be,xe;function te(){}te.__reactDisabledLog=!0;function ne(){{if(X===0){V=console.log,G=console.info,E=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:E}),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=w.ReactCurrentDispatcher,J;function ce(o,d,g){{if(J===void 0)try{throw Error()}catch(z){var k=z.stack.trim().match(/\n( *(at )?)/);J=k&&k[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 g=ae.get(o);if(g!==void 0)return g}var k;ue=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=ye.current,ye.current=null,ne();try{if(d){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(q){k=q}Reflect.construct(o,[],C)}else{try{C.call()}catch(q){k=q}o.call(C.prototype)}}else{try{throw Error()}catch(q){k=q}o()}}catch(q){if(q&&k&&typeof q.stack=="string"){for(var O=q.stack.split(`
93
+ `),K=k.stack.split(`
94
94
  `),M=O.length-1,W=K.length-1;M>=1&&W>=0&&O[M]!==K[W];)W--;for(;M>=1&&W>=0;M--,W--)if(O[M]!==K[W]){if(M!==1||W!==1)do if(M--,W--,W<0||O[M]!==K[W]){var re=`
95
- `+O[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 O=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}O=o[P](d,P,w,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){O=M}O&&!(O 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 O),fe(null)),O instanceof Error&&!(O.message in Be)&&(Be[O.message]=!0,fe(z),v("Failed %s type: %s",h,O.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 O={$$typeof:t,type:o,key:d,ref:h,props:P,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function nr(o,d,h,w,z){{var I,P={},O=null,K=null;h!==void 0&&(ut(h),O=""+h),qt(d)&&(ut(d.key),O=""+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(O||K){var W=typeof o=="function"?o.displayName||o.name||"Unknown":o;O&&er(P,W),K&&tr(P,W)}return rr(o,O,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`
95
+ `+O[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,g){return ve(o,!1)}function lt(o){var d=o.prototype;return!!(d&&d.isReactComponent)}function ke(o,d,g){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,g);case m:{var k=o,z=k._payload,I=k._init;try{return ke(I(z),d,g)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Be={},Ue=w.ReactDebugCurrentFrame;function fe(o){if(o){var d=o._owner,g=ke(o.type,o._source,d?d.type:null);Ue.setExtraStackFrame(g)}else Ue.setExtraStackFrame(null)}function Ht(o,d,g,k,z){{var I=Function.call.bind(de);for(var C in o)if(I(o,C)){var O=void 0;try{if(typeof o[C]!="function"){var K=Error((k||"React class")+": "+g+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}O=o[C](d,C,k,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){O=M}O&&!(O 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).",k||"React class",g,C,typeof O),fe(null)),O instanceof Error&&!(O.message in Be)&&(Be[O.message]=!0,fe(z),v("Failed %s type: %s",g,O.message),fe(null))}}}var Gt=Array.isArray;function Ye(o){return Gt(o)}function Xt(o){{var d=typeof Symbol=="function"&&Symbol.toStringTag,g=d&&o[Symbol.toStringTag]||o.constructor.name||"Object";return g}}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=w.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 g=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))};g.isReactWarning=!0,Object.defineProperty(o,"key",{get:g,configurable:!0})}}function tr(o,d){{var g=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))};g.isReactWarning=!0,Object.defineProperty(o,"ref",{get:g,configurable:!0})}}var rr=function(o,d,g,k,z,I,C){var O={$$typeof:t,type:o,key:d,ref:g,props:C,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function nr(o,d,g,k,z){{var I,C={},O=null,K=null;g!==void 0&&(ut(g),O=""+g),qt(d)&&(ut(d.key),O=""+d.key),Qt(d)&&(K=d.ref,Zt(d));for(I in d)de.call(d,I)&&!Jt.hasOwnProperty(I)&&(C[I]=d[I]);if(o&&o.defaultProps){var M=o.defaultProps;for(I in M)C[I]===void 0&&(C[I]=M[I])}if(O||K){var W=typeof o=="function"?o.displayName||o.name||"Unknown":o;O&&er(C,W),K&&tr(C,W)}return rr(o,O,K,z,k,ft.current,C)}}var Ve=w.ReactCurrentOwner,mt=w.ReactDebugCurrentFrame;function pe(o){if(o){var d=o._owner,g=ke(o.type,o._source,d?d.type:null);mt.setExtraStackFrame(g)}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 \``+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=`
97
+ Check the render method of \``+o+"`."}return""}}function or(o){return""}var gt={};function ir(o){{var d=ht();if(!d){var g=typeof o=="string"?o:o.displayName||o.name;g&&(d=`
98
98
 
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 O="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(O+=" 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?O+=K:O+=ht();var M;o===null?M="null":Ye(o)?M="array":o!==void 0&&o.$$typeof===t?(M="<"+(U(o.type)||"Unknown")+" />",O=" 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,O)}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:
99
+ Check the top-level render call using <`+g+">.")}return d}}function yt(o,d){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var g=ir(d);if(gt[g])return;gt[g]=!0;var k="";o&&o._owner&&o._owner!==Ve.current&&(k=" 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.',g,k),pe(null)}}function vt(o,d){{if(typeof o!="object")return;if(Ye(o))for(var g=0;g<o.length;g++){var k=o[g];Ge(k)&&yt(k,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),C;!(C=I.next()).done;)Ge(C.value)&&yt(C.value,d)}}}function sr(o){{var d=o.type;if(d==null||typeof d=="string")return;var g;if(typeof d=="function")g=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===l||d.$$typeof===p))g=d.propTypes;else return;if(g){var k=U(d);Ht(g,o.props,"prop",k,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),g=0;g<d.length;g++){var k=d[g];if(k!=="children"&&k!=="key"){pe(o),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),pe(null);break}}o.ref!==null&&(pe(o),v("Invalid attribute `ref` supplied to `React.Fragment`."),pe(null))}}var bt={};function xt(o,d,g,k,z,I){{var C=H(o);if(!C){var O="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(O+=" 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?O+=K:O+=ht();var M;o===null?M="null":Ye(o)?M="array":o!==void 0&&o.$$typeof===t?(M="<"+(U(o.type)||"Unknown")+" />",O=" 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,O)}var W=nr(o,d,g,z,I);if(W==null)return W;if(C){var re=d.children;if(re!==void 0)if(k)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} />`,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 j=0;j<T.length;++j){const N=T[j];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],j=()=>["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:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],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),j=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,j.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,j.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:j}=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},j&&g<Bi&&(g++,typeof j=="object"&&(j.placement&&(m=j.placement),j.rects&&(f=j.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):j.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],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let N=j?j[C]:0;(!N||!await(a.isElement==null?void 0:a.isElement(j)))&&(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)),j=b!=="none";!m&&j&&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(j){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),j=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>j&&(b=j)}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),j=!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),j&&!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 j=T[0].intersectionRatio;if(j!==l){if(!C)return a();j?a(!1,j):n=setTimeout(()=>{a(!1,1e-7)},1e3)}j===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!==j.current&&(j.current=S,x(S))},[]),C=y.useCallback(S=>{S!==N.current&&(N.current=S,k(S))},[]),R=s||b,T=a||_,j=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(!j.current||!N.current)return;const S={placement:t,strategy:r,middleware:m};Z.current&&(S.platform=Z.current),Ss(j.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&&(j.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:j,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,j=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:j.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]),j=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?j():R()},[l.isOpenDelayedRef,j,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={};/**
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,g){return xt(o,d,g,!0)}function cr(o,d,g){return xt(o,d,g,!1)}var ur=cr,fr=lr;Ot.Fragment=n,Ot.jsx=ur,Ot.jsxs=fr})()),Ot}var Vr;function Oo(){return Vr||(Vr=1,process.env.NODE_ENV==="production"?mr.exports=Ro():mr.exports=jo()),mr.exports}var L=Oo();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,To=(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,...h}=u;return Object.entries(h).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="-",Co=e=>{const t=Po(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)||No(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=/^\[(.+)\]$/,No=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}},Po=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(Do(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},Do=e=>e.isThemeGetter,$o=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=":",zo=_r.length,Fo=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+zo;continue}if(x==="/"){f=b;continue}}x==="["?a++:x==="]"?a--:x==="("?c++:x===")"&&c--}const u=s.length===0?i:i.substring(l),p=Io(u),m=p!==u,h=f&&f>l?f-l:void 0;return{modifiers:s,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}};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},Io=e=>e.endsWith(kr)?e.substring(0,e.length-1):e.startsWith(kr)?e.substring(1):e,Lo=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}},Mo=e=>({cache:$o(e.cacheSize),parseClassName:Fo(e),sortModifiers:Lo(e),...Co(e)}),Ao=/\s+/,Wo=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],c=e.trim().split(Ao);let l="";for(let f=c.length-1;f>=0;f-=1){const u=c[f],{isExternal:p,modifiers:m,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:x}=r(u);if(p){l=u+(l.length>0?" "+l:l);continue}let _=!!x,w=n(_?b.substring(0,x):b);if(!w){if(!_){l=u+(l.length>0?" "+l:l);continue}if(w=n(b),!w){l=u+(l.length>0?" "+l:l);continue}_=!1}const v=s(m).join(":"),T=h?v+kr:v,j=T+w;if(a.includes(j))continue;a.push(j);const F=i(w,_);for(let D=0;D<F.length;++D){const R=F[D];a.push(T+R)}l=u+(l.length>0?" "+l:l)}return l};function Bo(){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 Uo(e,...t){let r,n,i,s=a;function a(l){const f=t.reduce((u,p)=>p(u),e());return r=Mo(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=Wo(l,r);return i(l,u),u}return function(){return s(Bo.apply(null,arguments))}}const ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Sn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,En=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yo=/^\d+\/\d+$/,Vo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ho=/\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$/,Go=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ko=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>Yo.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=>Vo.test(e),Jo=()=>!0,Qo=e=>Ho.test(e)&&!Go.test(e),Rn=()=>!1,qo=e=>Xo.test(e),Zo=e=>Ko.test(e),ei=e=>!N(e)&&!P(e),ti=e=>ot(e,Tn,Rn),N=e=>Sn.test(e),Ke=e=>ot(e,Cn,Qo),gr=e=>ot(e,si,B),Jr=e=>ot(e,jn,Rn),ri=e=>ot(e,On,Zo),Tt=e=>ot(e,Nn,qo),P=e=>En.test(e),kt=e=>it(e,Cn),ni=e=>it(e,ai),Qr=e=>it(e,jn),oi=e=>it(e,Tn),ii=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",si=e=>e==="number",ai=e=>e==="family-name",Nn=e=>e==="shadow",li=()=>{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"),h=ie("drop-shadow"),b=ie("blur"),x=ie("perspective"),_=ie("aspect"),w=ie("ease"),v=ie("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...j(),P,N],D=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],S=()=>[P,N,l],$=()=>[Ze,"full","auto",...S()],H=()=>[Fe,"none","subgrid",P,N],Z=()=>["auto",{span:["full",Fe,P,N]},Fe,P,N],Q=()=>[Fe,"auto",P,N],U=()=>["auto","min","max","fr",P,N],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...S()],G=()=>[Ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],E=()=>[e,P,N],ee=()=>[...j(),Qr,Jr,{position:[P,N]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],be=()=>["auto","cover","contain",oi,ti,{size:[P,N]}],xe=()=>[hr,kt,Ke],te=()=>["","none","full",f,P,N],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,P,N],ue=()=>["none",B,P,N],ae=()=>["none",B,P,N],Te=()=>[B,P,N],ve=()=>[Ze,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ne],breakpoint:[Ne],color:[Jo],container:[Ne],"drop-shadow":[Ne],ease:["in","out","in-out"],font:[ei],"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,N,P,_]}],container:["container"],columns:[{columns:[B,N,P,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:F()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Fe,"auto",P,N]}],basis:[{basis:[Ze,"full","auto",c,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[B,Ze,"auto","initial","none",N]}],grow:[{grow:["",B,P,N]}],shrink:[{shrink:["",B,P,N]}],order:[{order:[Fe,"first","last","none",P,N]}],"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:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"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:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],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":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"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,P,gr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hr,N]}],"font-family":[{font:[ni,N,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,P,N]}],"line-clamp":[{"line-clamp":[B,"none",P,gr]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",P,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",P,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[B,"from-font","auto",P,Ke]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[B,"auto",P,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",P,N]}],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",P,N]}],"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,P,N],radial:["",P,N],conic:[Fe,P,N]},ii,ri]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:xe()}],"gradient-via-pos":[{via:xe()}],"gradient-to-pos":[{to:xe()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],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:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[B,P,N]}],"outline-w":[{outline:["",B,kt,Ke]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",u,Ct,Tt]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",p,Ct,Tt]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[B,Ke]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,Ct,Tt]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[B,P,N]}],"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":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"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":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"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":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"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":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"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":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"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":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"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":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[P,N]}],"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":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"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":j()}],"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":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"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",P,N]}],filter:[{filter:["","none",P,N]}],blur:[{blur:ce()}],brightness:[{brightness:[B,P,N]}],contrast:[{contrast:[B,P,N]}],"drop-shadow":[{"drop-shadow":["","none",h,Ct,Tt]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",B,P,N]}],"hue-rotate":[{"hue-rotate":[B,P,N]}],invert:[{invert:["",B,P,N]}],saturate:[{saturate:[B,P,N]}],sepia:[{sepia:["",B,P,N]}],"backdrop-filter":[{"backdrop-filter":["","none",P,N]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[B,P,N]}],"backdrop-contrast":[{"backdrop-contrast":[B,P,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",B,P,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,P,N]}],"backdrop-invert":[{"backdrop-invert":["",B,P,N]}],"backdrop-opacity":[{"backdrop-opacity":[B,P,N]}],"backdrop-saturate":[{"backdrop-saturate":[B,P,N]}],"backdrop-sepia":[{"backdrop-sepia":["",B,P,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",P,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[B,"initial",P,N]}],ease:[{ease:["linear","initial",w,P,N]}],delay:[{delay:[B,P,N]}],animate:[{animate:["none",v,P,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,P,N]}],"perspective-origin":[{"perspective-origin":F()}],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:[P,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"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:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"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",P,N]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",P,N]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[B,kt,Ke,gr]}],stroke:[{stroke:["none",...E()]}],"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"]}},ci=Uo(li);function ui(...e){return ci(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:h,children:b,...x}=p,_=((m=h==null?void 0:h[e])==null?void 0:m[l])||c,w=y.useMemo(()=>x,Object.values(x));return L.jsx(_.Provider,{value:w,children:b})};f.displayName=s+"Provider";function u(p,m){var h;const b=((h=m==null?void 0:m[e])==null?void 0:h[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,fi(i,...t)]}function fi(...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 di(e){const t=pi(e),r=y.forwardRef((n,i)=>{const{children:s,...a}=n,c=y.Children.toArray(s),l=c.find(hi);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 pi(e){const t=y.forwardRef((r,n)=>{const{children:i,...s}=r;if(y.isValidElement(i)){const a=yi(i),c=gi(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 mi(e){const t=({children:r})=>L.jsx(L.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=$n,t}function hi(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$n}function gi(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 yi(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 vi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=vi.reduce((e,t)=>{const r=di(`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 bi(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 xi(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 wi="DismissableLayer",Sr="dismissableLayer.update",ki="dismissableLayer.pointerDownOutside",_i="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),[,h]=y.useState({}),b=qe(t,R=>p(R)),x=Array.from(f.layers),[_]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(_),v=u?x.indexOf(u):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,j=v>=w,F=Ri(R=>{const S=R.target,$=[...f.branches].some(H=>H.contains(S));!j||$||(i==null||i(R),a==null||a(R),R.defaultPrevented||c==null||c())},m),D=ji(R=>{const S=R.target;[...f.branches].some($=>$.contains(S))||(s==null||s(R),a==null||a(R),R.defaultPrevented||c==null||c())},m);return xi(R=>{v===f.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&c&&(R.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 R=()=>h({});return document.addEventListener(Sr,R),()=>document.removeEventListener(Sr,R)},[]),L.jsx(We.div,{...l,ref:b,style:{pointerEvents:T?j?"auto":"none":void 0,...e.style},onFocusCapture:Pe(e.onFocusCapture,D.onFocusCapture),onBlurCapture:Pe(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Pe(e.onPointerDownCapture,F.onPointerDownCapture)})});Fn.displayName=wi;var Si="DismissableLayerBranch",Ei=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})});Ei.displayName=Si;function Ri(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(ki,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 ji(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(_i,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?bi(i,s):i.dispatchEvent(s)}var Le=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},Oi=y[" useId ".trim().toString()]||(()=>{}),Ti=0;function Ci(e){const[t,r]=y.useState(Oi());return Le(()=>{r(n=>n??String(Ti++))},[e]),t?`radix-${t}`:""}const Ni=["top","right","bottom","left"],Me=Math.min,he=Math.max,zt=Math.round,Nt=Math.floor,je=e=>({x:e,y:e}),Pi={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 Di(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 $i(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"],zi=["top","bottom"],Fi=["bottom","top"];function Ii(e,t,r){switch(e){case"top":case"bottom":return r?t?rn:tn:t?tn:rn;case"left":case"right":return t?zi:Fi;default:return[]}}function Li(e,t,r,n){const i=st(e);let s=Ii($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 Pi[t]+e.slice(t.length)}function Mi(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ln(e){return typeof e!="number"?Mi(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 h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-i.width,y:p};break;default:h={x:n.x,y:n.y}}switch(st(t)){case"start":h[a]-=m*(r&&f?-1:1);break;case"end":h[a]+=m*(r&&f?-1:1);break}return h}async function Ai(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:h=0}=De(t,e),b=Ln(h),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})),w=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)),T=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},j=It(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:v,strategy:l}):w);return{top:(_.top-j.top+b.top)/T.y,bottom:(j.bottom-_.bottom+b.bottom)/T.y,left:(_.left-j.left+b.left)/T.x,right:(j.right-_.right+b.right)/T.x}}const Wi=50,Bi=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:a}=r,c=a.detectOverflow?a:{...a,detectOverflow:Ai},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,h=0;const b={};for(let x=0;x<s.length;x++){const _=s[x];if(!_)continue;const{name:w,fn:v}=_,{x:T,y:j,data:F,reset:D}=await v({x:u,y:p,initialPlacement:n,placement:m,strategy:i,middlewareData:b,rects:f,platform:c,elements:{reference:e,floating:t}});u=T??u,p=j??p,b[w]={...b[w],...F},D&&h<Wi&&(h++,typeof D=="object"&&(D.placement&&(m=D.placement),D.rects&&(f=D.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:u,y:p}=nn(f,m,l)),x=-1)}return{x:u,y:p,placement:m,strategy:i,middlewareData:b}},Ui=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},h=Dr(i),b=Pr(h),x=await a.getDimensions(f),_=h==="y",w=_?"top":"left",v=_?"bottom":"right",T=_?"clientHeight":"clientWidth",j=s.reference[b]+s.reference[h]-m[h]-s.floating[b],F=m[h]-s.reference[h],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let R=D?D[T]:0;(!R||!await(a.isElement==null?void 0:a.isElement(D)))&&(R=c.floating[T]||s.floating[b]);const S=j/2-F/2,$=R/2-x[b]/2-1,H=Me(p[w],$),Z=Me(p[v],$),Q=H,U=R-x[b]-Z,A=R/2-x[b]/2+S,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{[h]:m[h]+G,data:{[h]:X,centerOffset:A-X-G,...V&&{alignmentOffset:G}},reset:V}}}),Yi=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:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,..._}=De(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const w=$e(i),v=Re(c),T=$e(c)===c,j=await(l.isRTL==null?void 0:l.isRTL(f.floating)),F=m||(T||!x?[Ft(c)]:$i(c)),D=b!=="none";!m&&D&&F.push(...Li(c,x,b,j));const R=[c,...F],S=await l.detectOverflow(t,_),$=[];let H=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&$.push(S[w]),p){const A=Di(i,a,j);$.push(S[A[0]],S[A[1]])}if(H=[...H,{placement:i,overflows:$}],!$.every(A=>A<=0)){var Z,Q;const A=(((Z=s.flip)==null?void 0:Z.index)||0)+1,X=R[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,E)=>G.overflows[1]-E.overflows[1])[0])==null?void 0:Q.placement;if(!V)switch(h){case"bestFit":{var U;const G=(U=H.filter(E=>{if(D){const ee=Re(E.placement);return ee===v||ee==="y"}return!0}).map(E=>[E.placement,E.overflows.filter(ee=>ee>0).reduce((ee,oe)=>ee+oe,0)]).sort((E,ee)=>E[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 Ni.some(t=>e[t]>=0)}const Vi=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 Hi(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:h,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"&&(h=c==="end"?b*-1:b),l?{x:h*u,y:m*f}:{x:m*f,y:h*u}}const Gi=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 Hi(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}}}}},Xi=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:w=>{let{x:v,y:T}=w;return{x:v,y:T}}},...f}=De(e,t),u={x:r,y:n},p=await s.detectOverflow(t,f),m=Re($e(i)),h=Nr(m);let b=u[h],x=u[m];if(a){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",T=b+p[w],j=b-p[v];b=Er(T,b,j)}if(c){const w=m==="y"?"top":"left",v=m==="y"?"bottom":"right",T=x+p[w],j=x-p[v];x=Er(T,x,j)}const _=l.fn({...t,[h]:b,[m]:x});return{..._,data:{x:_.x-r,y:_.y-n,enabled:{[h]:a,[m]:c}}}}}},Ki=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 h=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 T=m==="y"?"height":"width",j=s.reference[m]-s.floating[T]+_.mainAxis,F=s.reference[m]+s.reference[T]-_.mainAxis;h<j?h=j:h>F&&(h=F)}if(f){var w,v;const T=m==="y"?"width":"height",j=Mn.has($e(i)),F=s.reference[p]-s.floating[T]+(j&&((w=a.offset)==null?void 0:w[p])||0)+(j?0:_.crossAxis),D=s.reference[p]+s.reference[T]+(j?0:((v=a.offset)==null?void 0:v[p])||0)-(j?_.crossAxis:0);b<F?b=F:b>D&&(b=D)}return{[m]:h,[p]:b}}}},Ji=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),h=Re(i)==="y",{width:b,height:x}=s.floating;let _,w;p==="top"||p==="bottom"?(_=p,w=m===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=p,_=m==="end"?"top":"bottom");const v=x-u.top-u.bottom,T=b-u.left-u.right,j=Me(x-u[_],v),F=Me(b-u[w],T),D=!t.middlewareData.shift;let R=j,S=F;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(S=T),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(R=v),D&&!m){const H=he(u.left,0),Z=he(u.right,0),Q=he(u.top,0),U=he(u.bottom,0);h?S=b-2*(H!==0||Z!==0?H+Z:he(u.left,u.right)):R=x-2*(Q!==0||U!==0?Q+U:he(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:R});const $=await a.getDimensions(c.floating);return b!==$.width||x!==$.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 qi=/transform|translate|scale|rotate|perspective|filter/,Zi=/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))||qi.test(t.willChange||"")||Zi.test(t.contain||"")}function es(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 ts=je(0);function Un(e){const t=ge(e);return!zr()||!t.visualViewport?ts:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rs(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=rs(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),h=n&&_e(n)?ge(n):n;let b=m,x=jr(b);for(;x&&n&&h!==b;){const _=tt(x),w=x.getBoundingClientRect(),v=Se(x),T=w.left+(x.clientLeft+parseFloat(v.paddingLeft))*_.x,j=w.top+(x.clientTop+parseFloat(v.paddingTop))*_.y;l*=_.x,f*=_.y,u*=_.x,p*=_.y,l+=T,f+=j,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 ns(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 h=Qe(n);f=tt(n),u.x=h.x+n.clientLeft,u.y=h.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 os(e){return Array.from(e.getClientRects())}function is(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 ss(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),h=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-h);b<=ln&&(s-=b)}else f<=ln&&(s+=f);return{width:s,height:a,x:c,y:l}}function as(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=ss(e,r);else if(t==="document")n=is(Oe(e));else if(_e(t))n=as(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 ls(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 cs(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=[...r==="clippingAncestors"?Wt(t)?[]:ls(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 us(e){const{width:t,height:r}=Bn(e);return{width:t,height:r}}function fs(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 h=Qe(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.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||es(e)||r}const ds=async function(e){const t=this.getOffsetParent||Hn,r=this.getDimensions,n=await r(e.floating);return{reference:fs(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ps(e){return Se(e).direction==="rtl"}const ms={convertOffsetParentRelativeRectToViewportRelativeRect:ns,getDocumentElement:Oe,getClippingRect:cs,getOffsetParent:Hn,getElementRects:ds,getClientRects:os,getDimensions:us,getScale:tt,isElement:_e,isRTL:ps};function Gn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function hs(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:h}=f;if(c||t(),!m||!h)return;const b=Nt(p),x=Nt(i.clientWidth-(u+m)),_=Nt(i.clientHeight-(p+h)),w=Nt(u),v={rootMargin:-b+"px "+-x+"px "+-_+"px "+-w+"px",threshold:he(0,Me(1,l))||1};let T=!0;function j(F){const D=F[0].intersectionRatio;if(D!==l){if(!T)return a();D?a(!1,D):n=setTimeout(()=>{a(!1,1e-7)},1e3)}D===1&&!Gn(f,e.getBoundingClientRect())&&a(),T=!1}try{r=new IntersectionObserver(j,{...v,root:i.ownerDocument})}catch{r=new IntersectionObserver(j,v)}r.observe(e)}return a(!0),s}function gs(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(w=>{i&&w.addEventListener("scroll",r,{passive:!0}),s&&w.addEventListener("resize",r)});const p=f&&c?hs(f,r):null;let m=-1,h=null;a&&(h=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var T;(T=h)==null||T.observe(t)})),r()}),f&&!l&&h.observe(f),t&&h.observe(t));let b,x=l?Qe(e):null;l&&_();function _(){const w=Qe(e);x&&!Gn(x,w)&&r(),x=w,b=requestAnimationFrame(_)}return r(),()=>{var w;u.forEach(v=>{i&&v.removeEventListener("scroll",r),s&&v.removeEventListener("resize",r)}),p==null||p(),(w=h)==null||w.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const ys=Gi,vs=Xi,bs=Yi,xs=Ji,ws=Vi,fn=Ui,ks=Ki,_s=(e,t,r)=>{const n=new Map,i={platform:ms,...r},s={...i.platform,_c:n};return Bi(e,t,{...i,platform:s})};var Ss=typeof document<"u",Es=function(){},$t=Ss?se.useLayoutEffect:Es;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 Rs(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,h]=y.useState(n);Lt(m,n)||h(n);const[b,x]=y.useState(null),[_,w]=y.useState(null),v=y.useCallback(E=>{E!==D.current&&(D.current=E,x(E))},[]),T=y.useCallback(E=>{E!==R.current&&(R.current=E,w(E))},[]),j=s||b,F=a||_,D=y.useRef(null),R=y.useRef(null),S=y.useRef(u),$=l!=null,H=br(l),Z=br(i),Q=br(f),U=y.useCallback(()=>{if(!D.current||!R.current)return;const E={placement:t,strategy:r,middleware:m};Z.current&&(E.platform=Z.current),_s(D.current,R.current,E).then(ee=>{const oe={...ee,isPositioned:Q.current!==!1};A.current&&!Lt(S.current,oe)&&(S.current=oe,vn.flushSync(()=>{p(oe)}))})},[m,t,r,Z,Q]);$t(()=>{f===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,p(E=>({...E,isPositioned:!1})))},[f]);const A=y.useRef(!1);$t(()=>(A.current=!0,()=>{A.current=!1}),[]),$t(()=>{if(j&&(D.current=j),F&&(R.current=F),j&&F){if(H.current)return H.current(j,F,U);U()}},[j,F,U,H,$]);const X=y.useMemo(()=>({reference:D,floating:R,setReference:v,setFloating:T}),[v,T]),V=y.useMemo(()=>({reference:j,floating:F}),[j,F]),G=y.useMemo(()=>{const E={position:r,left:0,top:0};if(!V.floating)return E;const ee=dn(V.floating,u.x),oe=dn(V.floating,u.y);return c?{...E,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 js=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):{}}}},Os=(e,t)=>{const r=ys(e);return{name:r.name,fn:r.fn,options:[e,t]}},Ts=(e,t)=>{const r=vs(e);return{name:r.name,fn:r.fn,options:[e,t]}},Cs=(e,t)=>({fn:ks(e).fn,options:[e,t]}),Ns=(e,t)=>{const r=bs(e);return{name:r.name,fn:r.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=js(e);return{name:r.name,fn:r.fn,options:[e,t]}};var zs="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=zs;var Fs=Kn;function Is(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),[Ls,qn]=Jn(Ir),Zn=e=>{const{__scopePopper:t,children:r}=e,[n,i]=y.useState(null);return L.jsx(Ls,{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",[Ms,As]=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:h=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:_=0,sticky:w="partial",hideWhenDetached:v=!1,updatePositionStrategy:T="optimized",onPlaced:j,...F}=e,D=qn(Lr,l),[R,S]=y.useState(null),$=qe(t,Ce=>S(Ce)),[H,Z]=y.useState(null),Q=Is(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],E=G.length>0,ee={padding:V,boundary:G.filter(Bs),altBoundary:E},{refs:oe,floatingStyles:be,placement:xe,isPositioned:te,middlewareData:ne}=Rs({strategy:"fixed",placement:X,whileElementsMounted:(...Ce)=>gs(...Ce,{animationFrame:T==="always"}),elements:{reference:D.anchor},middleware:[Os({mainAxis:u+A,alignmentAxis:m}),b&&Ts({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Cs():void 0,...ee}),b&&Ns({...ee}),Ps({...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&&$s({element:H,padding:h}),Us({arrowWidth:U,arrowHeight:A}),v&&Ds({strategy:"referenceHidden",...ee})]}),[we,ye]=io(xe),J=Mt(j);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(()=>{R&&ve(window.getComputedStyle(R).zIndex)},[R]),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(Ms,{scope:l,placedSide:we,onArrowChange:Z,arrowX:ce,arrowY:ue,shouldHideArrow:ae,children:L.jsx(We.div,{"data-side":we,"data-align":ye,...F,ref:$,style:{...F.style,animation:te?void 0:"none"}})})})});ro.displayName=Lr;var no="PopperArrow",Ws={top:"bottom",right:"left",bottom:"top",left:"right"},oo=y.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,i=As(no,r),s=Ws[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(Fs,{...n,ref:t,style:{...n.style,display:"block"}})})});oo.displayName=no;function Bs(e){return e!==null}var Us=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),h={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 _="",w="";return p==="bottom"?(_=l?h:`${b}px`,w=`${-u}px`):p==="top"?(_=l?h:`${b}px`,w=`${a.floating.height+u}px`):p==="right"?(_=`${-u}px`,w=l?h:`${x}px`):p==="left"&&(_=`${a.floating.width+u}px`,w=l?h:`${x}px`),{data:{x:_,y:w}}}});function io(e){const[t,r="center"]=e.split("-");return[t,r]}var Ys=Zn,Vs=to,Hs=ro,Gs=oo,Xs="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=Xs;function Ks(e,t){return y.useReducer((r,n)=>t[r][n]??r,e)}var Mr=e=>{const{present:t,children:r}=e,n=Js(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 Js(e){const[t,r]=y.useState(),n=y.useRef(null),i=y.useRef(e),s=y.useRef("none"),a=e?"mounted":"unmounted",[c,l]=Ks(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=h=>{const b=Pt(n.current).includes(CSS.escape(h.animationName));if(h.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=h=>{h.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 qs=y[" useInsertionEffect ".trim().toString()]||Le;function Zs({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,s,a]=ea({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=ta(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 ea({defaultProp:e,onChange:t}){const[r,n]=y.useState(e),i=y.useRef(r),s=y.useRef(t);return qs(()=>{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 ta(e){return typeof e=="function"}var ra=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"}),na="VisuallyHidden",ao=y.forwardRef((e,t)=>L.jsx(We.span,{...e,ref:t,style:{...ra,...e.style}}));ao.displayName=na;var oa=ao,[Yt]=Dn("Tooltip",[Qn]),Vt=Qn(),lo="TooltipProvider",ia=700,Or="tooltip.open",[sa,Ar]=Yt(lo),co=e=>{const{__scopeTooltip:t,delayDuration:r=ia,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(sa,{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",[aa,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=Ci(),h=y.useRef(0),b=a??l.disableHoverableContent,x=c??l.delayDuration,_=y.useRef(!1),[w,v]=Zs({prop:n,defaultProp:i??!1,onChange:R=>{R?(l.onOpen(),document.dispatchEvent(new CustomEvent(Or))):l.onClose(),s==null||s(R)},caller:Et}),T=y.useMemo(()=>w?_.current?"delayed-open":"instant-open":"closed",[w]),j=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,_.current=!1,v(!0)},[v]),F=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v(!1)},[v]),D=y.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{_.current=!0,v(!0),h.current=0},x)},[x,v]);return y.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),L.jsx(Ys,{...f,children:L.jsx(aa,{scope:t,contentId:m,open:w,stateAttribute:T,trigger:u,onTriggerChange:p,onTriggerEnter:y.useCallback(()=>{l.isOpenDelayedRef.current?D():j()},[l.isOpenDelayedRef,D,j]),onTriggerLeave:y.useCallback(()=>{b?F():(window.clearTimeout(h.current),h.current=0)},[F,b]),onOpen:j,onClose:F,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(Vs,{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",[la,ca]=Yt(Wr,{forceMount:void 0}),po=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,s=jt(Wr,t);return L.jsx(la,{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=ca(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(ua,{side:i,...s,ref:t})})}),ua=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]),h=y.useCallback((b,x)=>{const _=b.currentTarget,w={x:b.clientX,y:b.clientY},v=ma(w,_.getBoundingClientRect()),T=ha(w,v),j=ga(x.getBoundingClientRect()),F=va([...T,...j]);c(F),p(!0)},[p]);return y.useEffect(()=>()=>m(),[m]),y.useEffect(()=>{if(l&&u){const b=_=>h(_,u),x=_=>h(_,l);return l.addEventListener("pointerleave",b),u.addEventListener("pointerleave",x),()=>{l.removeEventListener("pointerleave",b),u.removeEventListener("pointerleave",x)}}},[l,u,h,m]),y.useEffect(()=>{if(a){const b=x=>{const _=x.target,w={x:x.clientX,y:x.clientY},v=(l==null?void 0:l.contains(_))||(u==null?void 0:u.contains(_)),T=!ya(w,a);v?m():T&&(m(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,u,a,f,m]),L.jsx(ho,{...e,ref:s})}),[fa,da]=Yt(Et,{isInside:!1}),pa=mi("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 h=m.target;h!=null&&h.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(Hs,{"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(pa,{children:n}),L.jsx(fa,{scope:r,isInside:!0,children:L.jsx(oa,{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 da(go,r).isInside?null:L.jsx(Gs,{...i,...n,ref:t})});yo.displayName=go;function ma(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 ha(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 ga(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 ya(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 va(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),ba(t)}function ba(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 xa=co,wa=uo,ka=fo,_a=po,vo=mo,Sa=yo;const bo=xa,xo=wa,wo=ka,Br=y.forwardRef(({className:e,sideOffset:t=6,style:r,...n},i)=>{const s={backgroundColor:"#000000",color:"#ffffff",zIndex:99999,...r};return L.jsx(_a,{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(Sa,{style:{fill:"#000000"}})]})})});Br.displayName=vo.displayName;const Ea=To("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"}}),Ra=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:h="#FF6070",updateColor:b="#003B71",cancelColor:x="#ffffff",outlineColor:_="#003B71",...w},v)=>{const T={...t&&{save:{backgroundColor:m},delete:{backgroundColor:h},update:{backgroundColor:b},cancel:{backgroundColor:x},outline:{backgroundColor:_}}[t],...f},j=L.jsx("button",{ref:v,"data-testid":c,className:ui(Ea({variant:t,size:r}),e),style:T,disabled:i||n,...w,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:j}),p&&L.jsx(Br,{children:p})]})}):j});Ra.displayName="Button";const ja=({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
105
  * @license React
106
106
  * react-jsx-runtime.production.min.js
107
107
  *
@@ -109,7 +109,7 @@ React keys must be passed directly to JSX without using spread:
109
109
  *
110
110
  * This source code is licensed under the MIT license found in the
111
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={};/**
112
+ */var pn;function Oa(){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,h=null;f!==void 0&&(m=""+f),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(h=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:h,props:p,_owner:i.current}}return _t.Fragment=r,_t.jsx=a,_t.jsxs=a,_t}var Dt={};/**
113
113
  * @license React
114
114
  * react-jsx-runtime.development.js
115
115
  *
@@ -117,17 +117,17 @@ React keys must be passed directly to JSX without using spread:
117
117
  *
118
118
  * This source code is licensed under the MIT license found in the
119
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,j=!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||j||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 O=q.stack.split(`
122
- `),K=w.stack.split(`
120
+ */var mn;function Ta(){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"),h=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 w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(o){{for(var d=arguments.length,g=new Array(d>1?d-1:0),k=1;k<d;k++)g[k-1]=arguments[k];T("error",o,g)}}function T(o,d,g){{var k=w.ReactDebugCurrentFrame,z=k.getStackAddendum();z!==""&&(d+="%s",g=g.concat([z]));var I=g.map(function(C){return String(C)});I.unshift("Warning: "+d),Function.prototype.apply.call(console[o],console,I)}}var j=!1,F=!1,D=!1,R=!1,S=!1,$;$=Symbol.for("react.module.reference");function H(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===s||S||o===i||o===f||o===u||R||o===h||j||F||D||typeof o=="object"&&o!==null&&(o.$$typeof===m||o.$$typeof===p||o.$$typeof===a||o.$$typeof===c||o.$$typeof===l||o.$$typeof===$||o.getModuleId!==void 0))}function Z(o,d,g){var k=o.displayName;if(k)return k;var z=d.displayName||d.name||"";return z!==""?g+"("+z+")":g}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 g=o;return Q(g._context)+".Provider";case l:return Z(o,o.render,"ForwardRef");case p:var k=o.displayName||null;return k!==null?k:U(o.type)||"Memo";case m:{var z=o,I=z._payload,C=z._init;try{return U(C(I))}catch{return null}}}return null}var A=Object.assign,X=0,V,G,E,ee,oe,be,xe;function te(){}te.__reactDisabledLog=!0;function ne(){{if(X===0){V=console.log,G=console.info,E=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:E}),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=w.ReactCurrentDispatcher,J;function ce(o,d,g){{if(J===void 0)try{throw Error()}catch(z){var k=z.stack.trim().match(/\n( *(at )?)/);J=k&&k[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 g=ae.get(o);if(g!==void 0)return g}var k;ue=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=ye.current,ye.current=null,ne();try{if(d){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(q){k=q}Reflect.construct(o,[],C)}else{try{C.call()}catch(q){k=q}o.call(C.prototype)}}else{try{throw Error()}catch(q){k=q}o()}}catch(q){if(q&&k&&typeof q.stack=="string"){for(var O=q.stack.split(`
122
+ `),K=k.stack.split(`
123
123
  `),M=O.length-1,W=K.length-1;M>=1&&W>=0&&O[M]!==K[W];)W--;for(;M>=1&&W>=0;M--,W--)if(O[M]!==K[W]){if(M!==1||W!==1)do if(M--,W--,W<0||O[M]!==K[W]){var re=`
124
- `+O[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 O=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}O=o[P](d,P,w,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){O=M}O&&!(O 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 O),fe(null)),O instanceof Error&&!(O.message in Be)&&(Be[O.message]=!0,fe(z),v("Failed %s type: %s",h,O.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 O={$$typeof:t,type:o,key:d,ref:h,props:P,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function nr(o,d,h,w,z){{var I,P={},O=null,K=null;h!==void 0&&(ut(h),O=""+h),qt(d)&&(ut(d.key),O=""+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(O||K){var W=typeof o=="function"?o.displayName||o.name||"Unknown":o;O&&er(P,W),K&&tr(P,W)}return rr(o,O,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`
124
+ `+O[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,g){return ve(o,!1)}function lt(o){var d=o.prototype;return!!(d&&d.isReactComponent)}function ke(o,d,g){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,g);case m:{var k=o,z=k._payload,I=k._init;try{return ke(I(z),d,g)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Be={},Ue=w.ReactDebugCurrentFrame;function fe(o){if(o){var d=o._owner,g=ke(o.type,o._source,d?d.type:null);Ue.setExtraStackFrame(g)}else Ue.setExtraStackFrame(null)}function Ht(o,d,g,k,z){{var I=Function.call.bind(de);for(var C in o)if(I(o,C)){var O=void 0;try{if(typeof o[C]!="function"){var K=Error((k||"React class")+": "+g+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}O=o[C](d,C,k,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){O=M}O&&!(O 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).",k||"React class",g,C,typeof O),fe(null)),O instanceof Error&&!(O.message in Be)&&(Be[O.message]=!0,fe(z),v("Failed %s type: %s",g,O.message),fe(null))}}}var Gt=Array.isArray;function Ye(o){return Gt(o)}function Xt(o){{var d=typeof Symbol=="function"&&Symbol.toStringTag,g=d&&o[Symbol.toStringTag]||o.constructor.name||"Object";return g}}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=w.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 g=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))};g.isReactWarning=!0,Object.defineProperty(o,"key",{get:g,configurable:!0})}}function tr(o,d){{var g=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))};g.isReactWarning=!0,Object.defineProperty(o,"ref",{get:g,configurable:!0})}}var rr=function(o,d,g,k,z,I,C){var O={$$typeof:t,type:o,key:d,ref:g,props:C,_owner:I};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function nr(o,d,g,k,z){{var I,C={},O=null,K=null;g!==void 0&&(ut(g),O=""+g),qt(d)&&(ut(d.key),O=""+d.key),Qt(d)&&(K=d.ref,Zt(d));for(I in d)de.call(d,I)&&!Jt.hasOwnProperty(I)&&(C[I]=d[I]);if(o&&o.defaultProps){var M=o.defaultProps;for(I in M)C[I]===void 0&&(C[I]=M[I])}if(O||K){var W=typeof o=="function"?o.displayName||o.name||"Unknown":o;O&&er(C,W),K&&tr(C,W)}return rr(o,O,K,z,k,ft.current,C)}}var Ve=w.ReactCurrentOwner,mt=w.ReactDebugCurrentFrame;function pe(o){if(o){var d=o._owner,g=ke(o.type,o._source,d?d.type:null);mt.setExtraStackFrame(g)}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
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=`
126
+ Check the render method of \``+o+"`."}return""}}function or(o){return""}var gt={};function ir(o){{var d=ht();if(!d){var g=typeof o=="string"?o:o.displayName||o.name;g&&(d=`
127
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 O="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(O+=" 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?O+=K:O+=ht();var M;o===null?M="null":Ye(o)?M="array":o!==void 0&&o.$$typeof===t?(M="<"+(U(o.type)||"Unknown")+" />",O=" 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,O)}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:
128
+ Check the top-level render call using <`+g+">.")}return d}}function yt(o,d){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var g=ir(d);if(gt[g])return;gt[g]=!0;var k="";o&&o._owner&&o._owner!==Ve.current&&(k=" 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.',g,k),pe(null)}}function vt(o,d){{if(typeof o!="object")return;if(Ye(o))for(var g=0;g<o.length;g++){var k=o[g];Ge(k)&&yt(k,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),C;!(C=I.next()).done;)Ge(C.value)&&yt(C.value,d)}}}function sr(o){{var d=o.type;if(d==null||typeof d=="string")return;var g;if(typeof d=="function")g=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===l||d.$$typeof===p))g=d.propTypes;else return;if(g){var k=U(d);Ht(g,o.props,"prop",k,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),g=0;g<d.length;g++){var k=d[g];if(k!=="children"&&k!=="key"){pe(o),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),pe(null);break}}o.ref!==null&&(pe(o),v("Invalid attribute `ref` supplied to `React.Fragment`."),pe(null))}}var bt={};function xt(o,d,g,k,z,I){{var C=H(o);if(!C){var O="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(O+=" 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?O+=K:O+=ht();var M;o===null?M="null":Ye(o)?M="array":o!==void 0&&o.$$typeof===t?(M="<"+(U(o.type)||"Unknown")+" />",O=" 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,O)}var W=nr(o,d,g,z,I);if(W==null)return W;if(C){var re=d.children;if(re!==void 0)if(k)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
129
  let props = %s;
130
130
  <%s {...props} />
131
131
  React keys must be passed directly to JSX without using spread:
132
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,j=0,N=0,E=0,F=0;n==="top"?(T=v.left+v.width/2-C/2,j=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,j=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,j=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,j=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)),j=Math.max(8,Math.min(j,Z-R-8)),m({box:{x:T,y:j},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;
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,g){return xt(o,d,g,!0)}function cr(o,d,g){return xt(o,d,g,!1)}var ur=cr,fr=lr;Dt.Fragment=n,Dt.jsx=ur,Dt.jsxs=fr})()),Dt}var hn;function Ca(){return hn||(hn=1,process.env.NODE_ENV==="production"?xr.exports=Oa():xr.exports=Ta()),xr.exports}var Ee=Ca();const et=7,Ie=6,Na=({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}),h=se.useRef(null),b=se.useRef(null),x=e.length>t,_=x?e.slice(0,t)+"…":e,w=se.useCallback(()=>{if(!h.current||!b.current)return;const v=h.current.getBoundingClientRect(),T=b.current.offsetWidth||r,j=b.current.offsetHeight||44;let F=0,D=0,R=0,S=0,$=0;n==="top"?(F=v.left+v.width/2-T/2,D=v.top-j-et-Ie,R=v.left+v.width/2-6,S=v.top-et-Ie,$=0):n==="bottom"?(F=v.left+v.width/2-T/2,D=v.bottom+et+Ie,R=v.left+v.width/2-6,S=v.bottom+Ie,$=180):n==="left"?(F=v.left-T-et-Ie,D=v.top+v.height/2-j/2,R=v.left-et-Ie,S=v.top+v.height/2-6,$=90):n==="right"&&(F=v.right+et+Ie,D=v.top+v.height/2-j/2,R=v.right+Ie,S=v.top+v.height/2-6,$=-90);const H=window.innerWidth,Z=window.innerHeight;F=Math.max(8,Math.min(F,H-T-8)),D=Math.max(8,Math.min(D,Z-j-8)),m({box:{x:F,y:D},arrow:{x:R,y:S},rotate:$})},[n,r]);return se.useEffect(()=>{f&&setTimeout(w,0)},[f,w]),x?Ee.jsxs(Ee.Fragment,{children:[Ee.jsx("span",{ref:h,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})},Pa=({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(Na,{text:i.value==null?"":String(i.value),maxLength:20,maxWidth:380})}):Y.jsx("div",{children:Y.jsx(ja,{text:i.value==null?"":String(i.value),maxLength:100})})})]},s))},n))}),Da=({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=ko;exports.EmptyState=Da;exports.Stepper=Eo;exports.SummaryDetailsCard=Pa;