ui-mathilde-web 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +5 -5
- package/dist/ui-mathilde-web.js +14 -14
- package/dist/ui-mathilde-web.umd.cjs +3 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(he,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(he=typeof globalThis<"u"?globalThis:he||self,p(he["ui-mathilde-web"]={},he.jsxRuntime,he.React,he.ReactDOM))})(this,function(he,p,_,Od){"use strict";var YI=Object.defineProperty;var VI=(he,p,_)=>p in he?YI(he,p,{enumerable:!0,configurable:!0,writable:!0,value:_}):he[p]=_;var Z=(he,p,_)=>VI(he,typeof p!="symbol"?p+"":p,_);var Ti,qn,Sd;function Dd(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const W=Dd(_),gy=Dd(Od),ws={"mth-btn-default":"button-module__mth-btn-default__cda3k",mthBtnDefault:"button-module__mth-btn-default__cda3k","mth-btn-border":"button-module__mth-btn-border__-pdSm",mthBtnBorder:"button-module__mth-btn-border__-pdSm","mth-btn":"button-module__mth-btn__LkrNk",mthBtn:"button-module__mth-btn__LkrNk","mth-btn-full":"button-module__mth-btn-full__7QycJ",mthBtnFull:"button-module__mth-btn-full__7QycJ"},my=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:a,type:s,leftIcon:o,rightIcon:i,iconSize:l=20})=>p.jsx("div",{className:`${n?ws["mth-btn-full"]:""}`,children:p.jsxs("button",{type:s,className:`${ws["mth-btn"]} ${ws[`mth-btn-${e}`]} ${n?ws["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:a,children:[o&&p.jsx(o,{size:l}),t,i&&p.jsx(i,{size:l})]})}),ks={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},py=({label:t,value:e,checked:n,onChange:r})=>p.jsxs("label",{className:ks["checkbox-container"],children:[p.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),p.jsx("span",{className:ks.checkmark}),t&&p.jsx("span",{className:"ml-2",children:t})]}),In=({src:t,alt:e,width:n,height:r,classIm:a})=>p.jsx("img",{className:a,src:t,alt:e,width:n,height:r}),Md=_.forwardRef(({placeholder:t,label:e,error:n,type:r,classInclude:a,maxLength:s,onChange:o,...i},l)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:" mb-1 block font-semibold",children:e}),p.jsx("input",{ref:l,type:r,placeholder:t,className:`w-full border p-2 ${a||""}`,maxLength:s,onChange:o,...i}),n&&p.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));Md.displayName="InputForm";var Cd={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ed=_.createContext&&_.createContext(Cd),by=["attr","size","title"];function yy(t,e){if(t==null)return{};var n=vy(t,e),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)r=s[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function vy(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,s;for(s=0;s<r.length;s++)a=r[s],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function _s(){return _s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_s.apply(this,arguments)}function Td(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ss(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Td(Object(n),!0).forEach(function(r){xy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xy(t,e,n){return e=wy(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wy(t){var e=ky(t,"string");return typeof e=="symbol"?e:String(e)}function ky(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pd(t){return t&&t.map((e,n)=>_.createElement(e.tag,Ss({key:n},e.attr),Pd(e.child)))}function je(t){return e=>_.createElement(_y,_s({attr:Ss({},t.attr)},e),Pd(t.child))}function _y(t){var e=n=>{var{attr:r,size:a,title:s}=t,o=yy(t,by),i=a||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",_s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Ss(Ss({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),s&&_.createElement("title",null,s),t.children)};return Ed!==void 0?_.createElement(Ed.Consumer,null,n=>e(n)):e(Cd)}function Sy(t){return je({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function Oy(t){return je({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(t)}function Dy(t){return je({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(t)}function My(t){return je({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(t)}function Cy(t){return je({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(t)}const Ey={"mth-password":"passwordInput-module__mth-password__R6DoN"},Ni=({placeholder:t,onChange:e,value:n,...r})=>{const[a,s]=_.useState(!1),o=()=>{s(!a)};return p.jsx("div",{className:"mb-5",children:p.jsxs("div",{className:"relative inline-block w-full",children:[p.jsx("input",{type:a?"text":"password",value:n,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...r}),p.jsx("button",{type:"button",onClick:o,className:Ey["mth-password"],children:a?p.jsx(My,{}):p.jsx(Cy,{})})]})})},Nd={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},Id=({start:t,end:e,current:n,type:r})=>{const a=(n-t)/(e-t)*100;console.log(a);const s=Math.min(Math.max(a,0),100);return p.jsxs("div",{className:"w-full p-1",children:[p.jsxs("div",{className:"flex justify-between text-xs text-gray-400 mb-2",children:[p.jsx("span",{children:t.toLocaleString()}),p.jsx("span",{children:e.toLocaleString()})]}),p.jsxs("div",{className:"relative h-1.5 w-full bg-gray-200 rounded-full mb-5",children:[p.jsx("div",{className:`${Nd.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${s}%`}}),p.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${s}%`},children:[p.jsx("div",{className:`${Nd.mth_progress_bar_thumb} w-3 h-3 rounded-full shadow-lg`}),p.jsxs("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 mt-2 text-xs font-medium text-black text-center whitespace-nowrap",children:[n.toLocaleString()," ",r==="percentage"?"%":""]})]})]})]})},jd=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:a,...s},o)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:"mb-1 block font-semibold",children:e}),p.jsxs("select",{ref:o,className:"w-full rounded border p-2",value:r,onChange:a,...s,children:[p.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(i=>p.jsx("option",{value:i.value,children:i.label},i.value))]}),n&&p.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));jd.displayName="SelectForm";const Rd={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},Ty={conversiones:"https://ftp.mathilde-ads.com/382-2a0e63b10cea992531dbf08476a809e3.svg",click:"https://ftp.mathilde-ads.com/382-99aaac706fa009c15725b324bdc08560.svg",impresiones:"https://ftp.mathilde-ads.com/382-ee5a6acf7bc973a1a340004ca4e0f92d.svg",porcentaje:"https://ftp.mathilde-ads.com/382-a6a59843cf98f84469eee99905c63789.svg",vistas:"https://ftp.mathilde-ads.com/382-a014bbfb2bc92f7e5359fe434912ed32.svg",vtr:"https://ftp.mathilde-ads.com/382-2770e839737a6d9dbc66298219e82ae1.svg"},Py=({logo:t,number:e,title:n,start:r,end:a,current:s,type:o})=>{const i=l=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(l);return p.jsxs("div",{className:`${Rd.mth_card_indicator} flex flex-col border bg-white px-3.5 py-4`,children:[p.jsx("div",{className:"flex justify-end",children:p.jsx(In,{src:Ty[t]||"",alt:"Icon",width:30,height:30})}),p.jsx("h2",{className:"my-3 font-bold",children:n.toUpperCase()}),p.jsxs("small",{className:"text-4xl font-extrabold",children:[i(e)," ",o==="percentage"?"%":""]}),p.jsx("div",{className:"mt-2 w-full",children:p.jsx(Id,{start:r,end:a,current:s,type:o})})]})};/*!
|
|
1
|
+
(function(he,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(he=typeof globalThis<"u"?globalThis:he||self,p(he["ui-mathilde-web"]={},he.jsxRuntime,he.React,he.ReactDOM))})(this,function(he,p,_,Od){"use strict";var YI=Object.defineProperty;var VI=(he,p,_)=>p in he?YI(he,p,{enumerable:!0,configurable:!0,writable:!0,value:_}):he[p]=_;var Z=(he,p,_)=>VI(he,typeof p!="symbol"?p+"":p,_);var Ti,qn,Sd;function Dd(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const W=Dd(_),gy=Dd(Od),ws={"mth-btn-default":"button-module__mth-btn-default__cda3k",mthBtnDefault:"button-module__mth-btn-default__cda3k","mth-btn-border":"button-module__mth-btn-border__-pdSm",mthBtnBorder:"button-module__mth-btn-border__-pdSm","mth-btn":"button-module__mth-btn__LkrNk",mthBtn:"button-module__mth-btn__LkrNk","mth-btn-full":"button-module__mth-btn-full__7QycJ",mthBtnFull:"button-module__mth-btn-full__7QycJ"},my=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:a,type:s,leftIcon:o,rightIcon:i,iconSize:l=20})=>p.jsx("div",{className:`${n?ws["mth-btn-full"]:""}`,children:p.jsxs("button",{type:s,className:`${ws["mth-btn"]} ${ws[`mth-btn-${e}`]} ${n?ws["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:a,children:[o&&p.jsx(o,{size:l}),t,i&&p.jsx(i,{size:l})]})}),ks={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},py=({label:t,value:e,checked:n,onChange:r})=>p.jsxs("label",{className:ks["checkbox-container"],children:[p.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),p.jsx("span",{className:ks.checkmark}),t&&p.jsx("span",{className:"ml-2",children:t})]}),In=({src:t,alt:e,width:n,height:r,classIm:a})=>p.jsx("img",{className:a,src:t,alt:e,width:n,height:r}),Md=_.forwardRef(({placeholder:t,label:e,error:n,type:r,classInclude:a,maxLength:s,onChange:o,...i},l)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:" mb-1 block font-semibold",children:e}),p.jsx("input",{ref:l,type:r,placeholder:t,className:`w-full border p-2 ${a||""}`,maxLength:s,onChange:o,...i}),n&&p.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));Md.displayName="InputForm";var Cd={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ed=_.createContext&&_.createContext(Cd),by=["attr","size","title"];function yy(t,e){if(t==null)return{};var n=vy(t,e),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)r=s[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function vy(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,s;for(s=0;s<r.length;s++)a=r[s],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function _s(){return _s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_s.apply(this,arguments)}function Td(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ss(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Td(Object(n),!0).forEach(function(r){xy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xy(t,e,n){return e=wy(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wy(t){var e=ky(t,"string");return typeof e=="symbol"?e:String(e)}function ky(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Pd(t){return t&&t.map((e,n)=>_.createElement(e.tag,Ss({key:n},e.attr),Pd(e.child)))}function je(t){return e=>_.createElement(_y,_s({attr:Ss({},t.attr)},e),Pd(t.child))}function _y(t){var e=n=>{var{attr:r,size:a,title:s}=t,o=yy(t,by),i=a||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",_s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Ss(Ss({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),s&&_.createElement("title",null,s),t.children)};return Ed!==void 0?_.createElement(Ed.Consumer,null,n=>e(n)):e(Cd)}function Sy(t){return je({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(t)}function Oy(t){return je({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(t)}function Dy(t){return je({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(t)}function My(t){return je({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(t)}function Cy(t){return je({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(t)}const Ey={"mth-password":"passwordInput-module__mth-password__R6DoN"},Ni=({placeholder:t,onChange:e,value:n,...r})=>{const[a,s]=_.useState(!1),o=()=>{s(!a)};return p.jsx("div",{className:"mb-5",children:p.jsxs("div",{className:"relative inline-block w-full",children:[p.jsx("input",{type:a?"text":"password",value:n,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...r}),p.jsx("button",{type:"button",onClick:o,className:Ey["mth-password"],children:a?p.jsx(My,{}):p.jsx(Cy,{})})]})})},Nd={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},Id=({start:t,end:e,current:n,type:r})=>{const a=(n-t)/(e-t)*100,s=Math.min(Math.max(a,0),100);return p.jsxs("div",{className:"w-full p-1",children:[p.jsxs("div",{className:"flex justify-between text-xs text-gray-400 mb-2",children:[p.jsx("span",{children:t.toLocaleString()}),p.jsx("span",{children:e.toLocaleString()})]}),p.jsxs("div",{className:"relative h-1.5 w-full bg-gray-200 rounded-full mb-5",children:[p.jsx("div",{className:`${Nd.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${s}%`}}),p.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${s}%`},children:[p.jsx("div",{className:`${Nd.mth_progress_bar_thumb} w-3 h-3 rounded-full shadow-lg`}),p.jsxs("div",{className:"absolute top-full left-1/2 transform -translate-x-1/2 mt-2 text-xs font-medium text-black text-center whitespace-nowrap",children:[n.toLocaleString()," ",r==="percentage"?"%":""]})]})]})]})},jd=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:a,...s},o)=>p.jsxs("div",{className:"mb-5",children:[e&&p.jsx("label",{className:"mb-1 block font-semibold",children:e}),p.jsxs("select",{ref:o,className:"w-full rounded border p-2",value:r,onChange:a,...s,children:[p.jsx("option",{disabled:!0,value:"",children:"Seleccione una opción"}),t==null?void 0:t.map(i=>p.jsx("option",{value:i.value,children:i.label},i.value))]}),n&&p.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));jd.displayName="SelectForm";const Rd={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},Ty={conversiones:"https://ftp.mathilde-ads.com/382-2a0e63b10cea992531dbf08476a809e3.svg",click:"https://ftp.mathilde-ads.com/382-99aaac706fa009c15725b324bdc08560.svg",impresiones:"https://ftp.mathilde-ads.com/382-ee5a6acf7bc973a1a340004ca4e0f92d.svg",porcentaje:"https://ftp.mathilde-ads.com/382-a6a59843cf98f84469eee99905c63789.svg",vistas:"https://ftp.mathilde-ads.com/382-a014bbfb2bc92f7e5359fe434912ed32.svg",vtr:"https://ftp.mathilde-ads.com/382-2770e839737a6d9dbc66298219e82ae1.svg"},Py=({logo:t,number:e,title:n,start:r,end:a,current:s,type:o})=>{const i=l=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(l);return p.jsxs("div",{className:`${Rd.mth_card_indicator} flex flex-col border bg-white px-3.5 py-4`,children:[p.jsx("div",{className:"flex justify-end",children:p.jsx(In,{src:Ty[t]||"",alt:"Icon",width:30,height:30})}),p.jsx("h2",{className:"my-3 font-bold",children:n.toUpperCase()}),p.jsxs("small",{className:"text-4xl font-extrabold",children:[i(e)," ",o==="percentage"?"%":""]}),p.jsx("div",{className:"mt-2 w-full",children:p.jsx(Id,{start:r,end:a,current:s,type:o})})]})};/*!
|
|
2
2
|
* @kurkle/color v0.3.4
|
|
3
3
|
* https://github.com/kurkle/color#readme
|
|
4
4
|
* (c) 2024 Jukka Kurkela
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Released under the MIT License
|
|
16
16
|
*/class nx{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,a){const s=n.listeners[a],o=n.duration;s.forEach(i=>i({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=qd.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,i=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),i=!0):(s[o]=s[s.length-1],s.pop());i&&(a.draw(),this._notify(a,r,e,"progress")),s.length||(r.running=!1,this._notify(a,r,e,"complete"),r.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var yn=new nx;const wu="transparent",rx={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=au(t||wu),a=r.valid&&au(e||wu);return a&&a.valid?a.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class ax{constructor(e,n,r,a){const s=n[r];a=As([e.to,a,s,e.from]);const o=As([e.from,s,a]);this._active=!0,this._fn=e.fn||rx[e.type||typeof o],this._easing=xa[e.easing]||xa.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=a,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const a=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=As([e.to,n,a,e.from]),this._from=As([e.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,a=this._prop,s=this._from,o=this._loop,i=this._to;let l;if(this._active=s!==i&&(o||n<r),!this._active){this._target[a]=i,this._notify(!0);return}if(n<0){this._target[a]=s;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(s,i,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][n]()}}class ku{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!pe(e))return;const n=Object.keys(Be.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(a=>{const s=e[a];if(!pe(s))return;const o={};for(const i of n)o[i]=s[i];(rt(s.properties)&&s.properties||[a]).forEach(i=>{(i===a||!r.has(i))&&r.set(i,o)})})}_animateOptions(e,n){const r=n.options,a=ox(e,r);if(!a)return[];const s=this._createAnimations(a,r);return r.$shared&&sx(e.options.$animations,r).then(()=>{e.options=r},()=>{}),s}_createAnimations(e,n){const r=this._properties,a=[],s=e.$animations||(e.$animations={}),o=Object.keys(n),i=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){a.push(...this._animateOptions(e,n));continue}const d=n[c];let u=s[c];const f=r.get(c);if(u)if(f&&u.active()){u.update(f,d,i);continue}else u.cancel();if(!f||!f.duration){e[c]=d;continue}s[c]=u=new ax(f,e,c,d),a.push(u)}return a}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return yn.add(this._chart,r),!0}}function sx(t,e){const n=[],r=Object.keys(e);for(let a=0;a<r.length;a++){const s=t[r[a]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function ox(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function _u(t,e){const n=t&&t.options||{},r=n.reverse,a=n.min===void 0?e:0,s=n.max===void 0?e:0;return{start:r?s:a,end:r?a:s}}function ix(t,e,n){if(n===!1)return!1;const r=_u(t,n),a=_u(e,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function lx(t){let e,n,r,a;return pe(t)?(e=t.top,n=t.right,r=t.bottom,a=t.left):e=n=r=a=t,{top:e,right:n,bottom:r,left:a,disabled:t===!1}}function Su(t,e){const n=[],r=t._getSortedDatasetMetas(e);let a,s;for(a=0,s=r.length;a<s;++a)n.push(r[a].index);return n}function Ou(t,e,n,r={}){const a=t.keys,s=r.mode==="single";let o,i,l,c;if(e===null)return;let d=!1;for(o=0,i=a.length;o<i;++o){if(l=+a[o],l===n){if(d=!0,r.all)continue;break}c=t.values[l],bn(c)&&(s||e===0||Kd(e)===Kd(c))&&(e+=c)}return!d&&!r.all?0:e}function cx(t,e){const{iScale:n,vScale:r}=e,a=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",o=Object.keys(t),i=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],i[l]={[a]:d,[s]:t[d]};return i}function $i(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function dx(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function ux(t){const{min:e,max:n,minDefined:r,maxDefined:a}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function fx(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Du(t,e,n,r){for(const a of e.getMatchingVisibleMetas(r).reverse()){const s=t[a.index];if(n&&s>0||!n&&s<0)return a.index}return null}function Mu(t,e){const{chart:n,_cachedMeta:r}=t,a=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:i}=r,l=s.axis,c=o.axis,d=dx(s,o,r),u=e.length;let f;for(let h=0;h<u;++h){const g=e[h],{[l]:m,[c]:b}=g,w=g._stacks||(g._stacks={});f=w[c]=fx(a,d,m),f[i]=b,f._top=Du(f,o,!0,r.type),f._bottom=Du(f,o,!1,r.type);const y=f._visualValues||(f._visualValues={});y[i]=b}}function el(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function hx(t,e){return Nr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function gx(t,e,n){return Nr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function _a(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const a of e){const s=a._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const tl=t=>t==="reset"||t==="none",Cu=(t,e)=>e?t:Object.assign({},t),mx=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Su(n,!0),values:null};class Sa{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=$i(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&_a(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),a=(u,f,h,g)=>u==="x"?f:u==="r"?g:h,s=n.xAxisID=_e(r.xAxisID,el(e,"x")),o=n.yAxisID=_e(r.yAxisID,el(e,"y")),i=n.rAxisID=_e(r.rAxisID,el(e,"r")),l=n.indexAxis,c=n.iAxisID=a(l,s,o,i),d=n.vAxisID=a(l,o,s,i);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(i),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Zd(this._data,this),e._stacked&&_a(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(pe(n)){const a=this._cachedMeta;this._data=cx(n,a)}else if(r!==n){if(r){Zd(r,this);const a=this._cachedMeta;_a(a),a._parsed=[]}n&&Object.isExtensible(n)&&mv(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const s=n._stacked;n._stacked=$i(n.vScale,n),n.stack!==r.stack&&(a=!0,_a(n),n.stack=r.stack),this._resyncElements(e),(a||s!==n._stacked)&&(Mu(this,n._parsed),n._stacked=$i(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:a}=this,{iScale:s,_stacked:o}=r,i=s.axis;let l=e===0&&n===a.length?!0:r._sorted,c=e>0&&r._parsed[e-1],d,u,f;if(this._parsing===!1)r._parsed=a,r._sorted=!0,f=a;else{rt(a[e])?f=this.parseArrayData(r,a,e,n):pe(a[e])?f=this.parseObjectData(r,a,e,n):f=this.parsePrimitiveData(r,a,e,n);const h=()=>u[i]===null||c&&u[i]<c[i];for(d=0;d<n;++d)r._parsed[d+e]=u=f[d],l&&(h()&&(l=!1),c=u);r._sorted=l}o&&Mu(this,f)}parsePrimitiveData(e,n,r,a){const{iScale:s,vScale:o}=e,i=s.axis,l=o.axis,c=s.getLabels(),d=s===o,u=new Array(a);let f,h,g;for(f=0,h=a;f<h;++f)g=f+r,u[f]={[i]:d||s.parse(c[g],g),[l]:o.parse(n[g],g)};return u}parseArrayData(e,n,r,a){const{xScale:s,yScale:o}=e,i=new Array(a);let l,c,d,u;for(l=0,c=a;l<c;++l)d=l+r,u=n[d],i[l]={x:s.parse(u[0],d),y:o.parse(u[1],d)};return i}parseObjectData(e,n,r,a){const{xScale:s,yScale:o}=e,{xAxisKey:i="x",yAxisKey:l="y"}=this._parsing,c=new Array(a);let d,u,f,h;for(d=0,u=a;d<u;++d)f=d+r,h=n[f],c[d]={x:s.parse(ya(h,i),f),y:o.parse(ya(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const a=this.chart,s=this._cachedMeta,o=n[e.axis],i={keys:Su(a,!0),values:n._stacks[e.axis]._visualValues};return Ou(i,o,s.index,{mode:r})}updateRangeFromParsed(e,n,r,a){const s=r[n.axis];let o=s===null?NaN:s;const i=a&&r._stacks[n.axis];a&&i&&(a.values=i,o=Ou(a,s,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,a=r._parsed,s=r._sorted&&e===r.iScale,o=a.length,i=this._getOtherScale(e),l=mx(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=ux(i);let f,h;function g(){h=a[f];const m=h[i.axis];return!bn(h[e.axis])||d>m||u<m}for(f=0;f<o&&!(!g()&&(this.updateRangeFromParsed(c,e,h,l),s));++f);if(s){for(f=o-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let a,s,o;for(a=0,s=n.length;a<s;++a)o=n[a][e.axis],bn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,a=n.vScale,s=this.getParsed(e);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:a?""+a.getLabelForValue(s[a.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=lx(_e(this.options.clip,ix(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,a=r.data||[],s=n.chartArea,o=[],i=this._drawStart||0,l=this._drawCount||a.length-i,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,s,i,l),d=i;d<i+l;++d){const u=a[d];u.hidden||(u.active&&c?o.push(u):u.draw(e,s))}for(d=0;d<o.length;++d)o[d].draw(e,s)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const a=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];s=o.$context||(o.$context=gx(this.getContext(),e,o)),s.parsed=this.getParsed(e),s.raw=a.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=hx(this.chart.getContext(),this.index)),s.dataset=a,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const a=n==="active",s=this._cachedDataOpts,o=e+"-"+n,i=s[o],l=this.enableOptionSharing&&Ts(r);if(i)return Cu(i,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=a?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(Be.elements[e]),g=()=>this.getContext(r,a,n),m=c.resolveNamedOptions(f,h,g,u);return m.$shared&&(m.$shared=l,s[o]=Object.freeze(Cu(m,l))),m}_resolveAnimations(e,n,r){const a=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,i=s[o];if(i)return i;let l;if(a.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,n),f=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(f,this.getContext(e,r,n))}const c=new ku(a,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||tl(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),a=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==a;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(e,n,r,a){tl(a)?Object.assign(e,r):this._resolveAnimations(n,a).update(e,r)}updateSharedOptions(e,n,r){e&&!tl(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,a){e.active=a;const s=this.getStyle(n,a);this._resolveAnimations(n,r,a).update(e,{options:!a&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[i,l,c]of this._syncList)this[i](l,c);this._syncList=[];const a=r.length,s=n.length,o=Math.min(s,a);o&&this.parse(0,o),s>a?this._insertElements(a,s-a,e):s<a&&this._removeElements(s,a-s)}_insertElements(e,n,r=!0){const a=this._cachedMeta,s=a.data,o=e+n;let i;const l=c=>{for(c.length+=n,i=c.length-1;i>=o;i--)c[i]=c[i-n]};for(l(s),i=e;i<o;++i)s[i]=new this.dataElementType;this._parsing&&l(a._parsed),this.parse(e,n),r&&this.updateElements(s,e,n,"reset")}updateElements(e,n,r,a){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(e,n);r._stacked&&_a(r,a)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,a]=e;this[n](r,a)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}Z(Sa,"defaults",{}),Z(Sa,"datasetElementType",null),Z(Sa,"dataElementType",null);function px(t,e,n){let r=1,a=1,s=0,o=0;if(e<Xe){const i=t,l=i+e,c=Math.cos(i),d=Math.sin(i),u=Math.cos(l),f=Math.sin(l),h=(k,v,x)=>Is(k,i,l,!0)?1:Math.max(v,v*n,x,x*n),g=(k,v,x)=>Is(k,i,l,!0)?-1:Math.min(v,v*n,x,x*n),m=h(0,c,u),b=h(Ze,d,f),w=g(et,c,u),y=g(et+Ze,d,f);r=(m-w)/2,a=(b-y)/2,s=-(m+w)/2,o=-(b+y)/2}return{ratioX:r,ratioY:a,offsetX:s,offsetY:o}}class Oa extends Sa{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=r;else{let s=l=>+r[l];if(pe(r[e])){const{key:l="value"}=this._parsing;s=c=>+ya(r[c],l)}let o,i;for(o=e,i=e+n;o<i;++o)a._parsed[o]=s(o)}}_getRotation(){return tr(this.options.rotation-90)}_getCircumference(){return tr(this.options.circumference)}_getRotationExtents(){let e=Xe,n=-Xe;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,s=a._getRotation(),o=a._getCircumference();e=Math.min(e,s),n=Math.max(n,s+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,a=this._cachedMeta,s=a.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,i=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(tv(this.options.cutout,i),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:g,offsetY:m}=px(u,d,l),b=(r.width-o)/f,w=(r.height-o)/h,y=Math.max(Math.min(b,w)/2,0),k=Yd(this.options.radius,y),v=Math.max(k*l,0),x=(k-v)/this._getVisibleDatasetWeightTotal();this.offsetX=g*k,this.offsetY=m*k,a.total=this.calculateTotal(),this.outerRadius=k-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*c,0),this.updateElements(s,0,s.length,e)}_circumference(e,n){const r=this.options,a=this._cachedMeta,s=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||a._parsed[e]===null||a.data[e].hidden?0:this.calculateCircumference(a._parsed[e]*s/Xe)}updateElements(e,n,r,a){const s=a==="reset",o=this.chart,i=o.chartArea,c=o.options.animation,d=(i.left+i.right)/2,u=(i.top+i.bottom)/2,f=s&&c.animateScale,h=f?0:this.innerRadius,g=f?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(n,a);let w=this._getRotation(),y;for(y=0;y<n;++y)w+=this._circumference(y,s);for(y=n;y<n+r;++y){const k=this._circumference(y,s),v=e[y],x={x:d+this.offsetX,y:u+this.offsetY,startAngle:w,endAngle:w+k,circumference:k,outerRadius:g,innerRadius:h};b&&(x.options=m||this.resolveDataElementOptions(y,v.active?"active":a)),w+=k,this.updateElement(v,y,x,a)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,a;for(a=0;a<n.length;a++){const s=e._parsed[a];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(a)&&!n[a].hidden&&(r+=Math.abs(s))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?Xe*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],s=Sv(n._parsed[e],r.options.locale);return{label:a[e]||"",value:s}}getMaxBorderWidth(e){let n=0;const r=this.chart;let a,s,o,i,l;if(!e){for(a=0,s=r.data.datasets.length;a<s;++a)if(r.isDatasetVisible(a)){o=r.getDatasetMeta(a),e=o.data,i=o.controller;break}}if(!e)return 0;for(a=0,s=e.length;a<s;++a)l=i.resolveDataElementOptions(a),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,a=e.length;r<a;++r){const s=this.resolveDataElementOptions(r);n=Math.max(n,s.offset||0,s.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(_e(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Z(Oa,"id","doughnut"),Z(Oa,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),Z(Oa,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),Z(Oa,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=e.legend.options;return n.labels.map((s,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:a,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function ir(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class nl{constructor(e){Z(this,"options");this.options=e||{}}static override(e){Object.assign(nl.prototype,e)}init(){}formats(){return ir()}parse(){return ir()}format(){return ir()}add(){return ir()}diff(){return ir()}startOf(){return ir()}endOf(){return ir()}}var bx={_date:nl};function yx(t,e,n,r){const{controller:a,data:s,_sorted:o}=t,i=a._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(i&&e===i.axis&&e!=="r"&&o&&s.length){const c=i._reversePixels?hv:zi;if(r){if(a._sharedOptions){const d=s[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(s,e,n-u),h=c(s,e,n+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(s,e,n);if(l){const{vScale:u}=a._cachedMeta,{_parsed:f}=t,h=f.slice(0,d.lo+1).reverse().findIndex(m=>!lt(m[u.axis]));d.lo-=Math.max(0,h);const g=f.slice(d.hi).findIndex(m=>!lt(m[u.axis]));d.hi+=Math.max(0,g)}return d}}return{lo:0,hi:s.length-1}}function zs(t,e,n,r,a){const s=t.getSortedVisibleDatasetMetas(),o=n[e];for(let i=0,l=s.length;i<l;++i){const{index:c,data:d}=s[i],{lo:u,hi:f}=yx(s[i],e,o,a);for(let h=u;h<=f;++h){const g=d[h];g.skip||r(g,c,h)}}}function vx(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,a){const s=e?Math.abs(r.x-a.x):0,o=n?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function rl(t,e,n,r,a){const s=[];return!a&&!t.isPointInArea(e)||zs(t,n,e,function(i,l,c){!a&&!du(i,t.chartArea,0)||i.inRange(e.x,e.y,r)&&s.push({element:i,datasetIndex:l,index:c})},!0),s}function xx(t,e,n,r){let a=[];function s(o,i,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:u}=Qd(o,{x:e.x,y:e.y});Is(u,c,d)&&a.push({element:o,datasetIndex:i,index:l})}return zs(t,n,e,s),a}function wx(t,e,n,r,a,s){let o=[];const i=vx(n);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(e.x,e.y,a);if(r&&!h)return;const g=d.getCenterPoint(a);if(!(!!s||t.isPointInArea(g))&&!h)return;const b=i(e,g);b<l?(o=[{element:d,datasetIndex:u,index:f}],l=b):b===l&&o.push({element:d,datasetIndex:u,index:f})}return zs(t,n,e,c),o}function al(t,e,n,r,a,s){return!s&&!t.isPointInArea(e)?[]:n==="r"&&!r?xx(t,e,n,a):wx(t,e,n,r,a,s)}function Eu(t,e,n,r,a){const s=[],o=n==="x"?"inXRange":"inYRange";let i=!1;return zs(t,n,e,(l,c,d)=>{l[o]&&l[o](e[n],a)&&(s.push({element:l,datasetIndex:c,index:d}),i=i||l.inRange(e.x,e.y,a))}),r&&!i?[]:s}var kx={modes:{index(t,e,n,r){const a=or(e,t),s=n.axis||"x",o=n.includeInvisible||!1,i=n.intersect?rl(t,a,s,r,o):al(t,a,s,!1,r,o),l=[];return i.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=i[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,n,r){const a=or(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let i=n.intersect?rl(t,a,s,r,o):al(t,a,s,!1,r,o);if(i.length>0){const l=i[0].datasetIndex,c=t.getDatasetMeta(l).data;i=[];for(let d=0;d<c.length;++d)i.push({element:c[d],datasetIndex:l,index:d})}return i},point(t,e,n,r){const a=or(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return rl(t,a,s,r,o)},nearest(t,e,n,r){const a=or(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return al(t,a,s,n.intersect,r,o)},x(t,e,n,r){const a=or(e,t);return Eu(t,a,"x",n.intersect,r)},y(t,e,n,r){const a=or(e,t);return Eu(t,a,"y",n.intersect,r)}}};const Tu=["left","top","right","bottom"];function Da(t,e){return t.filter(n=>n.pos===e)}function Pu(t,e){return t.filter(n=>Tu.indexOf(n.pos)===-1&&n.box.axis===e)}function Ma(t,e){return t.sort((n,r)=>{const a=e?r:n,s=e?n:r;return a.weight===s.weight?a.index-s.index:a.weight-s.weight})}function _x(t){const e=[];let n,r,a,s,o,i;for(n=0,r=(t||[]).length;n<r;++n)a=t[n],{position:s,options:{stack:o,stackWeight:i=1}}=a,e.push({index:n,box:a,pos:s,horizontal:a.isHorizontal(),weight:a.weight,stack:o&&s+o,stackWeight:i});return e}function Sx(t){const e={};for(const n of t){const{stack:r,pos:a,stackWeight:s}=n;if(!r||!Tu.includes(a))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}function Ox(t,e){const n=Sx(t),{vBoxMaxWidth:r,hBoxMaxHeight:a}=e;let s,o,i;for(s=0,o=t.length;s<o;++s){i=t[s];const{fullSize:l}=i.box,c=n[i.stack],d=c&&i.stackWeight/c.weight;i.horizontal?(i.width=d?d*r:l&&e.availableWidth,i.height=a):(i.width=r,i.height=d?d*a:l&&e.availableHeight)}return n}function Dx(t){const e=_x(t),n=Ma(e.filter(c=>c.box.fullSize),!0),r=Ma(Da(e,"left"),!0),a=Ma(Da(e,"right")),s=Ma(Da(e,"top"),!0),o=Ma(Da(e,"bottom")),i=Pu(e,"x"),l=Pu(e,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:a.concat(l).concat(o).concat(i),chartArea:Da(e,"chartArea"),vertical:r.concat(a).concat(l),horizontal:s.concat(o).concat(i)}}function Nu(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Iu(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Mx(t,e,n,r){const{pos:a,box:s}=n,o=t.maxPadding;if(!pe(a)){n.size&&(t[a]-=n.size);const u=r[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?s.height:s.width),n.size=u.size/u.count,t[a]+=n.size}s.getPadding&&Iu(o,s.getPadding());const i=Math.max(0,e.outerWidth-Nu(o,t,"left","right")),l=Math.max(0,e.outerHeight-Nu(o,t,"top","bottom")),c=i!==t.w,d=l!==t.h;return t.w=i,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Cx(t){const e=t.maxPadding;function n(r){const a=Math.max(e[r]-t[r],0);return t[r]+=a,a}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Ex(t,e){const n=e.maxPadding;function r(a){const s={left:0,top:0,right:0,bottom:0};return a.forEach(o=>{s[o]=Math.max(e[o],n[o])}),s}return r(t?["left","right"]:["top","bottom"])}function Ca(t,e,n,r){const a=[];let s,o,i,l,c,d;for(s=0,o=t.length,c=0;s<o;++s){i=t[s],l=i.box,l.update(i.width||e.w,i.height||e.h,Ex(i.horizontal,e));const{same:u,other:f}=Mx(e,n,i,r);c|=u&&a.length,d=d||f,l.fullSize||a.push(i)}return c&&Ca(a,e,n,r)||d}function Hs(t,e,n,r,a){t.top=n,t.left=e,t.right=e+r,t.bottom=n+a,t.width=r,t.height=a}function ju(t,e,n,r){const a=n.padding;let{x:s,y:o}=e;for(const i of t){const l=i.box,c=r[i.stack]||{placed:0,weight:1},d=i.stackWeight/c.weight||1;if(i.horizontal){const u=e.w*d,f=c.size||l.height;Ts(c.start)&&(o=c.start),l.fullSize?Hs(l,a.left,o,n.outerWidth-a.right-a.left,f):Hs(l,e.left+c.placed,o,u,f),c.start=o,c.placed+=u,o=l.bottom}else{const u=e.h*d,f=c.size||l.width;Ts(c.start)&&(s=c.start),l.fullSize?Hs(l,s,a.top,f,n.outerHeight-a.bottom-a.top):Hs(l,s,e.top+c.placed,f,u),c.start=s,c.placed+=u,s=l.right}}e.x=s,e.y=o}var Fn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const a=Ht(t.options.layout.padding),s=Math.max(e-a.width,0),o=Math.max(n-a.height,0),i=Dx(t.boxes),l=i.vertical,c=i.horizontal;Se(t.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const d=l.reduce((m,b)=>b.box.options&&b.box.options.display===!1?m:m+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:n,padding:a,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),f=Object.assign({},a);Iu(f,Ht(r));const h=Object.assign({maxPadding:f,w:s,h:o,x:a.left,y:a.top},a),g=Ox(l.concat(c),u);Ca(i.fullSize,h,u,g),Ca(l,h,u,g),Ca(c,h,u,g)&&Ca(l,h,u,g),Cx(h),ju(i.leftAndTop,h,u,g),h.x+=h.w,h.y+=h.h,ju(i.rightAndBottom,h,u,g),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Se(i.chartArea,m=>{const b=m.box;Object.assign(b,t.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Ru{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,a){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,a?Math.floor(n/a):r)}}isAttached(e){return!0}updateConfig(e){}}class Tx extends Ru{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Bs="$chartjs",Px={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Au=t=>t===null||t==="";function Nx(t,e){const n=t.style,r=t.getAttribute("height"),a=t.getAttribute("width");if(t[Bs]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Au(a)){const s=yu(t,"width");s!==void 0&&(t.width=s)}if(Au(r))if(t.style.height==="")t.height=t.width/(e||2);else{const s=yu(t,"height");s!==void 0&&(t.height=s)}return t}const Fu=$v?{passive:!0}:!1;function Ix(t,e,n){t&&t.addEventListener(e,n,Fu)}function jx(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Fu)}function Rx(t,e){const n=Px[t.type]||t.type,{x:r,y:a}=or(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:a!==void 0?a:null}}function Ys(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ax(t,e,n){const r=t.canvas,a=new MutationObserver(s=>{let o=!1;for(const i of s)o=o||Ys(i.addedNodes,r),o=o&&!Ys(i.removedNodes,r);o&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function Fx(t,e,n){const r=t.canvas,a=new MutationObserver(s=>{let o=!1;for(const i of s)o=o||Ys(i.removedNodes,r),o=o&&!Ys(i.addedNodes,r);o&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const Ea=new Map;let Lu=0;function Wu(){const t=window.devicePixelRatio;t!==Lu&&(Lu=t,Ea.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Lx(t,e){Ea.size||window.addEventListener("resize",Wu),Ea.set(t,e)}function Wx(t){Ea.delete(t),Ea.size||window.removeEventListener("resize",Wu)}function zx(t,e,n){const r=t.canvas,a=r&&qi(r);if(!a)return;const s=$d((i,l)=>{const c=a.clientWidth;n(i,l),c<a.clientWidth&&n()},window),o=new ResizeObserver(i=>{const l=i[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||s(c,d)});return o.observe(a),Lx(t,s),o}function sl(t,e,n){n&&n.disconnect(),e==="resize"&&Wx(t)}function Hx(t,e,n){const r=t.canvas,a=$d(s=>{t.ctx!==null&&n(Rx(s,t))},t);return Ix(r,e,a),a}class Bx extends Ru{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(Nx(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[Bs])return!1;const r=n[Bs].initial;["height","width"].forEach(s=>{const o=r[s];lt(o)?n.removeAttribute(s):n.setAttribute(s,o)});const a=r.style||{};return Object.keys(a).forEach(s=>{n.style[s]=a[s]}),n.width=n.width,delete n[Bs],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const a=e.$proxies||(e.$proxies={}),o={attach:Ax,detach:Fx,resize:zx}[n]||Hx;a[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),a=r[n];if(!a)return;({attach:sl,detach:sl,resize:sl}[n]||jx)(e,n,a),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,a){return qv(e,n,r,a)}isAttached(e){const n=e&&qi(e);return!!(n&&n.isConnected)}}function Yx(t){return!Zi()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Tx:Bx}let Ta=(Ti=class{constructor(){Z(this,"x");Z(this,"y");Z(this,"active",!1);Z(this,"options");Z(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Ns(this.x)&&Ns(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const a={};return e.forEach(s=>{a[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),a}},Z(Ti,"defaults",{}),Z(Ti,"defaultRoutes"),Ti);function Vx(t,e){const n=t.options.ticks,r=Ux(t),a=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?Gx(e):[],o=s.length,i=s[0],l=s[o-1],c=[];if(o>a)return Kx(e,c,s,o/a),c;const d=Xx(s,e,a);if(o>0){let u,f;const h=o>1?Math.round((l-i)/(o-1)):null;for(Vs(e,c,d,lt(h)?0:i-h,i),u=0,f=o-1;u<f;u++)Vs(e,c,d,s[u],s[u+1]);return Vs(e,c,d,l,lt(h)?e.length:l+h),c}return Vs(e,c,d),c}function Ux(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),a=t._maxLength/n;return Math.floor(Math.min(r,a))}function Xx(t,e,n){const r=Qx(t),a=e.length/n;if(!r)return Math.max(a,1);const s=lv(r);for(let o=0,i=s.length-1;o<i;o++){const l=s[o];if(l>a)return l}return Math.max(a,1)}function Gx(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function Kx(t,e,n,r){let a=0,s=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===s&&(e.push(t[o]),a++,s=n[a*r])}function Vs(t,e,n,r,a){const s=_e(r,0),o=Math.min(_e(a,t.length),t.length);let i=0,l,c,d;for(n=Math.ceil(n),a&&(l=a-r,n=l/Math.floor(l/n)),d=s;d<0;)i++,d=Math.round(s+i*n);for(c=Math.max(s,0);c<o;c++)c===d&&(e.push(t[c]),i++,d=Math.round(s+i*n))}function Qx(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const Jx=t=>t==="left"?"right":t==="right"?"left":t,zu=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Hu=(t,e)=>Math.min(e||t,t);function Bu(t,e){const n=[],r=t.length/e,a=t.length;let s=0;for(;s<a;s+=r)n.push(t[Math.floor(s)]);return n}function Zx(t,e,n){const r=t.ticks.length,a=Math.min(e,r-1),s=t._startPixel,o=t._endPixel,i=1e-6;let l=t.getPixelForTick(a),c;if(!(n&&(r===1?c=Math.max(l-s,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(a-1))/2,l+=a<e?c:-c,l<s-i||l>o+i)))return l}function qx(t,e){Se(t,n=>{const r=n.gc,a=r.length/2;let s;if(a>e){for(s=0;s<a;++s)delete n.data[r[s]];r.splice(0,a)}})}function Pa(t){return t.drawTicks?t.tickLength:0}function Yu(t,e){if(!t.display)return 0;const n=mt(t.font,e),r=Ht(t.padding);return(rt(t.text)?t.text.length:1)*n.lineHeight+r.height}function $x(t,e){return Nr(t,{scale:e,type:"scale"})}function ew(t,e,n){return Nr(t,{tick:n,index:e,type:"tick"})}function tw(t,e,n){let r=eu(t);return(n&&e!=="right"||!n&&e==="right")&&(r=Jx(r)),r}function nw(t,e,n,r){const{top:a,left:s,bottom:o,right:i,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,f,h,g;const m=o-a,b=i-s;if(t.isHorizontal()){if(h=St(r,s,i),pe(n)){const w=Object.keys(n)[0],y=n[w];g=d[w].getPixelForValue(y)+m-e}else n==="center"?g=(c.bottom+c.top)/2+m-e:g=zu(t,n,e);f=i-s}else{if(pe(n)){const w=Object.keys(n)[0],y=n[w];h=d[w].getPixelForValue(y)-b+e}else n==="center"?h=(c.left+c.right)/2-b+e:h=zu(t,n,e);g=St(r,o,a),u=n==="left"?-Ze:Ze}return{titleX:h,titleY:g,maxWidth:f,rotation:u}}class Us extends Ta{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:a}=this;return e=Gt(e,Number.POSITIVE_INFINITY),n=Gt(n,Number.NEGATIVE_INFINITY),r=Gt(r,Number.POSITIVE_INFINITY),a=Gt(a,Number.NEGATIVE_INFINITY),{min:Gt(e,r),max:Gt(n,a),minDefined:bn(e),maxDefined:bn(n)}}getMinMax(e){let{min:n,max:r,minDefined:a,maxDefined:s}=this.getUserBounds(),o;if(a&&s)return{min:n,max:r};const i=this.getMatchingVisibleMetas();for(let l=0,c=i.length;l<c;++l)o=i[l].controller.getMinMax(this,e),a||(n=Math.min(n,o.min)),s||(r=Math.max(r,o.max));return n=s&&n>r?r:n,r=a&&n>r?n:r,{min:Gt(n,Gt(r,n)),max:Gt(r,Gt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Pe(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:a,grace:s,ticks:o}=this.options,i=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Fv(this,s,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=i<this.ticks.length;this._convertTicksToLabels(l?Bu(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Vx(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Pe(this.options.afterUpdate,[this])}beforeSetDimensions(){Pe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Pe(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Pe(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Pe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,a,s;for(r=0,a=e.length;r<a;r++)s=e[r],s.label=Pe(n.callback,[s.value,r,e],this)}afterTickToLabelConversion(){Pe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Pe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=Hu(this.ticks.length,e.ticks.maxTicksLimit),a=n.minRotation||0,s=n.maxRotation;let o=a,i,l,c;if(!this._isVisible()||!n.display||a>=s||r<=1||!this.isHorizontal()){this.labelRotation=a;return}const d=this._getLabelSizes(),u=d.widest.width,f=d.highest.height,h=jt(this.chart.width-u,0,this.maxWidth);i=e.offset?this.maxWidth/r:h/(r-1),u+6>i&&(i=h/(r-(e.offset?.5:1)),l=this.maxHeight-Pa(e.grid)-n.padding-Yu(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),o=dv(Math.min(Math.asin(jt((d.highest.height+6)/i,-1,1)),Math.asin(jt(l/c,-1,1))-Math.asin(jt(f/c,-1,1)))),o=Math.max(a,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){Pe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:a,grid:s}}=this,o=this._isVisible(),i=this.isHorizontal();if(o){const l=Yu(a,n.options.font);if(i?(e.width=this.maxWidth,e.height=Pa(s)+l):(e.height=this.maxHeight,e.width=Pa(s)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=r.padding*2,g=tr(this.labelRotation),m=Math.cos(g),b=Math.sin(g);if(i){const w=r.mirror?0:b*u.width+m*f.height;e.height=Math.min(this.maxHeight,e.height+w+h)}else{const w=r.mirror?0:m*u.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+w+h)}this._calculatePadding(c,d,b,m)}}this._handleMargins(),i?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,a){const{ticks:{align:s,padding:o},position:i}=this.options,l=this.labelRotation!==0,c=i!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=a*e.width,h=r*n.height):(f=r*e.height,h=a*n.width):s==="start"?h=n.width:s==="end"?f=e.width:s!=="inner"&&(f=e.width/2,h=n.width/2),this.paddingLeft=Math.max((f-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-u+o)*this.width/(this.width-u),0)}else{let d=n.height/2,u=e.height/2;s==="start"?(d=0,u=e.height):s==="end"&&(d=n.height,u=0),this.paddingTop=d+o,this.paddingBottom=u+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Pe(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)lt(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=Bu(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:a,_longestTextCache:s}=this,o=[],i=[],l=Math.floor(n/Hu(n,r));let c=0,d=0,u,f,h,g,m,b,w,y,k,v,x;for(u=0;u<n;u+=l){if(g=e[u].label,m=this._resolveTickFontOptions(u),a.font=b=m.string,w=s[b]=s[b]||{data:{},gc:[]},y=m.lineHeight,k=v=0,!lt(g)&&!rt(g))k=ou(a,w.data,w.gc,k,g),v=y;else if(rt(g))for(f=0,h=g.length;f<h;++f)x=g[f],!lt(x)&&!rt(x)&&(k=ou(a,w.data,w.gc,k,x),v+=y);o.push(k),i.push(v),c=Math.max(k,c),d=Math.max(v,d)}qx(s,n);const S=o.indexOf(c),P=i.indexOf(d),C=T=>({width:o[T]||0,height:i[T]||0});return{first:C(0),last:C(n-1),widest:C(S),highest:C(P),widths:o,heights:i}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return fv(this._alignToPixels?ar(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=ew(this.getContext(),e,r))}return this.$context||(this.$context=$x(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=tr(this.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),s=this._getLabelSizes(),o=e.autoSkipPadding||0,i=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*r>i*a?i/r:l/a:l*a<i*r?l/r:i/a}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,a=this.options,{grid:s,position:o,border:i}=a,l=s.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=Pa(s),h=[],g=i.setContext(this.getContext()),m=g.display?g.width:0,b=m/2,w=function(z){return ar(r,z,m)};let y,k,v,x,S,P,C,T,E,H,D,F;if(o==="top")y=w(this.bottom),P=this.bottom-f,T=y-b,H=w(e.top)+b,F=e.bottom;else if(o==="bottom")y=w(this.top),H=e.top,F=w(e.bottom)-b,P=y+b,T=this.top+f;else if(o==="left")y=w(this.right),S=this.right-f,C=y-b,E=w(e.left)+b,D=e.right;else if(o==="right")y=w(this.left),E=e.left,D=w(e.right)-b,S=y+b,C=this.left+f;else if(n==="x"){if(o==="center")y=w((e.top+e.bottom)/2+.5);else if(pe(o)){const z=Object.keys(o)[0],X=o[z];y=w(this.chart.scales[z].getPixelForValue(X))}H=e.top,F=e.bottom,P=y+b,T=P+f}else if(n==="y"){if(o==="center")y=w((e.left+e.right)/2);else if(pe(o)){const z=Object.keys(o)[0],X=o[z];y=w(this.chart.scales[z].getPixelForValue(X))}S=y-b,C=S-f,E=e.left,D=e.right}const M=_e(a.ticks.maxTicksLimit,u),R=Math.max(1,Math.ceil(u/M));for(k=0;k<u;k+=R){const z=this.getContext(k),X=s.setContext(z),K=i.setContext(z),q=X.lineWidth,N=X.color,B=K.dash||[],A=K.dashOffset,j=X.tickWidth,I=X.tickColor,O=X.tickBorderDash||[],L=X.tickBorderDashOffset;v=Zx(this,k,l),v!==void 0&&(x=ar(r,v,q),c?S=C=E=D=x:P=T=H=F=x,h.push({tx1:S,ty1:P,tx2:C,ty2:T,x1:E,y1:H,x2:D,y2:F,width:q,color:N,borderDash:B,borderDashOffset:A,tickWidth:j,tickColor:I,tickBorderDash:O,tickBorderDashOffset:L}))}return this._ticksLength=u,this._borderValue=y,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:a,ticks:s}=r,o=this.isHorizontal(),i=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=s,f=Pa(r.grid),h=f+d,g=u?-d:h,m=-tr(this.labelRotation),b=[];let w,y,k,v,x,S,P,C,T,E,H,D,F="middle";if(a==="top")S=this.bottom-g,P=this._getXAxisLabelAlignment();else if(a==="bottom")S=this.top+g,P=this._getXAxisLabelAlignment();else if(a==="left"){const R=this._getYAxisLabelAlignment(f);P=R.textAlign,x=R.x}else if(a==="right"){const R=this._getYAxisLabelAlignment(f);P=R.textAlign,x=R.x}else if(n==="x"){if(a==="center")S=(e.top+e.bottom)/2+h;else if(pe(a)){const R=Object.keys(a)[0],z=a[R];S=this.chart.scales[R].getPixelForValue(z)+h}P=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")x=(e.left+e.right)/2-h;else if(pe(a)){const R=Object.keys(a)[0],z=a[R];x=this.chart.scales[R].getPixelForValue(z)}P=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?F="top":l==="end"&&(F="bottom"));const M=this._getLabelSizes();for(w=0,y=i.length;w<y;++w){k=i[w],v=k.label;const R=s.setContext(this.getContext(w));C=this.getPixelForTick(w)+s.labelOffset,T=this._resolveTickFontOptions(w),E=T.lineHeight,H=rt(v)?v.length:1;const z=H/2,X=R.color,K=R.textStrokeColor,q=R.textStrokeWidth;let N=P;o?(x=C,P==="inner"&&(w===y-1?N=this.options.reverse?"left":"right":w===0?N=this.options.reverse?"right":"left":N="center"),a==="top"?c==="near"||m!==0?D=-H*E+E/2:c==="center"?D=-M.highest.height/2-z*E+E:D=-M.highest.height+E/2:c==="near"||m!==0?D=E/2:c==="center"?D=M.highest.height/2-z*E:D=M.highest.height-H*E,u&&(D*=-1),m!==0&&!R.showLabelBackdrop&&(x+=E/2*Math.sin(m))):(S=C,D=(1-H)*E/2);let B;if(R.showLabelBackdrop){const A=Ht(R.backdropPadding),j=M.heights[w],I=M.widths[w];let O=D-A.top,L=0-A.left;switch(F){case"middle":O-=j/2;break;case"bottom":O-=j;break}switch(P){case"center":L-=I/2;break;case"right":L-=I;break;case"inner":w===y-1?L-=I:w>0&&(L-=I/2);break}B={left:L,top:O,width:I+A.width,height:j+A.height,color:R.backdropColor}}b.push({label:v,font:T,textOffset:D,options:{rotation:m,color:X,strokeColor:K,strokeWidth:q,textAlign:N,textBaseline:F,translation:[x,S],backdrop:B}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-tr(this.labelRotation))return e==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:a,padding:s}}=this.options,o=this._getLabelSizes(),i=e+s,l=o.widest.width;let c,d;return n==="left"?a?(d=this.right+s,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-i,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d=this.left)):n==="right"?a?(d=this.left+s,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+i,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:a,width:s,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,a,s,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(s=>s.value===e);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,o;const i=(l,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=a.length;s<o;++s){const l=a[s];n.drawOnChartArea&&i({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&i({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:a}}=this,s=r.setContext(this.getContext()),o=r.display?s.width:0;if(!o)return;const i=a.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,f;this.isHorizontal()?(c=ar(e,this.left,o)-o/2,d=ar(e,this.right,i)+i/2,u=f=l):(u=ar(e,this.top,o)-o/2,f=ar(e,this.bottom,i)+i/2,c=d=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(c,u),n.lineTo(d,f),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&Vi(r,a);const s=this.getLabelItems(e);for(const o of s){const i=o.options,l=o.font,c=o.label,d=o.textOffset;Rs(r,c,0,d,l,i)}a&&Ui(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:a}}=this;if(!r.display)return;const s=mt(r.font),o=Ht(r.padding),i=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||pe(n)?(l+=o.bottom,rt(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=nw(this,l,n,i);Rs(e,r.text,0,0,s,{color:r.color,maxWidth:u,rotation:f,textAlign:tw(i,n,a),textBaseline:"middle",translation:[c,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=_e(e.grid&&e.grid.z,-1),a=_e(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==Us.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let s,o;for(s=0,o=n.length;s<o;++s){const i=n[s];i[r]===this.id&&(!e||i.type===e)&&a.push(i)}return a}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return mt(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Xs{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;sw(n)&&(r=this.register(n));const a=this.items,s=e.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in a||(a[s]=e,rw(e,o,r),this.override&&Be.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,a=this.scope;r in n&&delete n[r],a&&r in Be[a]&&(delete Be[a][r],this.override&&delete rr[r])}}function rw(t,e,n){const r=pa(Object.create(null),[n?Be.get(n):{},Be.get(e),t.defaults]);Be.set(e,r),t.defaultRoutes&&aw(e,t.defaultRoutes),t.descriptors&&Be.describe(e,t.descriptors)}function aw(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),a=r.pop(),s=[t].concat(r).join("."),o=e[n].split("."),i=o.pop(),l=o.join(".");Be.route(s,a,l,i)})}function sw(t){return"id"in t&&"defaults"in t}class ow{constructor(){this.controllers=new Xs(Sa,"datasets",!0),this.elements=new Xs(Ta,"elements"),this.plugins=new Xs(Object,"plugins"),this.scales=new Xs(Us,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(a=>{const s=r||this._getRegistryForType(a);r||s.isForType(a)||s===this.plugins&&a.id?this._exec(e,s,a):Se(a,o=>{const i=r||this._getRegistryForType(o);this._exec(e,i,o)})})}_exec(e,n,r){const a=Li(e);Pe(r["before"+a],[],r),n[e](r),Pe(r["after"+a],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const a=n.get(e);if(a===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return a}}var Kt=new ow;class iw{constructor(){this._init=[]}notify(e,n,r,a){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const s=a?this._descriptors(e).filter(a):this._descriptors(e),o=this._notify(s,e,n,r);return n==="afterDestroy"&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,n,r,a){a=a||{};for(const s of e){const o=s.plugin,i=o[r],l=[n,a,s.options];if(Pe(i,l,o)===!1&&a.cancelable)return!1}return!0}invalidate(){lt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,a=_e(r.options&&r.options.plugins,{}),s=lw(r);return a===!1&&!n?[]:dw(e,s,a,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,a=(s,o)=>s.filter(i=>!o.some(l=>i.plugin.id===l.plugin.id));this._notify(a(n,r),e,"stop"),this._notify(a(r,n),e,"start")}}function lw(t){const e={},n=[],r=Object.keys(Kt.plugins.items);for(let s=0;s<r.length;s++)n.push(Kt.getPlugin(r[s]));const a=t.plugins||[];for(let s=0;s<a.length;s++){const o=a[s];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function cw(t,e){return!e&&t===!1?null:t===!0?{}:t}function dw(t,{plugins:e,localIds:n},r,a){const s=[],o=t.getContext();for(const i of e){const l=i.id,c=cw(r[l],a);c!==null&&s.push({plugin:i,options:uw(t.config,{plugin:i,local:n[l]},c,o)})}return s}function uw(t,{plugin:e,local:n},r,a){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(r,s);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ol(t,e){const n=Be.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function fw(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function hw(t,e){return t===e?"_index_":"_value_"}function Vu(t){if(t==="x"||t==="y"||t==="r")return t}function gw(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function il(t,...e){if(Vu(t))return t;for(const n of e){const r=n.axis||gw(n.position)||t.length>1&&Vu(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Uu(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function mw(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return Uu(t,"x",n[0])||Uu(t,"y",n[0])}return{}}function pw(t,e){const n=rr[t.type]||{scales:{}},r=e.scales||{},a=ol(t.type,e),s=Object.create(null);return Object.keys(r).forEach(o=>{const i=r[o];if(!pe(i))return console.error(`Invalid scale configuration for scale: ${o}`);if(i._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=il(o,i,mw(o,t),Be.scales[i.type]),c=hw(l,a),d=n.scales||{};s[o]=ba(Object.create(null),[{axis:l},i,d[l],d[c]])}),t.data.datasets.forEach(o=>{const i=o.type||t.type,l=o.indexAxis||ol(i,e),d=(rr[i]||{}).scales||{};Object.keys(d).forEach(u=>{const f=fw(u,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),ba(s[h],[{axis:f},r[h],d[u]])})}),Object.keys(s).forEach(o=>{const i=s[o];ba(i,[Be.scales[i.type],Be.scale])}),s}function Xu(t){const e=t.options||(t.options={});e.plugins=_e(e.plugins,{}),e.scales=pw(t,e)}function Gu(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function bw(t){return t=t||{},t.data=Gu(t.data),Xu(t),t}const Ku=new Map,Qu=new Set;function Gs(t,e){let n=Ku.get(t);return n||(n=e(),Ku.set(t,n),Qu.add(n)),n}const Na=(t,e,n)=>{const r=ya(e,n);r!==void 0&&t.add(r)};class yw{constructor(e){this._config=bw(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Gu(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Xu(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Gs(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Gs(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Gs(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Gs(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let a=r.get(e);return(!a||n)&&(a=new Map,r.set(e,a)),a}getOptionScopes(e,n,r){const{options:a,type:s}=this,o=this._cachedScopes(e,r),i=o.get(n);if(i)return i;const l=new Set;n.forEach(d=>{e&&(l.add(e),d.forEach(u=>Na(l,e,u))),d.forEach(u=>Na(l,a,u)),d.forEach(u=>Na(l,rr[s]||{},u)),d.forEach(u=>Na(l,Be,u)),d.forEach(u=>Na(l,Bi,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Qu.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,rr[n]||{},Be.datasets[n]||{},{type:n},Be,Bi]}resolveNamedOptions(e,n,r,a=[""]){const s={$shared:!0},{resolver:o,subPrefixes:i}=Ju(this._resolverCache,e,a);let l=o;if(xw(o,n)){s.$shared=!1,r=An(r)?r():r;const c=this.createResolver(e,r,i);l=Ir(o,r,c)}for(const c of n)s[c]=l[c];return s}createResolver(e,n,r=[""],a){const{resolver:s}=Ju(this._resolverCache,e,r);return pe(n)?Ir(s,n,void 0,a):s}}function Ju(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const a=n.join();let s=r.get(a);return s||(s={resolver:Ki(e,n),subPrefixes:n.filter(i=>!i.toLowerCase().includes("hover"))},r.set(a,s)),s}const vw=t=>pe(t)&&Object.getOwnPropertyNames(t).some(e=>An(t[e]));function xw(t,e){const{isScriptable:n,isIndexable:r}=uu(t);for(const a of e){const s=n(a),o=r(a),i=(o||s)&&t[a];if(s&&(An(i)||vw(i))||o&&rt(i))return!0}return!1}var ww="4.4.8";const kw=["top","bottom","left","right","chartArea"];function Zu(t,e){return t==="top"||t==="bottom"||kw.indexOf(t)===-1&&e==="x"}function qu(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function $u(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Pe(n&&n.onComplete,[t],e)}function _w(t){const e=t.chart,n=e.options.animation;Pe(n&&n.onProgress,[t],e)}function ef(t){return Zi()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ks={},tf=t=>{const e=ef(t);return Object.values(Ks).filter(n=>n.canvas===e).pop()};function Sw(t,e,n){const r=Object.keys(t);for(const a of r){const s=+a;if(s>=e){const o=t[a];delete t[a],(n>0||s>e)&&(t[s+n]=o)}}}function Ow(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function Qs(t,e,n){return t.options.clip?t[n]:e[n]}function Dw(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Qs(n,e,"left"),right:Qs(n,e,"right"),top:Qs(r,e,"top"),bottom:Qs(r,e,"bottom")}:e}let Js=(qn=class{static register(...e){Kt.add(...e),nf()}static unregister(...e){Kt.remove(...e),nf()}constructor(e,n){const r=this.config=new yw(n),a=ef(e),s=tf(a);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Yx(a)),this.platform.updateConfig(r);const i=this.platform.acquireContext(a,o.aspectRatio),l=i&&i.canvas,c=l&&l.height,d=l&&l.width;if(this.id=ev(),this.ctx=i,this.canvas=l,this.width=d,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new iw,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=bv(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],Ks[this.id]=this,!i||!l){console.error("Failed to create chart: can't acquire context from the given item");return}yn.listen(this,"complete",$u),yn.listen(this,"progress",_w),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:a,_aspectRatio:s}=this;return lt(e)?n&&s?s:a?r/a:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Kt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():bu(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return iu(this.canvas,this.ctx),this}stop(){return yn.stop(this),this}resize(e,n){yn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,a=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(a,e,n,s),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,bu(this,i,!0)&&(this.notifyPlugins("resize",{size:o}),Pe(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Se(n,(r,a)=>{r.id=a})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,a=Object.keys(r).reduce((o,i)=>(o[i]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const i=n[o],l=il(o,i),c=l==="r",d=l==="x";return{options:i,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Se(s,o=>{const i=o.options,l=i.id,c=il(l,i),d=_e(i.type,o.dtype);(i.position===void 0||Zu(i.position,c)!==Zu(o.dposition))&&(i.position=o.dposition),a[l]=!0;let u=null;if(l in r&&r[l].type===d)u=r[l];else{const f=Kt.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,e)}),Se(a,(o,i)=>{o||delete r[i]}),Se(r,o=>{Fn.configure(this,o,o.options),Fn.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((a,s)=>a.index-s.index),r>n){for(let a=n;a<r;++a)this._destroyDatasetMeta(a);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(qu("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,a)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=n.length;r<a;r++){const s=n[r];let o=this.getDatasetMeta(r);const i=s.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=s.indexAxis||ol(i,this.options),o.order=s.order||0,o.index=r,o.label=""+s.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=Kt.getController(i),{datasetElementType:c,dataElementType:d}=Be.datasets[i];Object.assign(l,{dataElementType:Kt.getElement(d),datasetElementType:c&&Kt.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Se(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),f=!a&&s.indexOf(u)===-1;u.buildOrUpdateElements(f),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),a||Se(s,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(qu("z","_idx"));const{_active:i,_lastEvent:l}=this;l?this._eventHandler(l,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Se(this.scales,e=>{Fn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!Xd(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:s}of n){const o=r==="_removeElements"?-s:s;Sw(e,a,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(e.filter(o=>o[0]===s).map((o,i)=>i+","+o.splice(1).join(","))),a=r(0);for(let s=1;s<n;s++)if(!Xd(a,r(s)))return;return Array.from(a).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Fn.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Se(this.boxes,a=>{r&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,s)=>{a._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,An(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),a={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(r.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(yn.has(this)?this.attached&&!yn.running(this)&&yn.start(this):(this.draw(),$u({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,a)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let a,s;for(a=0,s=n.length;a<s;++a){const o=n[a];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,a=!r.disabled,s=Dw(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(a&&Vi(n,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),e.controller.draw(),a&&Ui(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return du(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,a){const s=kx.modes[n];return typeof s=="function"?s(this,e,r,a):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let a=r.filter(s=>s&&s._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=Nr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const a=r?"show":"hide",s=this.getDatasetMeta(e),o=s.controller._resolveAnimations(void 0,a);Ts(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(s,{visible:r}),this.update(i=>i.datasetIndex===e?a:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),yn.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),iu(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Ks[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(s,o)=>{n.addEventListener(this,s,o),e[s]=o},a=(s,o,i)=>{s.offsetX=o,s.offsetY=i,this._eventHandler(s)};Se(this.options.events,s=>r(s,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},a=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const i=()=>{a("attach",i),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,a("resize",s),this._stop(),this._resize(0,0),r("attach",i)},n.isAttached(this.canvas)?i():o()}unbindEvents(){Se(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Se(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const a=r?"set":"remove";let s,o,i,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+a+"DatasetHoverStyle"]()),i=0,l=e.length;i<l;++i){o=e[i];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[a+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:s,index:o})=>{const i=this.getDatasetMeta(s);if(!i)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:i.data[o],index:o}});!Cs(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const a=this.options.hover,s=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=s(n,e),i=r?e:s(e,n);o.length&&this.updateHoverStyle(o,a.mode,!1),i.length&&a.mode&&this.updateHoverStyle(i,a.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},a=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,a)===!1)return;const s=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(s||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:a=[],options:s}=this,o=n,i=this._getActiveElements(e,a,r,o),l=ov(e),c=Ow(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Pe(s.onHover,[e,i,this],this),l&&Pe(s.onClick,[e,i,this],this));const d=!Cs(i,a);return(d||n)&&(this._active=i,this._updateHoverStyles(i,a,n)),this._lastEvent=c,d}_getActiveElements(e,n,r,a){if(e.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,a)}},Z(qn,"defaults",Be),Z(qn,"instances",Ks),Z(qn,"overrides",rr),Z(qn,"registry",Kt),Z(qn,"version",ww),Z(qn,"getChart",tf),qn);function nf(){return Se(Js.instances,t=>t._plugins.invalidate())}function Mw(t,e,n){const{startAngle:r,pixelMargin:a,x:s,y:o,outerRadius:i,innerRadius:l}=e;let c=a/i;t.beginPath(),t.arc(s,o,i,r-c,n+c),l>a?(c=a/l,t.arc(s,o,l,n+c,r-c,!0)):t.arc(s,o,a,n+Ze,r-Ze),t.closePath(),t.clip()}function Cw(t){return Gi(t,["outerStart","outerEnd","innerStart","innerEnd"])}function Ew(t,e,n,r){const a=Cw(t.options.borderRadius),s=(n-e)/2,o=Math.min(s,r*e/2),i=l=>{const c=(n-Math.min(s,l))*r/2;return jt(l,0,Math.min(s,c))};return{outerStart:i(a.outerStart),outerEnd:i(a.outerEnd),innerStart:jt(a.innerStart,0,o),innerEnd:jt(a.innerEnd,0,o)}}function Rr(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Zs(t,e,n,r,a,s){const{x:o,y:i,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+r+n-c,0),f=d>0?d+r+n+c:0;let h=0;const g=a-l;if(r){const R=d>0?d-r:0,z=u>0?u-r:0,X=(R+z)/2,K=X!==0?g*X/(X+r):g;h=(g-K)/2}const m=Math.max(.001,g*u-n/et)/u,b=(g-m)/2,w=l+b+h,y=a-b-h,{outerStart:k,outerEnd:v,innerStart:x,innerEnd:S}=Ew(e,f,u,y-w),P=u-k,C=u-v,T=w+k/P,E=y-v/C,H=f+x,D=f+S,F=w+x/H,M=y-S/D;if(t.beginPath(),s){const R=(T+E)/2;if(t.arc(o,i,u,T,R),t.arc(o,i,u,R,E),v>0){const q=Rr(C,E,o,i);t.arc(q.x,q.y,v,E,y+Ze)}const z=Rr(D,y,o,i);if(t.lineTo(z.x,z.y),S>0){const q=Rr(D,M,o,i);t.arc(q.x,q.y,S,y+Ze,M+Math.PI)}const X=(y-S/f+(w+x/f))/2;if(t.arc(o,i,f,y-S/f,X,!0),t.arc(o,i,f,X,w+x/f,!0),x>0){const q=Rr(H,F,o,i);t.arc(q.x,q.y,x,F+Math.PI,w-Ze)}const K=Rr(P,w,o,i);if(t.lineTo(K.x,K.y),k>0){const q=Rr(P,T,o,i);t.arc(q.x,q.y,k,w-Ze,T)}}else{t.moveTo(o,i);const R=Math.cos(T)*u+o,z=Math.sin(T)*u+i;t.lineTo(R,z);const X=Math.cos(E)*u+o,K=Math.sin(E)*u+i;t.lineTo(X,K)}t.closePath()}function Tw(t,e,n,r,a){const{fullCircles:s,startAngle:o,circumference:i}=e;let l=e.endAngle;if(s){Zs(t,e,n,r,l,a);for(let c=0;c<s;++c)t.fill();isNaN(i)||(l=o+(i%Xe||Xe))}return Zs(t,e,n,r,l,a),t.fill(),l}function Pw(t,e,n,r,a){const{fullCircles:s,startAngle:o,circumference:i,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=f,h?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let g=e.endAngle;if(s){Zs(t,e,n,r,g,a);for(let m=0;m<s;++m)t.stroke();isNaN(i)||(g=o+(i%Xe||Xe))}h&&Mw(t,e,g),s||(Zs(t,e,n,r,g,a),t.stroke())}class Ia extends Ta{constructor(n){super();Z(this,"circumference");Z(this,"endAngle");Z(this,"fullCircles");Z(this,"innerRadius");Z(this,"outerRadius");Z(this,"pixelMargin");Z(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,a){const s=this.getProps(["x","y"],a),{angle:o,distance:i}=Qd(s,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],a),h=(this.options.spacing+this.options.borderWidth)/2,g=_e(f,c-l),m=Is(o,l,c)&&l!==c,b=g>=Xe||m,w=va(i,d+h,u+h);return b&&w}getCenterPoint(n){const{x:r,y:a,startAngle:s,endAngle:o,innerRadius:i,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,u=(s+o)/2,f=(i+l+d+c)/2;return{x:r+Math.cos(u)*f,y:a+Math.sin(u)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:a}=this,s=(r.offset||0)/4,o=(r.spacing||0)/2,i=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=a>Xe?Math.floor(a/Xe):0,a===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*s,Math.sin(l)*s);const c=1-Math.sin(Math.min(et,a||0)),d=s*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,Tw(n,this,d,o,i),Pw(n,this,d,o,i),n.restore()}}Z(Ia,"id","arc"),Z(Ia,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Z(Ia,"defaultRoutes",{backgroundColor:"backgroundColor"}),Z(Ia,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});const rf=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},Nw=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class af extends Ta{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Pe(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,a)=>e.sort(r,a,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,a=mt(r.font),s=a.size,o=this._computeTitleHeight(),{boxWidth:i,itemHeight:l}=rf(r,s);let c,d;n.font=a.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,s,i,l)+10):(d=this.maxHeight,c=this._fitCols(o,a,i,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,a){const{ctx:s,maxWidth:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=a+i;let u=e;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((g,m)=>{const b=r+n/2+s.measureText(g.text).width;(m===0||c[c.length-1]+b+2*i>o)&&(u+=d,c[c.length-(m>0?0:1)]=0,h+=d,f++),l[m]={left:0,top:h,row:f,width:b,height:a},c[c.length-1]+=b+i}),u}_fitCols(e,n,r,a){const{ctx:s,maxHeight:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=i,f=0,h=0,g=0,m=0;return this.legendItems.forEach((b,w)=>{const{itemWidth:y,itemHeight:k}=Iw(r,n,s,b,a);w>0&&h+k+2*i>d&&(u+=f+i,c.push({width:f,height:h}),g+=f+i,m++,f=h=0),l[w]={left:g,top:h,col:m,width:y,height:k},f=Math.max(f,y),h+=k+i}),u+=f,c.push({width:f,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:a},rtl:s}}=this,o=jr(s,this.left,this.width);if(this.isHorizontal()){let i=0,l=St(r,this.left+a,this.right-this.lineWidths[i]);for(const c of n)i!==c.row&&(i=c.row,l=St(r,this.left+a,this.right-this.lineWidths[i])),c.top+=this.top+e+a,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+a}else{let i=0,l=St(r,this.top+e+a,this.bottom-this.columnSizes[i].height);for(const c of n)c.col!==i&&(i=c.col,l=St(r,this.top+e+a,this.bottom-this.columnSizes[i].height)),c.top=l,c.left+=this.left+a,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Vi(e,this),this._draw(),Ui(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:a}=this,{align:s,labels:o}=e,i=Be.color,l=jr(e.rtl,this.left,this.width),c=mt(o.font),{padding:d}=o,u=c.size,f=u/2;let h;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:b}=rf(o,u),w=function(S,P,C){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;a.save();const T=_e(C.lineWidth,1);if(a.fillStyle=_e(C.fillStyle,i),a.lineCap=_e(C.lineCap,"butt"),a.lineDashOffset=_e(C.lineDashOffset,0),a.lineJoin=_e(C.lineJoin,"miter"),a.lineWidth=T,a.strokeStyle=_e(C.strokeStyle,i),a.setLineDash(_e(C.lineDash,[])),o.usePointStyle){const E={radius:m*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:T},H=l.xPlus(S,g/2),D=P+f;cu(a,E,H,D,o.pointStyleWidth&&g)}else{const E=P+Math.max((u-m)/2,0),H=l.leftForLtr(S,g),D=ka(C.borderRadius);a.beginPath(),Object.values(D).some(F=>F!==0)?Xi(a,{x:H,y:E,w:g,h:m,radius:D}):a.rect(H,E,g,m),a.fill(),T!==0&&a.stroke()}a.restore()},y=function(S,P,C){Rs(a,C.text,S,P+b/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},k=this.isHorizontal(),v=this._computeTitleHeight();k?h={x:St(s,this.left+d,this.right-r[0]),y:this.top+d+v,line:0}:h={x:this.left+d,y:St(s,this.top+v+d,this.bottom-n[0].height),line:0},vu(this.ctx,e.textDirection);const x=b+d;this.legendItems.forEach((S,P)=>{a.strokeStyle=S.fontColor,a.fillStyle=S.fontColor;const C=a.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=o.textAlign)),E=g+f+C;let H=h.x,D=h.y;l.setWidth(this.width),k?P>0&&H+E+d>this.right&&(D=h.y+=x,h.line++,H=h.x=St(s,this.left+d,this.right-r[h.line])):P>0&&D+x>this.bottom&&(H=h.x=H+n[h.line].width+d,h.line++,D=h.y=St(s,this.top+v+d,this.bottom-n[h.line].height));const F=l.x(H);if(w(F,D,S),H=yv(T,H+g+f,k?H+E:this.right,e.rtl),y(l.x(H),D,S),k)h.x+=E+d;else if(typeof S.text!="string"){const M=c.lineHeight;h.y+=sf(S,M)+d}else h.y+=x}),xu(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=mt(n.font),a=Ht(n.padding);if(!n.display)return;const s=jr(e.rtl,this.left,this.width),o=this.ctx,i=n.position,l=r.size/2,c=a.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=St(e.align,u,this.right-f);else{const g=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);d=c+St(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}const h=St(i,u,u+f);o.textAlign=s.textAlign(eu(i)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Rs(o,n.text,h,d,r)}_computeTitleHeight(){const e=this.options.title,n=mt(e.font),r=Ht(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,a,s;if(va(e,this.left,this.right)&&va(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(a=s[r],va(e,a.left,a.left+a.width)&&va(n,a.top,a.top+a.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!Aw(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const a=this._hoveredItem,s=Nw(a,r);a&&!s&&Pe(n.onLeave,[e,a,this],this),this._hoveredItem=r,r&&!s&&Pe(n.onHover,[e,r,this],this)}else r&&Pe(n.onClick,[e,r,this],this)}}function Iw(t,e,n,r,a){const s=jw(r,t,e,n),o=Rw(a,r,e.lineHeight);return{itemWidth:s,itemHeight:o}}function jw(t,e,n,r){let a=t.text;return a&&typeof a!="string"&&(a=a.reduce((s,o)=>s.length>o.length?s:o)),e+n.size/2+r.measureText(a).width}function Rw(t,e,n){let r=t;return typeof e.text!="string"&&(r=sf(e,n)),r}function sf(t,e){const n=t.text?t.text.length:0;return e*n}function Aw(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var Fw={id:"legend",_element:af,start(t,e,n){const r=t.legend=new af({ctx:t.ctx,options:n,chart:t});Fn.configure(t,r,n),Fn.addBox(t,r)},stop(t){Fn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Fn.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),e.hidden=!0):(a.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:a,color:s,useBorderRadius:o,borderRadius:i}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=Ht(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:a||c.textAlign,borderRadius:o&&(i||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const ja={average(t){if(!t.length)return!1;let e,n,r=new Set,a=0,s=0;for(e=0,n=t.length;e<n;++e){const i=t[e].element;if(i&&i.hasValue()){const l=i.tooltipPosition();r.add(l.x),a+=l.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((i,l)=>i+l)/r.size,y:a/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,a=Number.POSITIVE_INFINITY,s,o,i;for(s=0,o=t.length;s<o;++s){const l=t[s].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=uv(e,c);d<a&&(a=d,i=l)}}if(i){const l=i.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Qt(t,e){return e&&(rt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function vn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
17
17
|
`)>-1?t.split(`
|
|
18
|
-
`):t}function Lw(t,e){const{element:n,datasetIndex:r,index:a}=e,s=t.getDatasetMeta(r).controller,{label:o,value:i}=s.getLabelAndValue(a);return{chart:t,label:o,parsed:s.getParsed(a),raw:t.data.datasets[r].data[a],formattedValue:i,dataset:s.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function of(t,e){const n=t.chart.ctx,{body:r,footer:a,title:s}=t,{boxWidth:o,boxHeight:i}=e,l=mt(e.bodyFont),c=mt(e.titleFont),d=mt(e.footerFont),u=s.length,f=a.length,h=r.length,g=Ht(e.padding);let m=g.height,b=0,w=r.reduce((v,x)=>v+x.before.length+x.lines.length+x.after.length,0);if(w+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),w){const v=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;m+=h*v+(w-h)*l.lineHeight+(w-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const k=function(v){b=Math.max(b,n.measureText(v).width+y)};return n.save(),n.font=c.string,Se(t.title,k),n.font=l.string,Se(t.beforeBody.concat(t.afterBody),k),y=e.displayColors?o+2+e.boxPadding:0,Se(r,v=>{Se(v.before,k),Se(v.lines,k),Se(v.after,k)}),y=0,n.font=d.string,Se(t.footer,k),n.restore(),b+=g.width,{width:b,height:m}}function Ww(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function zw(t,e,n,r){const{x:a,width:s}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&a+s+o>e.width||t==="right"&&a-s-o<0)return!0}function Hw(t,e,n,r){const{x:a,width:s}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=a<=(i+l)/2?"left":"right":a<=s/2?c="left":a>=o-s/2&&(c="right"),zw(c,t,e,n)&&(c="center"),c}function lf(t,e,n){const r=n.yAlign||e.yAlign||Ww(t,n);return{xAlign:n.xAlign||e.xAlign||Hw(t,e,n,r),yAlign:r}}function Bw(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function Yw(t,e,n){let{y:r,height:a}=t;return e==="top"?r+=n:e==="bottom"?r-=a+n:r-=a/2,r}function cf(t,e,n,r){const{caretSize:a,caretPadding:s,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=a+s,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=ka(o);let g=Bw(e,i);const m=Yw(e,l,c);return l==="center"?i==="left"?g+=c:i==="right"&&(g-=c):i==="left"?g-=Math.max(d,f)+a:i==="right"&&(g+=Math.max(u,h)+a),{x:jt(g,0,r.width-e.width),y:jt(m,0,r.height-e.height)}}function qs(t,e,n){const r=Ht(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function df(t){return Qt([],vn(t))}function Vw(t,e,n){return Nr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function uf(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const ff={beforeTitle:pn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:pn,beforeBody:pn,beforeLabel:pn,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return lt(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:pn,afterBody:pn,beforeFooter:pn,footer:pn,afterFooter:pn};function pt(t,e,n,r){const a=t[e].call(n,r);return typeof a>"u"?ff[e].call(n,r):a}let hf=(Sd=class extends Ta{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,s=new ku(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=Vw(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,a=pt(r,"beforeTitle",this,e),s=pt(r,"title",this,e),o=pt(r,"afterTitle",this,e);let i=[];return i=Qt(i,vn(a)),i=Qt(i,vn(s)),i=Qt(i,vn(o)),i}getBeforeBody(e,n){return df(pt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,a=[];return Se(e,s=>{const o={before:[],lines:[],after:[]},i=uf(r,s);Qt(o.before,vn(pt(i,"beforeLabel",this,s))),Qt(o.lines,pt(i,"label",this,s)),Qt(o.after,vn(pt(i,"afterLabel",this,s))),a.push(o)}),a}getAfterBody(e,n){return df(pt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,a=pt(r,"beforeFooter",this,e),s=pt(r,"footer",this,e),o=pt(r,"afterFooter",this,e);let i=[];return i=Qt(i,vn(a)),i=Qt(i,vn(s)),i=Qt(i,vn(o)),i}_createItems(e){const n=this._active,r=this.chart.data,a=[],s=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(Lw(this.chart,n[l]));return e.filter&&(i=i.filter((d,u,f)=>e.filter(d,u,f,r))),e.itemSort&&(i=i.sort((d,u)=>e.itemSort(d,u,r))),Se(i,d=>{const u=uf(e.callbacks,d);a.push(pt(u,"labelColor",this,d)),s.push(pt(u,"labelPointStyle",this,d)),o.push(pt(u,"labelTextColor",this,d))}),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),a=this._active;let s,o=[];if(!a.length)this.opacity!==0&&(s={opacity:0});else{const i=ja[r.position].call(this,a,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=of(this,r),c=Object.assign({},i,l),d=lf(this.chart,r,c),u=cf(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:i.x,caretY:i.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,a){const s=this.getCaretPosition(e,r,a);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,r){const{xAlign:a,yAlign:s}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=ka(i),{x:f,y:h}=e,{width:g,height:m}=n;let b,w,y,k,v,x;return s==="center"?(v=h+m/2,a==="left"?(b=f,w=b-o,k=v+o,x=v-o):(b=f+g,w=b+o,k=v-o,x=v+o),y=b):(a==="left"?w=f+Math.max(l,d)+o:a==="right"?w=f+g-Math.max(c,u)-o:w=this.caretX,s==="top"?(k=h,v=k-o,b=w-o,y=w+o):(k=h+m,v=k+o,b=w+o,y=w-o),x=k),{x1:b,x2:w,x3:y,y1:k,y2:v,y3:x}}drawTitle(e,n,r){const a=this.title,s=a.length;let o,i,l;if(s){const c=jr(r.rtl,this.x,this.width);for(e.x=qs(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=mt(r.titleFont),i=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<s;++l)n.fillText(a[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===s&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,a,s){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=s,d=mt(s.bodyFont),u=qs(this,"left",s),f=a.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,g=n.y+h;if(s.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=a.leftForLtr(f,c)+c/2,w=g+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,lu(e,m,b,w),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,lu(e,m,b,w)}else{e.lineWidth=pe(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const m=a.leftForLtr(f,c),b=a.leftForLtr(a.xPlus(f,1),c-2),w=ka(o.borderRadius);Object.values(w).some(y=>y!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,Xi(e,{x:m,y:g,w:c,h:l,radius:w}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Xi(e,{x:b,y:g+1,w:c-2,h:l-2,radius:w}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(m,g,c,l),e.strokeRect(m,g,c,l),e.fillStyle=o.backgroundColor,e.fillRect(b,g+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:a}=this,{bodySpacing:s,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=mt(r.bodyFont);let f=u.lineHeight,h=0;const g=jr(r.rtl,this.x,this.width),m=function(C){n.fillText(C,g.x(e.x+h),e.y+f/2),e.y+=f+s},b=g.textAlign(o);let w,y,k,v,x,S,P;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=qs(this,b,r),n.fillStyle=r.bodyColor,Se(this.beforeBody,m),h=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,v=0,S=a.length;v<S;++v){for(w=a[v],y=this.labelTextColors[v],n.fillStyle=y,Se(w.before,m),k=w.lines,i&&k.length&&(this._drawColorBox(n,e,v,g,r),f=Math.max(u.lineHeight,l)),x=0,P=k.length;x<P;++x)m(k[x]),f=u.lineHeight;Se(w.after,m)}h=0,f=u.lineHeight,Se(this.afterBody,m),e.y-=s}drawFooter(e,n,r){const a=this.footer,s=a.length;let o,i;if(s){const l=jr(r.rtl,this.x,this.width);for(e.x=qs(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=mt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,i=0;i<s;++i)n.fillText(a[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,a){const{xAlign:s,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=ka(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,a),n.lineTo(i+c-f,l),n.quadraticCurveTo(i+c,l,i+c,l+f),o==="center"&&s==="right"&&this.drawCaret(e,n,r,a),n.lineTo(i+c,l+d-g),n.quadraticCurveTo(i+c,l+d,i+c-g,l+d),o==="bottom"&&this.drawCaret(e,n,r,a),n.lineTo(i+h,l+d),n.quadraticCurveTo(i,l+d,i,l+d-h),o==="center"&&s==="left"&&this.drawCaret(e,n,r,a),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,a=r&&r.x,s=r&&r.y;if(a||s){const o=ja[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=of(this,e),l=Object.assign({},o,this._size),c=lf(n,e,l),d=cf(e,l,c,n);(a._to!==d.x||s._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=i.width,this.height=i.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Ht(n.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&i&&(e.save(),e.globalAlpha=r,this.drawBackground(s,e,a,n),vu(e,n.textDirection),s.y+=o.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),xu(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,a=e.map(({datasetIndex:i,index:l})=>{const c=this.chart.getDatasetMeta(i);if(!c)throw new Error("Cannot find a dataset at index "+i);return{datasetIndex:i,element:c.data[l],index:l}}),s=!Cs(r,a),o=this._positionChanged(a,n);(s||o)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,s=this._active||[],o=this._getActiveElements(e,s,n,r),i=this._positionChanged(o,e),l=n||!Cs(o,s)||i;return l&&(this._active=o,(a.enabled||a.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,a){const s=this.options;if(e.type==="mouseout")return[];if(!a)return n.filter(i=>this.chart.data.datasets[i.datasetIndex]&&this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:a,options:s}=this,o=ja[s.position].call(this,e,n);return o!==!1&&(r!==o.x||a!==o.y)}},Z(Sd,"positioners",ja),Sd);var Uw={id:"tooltip",_element:hf,positioners:ja,afterInit(t,e,n){n&&(t.tooltip=new hf({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ff},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const $s={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bt=Object.keys($s);function gf(t,e){return t-e}function mf(t,e){if(lt(e))return null;const n=t._adapter,{parser:r,round:a,isoWeekday:s}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),bn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(a&&(o=a==="week"&&(Ns(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,a)),+o)}function pf(t,e,n,r){const a=bt.length;for(let s=bt.indexOf(t);s<a-1;++s){const o=$s[bt[s]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return bt[s]}return bt[a-1]}function Xw(t,e,n,r,a){for(let s=bt.length-1;s>=bt.indexOf(n);s--){const o=bt[s];if($s[o].common&&t._adapter.diff(a,r,o)>=e-1)return o}return bt[n?bt.indexOf(n):0]}function Gw(t){for(let e=bt.indexOf(t)+1,n=bt.length;e<n;++e)if($s[bt[e]].common)return bt[e]}function bf(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:a}=Wi(n,e),s=n[r]>=e?n[r]:n[a];t[s]=!0}}function Kw(t,e,n,r){const a=t._adapter,s=+a.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=s;i<=o;i=+a.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function yf(t,e,n){const r=[],a={},s=e.length;let o,i;for(o=0;o<s;++o)i=e[o],a[i]=o,r.push({value:i,major:!1});return s===0||!n?r:Kw(t,r,a,n)}class eo extends Us{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),a=this._adapter=new bx._date(e.adapters.date);a.init(n),ba(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:mf(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:a,max:s,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(a=Math.min(a,c.min)),!i&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),a=bn(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),s=bn(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,s-1),this.max=Math.max(a+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const s=this.min,o=this.max,i=gv(a,s,o);return this._unit=n.unit||(r.autoSkip?pf(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):Xw(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Gw(this._unit),this.initOffsets(a),e.reverse&&i.reverse(),yf(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,a,s;this.options.offset&&e.length&&(a=this.getDecimalForValue(e[0]),e.length===1?n=1-a:n=(this.getDecimalForValue(e[1])-a)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?r=s:r=(s-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=jt(n,0,o),r=jt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,a=this.options,s=a.time,o=s.unit||pf(s.minUnit,n,r,this._getLabelCapacity(n)),i=_e(a.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,c=Ns(l)||l===!0,d={};let u=n,f,h;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":o),e.diff(r,n,o)>1e5*i)throw new Error(n+" and "+r+" are too far apart with stepSize of "+i+" "+o);const g=a.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<r;f=+e.add(f,i,o),h++)bf(d,f,g);return(f===r||a.bounds==="ticks"||h===1)&&bf(d,f,g),Object.keys(d).sort(gf).map(m=>+m)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const a=this.options.time.displayFormats,s=this._unit,o=n||a[s];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,a){const s=this.options,o=s.ticks.callback;if(o)return Pe(o,[e,n,r],this);const i=s.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&i[l],u=c&&i[c],f=r[n],h=c&&u&&f&&f.major;return this._adapter.format(e,a||(h?u:d))}generateTickLabels(e){let n,r,a;for(n=0,r=e.length;n<r;++n)a=e[n],a.label=this._tickFormatFunction(a.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,a=tr(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(a),o=Math.sin(a),i=this._resolveTickFontOptions(0).size;return{w:r*s+i*o,h:r*o+i*s}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,s=this._tickFormatFunction(e,0,yf(this,[e],this._majorUnit),a),o=this._getLabelSize(s),i=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return i>0?i:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)e=e.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)e.push(mf(this,a[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return pv(e.sort(gf))}}Z(eo,"id","time"),Z(eo,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function to(t,e,n){let r=0,a=t.length-1,s,o,i,l;n?(e>=t[r].pos&&e<=t[a].pos&&({lo:r,hi:a}=zi(t,"pos",e)),{pos:s,time:i}=t[r],{pos:o,time:l}=t[a]):(e>=t[r].time&&e<=t[a].time&&({lo:r,hi:a}=zi(t,"time",e)),{time:s,pos:i}=t[r],{time:o,pos:l}=t[a]);const c=o-s;return c?i+(l-i)*(e-s)/c:i}class vf extends eo{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=to(n,this.min),this._tableRange=to(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,a=[],s=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&a.push(c);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=a.length;o<i;++o)d=a[o+1],l=a[o-1],c=a[o],Math.round((d+l)/2)!==c&&s.push({time:c,pos:o/(i-1)});return s}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((a,s)=>a-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(to(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return to(this._table,r*this._tableRange+this._minPos,!0)}}Z(vf,"id","timeseries"),Z(vf,"defaults",eo.defaults);const xf="label";function wf(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Qw(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function kf(t,e){t.labels=e}function _f(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xf;const r=[];t.datasets=e.map(a=>{const s=t.datasets.find(o=>o[n]===a[n]);return!s||!a.data||r.includes(s)?{...a}:(r.push(s),Object.assign(s,a),s)})}function Jw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xf;const n={labels:[],datasets:[]};return kf(n,t.labels),_f(n,t.datasets,e),n}function Zw(t,e){const{height:n=150,width:r=300,redraw:a=!1,datasetIdKey:s,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=_.useRef(null),g=_.useRef(null),m=()=>{h.current&&(g.current=new Js(h.current,{type:o,data:Jw(i,s),options:l&&{...l},plugins:c}),wf(e,g.current))},b=()=>{wf(e,null),g.current&&(g.current.destroy(),g.current=null)};return _.useEffect(()=>{!a&&g.current&&l&&Qw(g.current,l)},[a,l]),_.useEffect(()=>{!a&&g.current&&kf(g.current.config.data,i.labels)},[a,i.labels]),_.useEffect(()=>{!a&&g.current&&i.datasets&&_f(g.current.config.data,i.datasets,s)},[a,i.datasets]),_.useEffect(()=>{g.current&&(a?(b(),setTimeout(m)):g.current.update(u))},[a,l,i.labels,i.datasets,u]),_.useEffect(()=>{g.current&&(b(),setTimeout(m))},[o]),_.useEffect(()=>(m(),()=>b()),[]),_.createElement("canvas",{ref:h,role:"img",height:n,width:r,...f},d)}const qw=_.forwardRef(Zw);function $w(t,e){return Js.register(e),_.forwardRef((n,r)=>_.createElement(qw,{...n,ref:r,type:t}))}const ek=$w("doughnut",Oa);Js.register(Ia,Uw,Fw);const Sf=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),tk=({dataProps:t})=>{const e=t,n={responsive:!0,maintainAspectRatio:!1,cutout:"80%",plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right",labels:{usePointStyle:!0,pointStyle:"circle",padding:15}},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:Sf(e.datasets[0].data.reduce((s,o)=>s+o,0)),font:{size:"20"}}]}}},r={id:"textCenter",beforeDraw(s){const{ctx:o,chartArea:{top:i,width:l,height:c}}=s,d="Total",u=Sf(e.datasets[0].data[1]),f=i+c*.65;o.save(),o.font="30px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(d,l/2,f-20),o.font="bold 30px Arial",o.fillText(u,l/2,f+10),o.restore()}},a={id:"currencyLabel",beforeDraw(s){const{ctx:o,chartArea:{top:i,width:l}}=s;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+55),o.restore()}};return p.jsx("div",{className:"size-full min-h-[200px]",children:p.jsx(ek,{data:e,options:n,plugins:[r,a]})})},ll={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function nk(t){return je({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(t)}function rk(t){return je({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(t)}const Of=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto"},a)=>t?p.jsx("div",{className:ll.overlay,children:p.jsxs("div",{ref:a,className:ll.modal,style:{width:r},children:[p.jsx("button",{onClick:e,className:ll.closeButton,children:p.jsx(rk,{})}),n]})}):null);/*! *****************************************************************************
|
|
18
|
+
`):t}function Lw(t,e){const{element:n,datasetIndex:r,index:a}=e,s=t.getDatasetMeta(r).controller,{label:o,value:i}=s.getLabelAndValue(a);return{chart:t,label:o,parsed:s.getParsed(a),raw:t.data.datasets[r].data[a],formattedValue:i,dataset:s.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function of(t,e){const n=t.chart.ctx,{body:r,footer:a,title:s}=t,{boxWidth:o,boxHeight:i}=e,l=mt(e.bodyFont),c=mt(e.titleFont),d=mt(e.footerFont),u=s.length,f=a.length,h=r.length,g=Ht(e.padding);let m=g.height,b=0,w=r.reduce((v,x)=>v+x.before.length+x.lines.length+x.after.length,0);if(w+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),w){const v=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;m+=h*v+(w-h)*l.lineHeight+(w-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let y=0;const k=function(v){b=Math.max(b,n.measureText(v).width+y)};return n.save(),n.font=c.string,Se(t.title,k),n.font=l.string,Se(t.beforeBody.concat(t.afterBody),k),y=e.displayColors?o+2+e.boxPadding:0,Se(r,v=>{Se(v.before,k),Se(v.lines,k),Se(v.after,k)}),y=0,n.font=d.string,Se(t.footer,k),n.restore(),b+=g.width,{width:b,height:m}}function Ww(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function zw(t,e,n,r){const{x:a,width:s}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&a+s+o>e.width||t==="right"&&a-s-o<0)return!0}function Hw(t,e,n,r){const{x:a,width:s}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=a<=(i+l)/2?"left":"right":a<=s/2?c="left":a>=o-s/2&&(c="right"),zw(c,t,e,n)&&(c="center"),c}function lf(t,e,n){const r=n.yAlign||e.yAlign||Ww(t,n);return{xAlign:n.xAlign||e.xAlign||Hw(t,e,n,r),yAlign:r}}function Bw(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function Yw(t,e,n){let{y:r,height:a}=t;return e==="top"?r+=n:e==="bottom"?r-=a+n:r-=a/2,r}function cf(t,e,n,r){const{caretSize:a,caretPadding:s,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=a+s,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=ka(o);let g=Bw(e,i);const m=Yw(e,l,c);return l==="center"?i==="left"?g+=c:i==="right"&&(g-=c):i==="left"?g-=Math.max(d,f)+a:i==="right"&&(g+=Math.max(u,h)+a),{x:jt(g,0,r.width-e.width),y:jt(m,0,r.height-e.height)}}function qs(t,e,n){const r=Ht(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function df(t){return Qt([],vn(t))}function Vw(t,e,n){return Nr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function uf(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const ff={beforeTitle:pn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:pn,beforeBody:pn,beforeLabel:pn,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return lt(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:pn,afterBody:pn,beforeFooter:pn,footer:pn,afterFooter:pn};function pt(t,e,n,r){const a=t[e].call(n,r);return typeof a>"u"?ff[e].call(n,r):a}let hf=(Sd=class extends Ta{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,s=new ku(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=Vw(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,a=pt(r,"beforeTitle",this,e),s=pt(r,"title",this,e),o=pt(r,"afterTitle",this,e);let i=[];return i=Qt(i,vn(a)),i=Qt(i,vn(s)),i=Qt(i,vn(o)),i}getBeforeBody(e,n){return df(pt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,a=[];return Se(e,s=>{const o={before:[],lines:[],after:[]},i=uf(r,s);Qt(o.before,vn(pt(i,"beforeLabel",this,s))),Qt(o.lines,pt(i,"label",this,s)),Qt(o.after,vn(pt(i,"afterLabel",this,s))),a.push(o)}),a}getAfterBody(e,n){return df(pt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,a=pt(r,"beforeFooter",this,e),s=pt(r,"footer",this,e),o=pt(r,"afterFooter",this,e);let i=[];return i=Qt(i,vn(a)),i=Qt(i,vn(s)),i=Qt(i,vn(o)),i}_createItems(e){const n=this._active,r=this.chart.data,a=[],s=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(Lw(this.chart,n[l]));return e.filter&&(i=i.filter((d,u,f)=>e.filter(d,u,f,r))),e.itemSort&&(i=i.sort((d,u)=>e.itemSort(d,u,r))),Se(i,d=>{const u=uf(e.callbacks,d);a.push(pt(u,"labelColor",this,d)),s.push(pt(u,"labelPointStyle",this,d)),o.push(pt(u,"labelTextColor",this,d))}),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),a=this._active;let s,o=[];if(!a.length)this.opacity!==0&&(s={opacity:0});else{const i=ja[r.position].call(this,a,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=of(this,r),c=Object.assign({},i,l),d=lf(this.chart,r,c),u=cf(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:i.x,caretY:i.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,a){const s=this.getCaretPosition(e,r,a);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,r){const{xAlign:a,yAlign:s}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=ka(i),{x:f,y:h}=e,{width:g,height:m}=n;let b,w,y,k,v,x;return s==="center"?(v=h+m/2,a==="left"?(b=f,w=b-o,k=v+o,x=v-o):(b=f+g,w=b+o,k=v-o,x=v+o),y=b):(a==="left"?w=f+Math.max(l,d)+o:a==="right"?w=f+g-Math.max(c,u)-o:w=this.caretX,s==="top"?(k=h,v=k-o,b=w-o,y=w+o):(k=h+m,v=k+o,b=w+o,y=w-o),x=k),{x1:b,x2:w,x3:y,y1:k,y2:v,y3:x}}drawTitle(e,n,r){const a=this.title,s=a.length;let o,i,l;if(s){const c=jr(r.rtl,this.x,this.width);for(e.x=qs(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=mt(r.titleFont),i=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<s;++l)n.fillText(a[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===s&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,a,s){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=s,d=mt(s.bodyFont),u=qs(this,"left",s),f=a.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,g=n.y+h;if(s.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=a.leftForLtr(f,c)+c/2,w=g+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,lu(e,m,b,w),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,lu(e,m,b,w)}else{e.lineWidth=pe(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const m=a.leftForLtr(f,c),b=a.leftForLtr(a.xPlus(f,1),c-2),w=ka(o.borderRadius);Object.values(w).some(y=>y!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,Xi(e,{x:m,y:g,w:c,h:l,radius:w}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Xi(e,{x:b,y:g+1,w:c-2,h:l-2,radius:w}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(m,g,c,l),e.strokeRect(m,g,c,l),e.fillStyle=o.backgroundColor,e.fillRect(b,g+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:a}=this,{bodySpacing:s,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=mt(r.bodyFont);let f=u.lineHeight,h=0;const g=jr(r.rtl,this.x,this.width),m=function(C){n.fillText(C,g.x(e.x+h),e.y+f/2),e.y+=f+s},b=g.textAlign(o);let w,y,k,v,x,S,P;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=qs(this,b,r),n.fillStyle=r.bodyColor,Se(this.beforeBody,m),h=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,v=0,S=a.length;v<S;++v){for(w=a[v],y=this.labelTextColors[v],n.fillStyle=y,Se(w.before,m),k=w.lines,i&&k.length&&(this._drawColorBox(n,e,v,g,r),f=Math.max(u.lineHeight,l)),x=0,P=k.length;x<P;++x)m(k[x]),f=u.lineHeight;Se(w.after,m)}h=0,f=u.lineHeight,Se(this.afterBody,m),e.y-=s}drawFooter(e,n,r){const a=this.footer,s=a.length;let o,i;if(s){const l=jr(r.rtl,this.x,this.width);for(e.x=qs(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=mt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,i=0;i<s;++i)n.fillText(a[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,a){const{xAlign:s,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=ka(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,a),n.lineTo(i+c-f,l),n.quadraticCurveTo(i+c,l,i+c,l+f),o==="center"&&s==="right"&&this.drawCaret(e,n,r,a),n.lineTo(i+c,l+d-g),n.quadraticCurveTo(i+c,l+d,i+c-g,l+d),o==="bottom"&&this.drawCaret(e,n,r,a),n.lineTo(i+h,l+d),n.quadraticCurveTo(i,l+d,i,l+d-h),o==="center"&&s==="left"&&this.drawCaret(e,n,r,a),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,a=r&&r.x,s=r&&r.y;if(a||s){const o=ja[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=of(this,e),l=Object.assign({},o,this._size),c=lf(n,e,l),d=cf(e,l,c,n);(a._to!==d.x||s._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=i.width,this.height=i.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Ht(n.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&i&&(e.save(),e.globalAlpha=r,this.drawBackground(s,e,a,n),vu(e,n.textDirection),s.y+=o.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),xu(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,a=e.map(({datasetIndex:i,index:l})=>{const c=this.chart.getDatasetMeta(i);if(!c)throw new Error("Cannot find a dataset at index "+i);return{datasetIndex:i,element:c.data[l],index:l}}),s=!Cs(r,a),o=this._positionChanged(a,n);(s||o)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,s=this._active||[],o=this._getActiveElements(e,s,n,r),i=this._positionChanged(o,e),l=n||!Cs(o,s)||i;return l&&(this._active=o,(a.enabled||a.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,a){const s=this.options;if(e.type==="mouseout")return[];if(!a)return n.filter(i=>this.chart.data.datasets[i.datasetIndex]&&this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:a,options:s}=this,o=ja[s.position].call(this,e,n);return o!==!1&&(r!==o.x||a!==o.y)}},Z(Sd,"positioners",ja),Sd);var Uw={id:"tooltip",_element:hf,positioners:ja,afterInit(t,e,n){n&&(t.tooltip=new hf({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:ff},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const $s={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bt=Object.keys($s);function gf(t,e){return t-e}function mf(t,e){if(lt(e))return null;const n=t._adapter,{parser:r,round:a,isoWeekday:s}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),bn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(a&&(o=a==="week"&&(Ns(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,a)),+o)}function pf(t,e,n,r){const a=bt.length;for(let s=bt.indexOf(t);s<a-1;++s){const o=$s[bt[s]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return bt[s]}return bt[a-1]}function Xw(t,e,n,r,a){for(let s=bt.length-1;s>=bt.indexOf(n);s--){const o=bt[s];if($s[o].common&&t._adapter.diff(a,r,o)>=e-1)return o}return bt[n?bt.indexOf(n):0]}function Gw(t){for(let e=bt.indexOf(t)+1,n=bt.length;e<n;++e)if($s[bt[e]].common)return bt[e]}function bf(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:a}=Wi(n,e),s=n[r]>=e?n[r]:n[a];t[s]=!0}}function Kw(t,e,n,r){const a=t._adapter,s=+a.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=s;i<=o;i=+a.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function yf(t,e,n){const r=[],a={},s=e.length;let o,i;for(o=0;o<s;++o)i=e[o],a[i]=o,r.push({value:i,major:!1});return s===0||!n?r:Kw(t,r,a,n)}class eo extends Us{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),a=this._adapter=new bx._date(e.adapters.date);a.init(n),ba(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:mf(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:a,max:s,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(a=Math.min(a,c.min)),!i&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),a=bn(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),s=bn(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,s-1),this.max=Math.max(a+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const s=this.min,o=this.max,i=gv(a,s,o);return this._unit=n.unit||(r.autoSkip?pf(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):Xw(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Gw(this._unit),this.initOffsets(a),e.reverse&&i.reverse(),yf(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,a,s;this.options.offset&&e.length&&(a=this.getDecimalForValue(e[0]),e.length===1?n=1-a:n=(this.getDecimalForValue(e[1])-a)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?r=s:r=(s-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=jt(n,0,o),r=jt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,a=this.options,s=a.time,o=s.unit||pf(s.minUnit,n,r,this._getLabelCapacity(n)),i=_e(a.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,c=Ns(l)||l===!0,d={};let u=n,f,h;if(c&&(u=+e.startOf(u,"isoWeek",l)),u=+e.startOf(u,c?"day":o),e.diff(r,n,o)>1e5*i)throw new Error(n+" and "+r+" are too far apart with stepSize of "+i+" "+o);const g=a.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<r;f=+e.add(f,i,o),h++)bf(d,f,g);return(f===r||a.bounds==="ticks"||h===1)&&bf(d,f,g),Object.keys(d).sort(gf).map(m=>+m)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const a=this.options.time.displayFormats,s=this._unit,o=n||a[s];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,a){const s=this.options,o=s.ticks.callback;if(o)return Pe(o,[e,n,r],this);const i=s.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&i[l],u=c&&i[c],f=r[n],h=c&&u&&f&&f.major;return this._adapter.format(e,a||(h?u:d))}generateTickLabels(e){let n,r,a;for(n=0,r=e.length;n<r;++n)a=e[n],a.label=this._tickFormatFunction(a.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,a=tr(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(a),o=Math.sin(a),i=this._resolveTickFontOptions(0).size;return{w:r*s+i*o,h:r*o+i*s}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,s=this._tickFormatFunction(e,0,yf(this,[e],this._majorUnit),a),o=this._getLabelSize(s),i=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return i>0?i:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)e=e.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)e.push(mf(this,a[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return pv(e.sort(gf))}}Z(eo,"id","time"),Z(eo,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function to(t,e,n){let r=0,a=t.length-1,s,o,i,l;n?(e>=t[r].pos&&e<=t[a].pos&&({lo:r,hi:a}=zi(t,"pos",e)),{pos:s,time:i}=t[r],{pos:o,time:l}=t[a]):(e>=t[r].time&&e<=t[a].time&&({lo:r,hi:a}=zi(t,"time",e)),{time:s,pos:i}=t[r],{time:o,pos:l}=t[a]);const c=o-s;return c?i+(l-i)*(e-s)/c:i}class vf extends eo{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=to(n,this.min),this._tableRange=to(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,a=[],s=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&a.push(c);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=a.length;o<i;++o)d=a[o+1],l=a[o-1],c=a[o],Math.round((d+l)/2)!==c&&s.push({time:c,pos:o/(i-1)});return s}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((a,s)=>a-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(to(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return to(this._table,r*this._tableRange+this._minPos,!0)}}Z(vf,"id","timeseries"),Z(vf,"defaults",eo.defaults);const xf="label";function wf(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Qw(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function kf(t,e){t.labels=e}function _f(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xf;const r=[];t.datasets=e.map(a=>{const s=t.datasets.find(o=>o[n]===a[n]);return!s||!a.data||r.includes(s)?{...a}:(r.push(s),Object.assign(s,a),s)})}function Jw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xf;const n={labels:[],datasets:[]};return kf(n,t.labels),_f(n,t.datasets,e),n}function Zw(t,e){const{height:n=150,width:r=300,redraw:a=!1,datasetIdKey:s,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=_.useRef(null),g=_.useRef(null),m=()=>{h.current&&(g.current=new Js(h.current,{type:o,data:Jw(i,s),options:l&&{...l},plugins:c}),wf(e,g.current))},b=()=>{wf(e,null),g.current&&(g.current.destroy(),g.current=null)};return _.useEffect(()=>{!a&&g.current&&l&&Qw(g.current,l)},[a,l]),_.useEffect(()=>{!a&&g.current&&kf(g.current.config.data,i.labels)},[a,i.labels]),_.useEffect(()=>{!a&&g.current&&i.datasets&&_f(g.current.config.data,i.datasets,s)},[a,i.datasets]),_.useEffect(()=>{g.current&&(a?(b(),setTimeout(m)):g.current.update(u))},[a,l,i.labels,i.datasets,u]),_.useEffect(()=>{g.current&&(b(),setTimeout(m))},[o]),_.useEffect(()=>(m(),()=>b()),[]),_.createElement("canvas",{ref:h,role:"img",height:n,width:r,...f},d)}const qw=_.forwardRef(Zw);function $w(t,e){return Js.register(e),_.forwardRef((n,r)=>_.createElement(qw,{...n,ref:r,type:t}))}const ek=$w("doughnut",Oa);Js.register(Ia,Uw,Fw);const Sf=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),tk=({dataProps:t})=>{const e=t,n={responsive:!0,maintainAspectRatio:!1,cutout:"75%",plugins:{title:{display:!0,text:"PRESUPUESTO"},legend:{position:"right",labels:{usePointStyle:!0,pointStyle:"circle",padding:15}},tooltip:{enabled:!0},doughnutLabel:{labels:[{text:"Total",font:{size:"16",weight:"bold"}},{text:Sf(e.datasets[0].data.reduce((s,o)=>s+o,0)),font:{size:"20"}}]}}},r={id:"textCenter",beforeDraw(s){const{ctx:o,chartArea:{top:i,width:l,height:c}}=s,d="Total",u=Sf(e.datasets[0].data[1]),f=i+c*.75;o.save(),o.font="30px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(d,l/2,f-20),o.font="bold 30px Arial",o.fillText(u,l/2,f+10),o.restore()}},a={id:"currencyLabel",beforeDraw(s){const{ctx:o,chartArea:{top:i,width:l}}=s;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+40),o.restore()}};return p.jsx("div",{className:"size-full min-h-[200px]",children:p.jsx(ek,{data:e,options:n,plugins:[r,a]})})},ll={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function nk(t){return je({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(t)}function rk(t){return je({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(t)}const Of=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto"},a)=>t?p.jsx("div",{className:ll.overlay,children:p.jsxs("div",{ref:a,className:ll.modal,style:{width:r},children:[p.jsx("button",{onClick:e,className:ll.closeButton,children:p.jsx(rk,{})}),n]})}):null);/*! *****************************************************************************
|
|
19
19
|
Copyright (c) Microsoft Corporation.
|
|
20
20
|
|
|
21
21
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -477,7 +477,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,a=r&&e.__emoti
|
|
|
477
477
|
|
|
478
478
|
`,`;
|
|
479
479
|
}
|
|
480
|
-
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ye.button,function(t){var e=t.level,n=t.disabled,r=t.active,a=t.collapsed,s=t.rtl;return $h({level:e,disabled:n,active:r,collapsed:a,rtl:s})},function(t){var e=t.buttonStyles;return e}),Z_=function(t,e){var n,r=t.children,a=t.icon,s=t.className,o=t.prefix,i=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,f=t.component,h=t.rootStyles,g=lr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),m=_.useContext(po),b=_.useContext(mo),w=b.collapsed,y=b.rtl,k=b.transitionDuration,v=Sl().menuItemStyles,x=function(P){if(v){var C={level:m,disabled:u,active:c,isSubmenu:!1},T=v.root,E=v.button,H=v.label,D=v.icon,F=v.prefix,M=v.suffix;switch(P){case"root":return typeof T=="function"?T(C):T;case"button":return typeof E=="function"?E(C):E;case"label":return typeof H=="function"?H(C):H;case"icon":return typeof D=="function"?D(C):D;case"prefix":return typeof F=="function"?F(C):F;case"suffix":return typeof M=="function"?M(C):M;default:return}}},S=(n={},n[ye.active]=c,n[ye.disabled]=u,n);return _.createElement(J_,{ref:e,className:qe(ye.menuItemRoot,S,s),menuItemStyles:x("root"),level:m,collapsed:w,rtl:y,disabled:u,active:c,buttonStyles:x("button"),rootStyles:h},_.createElement(eg,Ot({className:qe(ye.button,S),"data-testid":"".concat(ye.button,"-test-id"),component:f,tabIndex:0},g),a&&_.createElement(Sh,{rtl:y,className:qe(ye.icon,S),rootStyles:x("icon")},a),o&&_.createElement(Dh,{collapsed:w,transitionDuration:k,firstLevel:m===0,className:qe(ye.prefix,S),rtl:y,rootStyles:x("prefix")},o),_.createElement(kh,{className:qe(ye.label,S),rootStyles:x("label")},r),i&&_.createElement(Ch,{collapsed:w,transitionDuration:k,firstLevel:m===0,className:qe(ye.suffix,S),rootStyles:x("suffix")},i)))},q_=_.forwardRef(Z_),ng;const jl=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:a,description:s}=t;return p.jsxs("div",{className:`${Rd.Card} border px-3.5 py-7`,ref:e,children:[n?p.jsx(In,{classIm:"mx-auto",src:n,alt:a,width:74,height:74}):r?p.jsx("div",{className:"flex justify-center",children:p.jsx(r,{size:74})}):null,p.jsx("h3",{className:"my-3 font-bold",children:a}),p.jsx("p",{children:s})]})});jl.displayName="Card";const $_=({logo:t,menuItems:e,campaignCards:n=[],onLogout:r,defaultCollapsed:a=!1,background:s="linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",textColor:o="#ffffff",className:i=""})=>{const[l,c]=_.useState(a),[d,u]=_.useState(null),[f,h]=_.useState(new Set),[g,m]=_.useState(null),[b,w]=_.useState(null),y=e.filter(D=>D.position!=="bottom"),k=e.filter(D=>D.position==="bottom"),v=(D,F="text-2xl")=>typeof D=="string"?p.jsx("img",{src:D,style:{width:"25px",height:"25px"}}):D?_.createElement(D,{className:F}):null,x=(D=!1,F=!1)=>({background:l?"transparent":F?"#FFFFFF55":D?"#FFFFFF22":"#FFFFFF33",color:o,borderRadius:D?"15px":"20px",button:{width:l?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:l?"0 0.25rem":"0 0.5rem",color:o,fontSize:D?"0.9rem":void 0}}),S=(D,F=!1,M)=>{const R=F?b===D.id:g===D.id;return p.jsx(q_,{icon:v(D.icon,F?"":"text-2xl"),onClick:()=>E(D,M),className:"mx-auto mb-1 rounded-md",rootStyles:x(F,R),children:F?D.label:p.jsxs("div",{className:"flex items-center justify-between w-full",children:[p.jsx("span",{children:D.label}),D.subMenuSection&&p.jsx(nk,{className:`text-lg transition-transform duration-200 ${f.has(D.id)?"rotate-180":""}`})]})},D.id)},P=D=>D.map(F=>p.jsxs("div",{children:[S(F),F.subMenuSection&&f.has(F.id)&&p.jsx("div",{className:"ml-4 space-y-1 mb-2",children:F.subMenuSection.items.map(M=>S(M,!0,F.id))})]},F.id)),C=()=>{d||c(!1)},T=()=>{d||(c(!0),h(new Set))},E=(D,F)=>{if(F?(m(F),w(D.id)):(m(D.id),w(null)),D.subMenuSection){const M=new Set(f);M.has(D.id)?M.delete(D.id):M.add(D.id),h(M)}else D.action?D.action():D.href&&(D.target==="_blank"?window.open(D.href,"_blank"):window.location.href=D.href)},H=D=>{D.action?D.action():D.href&&(D.target==="_blank"?window.open(D.href,"_blank"):window.location.href=D.href)};return p.jsx("div",{className:`fixed left-0 top-0 z-40 h-full ${i}`,children:p.jsxs("div",{className:"flex flex-col",onMouseEnter:C,onMouseLeave:T,children:[p.jsxs(M1,{collapsed:l,rootStyles:{[`.${We.container}`]:{background:s,color:o,height:"100vh",display:"flex",flexDirection:"column",width:l?"95px":"275px"}},children:[p.jsx("div",{className:"mb-2 mt-5",children:p.jsx("a",{href:"/",children:p.jsx(In,{classIm:"mx-3",src:t.src,alt:t.alt,width:t.width,height:t.height})})}),p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs(T1,{className:"flex-1 mx-3 px-2",children:[p.jsx("div",{className:"flex flex-col",children:P(y)}),p.jsx("div",{className:"mt-24",children:P(k)})]}),r&&p.jsx("div",{className:"w-full cursor-pointer py-4 px-5 mt-auto",children:p.jsx("div",{className:`flex ${l?"justify-center":"justify-end"} float-right rounded-2xl p-2`,style:{background:l?"transparent":"#FFFFFF1A"},onClick:r,children:p.jsx("button",{className:"text-3xl",style:{color:o},children:p.jsx("img",{src:"https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg",alt:"logout"})})})})]})]}),n.length>0&&p.jsx(Of,{width:"40%",isOpen:d==="campaigns",onClose:()=>u(null),children:p.jsxs("div",{className:"flex flex-col px-10 pb-5",children:[p.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),p.jsx("div",{className:"flex",children:n.map(D=>p.jsx("div",{className:"flex w-3/6 p-2",onClick:()=>H(D),children:p.jsx(jl,{imageUrl:D.imageUrl,title:D.title,description:D.description})},D.id))})]})})]})})};function eS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"},child:[]}]})(t)}function tS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function nS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"},child:[]}]})(t)}function rg(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function ag(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function sg(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function rS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"},child:[]}]})(t)}function og(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h5a1 1 0 000-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM13 16a1 1 0 102 0v-5.586l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 101.414 1.414L13 10.414V16z"},child:[]}]})(t)}function aS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h7a1 1 0 100-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM15 8a1 1 0 10-2 0v5.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L15 13.586V8z"},child:[]}]})(t)}function sS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"},child:[]}]})(t)}function oS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function ig(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},child:[]}]})(t)}function iS(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},child:[]}]})(t)}function lg(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},child:[]}]})(t)}function lS(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"},child:[]}]})(t)}function cS(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},child:[]}]})(t)}const Rl="-";function dS(t){const e=fS(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function a(o){const i=o.split(Rl);return i[0]===""&&i.length!==1&&i.shift(),cg(i,e)||uS(o)}function s(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function cg(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),a=r?cg(t.slice(1),r):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(Rl);return(o=e.validators.find(({validator:i})=>i(s)))==null?void 0:o.classGroupId}const dg=/^\[(.+)\]$/;function uS(t){if(dg.test(t)){const e=dg.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function fS(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return gS(Object.entries(t.classGroups),n).forEach(([s,o])=>{Al(o,r,s,e)}),r}function Al(t,e,n,r){t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:ug(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(hS(a)){Al(a(r),e,n,r);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,o])=>{Al(o,ug(e,s),n,r)})})}function ug(t,e){let n=t;return e.split(Rl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function hS(t){return t.isThemeGetter}function gS(t,e){return e?t.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,i])=>[e+o,i])):s);return[n,a]}):t}function mS(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function a(s,o){n.set(s,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return a(s,o),o},set(s,o){n.has(s)?n.set(s,o):a(s,o)}}}const fg="!";function pS(t){const e=t.separator,n=e.length===1,r=e[0],a=e.length;return function(o){const i=[];let l=0,c=0,d;for(let m=0;m<o.length;m++){let b=o[m];if(l===0){if(b===r&&(n||o.slice(m,m+a)===e)){i.push(o.slice(c,m)),c=m+a;continue}if(b==="/"){d=m;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),f=u.startsWith(fg),h=f?u.substring(1):u,g=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}}}function bS(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function yS(t){return{cache:mS(t.cacheSize),splitModifiers:pS(t),...dS(t)}}const vS=/\s+/;function xS(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:a}=e,s=new Set;return t.trim().split(vS).map(o=>{const{modifiers:i,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=n(o);let u=r(d?c.substring(0,d):c),f=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:o};if(u=r(c),!u)return{isTailwindClass:!1,originalClassName:o};f=!1}const h=bS(i).join(":");return{isTailwindClass:!0,modifierId:l?h+fg:h,classGroupId:u,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:i,classGroupId:l,hasPostfixModifier:c}=o,d=i+l;return s.has(d)?!1:(s.add(d),a(l,c).forEach(u=>s.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function wS(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=hg(e))&&(r&&(r+=" "),r+=n);return r}function hg(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=hg(t[r]))&&(n&&(n+=" "),n+=e);return n}function kS(t,...e){let n,r,a,s=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=yS(c),r=n.cache.get,a=n.cache.set,s=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=xS(l,n);return a(l,d),d}return function(){return s(wS.apply(null,arguments))}}function Ne(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const gg=/^\[(?:([a-z-]+):)?(.+)\]$/i,_S=/^\d+\/\d+$/,SS=new Set(["px","full","screen"]),OS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,DS=/\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$/,MS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,CS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ES=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function xn(t){return hr(t)||SS.has(t)||_S.test(t)}function zn(t){return Br(t,"length",FS)}function hr(t){return!!t&&!Number.isNaN(Number(t))}function ko(t){return Br(t,"number",hr)}function Qa(t){return!!t&&Number.isInteger(Number(t))}function TS(t){return t.endsWith("%")&&hr(t.slice(0,-1))}function fe(t){return gg.test(t)}function Hn(t){return OS.test(t)}const PS=new Set(["length","size","percentage"]);function NS(t){return Br(t,PS,mg)}function IS(t){return Br(t,"position",mg)}const jS=new Set(["image","url"]);function RS(t){return Br(t,jS,WS)}function AS(t){return Br(t,"",LS)}function Ja(){return!0}function Br(t,e,n){const r=gg.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function FS(t){return DS.test(t)&&!MS.test(t)}function mg(){return!1}function LS(t){return CS.test(t)}function WS(t){return ES.test(t)}function zS(){const t=Ne("colors"),e=Ne("spacing"),n=Ne("blur"),r=Ne("brightness"),a=Ne("borderColor"),s=Ne("borderRadius"),o=Ne("borderSpacing"),i=Ne("borderWidth"),l=Ne("contrast"),c=Ne("grayscale"),d=Ne("hueRotate"),u=Ne("invert"),f=Ne("gap"),h=Ne("gradientColorStops"),g=Ne("gradientColorStopPositions"),m=Ne("inset"),b=Ne("margin"),w=Ne("opacity"),y=Ne("padding"),k=Ne("saturate"),v=Ne("scale"),x=Ne("sepia"),S=Ne("skew"),P=Ne("space"),C=Ne("translate"),T=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",fe,e],D=()=>[fe,e],F=()=>["",xn,zn],M=()=>["auto",hr,fe],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],K=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",fe],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[hr,ko],A=()=>[hr,fe];return{cacheSize:500,separator:":",theme:{colors:[Ja],spacing:[xn,zn],blur:["none","",Hn,fe],brightness:B(),borderColor:[t],borderRadius:["none","","full",Hn,fe],borderSpacing:D(),borderWidth:F(),contrast:B(),grayscale:q(),hueRotate:A(),invert:q(),gap:D(),gradientColorStops:[t],gradientColorStopPositions:[TS,zn],inset:H(),margin:H(),opacity:B(),padding:D(),saturate:B(),scale:B(),sepia:q(),skew:A(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[Hn]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),fe]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qa,fe]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Qa,fe]}],"grid-cols":[{"grid-cols":[Ja]}],"col-start-end":[{col:["auto",{span:["full",Qa,fe]},fe]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Ja]}],"row-start-end":[{row:["auto",{span:[Qa,fe]},fe]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,e]}],"min-w":[{"min-w":[fe,e,"min","max","fit"]}],"max-w":[{"max-w":[fe,e,"none","full","min","max","fit","prose",{screen:[Hn]},Hn]}],h:[{h:[fe,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Hn,zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ko]}],"font-family":[{font:[Ja]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",fe]}],"line-clamp":[{"line-clamp":["none",hr,ko]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xn,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xn,zn]}],"underline-offset":[{"underline-offset":["auto",xn,fe]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),IS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",NS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},RS]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:z()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[xn,fe]}],"outline-w":[{outline:[xn,zn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[xn,zn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Hn,AS]}],"shadow-color":[{shadow:[Ja]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":X()}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Hn,fe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[k]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fe]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Qa,fe]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fe]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",fe]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[xn,zn,ko]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const V=kS(zS);function gr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Za(t){if(!gr(t))return t;const e={};for(const n in t)e[n]=Za(t[n]);return e}function ee(t,e){if(gr(e)&&Object.keys(e).length===0)return Za({...t,...e});const n={...t,...e};if(gr(e)&&gr(t))for(const r in e)gr(e[r])&&r in t&&gr(t[r])?n[r]=ee(t[r],e[r]):n[r]=gr(e[r])?Za(e[r]):e[r];return n}function rj(t){return t}const HS={root:{base:"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700",flush:{off:"rounded-lg border",on:"border-b"}},content:{base:"p-5 first:rounded-t-lg last:rounded-b-lg dark:bg-gray-900"},title:{arrow:{base:"h-6 w-6 shrink-0",open:{off:"",on:"rotate-180"}},base:"flex w-full items-center justify-between p-5 text-left font-medium text-gray-500 first:rounded-t-lg last:rounded-b-lg dark:text-gray-400",flush:{off:"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800",on:"bg-transparent dark:bg-transparent"},heading:"",open:{off:"",on:"bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-white"}}},BS={base:"flex flex-col gap-2 p-4 text-sm",borderAccent:"border-t-4",closeButton:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2",icon:"h-5 w-5",color:{info:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",gray:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white",failure:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",success:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",warning:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",red:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",green:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",yellow:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",blue:"bg-blue-100 text-blue-500 hover:bg-blue-200 focus:ring-blue-400 dark:bg-blue-200 dark:text-blue-600 dark:hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",pink:"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300",lime:"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300",dark:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300",indigo:"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300",purple:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300",teal:"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300",light:"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white"}},color:{info:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",gray:"border-gray-500 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300",failure:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",success:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",warning:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",red:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",green:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",yellow:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",blue:"border-blue-500 bg-blue-100 text-blue-700 dark:bg-blue-200 dark:text-blue-800",cyan:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",pink:"border-pink-500 bg-pink-100 text-pink-700 dark:bg-pink-200 dark:text-pink-800",lime:"border-lime-500 bg-lime-100 text-lime-700 dark:bg-lime-200 dark:text-lime-800",dark:"border-gray-600 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:text-gray-300",indigo:"border-indigo-500 bg-indigo-100 text-indigo-700 dark:bg-indigo-200 dark:text-indigo-800",purple:"border-purple-500 bg-purple-100 text-purple-700 dark:bg-purple-200 dark:text-purple-800",teal:"border-teal-500 bg-teal-100 text-teal-700 dark:bg-teal-200 dark:text-teal-800",light:"border-gray-400 bg-gray-50 text-gray-600 dark:bg-gray-500 dark:text-gray-200"},icon:"mr-3 inline h-5 w-5 flex-shrink-0",rounded:"rounded-lg",wrapper:"flex items-center"},YS={root:{base:"flex items-center justify-center space-x-4 rounded",bordered:"p-1 ring-2",rounded:"rounded-full",color:{dark:"ring-gray-800 dark:ring-gray-800",failure:"ring-red-500 dark:ring-red-700",gray:"ring-gray-500 dark:ring-gray-400",info:"ring-cyan-400 dark:ring-cyan-800",light:"ring-gray-300 dark:ring-gray-500",purple:"ring-purple-500 dark:ring-purple-600",success:"ring-green-500 dark:ring-green-500",warning:"ring-yellow-300 dark:ring-yellow-500",pink:"ring-pink-500 dark:ring-pink-500"},img:{base:"rounded",off:"relative overflow-hidden bg-gray-100 dark:bg-gray-600",on:"",placeholder:"absolute -bottom-1 h-auto w-auto text-gray-400"},size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-20 w-20",xl:"h-36 w-36"},stacked:"ring-2 ring-gray-300 dark:ring-gray-500",statusPosition:{"bottom-left":"-bottom-1 -left-1","bottom-center":"-bottom-1","bottom-right":"-bottom-1 -right-1","top-left":"-left-1 -top-1","top-center":"-top-1","top-right":"-right-1 -top-1","center-right":"-right-1",center:"","center-left":"-left-1"},status:{away:"bg-yellow-400",base:"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800",busy:"bg-red-400",offline:"bg-gray-400",online:"bg-green-400"},initials:{text:"font-medium text-gray-600 dark:text-gray-300",base:"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 dark:bg-gray-600"}},group:{base:"flex -space-x-4"},groupCounter:{base:"relative flex h-10 w-10 items-center justify-center rounded-full bg-gray-700 text-xs font-medium text-white ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500"}},VS={root:{base:"flex h-fit items-center gap-1 font-semibold",color:{info:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-800 dark:group-hover:bg-cyan-300",gray:"bg-gray-100 text-gray-800 group-hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:group-hover:bg-gray-600",failure:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",success:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",warning:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300",indigo:"bg-indigo-100 text-indigo-800 group-hover:bg-indigo-200 dark:bg-indigo-200 dark:text-indigo-900 dark:group-hover:bg-indigo-300",purple:"bg-purple-100 text-purple-800 group-hover:bg-purple-200 dark:bg-purple-200 dark:text-purple-900 dark:group-hover:bg-purple-300",pink:"bg-pink-100 text-pink-800 group-hover:bg-pink-200 dark:bg-pink-200 dark:text-pink-900 dark:group-hover:bg-pink-300",blue:"bg-blue-100 text-blue-800 group-hover:bg-blue-200 dark:bg-blue-200 dark:text-blue-900 dark:group-hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-900 dark:group-hover:bg-cyan-300",dark:"bg-gray-600 text-gray-100 group-hover:bg-gray-500 dark:bg-gray-900 dark:text-gray-200 dark:group-hover:bg-gray-700",light:"bg-gray-200 text-gray-800 group-hover:bg-gray-300 dark:bg-gray-400 dark:text-gray-900 dark:group-hover:bg-gray-500",green:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",lime:"bg-lime-100 text-lime-800 group-hover:bg-lime-200 dark:bg-lime-200 dark:text-lime-900 dark:group-hover:bg-lime-300",red:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",teal:"bg-teal-100 text-teal-800 group-hover:bg-teal-200 dark:bg-teal-200 dark:text-teal-900 dark:group-hover:bg-teal-300",yellow:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300"},href:"group",size:{xs:"p-1 text-xs",sm:"p-1.5 text-sm"}},icon:{off:"rounded px-2 py-0.5",on:"rounded-full p-1.5",size:{xs:"h-3 w-3",sm:"h-3.5 w-3.5"}}},US={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},XS={root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}},GS={base:"group relative flex items-stretch justify-center p-0.5 text-center font-medium transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] focus:z-10 focus:outline-none",fullSized:"w-full",color:{dark:"border border-transparent bg-gray-800 text-white focus:ring-4 focus:ring-gray-300 enabled:hover:bg-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-gray-800 dark:enabled:hover:bg-gray-700",failure:"border border-transparent bg-red-700 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-800 dark:bg-red-600 dark:focus:ring-red-900 dark:enabled:hover:bg-red-700",gray:":ring-cyan-700 border border-gray-200 bg-white text-gray-900 focus:text-cyan-700 focus:ring-4 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 dark:border-gray-600 dark:bg-transparent dark:text-gray-400 dark:enabled:hover:bg-gray-700 dark:enabled:hover:text-white",info:"border border-transparent bg-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-800 dark:bg-cyan-600 dark:focus:ring-cyan-800 dark:enabled:hover:bg-cyan-700",light:"border border-gray-300 bg-white text-gray-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-600 dark:text-white dark:focus:ring-gray-700 dark:enabled:hover:border-gray-700 dark:enabled:hover:bg-gray-700",purple:"border border-transparent bg-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-purple-800 dark:bg-purple-600 dark:focus:ring-purple-900 dark:enabled:hover:bg-purple-700",success:"border border-transparent bg-green-700 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-800 dark:bg-green-600 dark:focus:ring-green-800 dark:enabled:hover:bg-green-700",warning:"border border-transparent bg-yellow-400 text-white focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-500 dark:focus:ring-yellow-900",blue:"border border-transparent bg-blue-700 text-white focus:ring-4 focus:ring-blue-300 enabled:hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"border border-cyan-300 bg-white text-cyan-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-100 dark:border-cyan-600 dark:bg-cyan-600 dark:text-white dark:focus:ring-cyan-700 dark:enabled:hover:border-cyan-700 dark:enabled:hover:bg-cyan-700",green:"border border-green-300 bg-white text-green-900 focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-100 dark:border-green-600 dark:bg-green-600 dark:text-white dark:focus:ring-green-700 dark:enabled:hover:border-green-700 dark:enabled:hover:bg-green-700",indigo:"border border-indigo-300 bg-white text-indigo-900 focus:ring-4 focus:ring-indigo-300 enabled:hover:bg-indigo-100 dark:border-indigo-600 dark:bg-indigo-600 dark:text-white dark:focus:ring-indigo-700 dark:enabled:hover:border-indigo-700 dark:enabled:hover:bg-indigo-700",lime:"border border-lime-300 bg-white text-lime-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-lime-100 dark:border-lime-600 dark:bg-lime-600 dark:text-white dark:focus:ring-lime-700 dark:enabled:hover:border-lime-700 dark:enabled:hover:bg-lime-700",pink:"border border-pink-300 bg-white text-pink-900 focus:ring-4 focus:ring-pink-300 enabled:hover:bg-pink-100 dark:border-pink-600 dark:bg-pink-600 dark:text-white dark:focus:ring-pink-700 dark:enabled:hover:border-pink-700 dark:enabled:hover:bg-pink-700",red:"border border-red-300 bg-white text-red-900 focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-100 dark:border-red-600 dark:bg-red-600 dark:text-white dark:focus:ring-red-700 dark:enabled:hover:border-red-700 dark:enabled:hover:bg-red-700",teal:"border border-teal-300 bg-white text-teal-900 focus:ring-4 focus:ring-teal-300 enabled:hover:bg-teal-100 dark:border-teal-600 dark:bg-teal-600 dark:text-white dark:focus:ring-teal-700 dark:enabled:hover:border-teal-700 dark:enabled:hover:bg-teal-700",yellow:"border border-yellow-300 bg-white text-yellow-900 focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-100 dark:border-yellow-600 dark:bg-yellow-600 dark:text-white dark:focus:ring-yellow-700 dark:enabled:hover:border-yellow-700 dark:enabled:hover:bg-yellow-700"},disabled:"cursor-not-allowed opacity-50",isProcessing:"cursor-wait",spinnerSlot:"absolute top-0 flex h-full items-center",spinnerLeftPosition:{xs:"left-2",sm:"left-3",md:"left-4",lg:"left-5",xl:"left-6"},gradient:{cyan:"bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800",failure:"bg-gradient-to-r from-red-400 via-red-500 to-red-600 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-gradient-to-br dark:focus:ring-red-800",info:"bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800 ",lime:"bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 text-gray-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-gradient-to-br dark:focus:ring-lime-800",pink:"bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 text-white focus:ring-4 focus:ring-pink-300 enabled:hover:bg-gradient-to-br dark:focus:ring-pink-800",purple:"bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-gradient-to-br dark:focus:ring-purple-800",success:"bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-gradient-to-br dark:focus:ring-green-800",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 text-white focus:ring-4 focus:ring-teal-300 enabled:hover:bg-gradient-to-br dark:focus:ring-teal-800"},gradientDuoTone:{cyanToBlue:"bg-gradient-to-r from-cyan-500 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",greenToBlue:"bg-gradient-to-br from-green-400 to-cyan-600 text-white focus:ring-4 focus:ring-green-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-green-800",pinkToOrange:"bg-gradient-to-br from-pink-500 to-orange-400 text-white focus:ring-4 focus:ring-pink-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-pink-800",purpleToBlue:"bg-gradient-to-br from-purple-600 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",purpleToPink:"bg-gradient-to-r from-purple-500 to-pink-500 text-white focus:ring-4 focus:ring-purple-200 enabled:hover:bg-gradient-to-l dark:focus:ring-purple-800",redToYellow:"bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 text-gray-900 focus:ring-4 focus:ring-red-100 enabled:hover:bg-gradient-to-bl dark:focus:ring-red-400",tealToLime:"bg-gradient-to-r from-teal-200 to-lime-200 text-gray-900 focus:ring-4 focus:ring-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 dark:focus:ring-teal-700"},inner:{base:"flex items-stretch transition-all duration-200",position:{none:"",start:"rounded-r-none",middle:"rounded-none",end:"rounded-l-none"},outline:"border border-transparent",isProcessingPadding:{xs:"pl-8",sm:"pl-10",md:"pl-12",lg:"pl-16",xl:"pl-20"}},label:"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800",outline:{color:{gray:"border border-gray-900 dark:border-white",default:"border-0",light:""},off:"",on:"flex w-full justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-enabled:group-hover:bg-opacity-0 group-enabled:group-hover:text-inherit dark:bg-gray-900 dark:text-white",pill:{off:"rounded-md",on:"rounded-full"}},pill:{off:"rounded-lg",on:"rounded-full"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-2.5 text-base",xl:"px-6 py-3 text-base"}},KS={base:"inline-flex",position:{none:"",start:"rounded-r-none focus:ring-2",middle:"rounded-none border-l-0 pl-0 focus:ring-2",end:"rounded-l-none border-l-0 pl-0 focus:ring-2"}},QS={root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}},JS={root:{base:"relative h-full w-full",leftControl:"absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none",rightControl:"absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none"},indicators:{active:{off:"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800",on:"bg-white dark:bg-gray-800"},base:"h-3 w-3 rounded-full",wrapper:"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3"},item:{base:"absolute left-1/2 top-1/2 block w-full -translate-x-1/2 -translate-y-1/2",wrapper:{off:"w-full flex-shrink-0 transform cursor-default snap-center",on:"w-full flex-shrink-0 transform cursor-grab snap-center"}},control:{base:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10",icon:"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6"},scrollContainer:{base:"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg",snap:"snap-x"}},ZS={root:{base:"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700",color:{default:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-gray-800 dark:focus:ring-cyan-600",dark:"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800",failure:"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900",gray:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",info:"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800",light:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",purple:"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600",success:"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800",warning:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400",blue:"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700",cyan:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600",green:"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600",indigo:"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700",pink:"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600",red:"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600",teal:"text-teal-600 focus:ring-teal-600 dark:ring-offset-teal-600 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400"}}},qS={root:{base:"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",icon:"h-5 w-5"}},$S={root:{base:"relative"},popup:{root:{base:"absolute top-10 z-50 block pt-2",inline:"relative top-0 z-auto",inner:"inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700"},header:{base:"",title:"px-2 py-3 text-center font-semibold text-gray-900 dark:text-white",selectors:{base:"mb-2 flex justify-between",button:{base:"rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",prev:"",next:"",view:""}}},view:{base:"p-1"},footer:{base:"mt-2 flex space-x-2",button:{base:"w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-cyan-300",today:"bg-cyan-700 text-white hover:bg-cyan-800 dark:bg-cyan-600 dark:hover:bg-cyan-700",clear:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600"}}},views:{days:{header:{base:"mb-1 grid grid-cols-7",title:"h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400"},items:{base:"grid w-64 grid-cols-7",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600 ",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},months:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},years:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},decades:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}}}},eO={arrowIcon:"ml-2 h-4 w-4",content:"py-1 focus:outline-none",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"},tO={root:{base:"flex"},field:{base:"relative w-full",input:{base:"block w-full overflow-hidden rounded-lg border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},nO={input:{default:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"}},success:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"}},error:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"}}},label:{default:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"}},success:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500"}},error:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500"}}},helperText:{default:"mt-2 text-xs text-gray-600 dark:text-gray-400",success:"mt-2 text-xs text-green-600 dark:text-green-400",error:"mt-2 text-xs text-red-600 dark:text-red-400"}},rO={root:{base:"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between",container:"w-full p-6",bgDark:"bg-gray-800"},groupLink:{base:"flex flex-wrap text-sm text-gray-500 dark:text-white",link:{base:"me-4 last:mr-0 md:mr-6",href:"hover:underline"},col:"flex-col space-y-4"},icon:{base:"text-gray-500 dark:hover:text-white",size:"h-5 w-5"},title:{base:"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white"},divider:{base:"my-6 w-full border-gray-200 dark:border-gray-700 sm:mx-auto lg:my-8"},copyright:{base:"text-sm text-gray-500 dark:text-gray-400 sm:text-center",href:"ml-1 hover:underline",span:"ml-1"},brand:{base:"mb-4 flex items-center sm:mb-0",img:"mr-3 h-8",span:"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white"}},aO={root:{base:"mt-2 text-sm",colors:{gray:"text-gray-500 dark:text-gray-400",info:"text-cyan-700 dark:text-cyan-800",success:"text-green-600 dark:text-green-500",failure:"text-red-600 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600"}}},sO={root:{base:"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100",icon:"inline-block"}},oO={root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},iO={root:{base:"list-inside space-y-1 text-gray-500 dark:text-gray-400",ordered:{off:"list-disc",on:"list-decimal"},horizontal:"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0",unstyled:"list-none",nested:"mt-2 ps-5"},item:{withIcon:{off:"",on:"flex items-center"},icon:"me-2 h-3.5 w-3.5 flex-shrink-0"}},lO={root:{base:"list-none rounded-lg border border-gray-200 bg-white text-left text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white"},item:{base:"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0",link:{base:"flex w-full items-center border-b border-gray-200 px-4 py-2 dark:border-gray-600",active:{off:"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500",on:"bg-cyan-700 text-white dark:bg-gray-800"},disabled:{off:"",on:"cursor-not-allowed bg-gray-100 text-gray-900 hover:bg-gray-100 hover:text-gray-900 focus:text-gray-900"},href:{off:"",on:""},icon:"mr-2 h-4 w-4 fill-current"}}},cO={root:{base:"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full p-4 md:h-auto",inner:"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700"},body:{base:"flex-1 overflow-auto p-6",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600",popup:"border-b-0 p-2",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}},dO={root:{base:"bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",rounded:{on:"rounded",off:""},bordered:{on:"border",off:""},inner:{base:"mx-auto flex flex-wrap items-center justify-between",fluid:{on:"",off:"container"}}},brand:{base:"flex items-center"},collapse:{base:"w-full md:block md:w-auto",list:"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium",hidden:{on:"hidden",off:""}},link:{base:"block py-2 pl-3 pr-4 md:p-0",active:{on:"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700",off:"border-b border-gray-100 text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white"},disabled:{on:"text-gray-400 hover:cursor-not-allowed dark:text-gray-600",off:""}},toggle:{base:"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden",icon:"h-6 w-6 shrink-0"}},uO={base:"",layout:{table:{base:"text-sm text-gray-700 dark:text-gray-400",span:"font-semibold text-gray-900 dark:text-white"}},pages:{base:"xs:mt-0 mt-2 inline-flex items-center -space-x-px",showIcon:"inline-flex",previous:{base:"ml-0 rounded-l-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},next:{base:"rounded-r-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},selector:{base:"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",active:"bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",disabled:"cursor-not-allowed opacity-50"}}},fO={base:"absolute z-20 inline-block w-max max-w-[100vw] bg-white outline-none border border-gray-200 rounded-lg shadow-sm dark:border-gray-600 dark:bg-gray-800",content:"z-10 overflow-hidden rounded-[7px]",arrow:{base:"absolute h-2 w-2 z-0 rotate-45 mix-blend-lighten bg-white border border-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:mix-blend-color",placement:"-4px"}},hO={base:"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",label:"mb-1 flex justify-between font-medium dark:text-white",bar:"space-x-2 rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100",color:{dark:"bg-gray-600 dark:bg-gray-300",blue:"bg-blue-600",red:"bg-red-600 dark:bg-red-500",green:"bg-green-600 dark:bg-green-500",yellow:"bg-yellow-400",indigo:"bg-indigo-600 dark:bg-indigo-500",purple:"bg-purple-600 dark:bg-purple-500",cyan:"bg-cyan-600",gray:"bg-gray-500",lime:"bg-lime-600",pink:"bg-pink-500",teal:"bg-teal-600"},size:{sm:"h-1.5",md:"h-2.5",lg:"h-4",xl:"h-6"}},gO={root:{base:"h-4 w-4 border border-gray-300 text-cyan-600 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600"}},mO={root:{base:"flex"},field:{base:"relative w-full",input:{base:"w-full cursor-pointer appearance-none rounded-lg bg-gray-200 dark:bg-gray-700",sizes:{sm:"h-1",md:"h-2",lg:"h-3"}}}},pO={root:{base:"flex items-center"},star:{empty:"text-gray-300 dark:text-gray-500",filled:"text-yellow-400",sizes:{sm:"h-5 w-5",md:"h-7 w-7",lg:"h-10 w-10"}}},bO={base:"flex items-center",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500",progress:{base:"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700",fill:"h-5 rounded bg-yellow-400",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500"}},yO={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},vO={root:{base:"h-full",collapsed:{on:"w-16",off:"w-64"},inner:"h-full overflow-y-auto overflow-x-hidden rounded bg-gray-50 px-3 py-4 dark:bg-gray-800"},collapse:{button:"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",icon:{base:"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",open:{off:"",on:"text-gray-900"}},label:{base:"ml-3 flex-1 whitespace-nowrap text-left",icon:{base:"h-6 w-6 transition delay-0 ease-in-out",open:{on:"rotate-180",off:""}}},list:"space-y-2 py-2"},cta:{base:"mt-6 rounded-lg bg-gray-100 p-4 dark:bg-gray-700",color:{blue:"bg-cyan-50 dark:bg-cyan-900",dark:"bg-dark-50 dark:bg-dark-900",failure:"bg-red-50 dark:bg-red-900",gray:"bg-alternative-50 dark:bg-alternative-900",green:"bg-green-50 dark:bg-green-900",light:"bg-light-50 dark:bg-light-900",red:"bg-red-50 dark:bg-red-900",purple:"bg-purple-50 dark:bg-purple-900",success:"bg-green-50 dark:bg-green-900",yellow:"bg-yellow-50 dark:bg-yellow-900",warning:"bg-yellow-50 dark:bg-yellow-900"}},item:{base:"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",active:"bg-gray-100 dark:bg-gray-700",collapsed:{insideCollapse:"group w-full pl-8 transition duration-75",noIcon:"font-bold"},content:{base:"flex-1 whitespace-nowrap px-3"},icon:{base:"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",active:"text-gray-700 dark:text-gray-100"},label:"",listItem:""},items:{base:""},itemGroup:{base:"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700"},logo:{base:"mb-5 flex items-center pl-2.5",collapsed:{on:"hidden",off:"self-center whitespace-nowrap text-xl font-semibold dark:text-white"},img:"mr-3 h-6 sm:h-7"}},xO={base:"inline animate-spin text-gray-200",color:{failure:"fill-red-600",gray:"fill-gray-600",info:"fill-cyan-600",pink:"fill-pink-600",purple:"fill-purple-600",success:"fill-green-500",warning:"fill-yellow-400"},light:{off:{base:"dark:text-gray-600",color:{failure:"",gray:"dark:fill-gray-300",info:"",pink:"",purple:"",success:"",warning:""}},on:{base:"",color:{failure:"",gray:"",info:"",pink:"",purple:"",success:"",warning:""}}},size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},wO={root:{base:"w-full text-left text-sm text-gray-500 dark:text-gray-400",shadow:"absolute left-0 top-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-black",wrapper:"relative"},body:{base:"group/body",cell:{base:"px-6 py-4 group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg"}},head:{base:"group/head text-xs uppercase text-gray-700 dark:text-gray-400",cell:{base:"bg-gray-50 px-6 py-3 group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg dark:bg-gray-700"}},row:{base:"group/row",hovered:"hover:bg-gray-50 dark:hover:bg-gray-600",striped:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700"}},kO={base:"flex flex-col gap-2",tablist:{base:"flex text-center",styles:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none focus:ring-4 focus:ring-cyan-300 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",styles:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"active rounded-t-lg border-b-2 border-cyan-600 text-cyan-600 dark:border-cyan-500 dark:text-cyan-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-cyan-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"active rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",styles:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"},_O={base:"block w-full rounded-lg border text-sm disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}},SO={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},OO={root:{direction:{horizontal:"sm:flex",vertical:"relative border-l border-gray-200 dark:border-gray-700"}},item:{root:{horizontal:"relative mb-6 sm:mb-0",vertical:"mb-10 ml-6"},content:{root:{base:"mt-3 sm:pr-8"},body:{base:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},time:{base:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"},title:{base:"text-lg font-semibold text-gray-900 dark:text-white"}},point:{horizontal:"flex items-center",line:"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex",marker:{base:{horizontal:"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700",vertical:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"},icon:{base:"h-3 w-3 text-cyan-600 dark:text-cyan-300",wrapper:"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900"}},vertical:""}}},DO={root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},MO={root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4",md:"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5",lg:"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6"}}},CO={target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"},EO={theme:Za({accordion:HS,alert:BS,avatar:YS,badge:VS,blockquote:US,breadcrumb:XS,button:GS,buttonGroup:KS,card:QS,carousel:JS,checkbox:ZS,datepicker:$S,darkThemeToggle:qS,dropdown:eO,fileInput:tO,floatingLabel:nO,footer:rO,helperText:aO,kbd:sO,label:oO,listGroup:lO,list:iO,modal:cO,navbar:dO,pagination:uO,popover:fO,progress:hO,radio:gO,rangeSlider:mO,rating:pO,ratingAdvanced:bO,select:yO,textInput:SO,textarea:_O,toggleSwitch:MO,sidebar:vO,spinner:xO,table:wO,tabs:kO,timeline:OO,toast:DO,tooltip:CO})};function de(){return Za(EO.theme)}const pg=_.createContext(void 0);function bg(){const t=_.useContext(pg);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const yg=({children:t,className:e,theme:n={},...r})=>{const{isOpen:a}=bg(),s=ee(de().accordion.content,n);return p.jsx("div",{className:V(s.base,e),"data-testid":"flowbite-accordion-content",hidden:!a,...r,children:t})},vg=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,a]=_.useState(e.isOpen),s=n?{...e,isOpen:r,setOpen:()=>a(!r)}:e;return p.jsx(pg.Provider,{value:s,children:t})},xg=({as:t="h2",children:e,className:n,theme:r={},...a})=>{const{arrowIcon:s,flush:o,isOpen:i,setOpen:l}=bg(),c=()=>typeof l<"u"&&l(),d=ee(de().accordion.title,r);return p.jsxs("button",{className:V(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...a,children:[p.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),s&&p.jsx(s,{"aria-hidden":!0,className:V(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},wg=({alwaysOpen:t=!1,arrowIcon:e=rg,children:n,flush:r=!1,collapseAll:a=!1,className:s,theme:o={},...i})=>{const[l,c]=_.useState(a?-1:0),d=_.useMemo(()=>_.Children.map(n,(f,h)=>_.cloneElement(f,{alwaysOpen:t,arrowIcon:e,flush:r,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,n,r,l]),u=ee(de().accordion.root,o);return p.jsx("div",{className:V(u.base,u.flush[r?"on":"off"],s),"data-testid":"flowbite-accordion",...i,children:d})};wg.displayName="Accordion",vg.displayName="Accordion.Panel",xg.displayName="Accordion.Title",yg.displayName="Accordion.Content",Object.assign(wg,{Panel:vg,Title:xg,Content:yg});const kg=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().avatar.group,n);return p.jsx("div",{"data-testid":"avatar-group-element",className:V(a.base,e),...r,children:t})};kg.displayName="Avatar.Group";const _g=({className:t,href:e,theme:n={},total:r,...a})=>{const s=ee(de().avatar.groupCounter,n);return p.jsxs("a",{href:e,className:V(s.base,t),...a,children:["+",r]})};_g.displayName="Avatar.GroupCounter";const Sg=({alt:t="",bordered:e=!1,children:n,className:r,color:a="light",img:s,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const g=ee(de().avatar,f),m=V(g.root.img.base,e&&g.root.bordered,e&&g.root.color[a],i&&g.root.rounded,c&&g.root.stacked,g.root.img.on,g.root.size[l]),b={className:V(m,g.root.img.on),"data-testid":"flowbite-avatar-img"};return p.jsxs("div",{className:V(g.root.base,r),"data-testid":"flowbite-avatar",...h,children:[p.jsxs("div",{className:"relative",children:[s?typeof s=="string"?p.jsx("img",{alt:t,src:s,...b}):s({alt:t,...b}):o?p.jsx("div",{className:V(g.root.img.off,g.root.initials.base,c&&g.root.stacked,e&&g.root.bordered,e&&g.root.color[a],g.root.size[l],i&&g.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:p.jsx("span",{className:V(g.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):p.jsx("div",{className:V(m,g.root.img.off),"data-testid":"flowbite-avatar-img",children:p.jsx("svg",{className:g.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),d&&p.jsx("span",{"data-testid":"flowbite-avatar-status",className:V(g.root.status.base,g.root.status[d],g.root.statusPosition[u])})]}),n&&p.jsx("div",{children:n})]})};Sg.displayName="Avatar",Object.assign(Sg,{Group:kg,Counter:_g});const Og=({children:t,color:e="info",href:n,icon:r,size:a="xs",className:s,theme:o={},...i})=>{const l=ee(de().badge,o),c=()=>p.jsxs("span",{className:V(l.root.base,l.root.color[e],l.root.size[a],l.icon[r?"on":"off"],s),"data-testid":"flowbite-badge",...i,children:[r&&p.jsx(r,{"aria-hidden":!0,className:l.icon.size[a],"data-testid":"flowbite-badge-icon"}),t&&p.jsx("span",{children:t})]});return n?p.jsx("a",{className:l.root.href,href:n,children:p.jsx(c,{})}):p.jsx(c,{})};Og.displayName="Badge";const Dg=({className:t,color:e="info",light:n,size:r="md",theme:a={},...s})=>{const o=ee(de().spinner,a);return p.jsx("span",{role:"status",...s,children:p.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:V(o.base,o.color[e],o.light[n?"on":"off"].base,o.light[n?"on":"off"].color[e],o.size[r],t),children:[p.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),p.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})};Dg.displayName="Spinner";const Fl=_.forwardRef(({children:t,as:e,href:n,type:r="button",...a},s)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:s,href:n,type:r,...a},t)});Fl.displayName="ButtonBaseComponent";const Mg=(t,e,n)=>_.Children.map(t,(r,a)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:Mg(r.props.children,e,n),positionInGroup:Cg(a,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:Cg(a,_.Children.count(t))}):r),Cg=(t,e)=>t===0?"start":t===e-1?"end":"middle",Eg=({children:t,className:e,outline:n,pill:r,theme:a={},...s})=>{const o=_.useMemo(()=>Mg(t,n,r),[t,n,r]),i=ee(de().buttonGroup,a);return p.jsx("div",{className:V(i.base,e),role:"group",...s,children:o})};Eg.displayName="Button.Group";const Tg=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:a,isProcessing:s=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:g="md",theme:m={},...b},w)=>{const{buttonGroup:y,button:k}=de(),v=ee(k,m),x=b;return p.jsx(Fl,{ref:w,disabled:r,className:V(v.base,r&&v.disabled,!l&&!c&&v.color[n],l&&!c&&v.gradientDuoTone[l],!l&&c&&v.gradient[c],u&&(v.outline.color[n]??v.outline.color.default),v.pill[f?"on":"off"],a&&v.fullSized,y.position[h],e),...x,children:p.jsx("span",{className:V(v.inner.base,v.outline[u?"on":"off"],v.outline.pill[u&&f?"on":"off"],v.size[g],u&&!v.outline.color[n]&&v.inner.outline,s&&v.isProcessing,s&&v.inner.isProcessingPadding[g],v.inner.position[h]),children:p.jsxs(p.Fragment,{children:[s&&p.jsx("span",{className:V(v.spinnerSlot,v.spinnerLeftPosition[g]),children:i||p.jsx(Dg,{size:g})}),typeof t<"u"?t:p.jsx("span",{"data-testid":"flowbite-button-label",className:V(v.label),children:s?o:d})]})})})});Tg.displayName="Button";const Pg=Object.assign(Tg,{Group:Eg}),Ng=({children:t,...e})=>{const n=r=>{const s=r.target.closest('[role="banner"]');s==null||s.remove()};return p.jsx(Pg,{onClick:n,...e,children:t})};Ng.displayName="Banner.CollapseButton";const Ig=({children:t,...e})=>p.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});Ig.displayName="Banner",Object.assign(Ig,{CollapseButton:Ng});const jg=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:a={},...s},o)=>{const i=typeof n<"u",l=i?"a":"span",c=ee(de().breadcrumb.item,a);return p.jsxs("li",{className:V(c.base,e),...s,children:[p.jsx(lg,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),p.jsxs(l,{ref:o,className:c.href[i?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[r&&p.jsx(r,{"aria-hidden":!0,className:c.icon}),t]})]})});jg.displayName="Breadcrumb.Item";const Rg=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().breadcrumb.root,n);return p.jsx("nav",{"aria-label":"Breadcrumb",className:V(a.base,e),...r,children:p.jsx("ol",{className:a.list,children:t})})};Rg.displayName="Breadcrumb",Object.assign(Rg,{Item:jg});var TO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ag(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Fg(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var Lg={exports:{}};/*!
|
|
480
|
+
`])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ye.button,function(t){var e=t.level,n=t.disabled,r=t.active,a=t.collapsed,s=t.rtl;return $h({level:e,disabled:n,active:r,collapsed:a,rtl:s})},function(t){var e=t.buttonStyles;return e}),Z_=function(t,e){var n,r=t.children,a=t.icon,s=t.className,o=t.prefix,i=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,f=t.component,h=t.rootStyles,g=lr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),m=_.useContext(po),b=_.useContext(mo),w=b.collapsed,y=b.rtl,k=b.transitionDuration,v=Sl().menuItemStyles,x=function(P){if(v){var C={level:m,disabled:u,active:c,isSubmenu:!1},T=v.root,E=v.button,H=v.label,D=v.icon,F=v.prefix,M=v.suffix;switch(P){case"root":return typeof T=="function"?T(C):T;case"button":return typeof E=="function"?E(C):E;case"label":return typeof H=="function"?H(C):H;case"icon":return typeof D=="function"?D(C):D;case"prefix":return typeof F=="function"?F(C):F;case"suffix":return typeof M=="function"?M(C):M;default:return}}},S=(n={},n[ye.active]=c,n[ye.disabled]=u,n);return _.createElement(J_,{ref:e,className:qe(ye.menuItemRoot,S,s),menuItemStyles:x("root"),level:m,collapsed:w,rtl:y,disabled:u,active:c,buttonStyles:x("button"),rootStyles:h},_.createElement(eg,Ot({className:qe(ye.button,S),"data-testid":"".concat(ye.button,"-test-id"),component:f,tabIndex:0},g),a&&_.createElement(Sh,{rtl:y,className:qe(ye.icon,S),rootStyles:x("icon")},a),o&&_.createElement(Dh,{collapsed:w,transitionDuration:k,firstLevel:m===0,className:qe(ye.prefix,S),rtl:y,rootStyles:x("prefix")},o),_.createElement(kh,{className:qe(ye.label,S),rootStyles:x("label")},r),i&&_.createElement(Ch,{collapsed:w,transitionDuration:k,firstLevel:m===0,className:qe(ye.suffix,S),rootStyles:x("suffix")},i)))},q_=_.forwardRef(Z_),ng;const jl=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:a,description:s}=t;return p.jsxs("div",{className:`${Rd.Card} border px-3.5 py-7`,ref:e,children:[n?p.jsx(In,{classIm:"mx-auto",src:n,alt:a,width:74,height:74}):r?p.jsx("div",{className:"flex justify-center",children:p.jsx(r,{size:74})}):null,p.jsx("h3",{className:"my-3 font-bold",children:a}),p.jsx("p",{children:s})]})});jl.displayName="Card";const $_=({logo:t,menuItems:e,campaignCards:n=[],onLogout:r,defaultCollapsed:a=!1,background:s="linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",textColor:o="#ffffff",className:i=""})=>{const[l,c]=_.useState(a),[d,u]=_.useState(null),[f,h]=_.useState(new Set),[g,m]=_.useState(null),[b,w]=_.useState(null),y=e.filter(D=>D.position!=="bottom"),k=e.filter(D=>D.position==="bottom"),v=(D,F="text-xl")=>typeof D=="string"?p.jsx("img",{src:D,style:{width:"25px",height:"25px"}}):D?_.createElement(D,{className:F}):null,x=(D=!1,F=!1)=>({background:l?"transparent":F?"#FFFFFF55":D?"#FFFFFF22":"#FFFFFF33",color:o,borderRadius:D?"15px":"20px",button:{width:l?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:l?"0 0.25rem":"0 0.5rem",color:o,fontSize:D?"0.9rem":void 0}}),S=(D,F=!1,M)=>{const R=F?b===D.id:g===D.id;return p.jsx(q_,{icon:v(D.icon,F?"":"text-2xl"),onClick:()=>E(D,M),className:"mx-auto mb-1 rounded-md",rootStyles:x(F,R),children:F?D.label:p.jsxs("div",{className:"flex items-center justify-between w-full",children:[p.jsx("span",{children:D.label}),D.subMenuSection&&p.jsx(nk,{className:`text-lg transition-transform duration-200 ${f.has(D.id)?"rotate-180":""}`})]})},D.id)},P=D=>D.map(F=>p.jsxs("div",{children:[S(F),F.subMenuSection&&f.has(F.id)&&p.jsx("div",{className:"ml-4 space-y-1 mb-2",children:F.subMenuSection.items.map(M=>S(M,!0,F.id))})]},F.id)),C=()=>{d||c(!1)},T=()=>{d||(c(!0),h(new Set))},E=(D,F)=>{if(F?(m(F),w(D.id)):(m(D.id),w(null)),D.subMenuSection){const M=new Set(f);M.has(D.id)?M.delete(D.id):M.add(D.id),h(M)}else D.action?D.action():D.href&&(D.target==="_blank"?window.open(D.href,"_blank"):window.location.href=D.href)},H=D=>{D.action?D.action():D.href&&(D.target==="_blank"?window.open(D.href,"_blank"):window.location.href=D.href)};return p.jsx("div",{className:`fixed left-0 top-0 z-40 h-full ${i}`,children:p.jsxs("div",{className:"flex flex-col",onMouseEnter:C,onMouseLeave:T,children:[p.jsxs(M1,{collapsed:l,rootStyles:{[`.${We.container}`]:{background:s,color:o,height:"100vh",display:"flex",flexDirection:"column",width:l?"95px":"275px"}},children:[p.jsx("div",{className:`${l?"mx-auto":""} mb-2 mt-5 px-2`,children:p.jsx("a",{href:"/",children:p.jsx(In,{classIm:"mx-3",src:t.src,alt:t.alt,width:t.width,height:t.height})})}),p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs(T1,{className:"flex-1 mx-5",children:[p.jsx("div",{className:"flex flex-col",children:P(y)}),p.jsx("div",{className:"mt-20",children:P(k)})]}),r&&p.jsx("div",{className:"w-full cursor-pointer py-4 px-7 mt-auto",children:p.jsx("div",{className:"flex rounded-2xl p-2",style:{background:l?"transparent":"#FFFFFF1A",float:l?"none":"right",width:l?"":"fit-content"},onClick:r,children:p.jsx("button",{style:{color:o},children:p.jsx("img",{src:"https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg",width:"25px",height:"25px",alt:"logout"})})})})]})]}),n.length>0&&p.jsx(Of,{width:"40%",isOpen:d==="campaigns",onClose:()=>u(null),children:p.jsxs("div",{className:"flex flex-col px-10 pb-5",children:[p.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),p.jsx("div",{className:"flex",children:n.map(D=>p.jsx("div",{className:"flex w-3/6 p-2",onClick:()=>H(D),children:p.jsx(jl,{imageUrl:D.imageUrl,title:D.title,description:D.description})},D.id))})]})})]})})};function eS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"},child:[]}]})(t)}function tS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function nS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"},child:[]}]})(t)}function rg(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function ag(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function sg(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"},child:[]}]})(t)}function rS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"},child:[]}]})(t)}function og(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h5a1 1 0 000-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM13 16a1 1 0 102 0v-5.586l1.293 1.293a1 1 0 001.414-1.414l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 101.414 1.414L13 10.414V16z"},child:[]}]})(t)}function aS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M3 3a1 1 0 000 2h11a1 1 0 100-2H3zM3 7a1 1 0 000 2h7a1 1 0 100-2H3zM3 11a1 1 0 100 2h4a1 1 0 100-2H3zM15 8a1 1 0 10-2 0v5.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L15 13.586V8z"},child:[]}]})(t)}function sS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"},child:[]}]})(t)}function oS(t){return je({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}function ig(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},child:[]}]})(t)}function iS(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},child:[]}]})(t)}function lg(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},child:[]}]})(t)}function lS(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"},child:[]}]})(t)}function cS(t){return je({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},child:[]}]})(t)}const Rl="-";function dS(t){const e=fS(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function a(o){const i=o.split(Rl);return i[0]===""&&i.length!==1&&i.shift(),cg(i,e)||uS(o)}function s(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function cg(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),a=r?cg(t.slice(1),r):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(Rl);return(o=e.validators.find(({validator:i})=>i(s)))==null?void 0:o.classGroupId}const dg=/^\[(.+)\]$/;function uS(t){if(dg.test(t)){const e=dg.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function fS(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return gS(Object.entries(t.classGroups),n).forEach(([s,o])=>{Al(o,r,s,e)}),r}function Al(t,e,n,r){t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:ug(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(hS(a)){Al(a(r),e,n,r);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,o])=>{Al(o,ug(e,s),n,r)})})}function ug(t,e){let n=t;return e.split(Rl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function hS(t){return t.isThemeGetter}function gS(t,e){return e?t.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,i])=>[e+o,i])):s);return[n,a]}):t}function mS(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function a(s,o){n.set(s,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return a(s,o),o},set(s,o){n.has(s)?n.set(s,o):a(s,o)}}}const fg="!";function pS(t){const e=t.separator,n=e.length===1,r=e[0],a=e.length;return function(o){const i=[];let l=0,c=0,d;for(let m=0;m<o.length;m++){let b=o[m];if(l===0){if(b===r&&(n||o.slice(m,m+a)===e)){i.push(o.slice(c,m)),c=m+a;continue}if(b==="/"){d=m;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),f=u.startsWith(fg),h=f?u.substring(1):u,g=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}}}function bS(t){if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e}function yS(t){return{cache:mS(t.cacheSize),splitModifiers:pS(t),...dS(t)}}const vS=/\s+/;function xS(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:a}=e,s=new Set;return t.trim().split(vS).map(o=>{const{modifiers:i,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=n(o);let u=r(d?c.substring(0,d):c),f=!!d;if(!u){if(!d)return{isTailwindClass:!1,originalClassName:o};if(u=r(c),!u)return{isTailwindClass:!1,originalClassName:o};f=!1}const h=bS(i).join(":");return{isTailwindClass:!0,modifierId:l?h+fg:h,classGroupId:u,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:i,classGroupId:l,hasPostfixModifier:c}=o,d=i+l;return s.has(d)?!1:(s.add(d),a(l,c).forEach(u=>s.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function wS(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=hg(e))&&(r&&(r+=" "),r+=n);return r}function hg(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=hg(t[r]))&&(n&&(n+=" "),n+=e);return n}function kS(t,...e){let n,r,a,s=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=yS(c),r=n.cache.get,a=n.cache.set,s=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=xS(l,n);return a(l,d),d}return function(){return s(wS.apply(null,arguments))}}function Ne(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const gg=/^\[(?:([a-z-]+):)?(.+)\]$/i,_S=/^\d+\/\d+$/,SS=new Set(["px","full","screen"]),OS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,DS=/\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$/,MS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,CS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ES=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function xn(t){return hr(t)||SS.has(t)||_S.test(t)}function zn(t){return Br(t,"length",FS)}function hr(t){return!!t&&!Number.isNaN(Number(t))}function ko(t){return Br(t,"number",hr)}function Qa(t){return!!t&&Number.isInteger(Number(t))}function TS(t){return t.endsWith("%")&&hr(t.slice(0,-1))}function fe(t){return gg.test(t)}function Hn(t){return OS.test(t)}const PS=new Set(["length","size","percentage"]);function NS(t){return Br(t,PS,mg)}function IS(t){return Br(t,"position",mg)}const jS=new Set(["image","url"]);function RS(t){return Br(t,jS,WS)}function AS(t){return Br(t,"",LS)}function Ja(){return!0}function Br(t,e,n){const r=gg.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function FS(t){return DS.test(t)&&!MS.test(t)}function mg(){return!1}function LS(t){return CS.test(t)}function WS(t){return ES.test(t)}function zS(){const t=Ne("colors"),e=Ne("spacing"),n=Ne("blur"),r=Ne("brightness"),a=Ne("borderColor"),s=Ne("borderRadius"),o=Ne("borderSpacing"),i=Ne("borderWidth"),l=Ne("contrast"),c=Ne("grayscale"),d=Ne("hueRotate"),u=Ne("invert"),f=Ne("gap"),h=Ne("gradientColorStops"),g=Ne("gradientColorStopPositions"),m=Ne("inset"),b=Ne("margin"),w=Ne("opacity"),y=Ne("padding"),k=Ne("saturate"),v=Ne("scale"),x=Ne("sepia"),S=Ne("skew"),P=Ne("space"),C=Ne("translate"),T=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",fe,e],D=()=>[fe,e],F=()=>["",xn,zn],M=()=>["auto",hr,fe],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],K=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",fe],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[hr,ko],A=()=>[hr,fe];return{cacheSize:500,separator:":",theme:{colors:[Ja],spacing:[xn,zn],blur:["none","",Hn,fe],brightness:B(),borderColor:[t],borderRadius:["none","","full",Hn,fe],borderSpacing:D(),borderWidth:F(),contrast:B(),grayscale:q(),hueRotate:A(),invert:q(),gap:D(),gradientColorStops:[t],gradientColorStopPositions:[TS,zn],inset:H(),margin:H(),opacity:B(),padding:D(),saturate:B(),scale:B(),sepia:q(),skew:A(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[Hn]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),fe]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qa,fe]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Qa,fe]}],"grid-cols":[{"grid-cols":[Ja]}],"col-start-end":[{col:["auto",{span:["full",Qa,fe]},fe]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Ja]}],"row-start-end":[{row:["auto",{span:[Qa,fe]},fe]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,e]}],"min-w":[{"min-w":[fe,e,"min","max","fit"]}],"max-w":[{"max-w":[fe,e,"none","full","min","max","fit","prose",{screen:[Hn]},Hn]}],h:[{h:[fe,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Hn,zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ko]}],"font-family":[{font:[Ja]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",fe]}],"line-clamp":[{"line-clamp":["none",hr,ko]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xn,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xn,zn]}],"underline-offset":[{"underline-offset":["auto",xn,fe]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),IS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",NS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},RS]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:z()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[xn,fe]}],"outline-w":[{outline:[xn,zn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[xn,zn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Hn,AS]}],"shadow-color":[{shadow:[Ja]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":X()}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Hn,fe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[k]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fe]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Qa,fe]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fe]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",fe]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[xn,zn,ko]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const V=kS(zS);function gr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Za(t){if(!gr(t))return t;const e={};for(const n in t)e[n]=Za(t[n]);return e}function ee(t,e){if(gr(e)&&Object.keys(e).length===0)return Za({...t,...e});const n={...t,...e};if(gr(e)&&gr(t))for(const r in e)gr(e[r])&&r in t&&gr(t[r])?n[r]=ee(t[r],e[r]):n[r]=gr(e[r])?Za(e[r]):e[r];return n}function rj(t){return t}const HS={root:{base:"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700",flush:{off:"rounded-lg border",on:"border-b"}},content:{base:"p-5 first:rounded-t-lg last:rounded-b-lg dark:bg-gray-900"},title:{arrow:{base:"h-6 w-6 shrink-0",open:{off:"",on:"rotate-180"}},base:"flex w-full items-center justify-between p-5 text-left font-medium text-gray-500 first:rounded-t-lg last:rounded-b-lg dark:text-gray-400",flush:{off:"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800",on:"bg-transparent dark:bg-transparent"},heading:"",open:{off:"",on:"bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-white"}}},BS={base:"flex flex-col gap-2 p-4 text-sm",borderAccent:"border-t-4",closeButton:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2",icon:"h-5 w-5",color:{info:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",gray:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white",failure:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",success:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",warning:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",red:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",green:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",yellow:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",blue:"bg-blue-100 text-blue-500 hover:bg-blue-200 focus:ring-blue-400 dark:bg-blue-200 dark:text-blue-600 dark:hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",pink:"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300",lime:"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300",dark:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300",indigo:"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300",purple:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300",teal:"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300",light:"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white"}},color:{info:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",gray:"border-gray-500 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300",failure:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",success:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",warning:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",red:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",green:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",yellow:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",blue:"border-blue-500 bg-blue-100 text-blue-700 dark:bg-blue-200 dark:text-blue-800",cyan:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",pink:"border-pink-500 bg-pink-100 text-pink-700 dark:bg-pink-200 dark:text-pink-800",lime:"border-lime-500 bg-lime-100 text-lime-700 dark:bg-lime-200 dark:text-lime-800",dark:"border-gray-600 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:text-gray-300",indigo:"border-indigo-500 bg-indigo-100 text-indigo-700 dark:bg-indigo-200 dark:text-indigo-800",purple:"border-purple-500 bg-purple-100 text-purple-700 dark:bg-purple-200 dark:text-purple-800",teal:"border-teal-500 bg-teal-100 text-teal-700 dark:bg-teal-200 dark:text-teal-800",light:"border-gray-400 bg-gray-50 text-gray-600 dark:bg-gray-500 dark:text-gray-200"},icon:"mr-3 inline h-5 w-5 flex-shrink-0",rounded:"rounded-lg",wrapper:"flex items-center"},YS={root:{base:"flex items-center justify-center space-x-4 rounded",bordered:"p-1 ring-2",rounded:"rounded-full",color:{dark:"ring-gray-800 dark:ring-gray-800",failure:"ring-red-500 dark:ring-red-700",gray:"ring-gray-500 dark:ring-gray-400",info:"ring-cyan-400 dark:ring-cyan-800",light:"ring-gray-300 dark:ring-gray-500",purple:"ring-purple-500 dark:ring-purple-600",success:"ring-green-500 dark:ring-green-500",warning:"ring-yellow-300 dark:ring-yellow-500",pink:"ring-pink-500 dark:ring-pink-500"},img:{base:"rounded",off:"relative overflow-hidden bg-gray-100 dark:bg-gray-600",on:"",placeholder:"absolute -bottom-1 h-auto w-auto text-gray-400"},size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-20 w-20",xl:"h-36 w-36"},stacked:"ring-2 ring-gray-300 dark:ring-gray-500",statusPosition:{"bottom-left":"-bottom-1 -left-1","bottom-center":"-bottom-1","bottom-right":"-bottom-1 -right-1","top-left":"-left-1 -top-1","top-center":"-top-1","top-right":"-right-1 -top-1","center-right":"-right-1",center:"","center-left":"-left-1"},status:{away:"bg-yellow-400",base:"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800",busy:"bg-red-400",offline:"bg-gray-400",online:"bg-green-400"},initials:{text:"font-medium text-gray-600 dark:text-gray-300",base:"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 dark:bg-gray-600"}},group:{base:"flex -space-x-4"},groupCounter:{base:"relative flex h-10 w-10 items-center justify-center rounded-full bg-gray-700 text-xs font-medium text-white ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500"}},VS={root:{base:"flex h-fit items-center gap-1 font-semibold",color:{info:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-800 dark:group-hover:bg-cyan-300",gray:"bg-gray-100 text-gray-800 group-hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:group-hover:bg-gray-600",failure:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",success:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",warning:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300",indigo:"bg-indigo-100 text-indigo-800 group-hover:bg-indigo-200 dark:bg-indigo-200 dark:text-indigo-900 dark:group-hover:bg-indigo-300",purple:"bg-purple-100 text-purple-800 group-hover:bg-purple-200 dark:bg-purple-200 dark:text-purple-900 dark:group-hover:bg-purple-300",pink:"bg-pink-100 text-pink-800 group-hover:bg-pink-200 dark:bg-pink-200 dark:text-pink-900 dark:group-hover:bg-pink-300",blue:"bg-blue-100 text-blue-800 group-hover:bg-blue-200 dark:bg-blue-200 dark:text-blue-900 dark:group-hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-900 dark:group-hover:bg-cyan-300",dark:"bg-gray-600 text-gray-100 group-hover:bg-gray-500 dark:bg-gray-900 dark:text-gray-200 dark:group-hover:bg-gray-700",light:"bg-gray-200 text-gray-800 group-hover:bg-gray-300 dark:bg-gray-400 dark:text-gray-900 dark:group-hover:bg-gray-500",green:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",lime:"bg-lime-100 text-lime-800 group-hover:bg-lime-200 dark:bg-lime-200 dark:text-lime-900 dark:group-hover:bg-lime-300",red:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",teal:"bg-teal-100 text-teal-800 group-hover:bg-teal-200 dark:bg-teal-200 dark:text-teal-900 dark:group-hover:bg-teal-300",yellow:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300"},href:"group",size:{xs:"p-1 text-xs",sm:"p-1.5 text-sm"}},icon:{off:"rounded px-2 py-0.5",on:"rounded-full p-1.5",size:{xs:"h-3 w-3",sm:"h-3.5 w-3.5"}}},US={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},XS={root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}},GS={base:"group relative flex items-stretch justify-center p-0.5 text-center font-medium transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] focus:z-10 focus:outline-none",fullSized:"w-full",color:{dark:"border border-transparent bg-gray-800 text-white focus:ring-4 focus:ring-gray-300 enabled:hover:bg-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-gray-800 dark:enabled:hover:bg-gray-700",failure:"border border-transparent bg-red-700 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-800 dark:bg-red-600 dark:focus:ring-red-900 dark:enabled:hover:bg-red-700",gray:":ring-cyan-700 border border-gray-200 bg-white text-gray-900 focus:text-cyan-700 focus:ring-4 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 dark:border-gray-600 dark:bg-transparent dark:text-gray-400 dark:enabled:hover:bg-gray-700 dark:enabled:hover:text-white",info:"border border-transparent bg-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-800 dark:bg-cyan-600 dark:focus:ring-cyan-800 dark:enabled:hover:bg-cyan-700",light:"border border-gray-300 bg-white text-gray-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-600 dark:text-white dark:focus:ring-gray-700 dark:enabled:hover:border-gray-700 dark:enabled:hover:bg-gray-700",purple:"border border-transparent bg-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-purple-800 dark:bg-purple-600 dark:focus:ring-purple-900 dark:enabled:hover:bg-purple-700",success:"border border-transparent bg-green-700 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-800 dark:bg-green-600 dark:focus:ring-green-800 dark:enabled:hover:bg-green-700",warning:"border border-transparent bg-yellow-400 text-white focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-500 dark:focus:ring-yellow-900",blue:"border border-transparent bg-blue-700 text-white focus:ring-4 focus:ring-blue-300 enabled:hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"border border-cyan-300 bg-white text-cyan-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-100 dark:border-cyan-600 dark:bg-cyan-600 dark:text-white dark:focus:ring-cyan-700 dark:enabled:hover:border-cyan-700 dark:enabled:hover:bg-cyan-700",green:"border border-green-300 bg-white text-green-900 focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-100 dark:border-green-600 dark:bg-green-600 dark:text-white dark:focus:ring-green-700 dark:enabled:hover:border-green-700 dark:enabled:hover:bg-green-700",indigo:"border border-indigo-300 bg-white text-indigo-900 focus:ring-4 focus:ring-indigo-300 enabled:hover:bg-indigo-100 dark:border-indigo-600 dark:bg-indigo-600 dark:text-white dark:focus:ring-indigo-700 dark:enabled:hover:border-indigo-700 dark:enabled:hover:bg-indigo-700",lime:"border border-lime-300 bg-white text-lime-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-lime-100 dark:border-lime-600 dark:bg-lime-600 dark:text-white dark:focus:ring-lime-700 dark:enabled:hover:border-lime-700 dark:enabled:hover:bg-lime-700",pink:"border border-pink-300 bg-white text-pink-900 focus:ring-4 focus:ring-pink-300 enabled:hover:bg-pink-100 dark:border-pink-600 dark:bg-pink-600 dark:text-white dark:focus:ring-pink-700 dark:enabled:hover:border-pink-700 dark:enabled:hover:bg-pink-700",red:"border border-red-300 bg-white text-red-900 focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-100 dark:border-red-600 dark:bg-red-600 dark:text-white dark:focus:ring-red-700 dark:enabled:hover:border-red-700 dark:enabled:hover:bg-red-700",teal:"border border-teal-300 bg-white text-teal-900 focus:ring-4 focus:ring-teal-300 enabled:hover:bg-teal-100 dark:border-teal-600 dark:bg-teal-600 dark:text-white dark:focus:ring-teal-700 dark:enabled:hover:border-teal-700 dark:enabled:hover:bg-teal-700",yellow:"border border-yellow-300 bg-white text-yellow-900 focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-100 dark:border-yellow-600 dark:bg-yellow-600 dark:text-white dark:focus:ring-yellow-700 dark:enabled:hover:border-yellow-700 dark:enabled:hover:bg-yellow-700"},disabled:"cursor-not-allowed opacity-50",isProcessing:"cursor-wait",spinnerSlot:"absolute top-0 flex h-full items-center",spinnerLeftPosition:{xs:"left-2",sm:"left-3",md:"left-4",lg:"left-5",xl:"left-6"},gradient:{cyan:"bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800",failure:"bg-gradient-to-r from-red-400 via-red-500 to-red-600 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-gradient-to-br dark:focus:ring-red-800",info:"bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800 ",lime:"bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 text-gray-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-gradient-to-br dark:focus:ring-lime-800",pink:"bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 text-white focus:ring-4 focus:ring-pink-300 enabled:hover:bg-gradient-to-br dark:focus:ring-pink-800",purple:"bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-gradient-to-br dark:focus:ring-purple-800",success:"bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-gradient-to-br dark:focus:ring-green-800",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 text-white focus:ring-4 focus:ring-teal-300 enabled:hover:bg-gradient-to-br dark:focus:ring-teal-800"},gradientDuoTone:{cyanToBlue:"bg-gradient-to-r from-cyan-500 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",greenToBlue:"bg-gradient-to-br from-green-400 to-cyan-600 text-white focus:ring-4 focus:ring-green-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-green-800",pinkToOrange:"bg-gradient-to-br from-pink-500 to-orange-400 text-white focus:ring-4 focus:ring-pink-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-pink-800",purpleToBlue:"bg-gradient-to-br from-purple-600 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",purpleToPink:"bg-gradient-to-r from-purple-500 to-pink-500 text-white focus:ring-4 focus:ring-purple-200 enabled:hover:bg-gradient-to-l dark:focus:ring-purple-800",redToYellow:"bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 text-gray-900 focus:ring-4 focus:ring-red-100 enabled:hover:bg-gradient-to-bl dark:focus:ring-red-400",tealToLime:"bg-gradient-to-r from-teal-200 to-lime-200 text-gray-900 focus:ring-4 focus:ring-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 dark:focus:ring-teal-700"},inner:{base:"flex items-stretch transition-all duration-200",position:{none:"",start:"rounded-r-none",middle:"rounded-none",end:"rounded-l-none"},outline:"border border-transparent",isProcessingPadding:{xs:"pl-8",sm:"pl-10",md:"pl-12",lg:"pl-16",xl:"pl-20"}},label:"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800",outline:{color:{gray:"border border-gray-900 dark:border-white",default:"border-0",light:""},off:"",on:"flex w-full justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-enabled:group-hover:bg-opacity-0 group-enabled:group-hover:text-inherit dark:bg-gray-900 dark:text-white",pill:{off:"rounded-md",on:"rounded-full"}},pill:{off:"rounded-lg",on:"rounded-full"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-2.5 text-base",xl:"px-6 py-3 text-base"}},KS={base:"inline-flex",position:{none:"",start:"rounded-r-none focus:ring-2",middle:"rounded-none border-l-0 pl-0 focus:ring-2",end:"rounded-l-none border-l-0 pl-0 focus:ring-2"}},QS={root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}},JS={root:{base:"relative h-full w-full",leftControl:"absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none",rightControl:"absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none"},indicators:{active:{off:"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800",on:"bg-white dark:bg-gray-800"},base:"h-3 w-3 rounded-full",wrapper:"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3"},item:{base:"absolute left-1/2 top-1/2 block w-full -translate-x-1/2 -translate-y-1/2",wrapper:{off:"w-full flex-shrink-0 transform cursor-default snap-center",on:"w-full flex-shrink-0 transform cursor-grab snap-center"}},control:{base:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10",icon:"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6"},scrollContainer:{base:"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg",snap:"snap-x"}},ZS={root:{base:"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700",color:{default:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-gray-800 dark:focus:ring-cyan-600",dark:"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800",failure:"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900",gray:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",info:"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800",light:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",purple:"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600",success:"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800",warning:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400",blue:"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700",cyan:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600",green:"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600",indigo:"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700",pink:"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600",red:"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600",teal:"text-teal-600 focus:ring-teal-600 dark:ring-offset-teal-600 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400"}}},qS={root:{base:"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",icon:"h-5 w-5"}},$S={root:{base:"relative"},popup:{root:{base:"absolute top-10 z-50 block pt-2",inline:"relative top-0 z-auto",inner:"inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700"},header:{base:"",title:"px-2 py-3 text-center font-semibold text-gray-900 dark:text-white",selectors:{base:"mb-2 flex justify-between",button:{base:"rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",prev:"",next:"",view:""}}},view:{base:"p-1"},footer:{base:"mt-2 flex space-x-2",button:{base:"w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-cyan-300",today:"bg-cyan-700 text-white hover:bg-cyan-800 dark:bg-cyan-600 dark:hover:bg-cyan-700",clear:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600"}}},views:{days:{header:{base:"mb-1 grid grid-cols-7",title:"h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400"},items:{base:"grid w-64 grid-cols-7",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600 ",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},months:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},years:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},decades:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}}}},eO={arrowIcon:"ml-2 h-4 w-4",content:"py-1 focus:outline-none",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"},tO={root:{base:"flex"},field:{base:"relative w-full",input:{base:"block w-full overflow-hidden rounded-lg border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},nO={input:{default:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"}},success:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"}},error:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"}}},label:{default:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"}},success:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500"}},error:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500"}}},helperText:{default:"mt-2 text-xs text-gray-600 dark:text-gray-400",success:"mt-2 text-xs text-green-600 dark:text-green-400",error:"mt-2 text-xs text-red-600 dark:text-red-400"}},rO={root:{base:"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between",container:"w-full p-6",bgDark:"bg-gray-800"},groupLink:{base:"flex flex-wrap text-sm text-gray-500 dark:text-white",link:{base:"me-4 last:mr-0 md:mr-6",href:"hover:underline"},col:"flex-col space-y-4"},icon:{base:"text-gray-500 dark:hover:text-white",size:"h-5 w-5"},title:{base:"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white"},divider:{base:"my-6 w-full border-gray-200 dark:border-gray-700 sm:mx-auto lg:my-8"},copyright:{base:"text-sm text-gray-500 dark:text-gray-400 sm:text-center",href:"ml-1 hover:underline",span:"ml-1"},brand:{base:"mb-4 flex items-center sm:mb-0",img:"mr-3 h-8",span:"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white"}},aO={root:{base:"mt-2 text-sm",colors:{gray:"text-gray-500 dark:text-gray-400",info:"text-cyan-700 dark:text-cyan-800",success:"text-green-600 dark:text-green-500",failure:"text-red-600 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600"}}},sO={root:{base:"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100",icon:"inline-block"}},oO={root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},iO={root:{base:"list-inside space-y-1 text-gray-500 dark:text-gray-400",ordered:{off:"list-disc",on:"list-decimal"},horizontal:"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0",unstyled:"list-none",nested:"mt-2 ps-5"},item:{withIcon:{off:"",on:"flex items-center"},icon:"me-2 h-3.5 w-3.5 flex-shrink-0"}},lO={root:{base:"list-none rounded-lg border border-gray-200 bg-white text-left text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white"},item:{base:"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0",link:{base:"flex w-full items-center border-b border-gray-200 px-4 py-2 dark:border-gray-600",active:{off:"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500",on:"bg-cyan-700 text-white dark:bg-gray-800"},disabled:{off:"",on:"cursor-not-allowed bg-gray-100 text-gray-900 hover:bg-gray-100 hover:text-gray-900 focus:text-gray-900"},href:{off:"",on:""},icon:"mr-2 h-4 w-4 fill-current"}}},cO={root:{base:"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full p-4 md:h-auto",inner:"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700"},body:{base:"flex-1 overflow-auto p-6",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600",popup:"border-b-0 p-2",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}},dO={root:{base:"bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",rounded:{on:"rounded",off:""},bordered:{on:"border",off:""},inner:{base:"mx-auto flex flex-wrap items-center justify-between",fluid:{on:"",off:"container"}}},brand:{base:"flex items-center"},collapse:{base:"w-full md:block md:w-auto",list:"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium",hidden:{on:"hidden",off:""}},link:{base:"block py-2 pl-3 pr-4 md:p-0",active:{on:"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700",off:"border-b border-gray-100 text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white"},disabled:{on:"text-gray-400 hover:cursor-not-allowed dark:text-gray-600",off:""}},toggle:{base:"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden",icon:"h-6 w-6 shrink-0"}},uO={base:"",layout:{table:{base:"text-sm text-gray-700 dark:text-gray-400",span:"font-semibold text-gray-900 dark:text-white"}},pages:{base:"xs:mt-0 mt-2 inline-flex items-center -space-x-px",showIcon:"inline-flex",previous:{base:"ml-0 rounded-l-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},next:{base:"rounded-r-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},selector:{base:"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",active:"bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",disabled:"cursor-not-allowed opacity-50"}}},fO={base:"absolute z-20 inline-block w-max max-w-[100vw] bg-white outline-none border border-gray-200 rounded-lg shadow-sm dark:border-gray-600 dark:bg-gray-800",content:"z-10 overflow-hidden rounded-[7px]",arrow:{base:"absolute h-2 w-2 z-0 rotate-45 mix-blend-lighten bg-white border border-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:mix-blend-color",placement:"-4px"}},hO={base:"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",label:"mb-1 flex justify-between font-medium dark:text-white",bar:"space-x-2 rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100",color:{dark:"bg-gray-600 dark:bg-gray-300",blue:"bg-blue-600",red:"bg-red-600 dark:bg-red-500",green:"bg-green-600 dark:bg-green-500",yellow:"bg-yellow-400",indigo:"bg-indigo-600 dark:bg-indigo-500",purple:"bg-purple-600 dark:bg-purple-500",cyan:"bg-cyan-600",gray:"bg-gray-500",lime:"bg-lime-600",pink:"bg-pink-500",teal:"bg-teal-600"},size:{sm:"h-1.5",md:"h-2.5",lg:"h-4",xl:"h-6"}},gO={root:{base:"h-4 w-4 border border-gray-300 text-cyan-600 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600"}},mO={root:{base:"flex"},field:{base:"relative w-full",input:{base:"w-full cursor-pointer appearance-none rounded-lg bg-gray-200 dark:bg-gray-700",sizes:{sm:"h-1",md:"h-2",lg:"h-3"}}}},pO={root:{base:"flex items-center"},star:{empty:"text-gray-300 dark:text-gray-500",filled:"text-yellow-400",sizes:{sm:"h-5 w-5",md:"h-7 w-7",lg:"h-10 w-10"}}},bO={base:"flex items-center",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500",progress:{base:"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700",fill:"h-5 rounded bg-yellow-400",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500"}},yO={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},vO={root:{base:"h-full",collapsed:{on:"w-16",off:"w-64"},inner:"h-full overflow-y-auto overflow-x-hidden rounded bg-gray-50 px-3 py-4 dark:bg-gray-800"},collapse:{button:"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",icon:{base:"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",open:{off:"",on:"text-gray-900"}},label:{base:"ml-3 flex-1 whitespace-nowrap text-left",icon:{base:"h-6 w-6 transition delay-0 ease-in-out",open:{on:"rotate-180",off:""}}},list:"space-y-2 py-2"},cta:{base:"mt-6 rounded-lg bg-gray-100 p-4 dark:bg-gray-700",color:{blue:"bg-cyan-50 dark:bg-cyan-900",dark:"bg-dark-50 dark:bg-dark-900",failure:"bg-red-50 dark:bg-red-900",gray:"bg-alternative-50 dark:bg-alternative-900",green:"bg-green-50 dark:bg-green-900",light:"bg-light-50 dark:bg-light-900",red:"bg-red-50 dark:bg-red-900",purple:"bg-purple-50 dark:bg-purple-900",success:"bg-green-50 dark:bg-green-900",yellow:"bg-yellow-50 dark:bg-yellow-900",warning:"bg-yellow-50 dark:bg-yellow-900"}},item:{base:"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",active:"bg-gray-100 dark:bg-gray-700",collapsed:{insideCollapse:"group w-full pl-8 transition duration-75",noIcon:"font-bold"},content:{base:"flex-1 whitespace-nowrap px-3"},icon:{base:"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",active:"text-gray-700 dark:text-gray-100"},label:"",listItem:""},items:{base:""},itemGroup:{base:"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700"},logo:{base:"mb-5 flex items-center pl-2.5",collapsed:{on:"hidden",off:"self-center whitespace-nowrap text-xl font-semibold dark:text-white"},img:"mr-3 h-6 sm:h-7"}},xO={base:"inline animate-spin text-gray-200",color:{failure:"fill-red-600",gray:"fill-gray-600",info:"fill-cyan-600",pink:"fill-pink-600",purple:"fill-purple-600",success:"fill-green-500",warning:"fill-yellow-400"},light:{off:{base:"dark:text-gray-600",color:{failure:"",gray:"dark:fill-gray-300",info:"",pink:"",purple:"",success:"",warning:""}},on:{base:"",color:{failure:"",gray:"",info:"",pink:"",purple:"",success:"",warning:""}}},size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},wO={root:{base:"w-full text-left text-sm text-gray-500 dark:text-gray-400",shadow:"absolute left-0 top-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-black",wrapper:"relative"},body:{base:"group/body",cell:{base:"px-6 py-4 group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg"}},head:{base:"group/head text-xs uppercase text-gray-700 dark:text-gray-400",cell:{base:"bg-gray-50 px-6 py-3 group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg dark:bg-gray-700"}},row:{base:"group/row",hovered:"hover:bg-gray-50 dark:hover:bg-gray-600",striped:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700"}},kO={base:"flex flex-col gap-2",tablist:{base:"flex text-center",styles:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none focus:ring-4 focus:ring-cyan-300 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",styles:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"active rounded-t-lg border-b-2 border-cyan-600 text-cyan-600 dark:border-cyan-500 dark:text-cyan-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-cyan-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"active rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",styles:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"},_O={base:"block w-full rounded-lg border text-sm disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}},SO={base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},OO={root:{direction:{horizontal:"sm:flex",vertical:"relative border-l border-gray-200 dark:border-gray-700"}},item:{root:{horizontal:"relative mb-6 sm:mb-0",vertical:"mb-10 ml-6"},content:{root:{base:"mt-3 sm:pr-8"},body:{base:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},time:{base:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"},title:{base:"text-lg font-semibold text-gray-900 dark:text-white"}},point:{horizontal:"flex items-center",line:"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex",marker:{base:{horizontal:"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700",vertical:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"},icon:{base:"h-3 w-3 text-cyan-600 dark:text-cyan-300",wrapper:"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900"}},vertical:""}}},DO={root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},MO={root:{base:"group relative flex items-center rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ml-3 text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"rounded-full border group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 after:absolute after:left-[2px] after:top-[2px] after:h-4 after:w-4",md:"h-6 w-11 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5",lg:"h-7 w-14 after:absolute after:left-[4px] after:top-0.5 after:h-6 after:w-6"}}},CO={target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"},EO={theme:Za({accordion:HS,alert:BS,avatar:YS,badge:VS,blockquote:US,breadcrumb:XS,button:GS,buttonGroup:KS,card:QS,carousel:JS,checkbox:ZS,datepicker:$S,darkThemeToggle:qS,dropdown:eO,fileInput:tO,floatingLabel:nO,footer:rO,helperText:aO,kbd:sO,label:oO,listGroup:lO,list:iO,modal:cO,navbar:dO,pagination:uO,popover:fO,progress:hO,radio:gO,rangeSlider:mO,rating:pO,ratingAdvanced:bO,select:yO,textInput:SO,textarea:_O,toggleSwitch:MO,sidebar:vO,spinner:xO,table:wO,tabs:kO,timeline:OO,toast:DO,tooltip:CO})};function de(){return Za(EO.theme)}const pg=_.createContext(void 0);function bg(){const t=_.useContext(pg);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const yg=({children:t,className:e,theme:n={},...r})=>{const{isOpen:a}=bg(),s=ee(de().accordion.content,n);return p.jsx("div",{className:V(s.base,e),"data-testid":"flowbite-accordion-content",hidden:!a,...r,children:t})},vg=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,a]=_.useState(e.isOpen),s=n?{...e,isOpen:r,setOpen:()=>a(!r)}:e;return p.jsx(pg.Provider,{value:s,children:t})},xg=({as:t="h2",children:e,className:n,theme:r={},...a})=>{const{arrowIcon:s,flush:o,isOpen:i,setOpen:l}=bg(),c=()=>typeof l<"u"&&l(),d=ee(de().accordion.title,r);return p.jsxs("button",{className:V(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...a,children:[p.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),s&&p.jsx(s,{"aria-hidden":!0,className:V(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},wg=({alwaysOpen:t=!1,arrowIcon:e=rg,children:n,flush:r=!1,collapseAll:a=!1,className:s,theme:o={},...i})=>{const[l,c]=_.useState(a?-1:0),d=_.useMemo(()=>_.Children.map(n,(f,h)=>_.cloneElement(f,{alwaysOpen:t,arrowIcon:e,flush:r,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,n,r,l]),u=ee(de().accordion.root,o);return p.jsx("div",{className:V(u.base,u.flush[r?"on":"off"],s),"data-testid":"flowbite-accordion",...i,children:d})};wg.displayName="Accordion",vg.displayName="Accordion.Panel",xg.displayName="Accordion.Title",yg.displayName="Accordion.Content",Object.assign(wg,{Panel:vg,Title:xg,Content:yg});const kg=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().avatar.group,n);return p.jsx("div",{"data-testid":"avatar-group-element",className:V(a.base,e),...r,children:t})};kg.displayName="Avatar.Group";const _g=({className:t,href:e,theme:n={},total:r,...a})=>{const s=ee(de().avatar.groupCounter,n);return p.jsxs("a",{href:e,className:V(s.base,t),...a,children:["+",r]})};_g.displayName="Avatar.GroupCounter";const Sg=({alt:t="",bordered:e=!1,children:n,className:r,color:a="light",img:s,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const g=ee(de().avatar,f),m=V(g.root.img.base,e&&g.root.bordered,e&&g.root.color[a],i&&g.root.rounded,c&&g.root.stacked,g.root.img.on,g.root.size[l]),b={className:V(m,g.root.img.on),"data-testid":"flowbite-avatar-img"};return p.jsxs("div",{className:V(g.root.base,r),"data-testid":"flowbite-avatar",...h,children:[p.jsxs("div",{className:"relative",children:[s?typeof s=="string"?p.jsx("img",{alt:t,src:s,...b}):s({alt:t,...b}):o?p.jsx("div",{className:V(g.root.img.off,g.root.initials.base,c&&g.root.stacked,e&&g.root.bordered,e&&g.root.color[a],g.root.size[l],i&&g.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:p.jsx("span",{className:V(g.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):p.jsx("div",{className:V(m,g.root.img.off),"data-testid":"flowbite-avatar-img",children:p.jsx("svg",{className:g.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),d&&p.jsx("span",{"data-testid":"flowbite-avatar-status",className:V(g.root.status.base,g.root.status[d],g.root.statusPosition[u])})]}),n&&p.jsx("div",{children:n})]})};Sg.displayName="Avatar",Object.assign(Sg,{Group:kg,Counter:_g});const Og=({children:t,color:e="info",href:n,icon:r,size:a="xs",className:s,theme:o={},...i})=>{const l=ee(de().badge,o),c=()=>p.jsxs("span",{className:V(l.root.base,l.root.color[e],l.root.size[a],l.icon[r?"on":"off"],s),"data-testid":"flowbite-badge",...i,children:[r&&p.jsx(r,{"aria-hidden":!0,className:l.icon.size[a],"data-testid":"flowbite-badge-icon"}),t&&p.jsx("span",{children:t})]});return n?p.jsx("a",{className:l.root.href,href:n,children:p.jsx(c,{})}):p.jsx(c,{})};Og.displayName="Badge";const Dg=({className:t,color:e="info",light:n,size:r="md",theme:a={},...s})=>{const o=ee(de().spinner,a);return p.jsx("span",{role:"status",...s,children:p.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:V(o.base,o.color[e],o.light[n?"on":"off"].base,o.light[n?"on":"off"].color[e],o.size[r],t),children:[p.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),p.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})};Dg.displayName="Spinner";const Fl=_.forwardRef(({children:t,as:e,href:n,type:r="button",...a},s)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:s,href:n,type:r,...a},t)});Fl.displayName="ButtonBaseComponent";const Mg=(t,e,n)=>_.Children.map(t,(r,a)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:Mg(r.props.children,e,n),positionInGroup:Cg(a,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:Cg(a,_.Children.count(t))}):r),Cg=(t,e)=>t===0?"start":t===e-1?"end":"middle",Eg=({children:t,className:e,outline:n,pill:r,theme:a={},...s})=>{const o=_.useMemo(()=>Mg(t,n,r),[t,n,r]),i=ee(de().buttonGroup,a);return p.jsx("div",{className:V(i.base,e),role:"group",...s,children:o})};Eg.displayName="Button.Group";const Tg=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:a,isProcessing:s=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:g="md",theme:m={},...b},w)=>{const{buttonGroup:y,button:k}=de(),v=ee(k,m),x=b;return p.jsx(Fl,{ref:w,disabled:r,className:V(v.base,r&&v.disabled,!l&&!c&&v.color[n],l&&!c&&v.gradientDuoTone[l],!l&&c&&v.gradient[c],u&&(v.outline.color[n]??v.outline.color.default),v.pill[f?"on":"off"],a&&v.fullSized,y.position[h],e),...x,children:p.jsx("span",{className:V(v.inner.base,v.outline[u?"on":"off"],v.outline.pill[u&&f?"on":"off"],v.size[g],u&&!v.outline.color[n]&&v.inner.outline,s&&v.isProcessing,s&&v.inner.isProcessingPadding[g],v.inner.position[h]),children:p.jsxs(p.Fragment,{children:[s&&p.jsx("span",{className:V(v.spinnerSlot,v.spinnerLeftPosition[g]),children:i||p.jsx(Dg,{size:g})}),typeof t<"u"?t:p.jsx("span",{"data-testid":"flowbite-button-label",className:V(v.label),children:s?o:d})]})})})});Tg.displayName="Button";const Pg=Object.assign(Tg,{Group:Eg}),Ng=({children:t,...e})=>{const n=r=>{const s=r.target.closest('[role="banner"]');s==null||s.remove()};return p.jsx(Pg,{onClick:n,...e,children:t})};Ng.displayName="Banner.CollapseButton";const Ig=({children:t,...e})=>p.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});Ig.displayName="Banner",Object.assign(Ig,{CollapseButton:Ng});const jg=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:a={},...s},o)=>{const i=typeof n<"u",l=i?"a":"span",c=ee(de().breadcrumb.item,a);return p.jsxs("li",{className:V(c.base,e),...s,children:[p.jsx(lg,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),p.jsxs(l,{ref:o,className:c.href[i?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[r&&p.jsx(r,{"aria-hidden":!0,className:c.icon}),t]})]})});jg.displayName="Breadcrumb.Item";const Rg=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().breadcrumb.root,n);return p.jsx("nav",{"aria-label":"Breadcrumb",className:V(a.base,e),...r,children:p.jsx("ol",{className:a.list,children:t})})};Rg.displayName="Breadcrumb",Object.assign(Rg,{Item:jg});var TO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ag(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Fg(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var Lg={exports:{}};/*!
|
|
481
481
|
Copyright (c) 2018 Jed Watson.
|
|
482
482
|
Licensed under the MIT License (MIT), see
|
|
483
483
|
http://jedwatson.github.io/classnames
|