ui-mathilde-web 0.9.4 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
- (function(fe,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],g):(fe=typeof globalThis<"u"?globalThis:fe||self,g(fe["ui-mathilde-web"]={},fe.jsxRuntime,fe.React,fe.ReactDOM))})(this,function(fe,g,_,of){"use strict";var pL=Object.defineProperty;var bL=(fe,g,_)=>g in fe?pL(fe,g,{enumerable:!0,configurable:!0,writable:!0,value:_}):fe[g]=_;var $=(fe,g,_)=>bL(fe,typeof g!="symbol"?g+"":g,_);var Fl,wr;function lf(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 z=lf(_),Jv=lf(of),uo={"mth-btn-gray":"button-module__mth-btn-gray__l3gnX",mthBtnGray:"button-module__mth-btn-gray__l3gnX","mth-btn-blue":"button-module__mth-btn-blue__yw5Zv",mthBtnBlue:"button-module__mth-btn-blue__yw5Zv","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"},qv=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:s,type:a,leftIcon:o,rightIcon:i,iconSize:l=20,classes:c})=>{const d=u=>{if(!u)return null;if(typeof u=="string")return g.jsx("img",{src:u,alt:"icon",width:l,height:l});const f=u;return g.jsx(f,{size:l})};return g.jsx("div",{className:`${n?uo["mth-btn-full"]:""}`,children:g.jsxs("button",{type:a,className:`${c} ${uo["mth-btn"]} ${uo[`mth-btn-${e}`]} ${n?uo["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:s,children:[d(o),t,d(i)]})})},fo={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},$v=({label:t,value:e,checked:n,onChange:r})=>g.jsxs("label",{className:fo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),g.jsx("span",{className:fo.checkmark}),t&&g.jsx("span",{className:"ml-2",children:t})]}),xr=({src:t,alt:e,width:n,height:r,classIm:s})=>g.jsx("img",{className:s,src:t,alt:e,width:n,height:r});var cf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},df=_.createContext&&_.createContext(cf),ex=["attr","size","title"];function tx(t,e){if(t==null)return{};var n=nx(t,e),r,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(s=0;s<a.length;s++)r=a[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function nx(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,a;for(a=0;a<r.length;a++)s=r[a],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function ho(){return ho=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},ho.apply(this,arguments)}function uf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function go(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uf(Object(n),!0).forEach(function(r){rx(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rx(t,e,n){return e=sx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sx(t){var e=ax(t,"string");return typeof e=="symbol"?e:String(e)}function ax(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 ff(t){return t&&t.map((e,n)=>_.createElement(e.tag,go({key:n},e.attr),ff(e.child)))}function We(t){return e=>_.createElement(ox,ho({attr:go({},t.attr)},e),ff(t.child))}function ox(t){var e=n=>{var{attr:r,size:s,title:a}=t,o=tx(t,ex),i=s||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",ho({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:go(go({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&_.createElement("title",null,a),t.children)};return df!==void 0?_.createElement(df.Consumer,null,n=>e(n)):e(cf)}function ix(t){return We({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 mo(t){return We({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 Bl(t){return We({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 lx(t){return We({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 cx(t){return We({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)}function dx(t){return We({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(t)}function ux(t){return We({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 fx(t){return We({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 hx(t){return We({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 zl(t){return We({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 gx(t){return We({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 mx(t){return We({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 hf(t){return We({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 px(t){return We({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 bx(t){return We({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 gf(t){return We({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 yx(t){return We({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 mf(t){return We({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 wx(t){return We({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 vx(t){return We({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 Hl="-";function xx(t){const e=_x(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function s(o){const i=o.split(Hl);return i[0]===""&&i.length!==1&&i.shift(),pf(i,e)||kx(o)}function a(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function pf(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?pf(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const a=t.join(Hl);return(o=e.validators.find(({validator:i})=>i(a)))==null?void 0:o.classGroupId}const bf=/^\[(.+)\]$/;function kx(t){if(bf.test(t)){const e=bf.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function _x(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Ox(Object.entries(t.classGroups),n).forEach(([a,o])=>{Yl(o,r,a,e)}),r}function Yl(t,e,n,r){t.forEach(s=>{if(typeof s=="string"){const a=s===""?e:yf(e,s);a.classGroupId=n;return}if(typeof s=="function"){if(Sx(s)){Yl(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,o])=>{Yl(o,yf(e,a),n,r)})})}function yf(t,e){let n=t;return e.split(Hl).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Sx(t){return t.isThemeGetter}function Ox(t,e){return e?t.map(([n,r])=>{const s=r.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,i])=>[e+o,i])):a);return[n,s]}):t}function Cx(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function s(a,o){n.set(a,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return s(a,o),o},set(a,o){n.has(a)?n.set(a,o):s(a,o)}}}const wf="!";function Dx(t){const e=t.separator,n=e.length===1,r=e[0],s=e.length;return function(o){const i=[];let l=0,c=0,d;for(let p=0;p<o.length;p++){let b=o[p];if(l===0){if(b===r&&(n||o.slice(p,p+s)===e)){i.push(o.slice(c,p)),c=p+s;continue}if(b==="/"){d=p;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),f=u.startsWith(wf),h=f?u.substring(1):u,m=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}}}function Mx(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 Ex(t){return{cache:Cx(t.cacheSize),splitModifiers:Dx(t),...xx(t)}}const Px=/\s+/;function Tx(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,a=new Set;return t.trim().split(Px).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=Mx(i).join(":");return{isTailwindClass:!0,modifierId:l?h+wf: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 a.has(d)?!1:(a.add(d),s(l,c).forEach(u=>a.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Nx(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=vf(e))&&(r&&(r+=" "),r+=n);return r}function vf(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=vf(t[r]))&&(n&&(n+=" "),n+=e);return n}function jx(t,...e){let n,r,s,a=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=Ex(c),r=n.cache.get,s=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=Tx(l,n);return s(l,d),d}return function(){return a(Nx.apply(null,arguments))}}function Re(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const xf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ix=/^\d+\/\d+$/,Ax=new Set(["px","full","screen"]),Rx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lx=/\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$/,Fx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function In(t){return kr(t)||Ax.has(t)||Ix.test(t)}function $n(t){return as(t,"length",Gx)}function kr(t){return!!t&&!Number.isNaN(Number(t))}function po(t){return as(t,"number",kr)}function Gs(t){return!!t&&Number.isInteger(Number(t))}function zx(t){return t.endsWith("%")&&kr(t.slice(0,-1))}function me(t){return xf.test(t)}function er(t){return Rx.test(t)}const Hx=new Set(["length","size","percentage"]);function Yx(t){return as(t,Hx,kf)}function Vx(t){return as(t,"position",kf)}const Ux=new Set(["image","url"]);function Xx(t){return as(t,Ux,Zx)}function Kx(t){return as(t,"",Qx)}function Qs(){return!0}function as(t,e,n){const r=xf.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function Gx(t){return Lx.test(t)&&!Fx.test(t)}function kf(){return!1}function Qx(t){return Wx.test(t)}function Zx(t){return Bx.test(t)}function Jx(){const t=Re("colors"),e=Re("spacing"),n=Re("blur"),r=Re("brightness"),s=Re("borderColor"),a=Re("borderRadius"),o=Re("borderSpacing"),i=Re("borderWidth"),l=Re("contrast"),c=Re("grayscale"),d=Re("hueRotate"),u=Re("invert"),f=Re("gap"),h=Re("gradientColorStops"),m=Re("gradientColorStopPositions"),p=Re("inset"),b=Re("margin"),v=Re("opacity"),x=Re("padding"),k=Re("saturate"),w=Re("scale"),y=Re("sepia"),S=Re("skew"),N=Re("space"),D=Re("translate"),T=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",me,e],L=()=>[me,e],O=()=>["",In,$n],C=()=>["auto",kr,me],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],Z=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",me],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[kr,po],R=()=>[kr,me];return{cacheSize:500,separator:":",theme:{colors:[Qs],spacing:[In,$n],blur:["none","",er,me],brightness:V(),borderColor:[t],borderRadius:["none","","full",er,me],borderSpacing:L(),borderWidth:O(),contrast:V(),grayscale:ee(),hueRotate:R(),invert:ee(),gap:L(),gradientColorStops:[t],gradientColorStopPositions:[zx,$n],inset:Y(),margin:Y(),opacity:V(),padding:L(),saturate:V(),scale:V(),sepia:ee(),skew:R(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[er]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:[...P(),me]}],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:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Gs,me]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",Gs,me]}],"grid-cols":[{"grid-cols":[Qs]}],"col-start-end":[{col:["auto",{span:["full",Gs,me]},me]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[Qs]}],"row-start-end":[{row:["auto",{span:[Gs,me]},me]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[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":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,e]}],"min-w":[{"min-w":[me,e,"min","max","fit"]}],"max-w":[{"max-w":[me,e,"none","full","min","max","fit","prose",{screen:[er]},er]}],h:[{h:[me,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,e,"auto","min","max","fit"]}],"font-size":[{text:["base",er,$n]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",po]}],"font-family":[{font:[Qs]}],"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",me]}],"line-clamp":[{"line-clamp":["none",kr,po]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",In,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",In,$n]}],"underline-offset":[{"underline-offset":["auto",In,me]}],"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:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],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",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),Vx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Xx]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[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":[v]}],"border-style":[{border:[...F(),"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":[v]}],"divide-style":[{divide:F()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[In,me]}],"outline-w":[{outline:[In,$n]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[In,$n]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",er,Kx]}],"shadow-color":[{shadow:[Qs]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":U()}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",er,me]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[k]}],sepia:[{sepia:[y]}],"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":[v]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"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",me]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Gs,me]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"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",me]}],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",me]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",me]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[In,$n,po]}],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 G=jx(Jx);function _r(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function Zs(t){if(!_r(t))return t;const e={};for(const n in t)e[n]=Zs(t[n]);return e}function re(t,e){if(_r(e)&&Object.keys(e).length===0)return Zs({...t,...e});const n={...t,...e};if(_r(e)&&_r(t))for(const r in e)_r(e[r])&&r in t&&_r(t[r])?n[r]=re(t[r],e[r]):n[r]=_r(e[r])?Zs(e[r]):e[r];return n}function _L(t){return t}const qx={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"}}},$x={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"},ek={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"}},tk={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"}}},nk={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},rk={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"}},sk={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"}},ak={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"}},ok={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"}}},ik={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"}},lk={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"}}},ck={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"}},dk={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"}}}}},uk={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"},fk={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"}}}},hk={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"}},gk={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"}},mk={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"}}},pk={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"}},bk={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"}}},yk={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"}},wk={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"}}},vk={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"}},xk={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"}},kk={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"}}},_k={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"}},Sk={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"}},Ok={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"}},Ck={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"}}}},Dk={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"}}},Mk={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"}},Ek={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"}}}},Pk={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"}},Tk={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"}},Nk={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"}},jk={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"},Ik={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:""}},Ak={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:""}}}},Rk={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:""}}},Lk={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"}},Fk={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"}}},Wk={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"},Bk={theme:Zs({accordion:qx,alert:$x,avatar:ek,badge:tk,blockquote:nk,breadcrumb:rk,button:sk,buttonGroup:ak,card:ok,carousel:ik,checkbox:lk,datepicker:dk,darkThemeToggle:ck,dropdown:uk,fileInput:fk,floatingLabel:hk,footer:gk,helperText:mk,kbd:pk,label:bk,listGroup:wk,list:yk,modal:vk,navbar:xk,pagination:kk,popover:_k,progress:Sk,radio:Ok,rangeSlider:Ck,rating:Dk,ratingAdvanced:Mk,select:Ek,textInput:Ak,textarea:Ik,toggleSwitch:Fk,sidebar:Pk,spinner:Tk,table:Nk,tabs:jk,timeline:Rk,toast:Lk,tooltip:Wk})};function he(){return Zs(Bk.theme)}const _f=_.createContext(void 0);function Sf(){const t=_.useContext(_f);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Of=({children:t,className:e,theme:n={},...r})=>{const{isOpen:s}=Sf(),a=re(he().accordion.content,n);return g.jsx("div",{className:G(a.base,e),"data-testid":"flowbite-accordion-content",hidden:!s,...r,children:t})},Cf=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,s]=_.useState(e.isOpen),a=n?{...e,isOpen:r,setOpen:()=>s(!r)}:e;return g.jsx(_f.Provider,{value:a,children:t})},Df=({as:t="h2",children:e,className:n,theme:r={},...s})=>{const{arrowIcon:a,flush:o,isOpen:i,setOpen:l}=Sf(),c=()=>typeof l<"u"&&l(),d=re(he().accordion.title,r);return g.jsxs("button",{className:G(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...s,children:[g.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),a&&g.jsx(a,{"aria-hidden":!0,className:G(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},Mf=({alwaysOpen:t=!1,arrowIcon:e=zl,children:n,flush:r=!1,collapseAll:s=!1,className:a,theme:o={},...i})=>{const[l,c]=_.useState(s?-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=re(he().accordion.root,o);return g.jsx("div",{className:G(u.base,u.flush[r?"on":"off"],a),"data-testid":"flowbite-accordion",...i,children:d})};Mf.displayName="Accordion",Cf.displayName="Accordion.Panel",Df.displayName="Accordion.Title",Of.displayName="Accordion.Content",Object.assign(Mf,{Panel:Cf,Title:Df,Content:Of});const Ef=({children:t,className:e,theme:n={},...r})=>{const s=re(he().avatar.group,n);return g.jsx("div",{"data-testid":"avatar-group-element",className:G(s.base,e),...r,children:t})};Ef.displayName="Avatar.Group";const Pf=({className:t,href:e,theme:n={},total:r,...s})=>{const a=re(he().avatar.groupCounter,n);return g.jsxs("a",{href:e,className:G(a.base,t),...s,children:["+",r]})};Pf.displayName="Avatar.GroupCounter";const Tf=({alt:t="",bordered:e=!1,children:n,className:r,color:s="light",img:a,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const m=re(he().avatar,f),p=G(m.root.img.base,e&&m.root.bordered,e&&m.root.color[s],i&&m.root.rounded,c&&m.root.stacked,m.root.img.on,m.root.size[l]),b={className:G(p,m.root.img.on),"data-testid":"flowbite-avatar-img"};return g.jsxs("div",{className:G(m.root.base,r),"data-testid":"flowbite-avatar",...h,children:[g.jsxs("div",{className:"relative",children:[a?typeof a=="string"?g.jsx("img",{alt:t,src:a,...b}):a({alt:t,...b}):o?g.jsx("div",{className:G(m.root.img.off,m.root.initials.base,c&&m.root.stacked,e&&m.root.bordered,e&&m.root.color[s],m.root.size[l],i&&m.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:g.jsx("span",{className:G(m.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):g.jsx("div",{className:G(p,m.root.img.off),"data-testid":"flowbite-avatar-img",children:g.jsx("svg",{className:m.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:g.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&&g.jsx("span",{"data-testid":"flowbite-avatar-status",className:G(m.root.status.base,m.root.status[d],m.root.statusPosition[u])})]}),n&&g.jsx("div",{children:n})]})};Tf.displayName="Avatar",Object.assign(Tf,{Group:Ef,Counter:Pf});const Nf=({children:t,color:e="info",href:n,icon:r,size:s="xs",className:a,theme:o={},...i})=>{const l=re(he().badge,o),c=()=>g.jsxs("span",{className:G(l.root.base,l.root.color[e],l.root.size[s],l.icon[r?"on":"off"],a),"data-testid":"flowbite-badge",...i,children:[r&&g.jsx(r,{"aria-hidden":!0,className:l.icon.size[s],"data-testid":"flowbite-badge-icon"}),t&&g.jsx("span",{children:t})]});return n?g.jsx("a",{className:l.root.href,href:n,children:g.jsx(c,{})}):g.jsx(c,{})};Nf.displayName="Badge";const jf=({className:t,color:e="info",light:n,size:r="md",theme:s={},...a})=>{const o=re(he().spinner,s);return g.jsx("span",{role:"status",...a,children:g.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:G(o.base,o.color[e],o.light[n?"on":"off"].base,o.light[n?"on":"off"].color[e],o.size[r],t),children:[g.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"}),g.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"})]})})};jf.displayName="Spinner";const Vl=_.forwardRef(({children:t,as:e,href:n,type:r="button",...s},a)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:a,href:n,type:r,...s},t)});Vl.displayName="ButtonBaseComponent";const If=(t,e,n)=>_.Children.map(t,(r,s)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:If(r.props.children,e,n),positionInGroup:Af(s,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:Af(s,_.Children.count(t))}):r),Af=(t,e)=>t===0?"start":t===e-1?"end":"middle",Rf=({children:t,className:e,outline:n,pill:r,theme:s={},...a})=>{const o=_.useMemo(()=>If(t,n,r),[t,n,r]),i=re(he().buttonGroup,s);return g.jsx("div",{className:G(i.base,e),role:"group",...a,children:o})};Rf.displayName="Button.Group";const Lf=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:s,isProcessing:a=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:m="md",theme:p={},...b},v)=>{const{buttonGroup:x,button:k}=he(),w=re(k,p),y=b;return g.jsx(Vl,{ref:v,disabled:r,className:G(w.base,r&&w.disabled,!l&&!c&&w.color[n],l&&!c&&w.gradientDuoTone[l],!l&&c&&w.gradient[c],u&&(w.outline.color[n]??w.outline.color.default),w.pill[f?"on":"off"],s&&w.fullSized,x.position[h],e),...y,children:g.jsx("span",{className:G(w.inner.base,w.outline[u?"on":"off"],w.outline.pill[u&&f?"on":"off"],w.size[m],u&&!w.outline.color[n]&&w.inner.outline,a&&w.isProcessing,a&&w.inner.isProcessingPadding[m],w.inner.position[h]),children:g.jsxs(g.Fragment,{children:[a&&g.jsx("span",{className:G(w.spinnerSlot,w.spinnerLeftPosition[m]),children:i||g.jsx(jf,{size:m})}),typeof t<"u"?t:g.jsx("span",{"data-testid":"flowbite-button-label",className:G(w.label),children:a?o:d})]})})})});Lf.displayName="Button";const Js=Object.assign(Lf,{Group:Rf}),Ff=({children:t,...e})=>{const n=r=>{const a=r.target.closest('[role="banner"]');a==null||a.remove()};return g.jsx(Js,{onClick:n,...e,children:t})};Ff.displayName="Banner.CollapseButton";const Wf=({children:t,...e})=>g.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});Wf.displayName="Banner",Object.assign(Wf,{CollapseButton:Ff});const Bf=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:s={},...a},o)=>{const i=typeof n<"u",l=i?"a":"span",c=re(he().breadcrumb.item,s);return g.jsxs("li",{className:G(c.base,e),...a,children:[g.jsx(mf,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),g.jsxs(l,{ref:o,className:c.href[i?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[r&&g.jsx(r,{"aria-hidden":!0,className:c.icon}),t]})]})});Bf.displayName="Breadcrumb.Item";const zf=({children:t,className:e,theme:n={},...r})=>{const s=re(he().breadcrumb.root,n);return g.jsx("nav",{"aria-label":"Breadcrumb",className:G(s.base,e),...r,children:g.jsx("ol",{className:s.list,children:t})})};zf.displayName="Breadcrumb",Object.assign(zf,{Item:Bf});var zk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yf(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 s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Vf={exports:{}};/*!
1
+ (function(fe,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],g):(fe=typeof globalThis<"u"?globalThis:fe||self,g(fe["ui-mathilde-web"]={},fe.jsxRuntime,fe.React,fe.ReactDOM))})(this,function(fe,g,_,cf){"use strict";var CL=Object.defineProperty;var DL=(fe,g,_)=>g in fe?CL(fe,g,{enumerable:!0,configurable:!0,writable:!0,value:_}):fe[g]=_;var $=(fe,g,_)=>DL(fe,typeof g!="symbol"?g+"":g,_);var zl,xr;function df(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 z=df(_),tx=df(cf),mo={"mth-btn-white":"button-module__mth-btn-white__nTgLW",mthBtnWhite:"button-module__mth-btn-white__nTgLW","mth-btn-blue":"button-module__mth-btn-blue__yw5Zv",mthBtnBlue:"button-module__mth-btn-blue__yw5Zv","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","mth-btn-disabled":"button-module__mth-btn-disabled__sY2Vx",mthBtnDisabled:"button-module__mth-btn-disabled__sY2Vx"},_r=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:s,type:a,leftIcon:o,rightIcon:i,iconSize:l=20,classes:c})=>{const d=u=>{if(!u)return null;if(typeof u=="string")return g.jsx("img",{src:u,alt:"icon",width:l,height:l});const f=u;return g.jsx(f,{size:l})};return g.jsx("div",{className:`${n?mo["mth-btn-full"]:""}`,children:g.jsxs("button",{type:a,className:`${c} ${mo["mth-btn"]} ${mo[`mth-btn-${e}`]} ${n?mo["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:s,children:[d(o),t,d(i)]})})},po={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},nx=({label:t,value:e,checked:n,onChange:r})=>g.jsxs("label",{className:po["checkbox-container"],children:[g.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),g.jsx("span",{className:po.checkmark}),t&&g.jsx("span",{className:"ml-2",children:t})]}),Sr=({src:t,alt:e,width:n,height:r,classIm:s})=>g.jsx("img",{className:s,src:t,alt:e,width:n,height:r});var uf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ff=_.createContext&&_.createContext(uf),rx=["attr","size","title"];function sx(t,e){if(t==null)return{};var n=ax(t,e),r,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(s=0;s<a.length;s++)r=a[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ax(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,a;for(a=0;a<r.length;a++)s=r[a],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function bo(){return bo=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},bo.apply(this,arguments)}function hf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function yo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hf(Object(n),!0).forEach(function(r){ox(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hf(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ox(t,e,n){return e=ix(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ix(t){var e=lx(t,"string");return typeof e=="symbol"?e:String(e)}function lx(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 gf(t){return t&&t.map((e,n)=>_.createElement(e.tag,yo({key:n},e.attr),gf(e.child)))}function Ee(t){return e=>_.createElement(cx,bo({attr:yo({},t.attr)},e),gf(t.child))}function cx(t){var e=n=>{var{attr:r,size:s,title:a}=t,o=sx(t,rx),i=s||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",bo({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:yo(yo({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&_.createElement("title",null,a),t.children)};return ff!==void 0?_.createElement(ff.Consumer,null,n=>e(n)):e(uf)}function dx(t){return Ee({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 wo(t){return Ee({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 Yl(t){return Ee({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 ux(t){return Ee({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 fx(t){return Ee({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)}function hx(t){return Ee({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(t)}function gx(t){return Ee({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(t)}function mx(t){return Ee({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 px(t){return Ee({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 bx(t){return Ee({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 Vl(t){return Ee({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 yx(t){return Ee({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 wx(t){return Ee({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 mf(t){return Ee({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 vx(t){return Ee({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 xx(t){return Ee({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 pf(t){return Ee({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 kx(t){return Ee({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 bf(t){return Ee({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 _x(t){return Ee({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 Sx(t){return Ee({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 Ul="-";function Ox(t){const e=Dx(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function s(o){const i=o.split(Ul);return i[0]===""&&i.length!==1&&i.shift(),yf(i,e)||Cx(o)}function a(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function yf(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?yf(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const a=t.join(Ul);return(o=e.validators.find(({validator:i})=>i(a)))==null?void 0:o.classGroupId}const wf=/^\[(.+)\]$/;function Cx(t){if(wf.test(t)){const e=wf.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function Dx(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Ex(Object.entries(t.classGroups),n).forEach(([a,o])=>{Xl(o,r,a,e)}),r}function Xl(t,e,n,r){t.forEach(s=>{if(typeof s=="string"){const a=s===""?e:vf(e,s);a.classGroupId=n;return}if(typeof s=="function"){if(Mx(s)){Xl(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,o])=>{Xl(o,vf(e,a),n,r)})})}function vf(t,e){let n=t;return e.split(Ul).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Mx(t){return t.isThemeGetter}function Ex(t,e){return e?t.map(([n,r])=>{const s=r.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,i])=>[e+o,i])):a);return[n,s]}):t}function Px(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function s(a,o){n.set(a,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(a){let o=n.get(a);if(o!==void 0)return o;if((o=r.get(a))!==void 0)return s(a,o),o},set(a,o){n.has(a)?n.set(a,o):s(a,o)}}}const xf="!";function Tx(t){const e=t.separator,n=e.length===1,r=e[0],s=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+s)===e)){i.push(o.slice(c,m)),c=m+s;continue}if(b==="/"){d=m;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),f=u.startsWith(xf),h=f?u.substring(1):u,p=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:p}}}function Nx(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 jx(t){return{cache:Px(t.cacheSize),splitModifiers:Tx(t),...Ox(t)}}const Ix=/\s+/;function Ax(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,a=new Set;return t.trim().split(Ix).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=Nx(i).join(":");return{isTailwindClass:!0,modifierId:l?h+xf: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 a.has(d)?!1:(a.add(d),s(l,c).forEach(u=>a.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Rx(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=kf(e))&&(r&&(r+=" "),r+=n);return r}function kf(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=kf(t[r]))&&(n&&(n+=" "),n+=e);return n}function Lx(t,...e){let n,r,s,a=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=jx(c),r=n.cache.get,s=n.cache.set,a=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=Ax(l,n);return s(l,d),d}return function(){return a(Rx.apply(null,arguments))}}function Le(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const _f=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fx=/^\d+\/\d+$/,Wx=new Set(["px","full","screen"]),Bx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zx=/\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$/,Hx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Yx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function An(t){return Or(t)||Wx.has(t)||Fx.test(t)}function er(t){return is(t,"length",qx)}function Or(t){return!!t&&!Number.isNaN(Number(t))}function vo(t){return is(t,"number",Or)}function qs(t){return!!t&&Number.isInteger(Number(t))}function Ux(t){return t.endsWith("%")&&Or(t.slice(0,-1))}function me(t){return _f.test(t)}function tr(t){return Bx.test(t)}const Xx=new Set(["length","size","percentage"]);function Kx(t){return is(t,Xx,Sf)}function Gx(t){return is(t,"position",Sf)}const Qx=new Set(["image","url"]);function Zx(t){return is(t,Qx,ek)}function Jx(t){return is(t,"",$x)}function $s(){return!0}function is(t,e,n){const r=_f.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function qx(t){return zx.test(t)&&!Hx.test(t)}function Sf(){return!1}function $x(t){return Yx.test(t)}function ek(t){return Vx.test(t)}function tk(){const t=Le("colors"),e=Le("spacing"),n=Le("blur"),r=Le("brightness"),s=Le("borderColor"),a=Le("borderRadius"),o=Le("borderSpacing"),i=Le("borderWidth"),l=Le("contrast"),c=Le("grayscale"),d=Le("hueRotate"),u=Le("invert"),f=Le("gap"),h=Le("gradientColorStops"),p=Le("gradientColorStopPositions"),m=Le("inset"),b=Le("margin"),y=Le("opacity"),x=Le("padding"),k=Le("saturate"),v=Le("scale"),w=Le("sepia"),S=Le("skew"),N=Le("space"),D=Le("translate"),T=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",me,e],L=()=>[me,e],O=()=>["",An,er],C=()=>["auto",Or,me],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],Z=()=>["start","end","center","between","around","evenly","stretch"],ee=()=>["","0",me],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Or,vo],R=()=>[Or,me];return{cacheSize:500,separator:":",theme:{colors:[$s],spacing:[An,er],blur:["none","",tr,me],brightness:V(),borderColor:[t],borderRadius:["none","","full",tr,me],borderSpacing:L(),borderWidth:O(),contrast:V(),grayscale:ee(),hueRotate:R(),invert:ee(),gap:L(),gradientColorStops:[t],gradientColorStopPositions:[Ux,er],inset:Y(),margin:Y(),opacity:V(),padding:L(),saturate:V(),scale:V(),sepia:ee(),skew:R(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",me]}],container:["container"],columns:[{columns:[tr]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:[...P(),me]}],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",qs,me]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",me]}],grow:[{grow:ee()}],shrink:[{shrink:ee()}],order:[{order:["first","last","none",qs,me]}],"grid-cols":[{"grid-cols":[$s]}],"col-start-end":[{col:["auto",{span:["full",qs,me]},me]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[$s]}],"row-start-end":[{row:["auto",{span:[qs,me]},me]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",me]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",me]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[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":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",me,e]}],"min-w":[{"min-w":[me,e,"min","max","fit"]}],"max-w":[{"max-w":[me,e,"none","full","min","max","fit","prose",{screen:[tr]},tr]}],h:[{h:[me,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[me,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[me,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[me,e,"auto","min","max","fit"]}],"font-size":[{text:["base",tr,er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vo]}],"font-family":[{font:[$s]}],"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",me]}],"line-clamp":[{"line-clamp":["none",Or,vo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",An,me]}],"list-image":[{"list-image":["none",me]}],"list-style-type":[{list:["none","disc","decimal",me]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",An,er]}],"underline-offset":[{"underline-offset":["auto",An,me]}],"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:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me]}],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",me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),Gx]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kx]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Zx]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[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":[y]}],"border-style":[{border:[...F(),"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":[y]}],"divide-style":[{divide:F()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[An,me]}],"outline-w":[{outline:[An,er]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[An,er]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",tr,Jx]}],"shadow-color":[{shadow:[$s]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":U()}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",tr,me]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[k]}],sepia:[{sepia:[w]}],"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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"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",me]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",me]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",me]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[qs,me]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"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",me]}],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",me]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",me]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[An,er,vo]}],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 G=Lx(tk);function Cr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function ea(t){if(!Cr(t))return t;const e={};for(const n in t)e[n]=ea(t[n]);return e}function re(t,e){if(Cr(e)&&Object.keys(e).length===0)return ea({...t,...e});const n={...t,...e};if(Cr(e)&&Cr(t))for(const r in e)Cr(e[r])&&r in t&&Cr(t[r])?n[r]=re(t[r],e[r]):n[r]=Cr(e[r])?ea(e[r]):e[r];return n}function IL(t){return t}const nk={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"}}},rk={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"},sk={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"}},ak={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"}}},ok={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},ik={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"}},lk={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"}},ck={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"}},dk={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"}}},uk={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"}},fk={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"}}},hk={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"}},gk={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"}}}}},mk={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"},pk={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"}}}},bk={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"}},yk={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"}},wk={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"}}},vk={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"}},xk={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"}}},kk={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"}},_k={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"}}},Sk={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"}},Ok={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"}},Ck={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"}}},Dk={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"}},Mk={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"}},Ek={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"}},Pk={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"}}}},Tk={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"}}},Nk={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"}},jk={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"}}}},Ik={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"}},Ak={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"}},Rk={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"}},Lk={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"},Fk={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:""}},Wk={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:""}}}},Bk={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:""}}},zk={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"}},Hk={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"}}},Yk={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"},Vk={theme:ea({accordion:nk,alert:rk,avatar:sk,badge:ak,blockquote:ok,breadcrumb:ik,button:lk,buttonGroup:ck,card:dk,carousel:uk,checkbox:fk,datepicker:gk,darkThemeToggle:hk,dropdown:mk,fileInput:pk,floatingLabel:bk,footer:yk,helperText:wk,kbd:vk,label:xk,listGroup:_k,list:kk,modal:Sk,navbar:Ok,pagination:Ck,popover:Dk,progress:Mk,radio:Ek,rangeSlider:Pk,rating:Tk,ratingAdvanced:Nk,select:jk,textInput:Wk,textarea:Fk,toggleSwitch:Hk,sidebar:Ik,spinner:Ak,table:Rk,tabs:Lk,timeline:Bk,toast:zk,tooltip:Yk})};function he(){return ea(Vk.theme)}const Of=_.createContext(void 0);function Cf(){const t=_.useContext(Of);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const Df=({children:t,className:e,theme:n={},...r})=>{const{isOpen:s}=Cf(),a=re(he().accordion.content,n);return g.jsx("div",{className:G(a.base,e),"data-testid":"flowbite-accordion-content",hidden:!s,...r,children:t})},Mf=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,s]=_.useState(e.isOpen),a=n?{...e,isOpen:r,setOpen:()=>s(!r)}:e;return g.jsx(Of.Provider,{value:a,children:t})},Ef=({as:t="h2",children:e,className:n,theme:r={},...s})=>{const{arrowIcon:a,flush:o,isOpen:i,setOpen:l}=Cf(),c=()=>typeof l<"u"&&l(),d=re(he().accordion.title,r);return g.jsxs("button",{className:G(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...s,children:[g.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),a&&g.jsx(a,{"aria-hidden":!0,className:G(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},Pf=({alwaysOpen:t=!1,arrowIcon:e=Vl,children:n,flush:r=!1,collapseAll:s=!1,className:a,theme:o={},...i})=>{const[l,c]=_.useState(s?-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=re(he().accordion.root,o);return g.jsx("div",{className:G(u.base,u.flush[r?"on":"off"],a),"data-testid":"flowbite-accordion",...i,children:d})};Pf.displayName="Accordion",Mf.displayName="Accordion.Panel",Ef.displayName="Accordion.Title",Df.displayName="Accordion.Content",Object.assign(Pf,{Panel:Mf,Title:Ef,Content:Df});const Tf=({children:t,className:e,theme:n={},...r})=>{const s=re(he().avatar.group,n);return g.jsx("div",{"data-testid":"avatar-group-element",className:G(s.base,e),...r,children:t})};Tf.displayName="Avatar.Group";const Nf=({className:t,href:e,theme:n={},total:r,...s})=>{const a=re(he().avatar.groupCounter,n);return g.jsxs("a",{href:e,className:G(a.base,t),...s,children:["+",r]})};Nf.displayName="Avatar.GroupCounter";const jf=({alt:t="",bordered:e=!1,children:n,className:r,color:s="light",img:a,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const p=re(he().avatar,f),m=G(p.root.img.base,e&&p.root.bordered,e&&p.root.color[s],i&&p.root.rounded,c&&p.root.stacked,p.root.img.on,p.root.size[l]),b={className:G(m,p.root.img.on),"data-testid":"flowbite-avatar-img"};return g.jsxs("div",{className:G(p.root.base,r),"data-testid":"flowbite-avatar",...h,children:[g.jsxs("div",{className:"relative",children:[a?typeof a=="string"?g.jsx("img",{alt:t,src:a,...b}):a({alt:t,...b}):o?g.jsx("div",{className:G(p.root.img.off,p.root.initials.base,c&&p.root.stacked,e&&p.root.bordered,e&&p.root.color[s],p.root.size[l],i&&p.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:g.jsx("span",{className:G(p.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):g.jsx("div",{className:G(m,p.root.img.off),"data-testid":"flowbite-avatar-img",children:g.jsx("svg",{className:p.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:g.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&&g.jsx("span",{"data-testid":"flowbite-avatar-status",className:G(p.root.status.base,p.root.status[d],p.root.statusPosition[u])})]}),n&&g.jsx("div",{children:n})]})};jf.displayName="Avatar",Object.assign(jf,{Group:Tf,Counter:Nf});const If=({children:t,color:e="info",href:n,icon:r,size:s="xs",className:a,theme:o={},...i})=>{const l=re(he().badge,o),c=()=>g.jsxs("span",{className:G(l.root.base,l.root.color[e],l.root.size[s],l.icon[r?"on":"off"],a),"data-testid":"flowbite-badge",...i,children:[r&&g.jsx(r,{"aria-hidden":!0,className:l.icon.size[s],"data-testid":"flowbite-badge-icon"}),t&&g.jsx("span",{children:t})]});return n?g.jsx("a",{className:l.root.href,href:n,children:g.jsx(c,{})}):g.jsx(c,{})};If.displayName="Badge";const Af=({className:t,color:e="info",light:n,size:r="md",theme:s={},...a})=>{const o=re(he().spinner,s);return g.jsx("span",{role:"status",...a,children:g.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:G(o.base,o.color[e],o.light[n?"on":"off"].base,o.light[n?"on":"off"].color[e],o.size[r],t),children:[g.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"}),g.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"})]})})};Af.displayName="Spinner";const Kl=_.forwardRef(({children:t,as:e,href:n,type:r="button",...s},a)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:a,href:n,type:r,...s},t)});Kl.displayName="ButtonBaseComponent";const Rf=(t,e,n)=>_.Children.map(t,(r,s)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:Rf(r.props.children,e,n),positionInGroup:Lf(s,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:Lf(s,_.Children.count(t))}):r),Lf=(t,e)=>t===0?"start":t===e-1?"end":"middle",Ff=({children:t,className:e,outline:n,pill:r,theme:s={},...a})=>{const o=_.useMemo(()=>Rf(t,n,r),[t,n,r]),i=re(he().buttonGroup,s);return g.jsx("div",{className:G(i.base,e),role:"group",...a,children:o})};Ff.displayName="Button.Group";const Wf=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:s,isProcessing:a=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:p="md",theme:m={},...b},y)=>{const{buttonGroup:x,button:k}=he(),v=re(k,m),w=b;return g.jsx(Kl,{ref:y,disabled:r,className:G(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"],s&&v.fullSized,x.position[h],e),...w,children:g.jsx("span",{className:G(v.inner.base,v.outline[u?"on":"off"],v.outline.pill[u&&f?"on":"off"],v.size[p],u&&!v.outline.color[n]&&v.inner.outline,a&&v.isProcessing,a&&v.inner.isProcessingPadding[p],v.inner.position[h]),children:g.jsxs(g.Fragment,{children:[a&&g.jsx("span",{className:G(v.spinnerSlot,v.spinnerLeftPosition[p]),children:i||g.jsx(Af,{size:p})}),typeof t<"u"?t:g.jsx("span",{"data-testid":"flowbite-button-label",className:G(v.label),children:a?o:d})]})})})});Wf.displayName="Button";const Bf=Object.assign(Wf,{Group:Ff}),zf=({children:t,...e})=>{const n=r=>{const a=r.target.closest('[role="banner"]');a==null||a.remove()};return g.jsx(Bf,{onClick:n,...e,children:t})};zf.displayName="Banner.CollapseButton";const Hf=({children:t,...e})=>g.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});Hf.displayName="Banner",Object.assign(Hf,{CollapseButton:zf});const Yf=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:s={},...a},o)=>{const i=typeof n<"u",l=i?"a":"span",c=re(he().breadcrumb.item,s);return g.jsxs("li",{className:G(c.base,e),...a,children:[g.jsx(bf,{"aria-hidden":!0,className:c.chevron,"data-testid":"flowbite-breadcrumb-separator"}),g.jsxs(l,{ref:o,className:c.href[i?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[r&&g.jsx(r,{"aria-hidden":!0,className:c.icon}),t]})]})});Yf.displayName="Breadcrumb.Item";const Vf=({children:t,className:e,theme:n={},...r})=>{const s=re(he().breadcrumb.root,n);return g.jsx("nav",{"aria-label":"Breadcrumb",className:G(s.base,e),...r,children:g.jsx("ol",{className:s.list,children:t})})};Vf.displayName="Breadcrumb",Object.assign(Vf,{Item:Yf});var Uk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xf(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 s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Kf={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(a=s(a,r(i)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var i in a)e.call(a,i)&&a[i]&&(o=s(o,i));return o}function s(a,o){return o?a?a+" "+o:a+o:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Vf);var tr=Vf.exports;const Hk=Hf(tr);var Ul={exports:{}};function Uf(t,e=100,n={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(e<0)throw new RangeError("`wait` must not be negative.");const{immediate:r}=typeof n=="boolean"?{immediate:n}:n;let s,a,o,i,l;function c(){const u=Date.now()-i;if(u<e&&u>=0)o=setTimeout(c,e-u);else if(o=void 0,!r){const f=s,h=a;s=void 0,a=void 0,l=t.apply(f,h)}}const d=function(...u){if(s&&this!==s)throw new Error("Debounced method called with different contexts.");s=this,a=u,i=Date.now();const f=r&&!o;if(o||(o=setTimeout(c,e)),f){const h=s,m=a;s=void 0,a=void 0,l=t.apply(h,m)}return l};return d.clear=()=>{o&&(clearTimeout(o),o=void 0)},d.flush=()=>{if(!o)return;const u=s,f=a;s=void 0,a=void 0,l=t.apply(u,f),clearTimeout(o),o=void 0},d}Ul.exports.debounce=Uf,Ul.exports=Uf;var Yk=Ul.exports;const Vk=Hf(Yk);var Uk=Object.defineProperty,Xk=(t,e,n)=>e in t?Uk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,at=(t,e,n)=>(Xk(t,typeof e!="symbol"?e+"":e,n),n);const Kk=300,Gk=0;class Qk extends _.PureComponent{constructor(e){super(e),at(this,"container"),at(this,"scrolling"),at(this,"started"),at(this,"pressed"),at(this,"isMobile",!1),at(this,"internal"),at(this,"scrollLeft"),at(this,"scrollTop"),at(this,"clientX"),at(this,"clientY"),at(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),at(this,"onScroll",()=>{const n=this.container.current;(n.scrollLeft!==this.scrollLeft||n.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),at(this,"onTouchStart",n=>{const{nativeMobileScroll:r}=this.props;if(this.isDraggable(n.target))if(this.internal=!0,r&&this.scrolling)this.pressed=!0;else{const s=n.touches[0];this.processClick(s.clientX,s.clientY),!r&&this.props.stopPropagation&&n.stopPropagation()}}),at(this,"onTouchEnd",()=>{const{nativeMobileScroll:n}=this.props;this.pressed&&(this.started&&(!this.scrolling||!n)?this.processEnd():this.pressed=!1,this.forceUpdate())}),at(this,"onTouchMove",n=>{const{nativeMobileScroll:r}=this.props;if(this.pressed&&(!r||!this.isMobile)){const s=n.touches[0];s&&this.processMove(s.clientX,s.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()}}),at(this,"onMouseDown",n=>{var r,s;this.isDraggable(n.target)&&this.isScrollable()&&(this.internal=!0,((s=(r=this.props)==null?void 0:r.buttons)==null?void 0:s.indexOf(n.button))!==-1&&(this.processClick(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()))}),at(this,"onMouseMove",n=>{this.pressed&&(this.processMove(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),at(this,"onMouseUp",n=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(n)),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),this.container=_.createRef(),this.onEndScroll=Vk(this.onEndScroll,Kk),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,n=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),n.addEventListener("touchstart",this.onTouchStart,{passive:!1}),n.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())}componentWillUnmount(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)}getElement(){return this.container.current}isMobileDevice(){return typeof window.orientation<"u"||navigator.userAgent.indexOf("IEMobile")!==-1}isDraggable(e){const n=this.props.ignoreElements;if(n){const r=e.closest(n);return r===null||r.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,n){const r=this.container.current;this.scrollLeft=r==null?void 0:r.scrollLeft,this.scrollTop=r==null?void 0:r.scrollTop,this.clientX=e,this.clientY=n,this.pressed=!0}processStart(e=!0){const{onStartScroll:n}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),n&&n({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){const{onScroll:e}=this.props;e&&e({external:!this.internal})}else this.processStart(!1)}processMove(e,n){const{horizontal:r,vertical:s,activationDistance:a,onScroll:o}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),s&&(i.scrollTop-=n-this.clientY),o&&o({external:!this.internal}),this.clientX=e,this.clientY=n,this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop):(r&&Math.abs(e-this.clientX)>a||s&&Math.abs(n-this.clientY)>a)&&(this.clientX=e,this.clientY=n,this.processStart())}processEnd(){const{onEndScroll:e}=this.props;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(e){[this.container,this.props.innerRef].forEach(n=>{n&&(typeof n=="function"?n(e):n.current=e)})}render(){const{children:e,draggingClassName:n,className:r,style:s,hideScrollbars:a}=this.props;return g.jsx("div",{className:Hk(r,this.pressed&&n,{"!scroll-auto [&>*]:pointer-events-none [&>*]:cursor-grab":this.pressed,"overflow-auto":this.isMobile,"overflow-hidden !overflow-x-hidden [overflow:-moz-scrollbars-none] [scrollbar-width:none]":a,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":a}),style:s,ref:this.getRef,onScroll:this.onScroll,children:e})}}at(Qk,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[Gk]});const qs=_.forwardRef(({className:t,color:e="default",theme:n={},...r},s)=>{const a=re(he().checkbox,n);return g.jsx("input",{ref:s,type:"checkbox",className:G(a.root.base,a.root.color[e],t),...r})});qs.displayName="Checkbox";const $s=({children:t,className:e,color:n="default",theme:r={},value:s,...a})=>{const o=re(he().helperText,r);return g.jsx("p",{className:G(o.root.base,o.root.colors[n],e),...a,children:s??t??""})};$s.displayName="HelperText";const os=_.forwardRef(({addon:t,className:e,color:n="gray",helperText:r,icon:s,rightIcon:a,shadow:o,sizing:i="md",theme:l={},type:c="text",...d},u)=>{const f=re(he().textInput,l);return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:G(f.base,e),children:[t&&g.jsx("span",{className:f.addon,children:t}),g.jsxs("div",{className:f.field.base,children:[s&&g.jsx("div",{className:f.field.icon.base,children:g.jsx(s,{className:f.field.icon.svg})}),a&&g.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:g.jsx(a,{className:f.field.rightIcon.svg})}),g.jsx("input",{className:G(f.field.input.base,f.field.input.colors[n],f.field.input.sizes[i],f.field.input.withIcon[s?"on":"off"],f.field.input.withRightIcon[a?"on":"off"],f.field.input.withAddon[t?"on":"off"],f.field.input.withShadow[o?"on":"off"]),type:c,...d,ref:u})]})]}),r&&g.jsx($s,{color:n,children:r})]})});os.displayName="TextInput";const Xf=_.createContext(void 0);function bo(){const t=_.useContext(Xf);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var Be=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(Be||{}),Kf=(t=>(t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t))(Kf||{});const ea=(t,e,n)=>{const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&n){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r>=s&&r<=a}if(e){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return r>=s}if(n){const s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r<=s}return!0},yo=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),Zk=(t,e,n)=>(ea(t,e,n)||(e&&t<e?t=e:n&&t>n&&(t=n)),t),Jk=(t,e)=>{const n=new Date(t.getFullYear(),t.getMonth(),1);let s=n.getDay()-e;return s<0&&(s+=7),Xl(n,-s)},qk=(t,e)=>{const n=[],r=new Date(0);r.setDate(r.getDate()-r.getDay()+e);const s=new Intl.DateTimeFormat(t,{weekday:"short"});for(let a=0;a<7;a++)n.push(s.format(Xl(r,a)));return n},Xl=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),n},$k=(t,e)=>{const n=new Date(t);return n.setMonth(n.getMonth()+e),n},is=(t,e)=>{const n=new Date(t);return n.setFullYear(n.getFullYear()+e),n},ta=(t,e,n)=>{let r={day:"numeric",month:"long",year:"numeric"};return n&&(r=n),new Intl.DateTimeFormat(t,r).format(e)},ls=(t,e)=>{const n=t.getFullYear();return Math.floor(n/e)*e},e2=(t,e)=>{const n=t.getFullYear(),r=e+9;return n>=e&&n<=r},t2=({theme:t={}})=>{const{theme:e,weekStart:n,minDate:r,maxDate:s,viewDate:a,selectedDate:o,changeSelectedDate:i,language:l}=bo(),c=re(e.views.days,t),d=qk(l,n),u=Jk(a,n);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:c.header.base,children:d.map((f,h)=>g.jsx("span",{className:c.header.title,children:f},h))}),g.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const m=Xl(u,h),p=ta(l,m,{day:"numeric"}),b=yo(o,m),v=!ea(m,r,s);return g.jsx("button",{disabled:v,type:"button",className:G(c.items.item.base,b&&c.items.item.selected,v&&c.items.item.disabled),onClick:()=>{v||i(m,!0)},children:p},h)})})]})},n2=({theme:t={}})=>{const{theme:e,selectedDate:n,viewDate:r,setViewDate:s,setView:a}=bo(),o=re(e.views.decades,t);return g.jsx("div",{className:o.items.base,children:[...Array(12)].map((i,l)=>{const d=ls(r,100)-10+l*10,u=new Date(d,0,1),f=is(u,9),h=e2(r,d),m=!ea(r,u,f);return g.jsx("button",{disabled:m,type:"button",className:G(o.items.item.base,h&&o.items.item.selected,m&&o.items.item.disabled),onClick:()=>{m||(s(is(r,d-n.getFullYear())),a(Be.Years))},children:d},l)})})},r2=({theme:t={}})=>{const{theme:e,minDate:n,maxDate:r,selectedDate:s,viewDate:a,language:o,setViewDate:i,setView:l}=bo(),c=re(e.views.months,t);return g.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(a.getTime());f.setMonth(u);const h=ta(o,f,{month:"short"}),m=yo(s,f),p=!ea(f,n,r);return g.jsx("button",{disabled:p,type:"button",className:G(c.items.item.base,m&&c.items.item.selected,p&&c.items.item.disabled),onClick:()=>{p||(i(f),l(Be.Days))},children:h},u)})})},s2=({theme:t={}})=>{const{theme:e,selectedDate:n,minDate:r,maxDate:s,viewDate:a,setViewDate:o,setView:i}=bo(),l=re(e.views.years,t);return g.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=ls(a,10)-1+d*1,h=new Date(a.getTime());h.setFullYear(f);const m=yo(n,h),p=!ea(h,r,s);return g.jsx("button",{disabled:p,type:"button",className:G(l.items.item.base,m&&l.items.item.selected,p&&l.items.item.disabled),onClick:()=>{p||(o(h),i(Be.Months))},children:f},d)})})},a2=({title:t,open:e,inline:n=!1,autoHide:r=!0,showClearButton:s=!0,labelClearButton:a="Clear",showTodayButton:o=!0,labelTodayButton:i="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:f=Kf.Sunday,className:h,theme:m={},onSelectedDateChanged:p,...b},v)=>{const x=re(he().datepicker,m);l=Zk(l,c,d);const[k,w]=_.useState(e),[y,S]=_.useState(Be.Days),[N,D]=_.useState(l),[T,E]=_.useState(l),Y=_.useRef(null),L=_.useRef(null),O=(ee,j)=>{D(ee),p&&p(ee),r&&y===Be.Days&&j==!0&&!n&&w(!1)},C=()=>{O(l,!0),l&&E(l)};_.useImperativeHandle(v,()=>({focus(){var ee;(ee=Y.current)==null||ee.focus()},clear(){C()}}));const P=ee=>{switch(ee){case Be.Decades:return g.jsx(n2,{theme:x.views.decades});case Be.Years:return g.jsx(s2,{theme:x.views.years});case Be.Months:return g.jsx(r2,{theme:x.views.months});case Be.Days:default:return g.jsx(t2,{theme:x.views.days})}},F=()=>{switch(y){case Be.Days:return Be.Months;case Be.Months:return Be.Years;case Be.Years:return Be.Decades}return y},U=()=>{switch(y){case Be.Decades:return`${ls(T,100)} - ${ls(T,100)+90}`;case Be.Years:return`${ls(T,10)} - ${ls(T,10)+9}`;case Be.Months:return ta(u,T,{year:"numeric"});case Be.Days:default:return ta(u,T,{month:"long",year:"numeric"})}},Z=(ee,j,V)=>{switch(ee){case Be.Days:return new Date($k(j,V));case Be.Months:return new Date(is(j,V));case Be.Years:return new Date(is(j,V*10));case Be.Decades:return new Date(is(j,V*100));default:return new Date(is(j,V*10))}};return _.useEffect(()=>{const ee=j=>{var A,I;const V=(A=L==null?void 0:L.current)==null?void 0:A.contains(j.target),R=(I=Y==null?void 0:Y.current)==null?void 0:I.contains(j.target);!V&&!R&&w(!1)};return document.addEventListener("mousedown",ee),()=>{document.removeEventListener("mousedown",ee)}},[Y,L,w]),g.jsx(Xf.Provider,{value:{theme:x,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:k,setIsOpen:w,view:y,setView:S,viewDate:T,setViewDate:E,selectedDate:N,setSelectedDate:D,changeSelectedDate:O},children:g.jsxs("div",{className:G(x.root.base,h),children:[!n&&g.jsx(os,{theme:x.root.input,icon:hx,ref:Y,onFocus:()=>{yo(T,N)||E(N),w(!0)},value:N&&ta(u,N),readOnly:!0,...b}),(k||n)&&g.jsx("div",{ref:L,className:G(x.popup.root.base,n&&x.popup.root.inline),children:g.jsxs("div",{className:x.popup.root.inner,children:[g.jsxs("div",{className:x.popup.header.base,children:[t&&g.jsx("div",{className:x.popup.header.title,children:t}),g.jsxs("div",{className:x.popup.header.selectors.base,children:[g.jsx("button",{type:"button",className:G(x.popup.header.selectors.button.base,x.popup.header.selectors.button.prev),onClick:()=>E(Z(y,T,-1)),children:g.jsx(ux,{})}),g.jsx("button",{type:"button",className:G(x.popup.header.selectors.button.base,x.popup.header.selectors.button.view),onClick:()=>S(F()),children:U()}),g.jsx("button",{type:"button",className:G(x.popup.header.selectors.button.base,x.popup.header.selectors.button.next),onClick:()=>E(Z(y,T,1)),children:g.jsx(fx,{})})]})]}),g.jsx("div",{className:x.popup.view.base,children:P(y)}),(s||o)&&g.jsxs("div",{className:x.popup.footer.base,children:[o&&g.jsx("button",{type:"button",className:G(x.popup.footer.button.base,x.popup.footer.button.today),onClick:()=>{const ee=new Date;O(ee,!0),E(ee)},children:i}),s&&g.jsx("button",{type:"button",className:G(x.popup.footer.button.base,x.popup.footer.button.clear),onClick:()=>{O(l,!0),l&&E(l)},children:a})]})]})})]})})},Gf=_.forwardRef(a2);Gf.displayName="Datepicker";function wo(){return typeof window<"u"}function Sr(t){return Qf(t)?(t.nodeName||"").toLowerCase():"#document"}function Dt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function un(t){var e;return(e=(Qf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Qf(t){return wo()?t instanceof Node||t instanceof Dt(t).Node:!1}function Ee(t){return wo()?t instanceof Element||t instanceof Dt(t).Element:!1}function ft(t){return wo()?t instanceof HTMLElement||t instanceof Dt(t).HTMLElement:!1}function Kl(t){return!wo()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Dt(t).ShadowRoot}function na(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=Qt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(s)}function o2(t){return["table","td","th"].includes(Sr(t))}function vo(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Gl(t){const e=Ql(),n=Ee(t)?Qt(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function i2(t){let e=An(t);for(;ft(e)&&!nr(e);){if(Gl(e))return e;if(vo(e))return null;e=An(e)}return null}function Ql(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nr(t){return["html","body","#document"].includes(Sr(t))}function Qt(t){return Dt(t).getComputedStyle(t)}function xo(t){return Ee(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function An(t){if(Sr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Kl(t)&&t.host||un(t);return Kl(e)?e.host:e}function Zf(t){const e=An(t);return nr(e)?t.ownerDocument?t.ownerDocument.body:t.body:ft(e)&&na(e)?e:Zf(e)}function rr(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Zf(t),a=s===((r=t.ownerDocument)==null?void 0:r.body),o=Dt(s);if(a){const i=Zl(o);return e.concat(o,o.visualViewport||[],na(s)?s:[],i&&n?rr(i):[])}return e.concat(s,rr(s,[],n))}function Zl(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fn(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function et(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Kl(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function Jl(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Jf(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function qf(t){return t.mozInputSource===0&&t.isTrusted?!0:ec()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function ql(t){return l2()?!1:!ec()&&t.width===0&&t.height===0||ec()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function $l(){return/apple/i.test(navigator.vendor)}function ec(){const t=/android/i;return t.test(Jl())||t.test(Jf())}function $f(){return Jl().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function l2(){return Jf().includes("jsdom/")}function ko(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function c2(t){return"nativeEvent"in t}function d2(t){return t.matches("html,body")}function kt(t){return(t==null?void 0:t.ownerDocument)||document}function tc(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function sr(t){return"composedPath"in t?t.composedPath()[0]:t.target}const u2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function nc(t){return ft(t)&&t.matches(u2)}function ht(t){t.preventDefault(),t.stopPropagation()}function eh(t){return t?t.getAttribute("role")==="combobox"&&nc(t):!1}const f2=["top","right","bottom","left"],th=["start","end"],nh=f2.reduce((t,e)=>t.concat(e,e+"-"+th[0],e+"-"+th[1]),[]),cs=Math.min,Or=Math.max,_o=Math.round,ds=Math.floor,hn=t=>({x:t,y:t}),h2={left:"right",right:"left",bottom:"top",top:"bottom"},g2={start:"end",end:"start"};function rc(t,e,n){return Or(t,cs(e,n))}function us(t,e){return typeof t=="function"?t(e):t}function Rn(t){return t.split("-")[0]}function gn(t){return t.split("-")[1]}function rh(t){return t==="x"?"y":"x"}function sc(t){return t==="y"?"height":"width"}function So(t){return["top","bottom"].includes(Rn(t))?"y":"x"}function ac(t){return rh(So(t))}function sh(t,e,n){n===void 0&&(n=!1);const r=gn(t),s=ac(t),a=sc(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=Co(o)),[o,Co(o)]}function m2(t){const e=Co(t);return[Oo(t),e,Oo(e)]}function Oo(t){return t.replace(/start|end/g,e=>g2[e])}function p2(t,e,n){const r=["left","right"],s=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:r:e?r:s;case"left":case"right":return e?a:o;default:return[]}}function b2(t,e,n,r){const s=gn(t);let a=p2(Rn(t),n==="start",r);return s&&(a=a.map(o=>o+"-"+s),e&&(a=a.concat(a.map(Oo)))),a}function Co(t){return t.replace(/left|right|bottom|top/g,e=>h2[e])}function y2(t){return{top:0,right:0,bottom:0,left:0,...t}}function ah(t){return typeof t!="number"?y2(t):{top:t,right:t,bottom:t,left:t}}function Do(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function oh(t,e,n){let{reference:r,floating:s}=t;const a=So(e),o=ac(e),i=sc(o),l=Rn(e),c=a==="y",d=r.x+r.width/2-s.width/2,u=r.y+r.height/2-s.height/2,f=r[i]/2-s[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-s.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-s.width,y:u};break;default:h={x:r.x,y:r.y}}switch(gn(e)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const w2=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:o}=n,i=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:u}=oh(c,r,l),f=r,h={},m=0;for(let p=0;p<i.length;p++){const{name:b,fn:v}=i[p],{x,y:k,data:w,reset:y}=await v({x:d,y:u,initialPlacement:r,placement:f,strategy:s,middlewareData:h,rects:c,platform:o,elements:{reference:t,floating:e}});d=x??d,u=k??u,h={...h,[b]:{...h[b],...w}},y&&m<=50&&(m++,typeof y=="object"&&(y.placement&&(f=y.placement),y.rects&&(c=y.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):y.rects),{x:d,y:u}=oh(c,f,l)),p=-1)}return{x:d,y:u,placement:f,strategy:s,middlewareData:h}};async function oc(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:a,rects:o,elements:i,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=us(e,t),m=ah(h),b=i[f?u==="floating"?"reference":"floating":u],v=Do(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),x=u==="floating"?{...o.floating,x:r,y:s}:o.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),w=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},y=Do(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:k,strategy:l}):x);return{top:(v.top-y.top+m.top)/w.y,bottom:(y.bottom-v.bottom+m.bottom)/w.y,left:(v.left-y.left+m.left)/w.x,right:(y.right-v.right+m.right)/w.x}}const v2=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:a,platform:o,elements:i,middlewareData:l}=e,{element:c,padding:d=0}=us(t,e)||{};if(c==null)return{};const u=ah(d),f={x:n,y:r},h=ac(s),m=sc(h),p=await o.getDimensions(c),b=h==="y",v=b?"top":"left",x=b?"bottom":"right",k=b?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[h]-f[h]-a.floating[m],y=f[h]-a.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let N=S?S[k]:0;(!N||!await(o.isElement==null?void 0:o.isElement(S)))&&(N=i.floating[k]||a.floating[m]);const D=w/2-y/2,T=N/2-p[m]/2-1,E=cs(u[v],T),Y=cs(u[x],T),L=E,O=N-p[m]-Y,C=N/2-p[m]/2+D,P=rc(L,C,O),F=!l.arrow&&gn(s)!=null&&C!==P&&a.reference[m]/2-(C<L?E:Y)-p[m]/2<0,U=F?C<L?C-L:C-O:0;return{[h]:f[h]+U,data:{[h]:P,centerOffset:C-P-U,...F&&{alignmentOffset:U}},reset:F}}});function x2(t,e,n){return(t?[...n.filter(s=>gn(s)===t),...n.filter(s=>gn(s)!==t)]:n.filter(s=>Rn(s)===s)).filter(s=>t?gn(s)===t||(e?Oo(s)!==s:!1):!0)}const k2=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,s;const{rects:a,middlewareData:o,placement:i,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:f=nh,autoAlignment:h=!0,...m}=us(t,e),p=u!==void 0||f===nh?x2(u||null,h,f):f,b=await oc(e,m),v=((n=o.autoPlacement)==null?void 0:n.index)||0,x=p[v];if(x==null)return{};const k=sh(x,a,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(i!==x)return{reset:{placement:p[0]}};const w=[b[Rn(x)],b[k[0]],b[k[1]]],y=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:x,overflows:w}],S=p[v+1];if(S)return{data:{index:v+1,overflows:y},reset:{placement:S}};const N=y.map(E=>{const Y=gn(E.placement);return[E.placement,Y&&d?E.overflows.slice(0,2).reduce((L,O)=>L+O,0):E.overflows[0],E.overflows]}).sort((E,Y)=>E[1]-Y[1]),T=((s=N.filter(E=>E[2].slice(0,gn(E[0])?2:3).every(Y=>Y<=0))[0])==null?void 0:s[0])||N[0][0];return T!==i?{data:{index:v+1,overflows:y},reset:{placement:T}}:{}}}},_2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:a,rects:o,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...b}=us(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Rn(s),x=Rn(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(x||!p?[Co(i)]:m2(i));!f&&m!=="none"&&w.push(...b2(i,p,m,k));const y=[i,...w],S=await oc(e,b),N=[];let D=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&N.push(S[v]),u){const L=sh(s,o,k);N.push(S[L[0]],S[L[1]])}if(D=[...D,{placement:s,overflows:N}],!N.every(L=>L<=0)){var T,E;const L=(((T=a.flip)==null?void 0:T.index)||0)+1,O=y[L];if(O)return{data:{index:L,overflows:D},reset:{placement:O}};let C=(E=D.filter(P=>P.overflows[0]<=0).sort((P,F)=>P.overflows[1]-F.overflows[1])[0])==null?void 0:E.placement;if(!C)switch(h){case"bestFit":{var Y;const P=(Y=D.map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,Z)=>U+Z,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:Y[0];P&&(C=P);break}case"initialPlacement":C=i;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function S2(t,e){const{placement:n,platform:r,elements:s}=t,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Rn(n),i=gn(n),l=So(n)==="y",c=["left","top"].includes(o)?-1:1,d=a&&l?-1:1,u=us(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return i&&typeof m=="number"&&(h=i==="end"?m*-1:m),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const O2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:a,placement:o,middlewareData:i}=e,l=await S2(e,t);return o===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:a+l.y,data:{...l,placement:o}}}}},C2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:i={fn:b=>{let{x:v,y:x}=b;return{x:v,y:x}}},...l}=us(t,e),c={x:n,y:r},d=await oc(e,l),u=So(Rn(s)),f=rh(u);let h=c[f],m=c[u];if(a){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=h+d[b],k=h-d[v];h=rc(x,h,k)}if(o){const b=u==="y"?"top":"left",v=u==="y"?"bottom":"right",x=m+d[b],k=m-d[v];m=rc(x,m,k)}const p=i.fn({...e,[f]:h,[u]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function ih(t){const e=Qt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=ft(t),a=s?t.offsetWidth:n,o=s?t.offsetHeight:r,i=_o(n)!==a||_o(r)!==o;return i&&(n=a,r=o),{width:n,height:r,$:i}}function ic(t){return Ee(t)?t:t.contextElement}function fs(t){const e=ic(t);if(!ft(e))return hn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:a}=ih(e);let o=(a?_o(n.width):n.width)/r,i=(a?_o(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const D2=hn(0);function lh(t){const e=Dt(t);return!Ql()||!e.visualViewport?D2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function M2(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Dt(t)?!1:e}function Cr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),a=ic(t);let o=hn(1);e&&(r?Ee(r)&&(o=fs(r)):o=fs(t));const i=M2(a,n,r)?lh(a):hn(0);let l=(s.left+i.x)/o.x,c=(s.top+i.y)/o.y,d=s.width/o.x,u=s.height/o.y;if(a){const f=Dt(a),h=r&&Ee(r)?Dt(r):r;let m=f,p=Zl(m);for(;p&&r&&h!==m;){const b=fs(p),v=p.getBoundingClientRect(),x=Qt(p),k=v.left+(p.clientLeft+parseFloat(x.paddingLeft))*b.x,w=v.top+(p.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=w,m=Dt(p),p=Zl(m)}}return Do({width:d,height:u,x:l,y:c})}function lc(t,e){const n=xo(t).scrollLeft;return e?e.left+n:Cr(un(t)).left+n}function ch(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:lc(t,r)),a=r.top+e.scrollTop;return{x:s,y:a}}function E2(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const a=s==="fixed",o=un(r),i=e?vo(e.floating):!1;if(r===o||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=hn(1);const d=hn(0),u=ft(r);if((u||!u&&!a)&&((Sr(r)!=="body"||na(o))&&(l=xo(r)),ft(r))){const h=Cr(r);c=fs(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const f=o&&!u&&!a?ch(o,l,!0):hn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}}function P2(t){return Array.from(t.getClientRects())}function T2(t){const e=un(t),n=xo(t),r=t.ownerDocument.body,s=Or(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Or(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+lc(t);const i=-n.scrollTop;return Qt(r).direction==="rtl"&&(o+=Or(e.clientWidth,r.clientWidth)-s),{width:s,height:a,x:o,y:i}}function N2(t,e){const n=Dt(t),r=un(t),s=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;const c=Ql();(!c||c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i,y:l}}function j2(t,e){const n=Cr(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,a=ft(t)?fs(t):hn(1),o=t.clientWidth*a.x,i=t.clientHeight*a.y,l=s*a.x,c=r*a.y;return{width:o,height:i,x:l,y:c}}function dh(t,e,n){let r;if(e==="viewport")r=N2(t,n);else if(e==="document")r=T2(un(t));else if(Ee(e))r=j2(e,n);else{const s=lh(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Do(r)}function uh(t,e){const n=An(t);return n===e||!Ee(n)||nr(n)?!1:Qt(n).position==="fixed"||uh(n,e)}function I2(t,e){const n=e.get(t);if(n)return n;let r=rr(t,[],!1).filter(i=>Ee(i)&&Sr(i)!=="body"),s=null;const a=Qt(t).position==="fixed";let o=a?An(t):t;for(;Ee(o)&&!nr(o);){const i=Qt(o),l=Gl(o);!l&&i.position==="fixed"&&(s=null),(a?!l&&!s:!l&&i.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||na(o)&&!l&&uh(t,o))?r=r.filter(d=>d!==o):s=i,o=An(o)}return e.set(t,r),r}function A2(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?vo(e)?[]:I2(e,this._c):[].concat(n),r],i=o[0],l=o.reduce((c,d)=>{const u=dh(e,d,s);return c.top=Or(u.top,c.top),c.right=cs(u.right,c.right),c.bottom=cs(u.bottom,c.bottom),c.left=Or(u.left,c.left),c},dh(e,i,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function R2(t){const{width:e,height:n}=ih(t);return{width:e,height:n}}function L2(t,e,n){const r=ft(e),s=un(e),a=n==="fixed",o=Cr(t,!0,a,e);let i={scrollLeft:0,scrollTop:0};const l=hn(0);if(r||!r&&!a)if((Sr(e)!=="body"||na(s))&&(i=xo(e)),r){const f=Cr(e,!0,a,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else s&&(l.x=lc(s));const c=s&&!r&&!a?ch(s,i):hn(0),d=o.left+i.scrollLeft-l.x-c.x,u=o.top+i.scrollTop-l.y-c.y;return{x:d,y:u,width:o.width,height:o.height}}function cc(t){return Qt(t).position==="static"}function fh(t,e){if(!ft(t)||Qt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return un(t)===n&&(n=n.ownerDocument.body),n}function hh(t,e){const n=Dt(t);if(vo(t))return n;if(!ft(t)){let s=An(t);for(;s&&!nr(s);){if(Ee(s)&&!cc(s))return s;s=An(s)}return n}let r=fh(t,e);for(;r&&o2(r)&&cc(r);)r=fh(r,e);return r&&nr(r)&&cc(r)&&!Gl(r)?n:r||i2(t)||n}const F2=async function(t){const e=this.getOffsetParent||hh,n=this.getDimensions,r=await n(t.floating);return{reference:L2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function W2(t){return Qt(t).direction==="rtl"}const B2={convertOffsetParentRelativeRectToViewportRelativeRect:E2,getDocumentElement:un,getClippingRect:A2,getOffsetParent:hh,getElementRects:F2,getClientRects:P2,getDimensions:R2,getScale:fs,isElement:Ee,isRTL:W2};function gh(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function z2(t,e){let n=null,r;const s=un(t);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function o(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(i||e(),!f||!h)return;const m=ds(u),p=ds(s.clientWidth-(d+f)),b=ds(s.clientHeight-(u+h)),v=ds(d),k={rootMargin:-m+"px "+-p+"px "+-b+"px "+-v+"px",threshold:Or(0,cs(1,l))||1};let w=!0;function y(S){const N=S[0].intersectionRatio;if(N!==l){if(!w)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!gh(c,t.getBoundingClientRect())&&o(),w=!1}try{n=new IntersectionObserver(y,{...k,root:s.ownerDocument})}catch{n=new IntersectionObserver(y,k)}n.observe(t)}return o(!0),a}function mh(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ic(t),d=s||a?[...c?rr(c):[],...rr(e)]:[];d.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const u=c&&i?z2(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(v=>{let[x]=v;x&&x.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let m,p=l?Cr(t):null;l&&b();function b(){const v=Cr(t);p&&!gh(p,v)&&n(),p=v,m=requestAnimationFrame(b)}return n(),()=>{var v;d.forEach(x=>{s&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),u==null||u(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const H2=O2,Y2=k2,V2=C2,U2=_2,ph=v2,X2=(t,e,n)=>{const r=new Map,s={platform:B2,...n},a={...s.platform,_c:r};return w2(t,e,{...s,platform:a})};var Mo=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Eo(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Eo(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&t.$$typeof)&&!Eo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function bh(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function yh(t,e){const n=bh(t);return Math.round(e*n)/n}function dc(t){const e=z.useRef(t);return Mo(()=>{e.current=t}),e}function K2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:o}={},transform:i=!0,whileElementsMounted:l,open:c}=t,[d,u]=z.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=z.useState(r);Eo(f,r)||h(r);const[m,p]=z.useState(null),[b,v]=z.useState(null),x=z.useCallback(Z=>{Z!==S.current&&(S.current=Z,p(Z))},[]),k=z.useCallback(Z=>{Z!==N.current&&(N.current=Z,v(Z))},[]),w=a||m,y=o||b,S=z.useRef(null),N=z.useRef(null),D=z.useRef(d),T=l!=null,E=dc(l),Y=dc(s),L=dc(c),O=z.useCallback(()=>{if(!S.current||!N.current)return;const Z={placement:e,strategy:n,middleware:f};Y.current&&(Z.platform=Y.current),X2(S.current,N.current,Z).then(ee=>{const j={...ee,isPositioned:L.current!==!1};C.current&&!Eo(D.current,j)&&(D.current=j,Jv.flushSync(()=>{u(j)}))})},[f,e,n,Y,L]);Mo(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(Z=>({...Z,isPositioned:!1})))},[c]);const C=z.useRef(!1);Mo(()=>(C.current=!0,()=>{C.current=!1}),[]),Mo(()=>{if(w&&(S.current=w),y&&(N.current=y),w&&y){if(E.current)return E.current(w,y,O);O()}},[w,y,O,E,T]);const P=z.useMemo(()=>({reference:S,floating:N,setReference:x,setFloating:k}),[x,k]),F=z.useMemo(()=>({reference:w,floating:y}),[w,y]),U=z.useMemo(()=>{const Z={position:n,left:0,top:0};if(!F.floating)return Z;const ee=yh(F.floating,d.x),j=yh(F.floating,d.y);return i?{...Z,transform:"translate("+ee+"px, "+j+"px)",...bh(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:j}},[n,i,F.floating,d.x,d.y]);return z.useMemo(()=>({...d,update:O,refs:P,elements:F,floatingStyles:U}),[d,O,P,F,U])}const G2=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?ph({element:r.current,padding:s}).fn(n):{}:r?ph({element:r,padding:s}).fn(n):{}}}},Q2=(t,e)=>({...H2(t),options:[t,e]}),Z2=(t,e)=>({...V2(t),options:[t,e]}),J2=(t,e)=>({...U2(t),options:[t,e]}),q2=(t,e)=>({...Y2(t),options:[t,e]}),$2=(t,e)=>({...G2(t),options:[t,e]});/*!
5
+ */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(a=s(a,r(i)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var i in a)e.call(a,i)&&a[i]&&(o=s(o,i));return o}function s(a,o){return o?a?a+" "+o:a+o:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Kf);var nr=Kf.exports;const Xk=Uf(nr);var Gl={exports:{}};function Gf(t,e=100,n={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(e<0)throw new RangeError("`wait` must not be negative.");const{immediate:r}=typeof n=="boolean"?{immediate:n}:n;let s,a,o,i,l;function c(){const u=Date.now()-i;if(u<e&&u>=0)o=setTimeout(c,e-u);else if(o=void 0,!r){const f=s,h=a;s=void 0,a=void 0,l=t.apply(f,h)}}const d=function(...u){if(s&&this!==s)throw new Error("Debounced method called with different contexts.");s=this,a=u,i=Date.now();const f=r&&!o;if(o||(o=setTimeout(c,e)),f){const h=s,p=a;s=void 0,a=void 0,l=t.apply(h,p)}return l};return d.clear=()=>{o&&(clearTimeout(o),o=void 0)},d.flush=()=>{if(!o)return;const u=s,f=a;s=void 0,a=void 0,l=t.apply(u,f),clearTimeout(o),o=void 0},d}Gl.exports.debounce=Gf,Gl.exports=Gf;var Kk=Gl.exports;const Gk=Uf(Kk);var Qk=Object.defineProperty,Zk=(t,e,n)=>e in t?Qk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ot=(t,e,n)=>(Zk(t,typeof e!="symbol"?e+"":e,n),n);const Jk=300,qk=0;class $k extends _.PureComponent{constructor(e){super(e),ot(this,"container"),ot(this,"scrolling"),ot(this,"started"),ot(this,"pressed"),ot(this,"isMobile",!1),ot(this,"internal"),ot(this,"scrollLeft"),ot(this,"scrollTop"),ot(this,"clientX"),ot(this,"clientY"),ot(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),ot(this,"onScroll",()=>{const n=this.container.current;(n.scrollLeft!==this.scrollLeft||n.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),ot(this,"onTouchStart",n=>{const{nativeMobileScroll:r}=this.props;if(this.isDraggable(n.target))if(this.internal=!0,r&&this.scrolling)this.pressed=!0;else{const s=n.touches[0];this.processClick(s.clientX,s.clientY),!r&&this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onTouchEnd",()=>{const{nativeMobileScroll:n}=this.props;this.pressed&&(this.started&&(!this.scrolling||!n)?this.processEnd():this.pressed=!1,this.forceUpdate())}),ot(this,"onTouchMove",n=>{const{nativeMobileScroll:r}=this.props;if(this.pressed&&(!r||!this.isMobile)){const s=n.touches[0];s&&this.processMove(s.clientX,s.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()}}),ot(this,"onMouseDown",n=>{var r,s;this.isDraggable(n.target)&&this.isScrollable()&&(this.internal=!0,((s=(r=this.props)==null?void 0:r.buttons)==null?void 0:s.indexOf(n.button))!==-1&&(this.processClick(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()))}),ot(this,"onMouseMove",n=>{this.pressed&&(this.processMove(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),ot(this,"onMouseUp",n=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(n)),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),this.container=_.createRef(),this.onEndScroll=Gk(this.onEndScroll,Jk),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,n=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),n.addEventListener("touchstart",this.onTouchStart,{passive:!1}),n.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())}componentWillUnmount(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)}getElement(){return this.container.current}isMobileDevice(){return typeof window.orientation<"u"||navigator.userAgent.indexOf("IEMobile")!==-1}isDraggable(e){const n=this.props.ignoreElements;if(n){const r=e.closest(n);return r===null||r.contains(this.getElement())}else return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,n){const r=this.container.current;this.scrollLeft=r==null?void 0:r.scrollLeft,this.scrollTop=r==null?void 0:r.scrollTop,this.clientX=e,this.clientY=n,this.pressed=!0}processStart(e=!0){const{onStartScroll:n}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),n&&n({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){const{onScroll:e}=this.props;e&&e({external:!this.internal})}else this.processStart(!1)}processMove(e,n){const{horizontal:r,vertical:s,activationDistance:a,onScroll:o}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),s&&(i.scrollTop-=n-this.clientY),o&&o({external:!this.internal}),this.clientX=e,this.clientY=n,this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop):(r&&Math.abs(e-this.clientX)>a||s&&Math.abs(n-this.clientY)>a)&&(this.clientX=e,this.clientY=n,this.processStart())}processEnd(){const{onEndScroll:e}=this.props;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(e){[this.container,this.props.innerRef].forEach(n=>{n&&(typeof n=="function"?n(e):n.current=e)})}render(){const{children:e,draggingClassName:n,className:r,style:s,hideScrollbars:a}=this.props;return g.jsx("div",{className:Xk(r,this.pressed&&n,{"!scroll-auto [&>*]:pointer-events-none [&>*]:cursor-grab":this.pressed,"overflow-auto":this.isMobile,"overflow-hidden !overflow-x-hidden [overflow:-moz-scrollbars-none] [scrollbar-width:none]":a,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":a}),style:s,ref:this.getRef,onScroll:this.onScroll,children:e})}}ot($k,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[qk]});const ta=_.forwardRef(({className:t,color:e="default",theme:n={},...r},s)=>{const a=re(he().checkbox,n);return g.jsx("input",{ref:s,type:"checkbox",className:G(a.root.base,a.root.color[e],t),...r})});ta.displayName="Checkbox";const na=({children:t,className:e,color:n="default",theme:r={},value:s,...a})=>{const o=re(he().helperText,r);return g.jsx("p",{className:G(o.root.base,o.root.colors[n],e),...a,children:s??t??""})};na.displayName="HelperText";const ls=_.forwardRef(({addon:t,className:e,color:n="gray",helperText:r,icon:s,rightIcon:a,shadow:o,sizing:i="md",theme:l={},type:c="text",...d},u)=>{const f=re(he().textInput,l);return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:G(f.base,e),children:[t&&g.jsx("span",{className:f.addon,children:t}),g.jsxs("div",{className:f.field.base,children:[s&&g.jsx("div",{className:f.field.icon.base,children:g.jsx(s,{className:f.field.icon.svg})}),a&&g.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:g.jsx(a,{className:f.field.rightIcon.svg})}),g.jsx("input",{className:G(f.field.input.base,f.field.input.colors[n],f.field.input.sizes[i],f.field.input.withIcon[s?"on":"off"],f.field.input.withRightIcon[a?"on":"off"],f.field.input.withAddon[t?"on":"off"],f.field.input.withShadow[o?"on":"off"]),type:c,...d,ref:u})]})]}),r&&g.jsx(na,{color:n,children:r})]})});ls.displayName="TextInput";const Qf=_.createContext(void 0);function xo(){const t=_.useContext(Qf);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var ze=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(ze||{}),Zf=(t=>(t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t))(Zf||{});const ra=(t,e,n)=>{const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&n){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r>=s&&r<=a}if(e){const s=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return r>=s}if(n){const s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r<=s}return!0},ko=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),e2=(t,e,n)=>(ra(t,e,n)||(e&&t<e?t=e:n&&t>n&&(t=n)),t),t2=(t,e)=>{const n=new Date(t.getFullYear(),t.getMonth(),1);let s=n.getDay()-e;return s<0&&(s+=7),Ql(n,-s)},n2=(t,e)=>{const n=[],r=new Date(0);r.setDate(r.getDate()-r.getDay()+e);const s=new Intl.DateTimeFormat(t,{weekday:"short"});for(let a=0;a<7;a++)n.push(s.format(Ql(r,a)));return n},Ql=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),n},r2=(t,e)=>{const n=new Date(t);return n.setMonth(n.getMonth()+e),n},cs=(t,e)=>{const n=new Date(t);return n.setFullYear(n.getFullYear()+e),n},sa=(t,e,n)=>{let r={day:"numeric",month:"long",year:"numeric"};return n&&(r=n),new Intl.DateTimeFormat(t,r).format(e)},ds=(t,e)=>{const n=t.getFullYear();return Math.floor(n/e)*e},s2=(t,e)=>{const n=t.getFullYear(),r=e+9;return n>=e&&n<=r},a2=({theme:t={}})=>{const{theme:e,weekStart:n,minDate:r,maxDate:s,viewDate:a,selectedDate:o,changeSelectedDate:i,language:l}=xo(),c=re(e.views.days,t),d=n2(l,n),u=t2(a,n);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:c.header.base,children:d.map((f,h)=>g.jsx("span",{className:c.header.title,children:f},h))}),g.jsx("div",{className:c.items.base,children:[...Array(42)].map((f,h)=>{const p=Ql(u,h),m=sa(l,p,{day:"numeric"}),b=ko(o,p),y=!ra(p,r,s);return g.jsx("button",{disabled:y,type:"button",className:G(c.items.item.base,b&&c.items.item.selected,y&&c.items.item.disabled),onClick:()=>{y||i(p,!0)},children:m},h)})})]})},o2=({theme:t={}})=>{const{theme:e,selectedDate:n,viewDate:r,setViewDate:s,setView:a}=xo(),o=re(e.views.decades,t);return g.jsx("div",{className:o.items.base,children:[...Array(12)].map((i,l)=>{const d=ds(r,100)-10+l*10,u=new Date(d,0,1),f=cs(u,9),h=s2(r,d),p=!ra(r,u,f);return g.jsx("button",{disabled:p,type:"button",className:G(o.items.item.base,h&&o.items.item.selected,p&&o.items.item.disabled),onClick:()=>{p||(s(cs(r,d-n.getFullYear())),a(ze.Years))},children:d},l)})})},i2=({theme:t={}})=>{const{theme:e,minDate:n,maxDate:r,selectedDate:s,viewDate:a,language:o,setViewDate:i,setView:l}=xo(),c=re(e.views.months,t);return g.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(a.getTime());f.setMonth(u);const h=sa(o,f,{month:"short"}),p=ko(s,f),m=!ra(f,n,r);return g.jsx("button",{disabled:m,type:"button",className:G(c.items.item.base,p&&c.items.item.selected,m&&c.items.item.disabled),onClick:()=>{m||(i(f),l(ze.Days))},children:h},u)})})},l2=({theme:t={}})=>{const{theme:e,selectedDate:n,minDate:r,maxDate:s,viewDate:a,setViewDate:o,setView:i}=xo(),l=re(e.views.years,t);return g.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=ds(a,10)-1+d*1,h=new Date(a.getTime());h.setFullYear(f);const p=ko(n,h),m=!ra(h,r,s);return g.jsx("button",{disabled:m,type:"button",className:G(l.items.item.base,p&&l.items.item.selected,m&&l.items.item.disabled),onClick:()=>{m||(o(h),i(ze.Months))},children:f},d)})})},c2=({title:t,open:e,inline:n=!1,autoHide:r=!0,showClearButton:s=!0,labelClearButton:a="Clear",showTodayButton:o=!0,labelTodayButton:i="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:f=Zf.Sunday,className:h,theme:p={},onSelectedDateChanged:m,...b},y)=>{const x=re(he().datepicker,p);l=e2(l,c,d);const[k,v]=_.useState(e),[w,S]=_.useState(ze.Days),[N,D]=_.useState(l),[T,E]=_.useState(l),Y=_.useRef(null),L=_.useRef(null),O=(ee,j)=>{D(ee),m&&m(ee),r&&w===ze.Days&&j==!0&&!n&&v(!1)},C=()=>{O(l,!0),l&&E(l)};_.useImperativeHandle(y,()=>({focus(){var ee;(ee=Y.current)==null||ee.focus()},clear(){C()}}));const P=ee=>{switch(ee){case ze.Decades:return g.jsx(o2,{theme:x.views.decades});case ze.Years:return g.jsx(l2,{theme:x.views.years});case ze.Months:return g.jsx(i2,{theme:x.views.months});case ze.Days:default:return g.jsx(a2,{theme:x.views.days})}},F=()=>{switch(w){case ze.Days:return ze.Months;case ze.Months:return ze.Years;case ze.Years:return ze.Decades}return w},U=()=>{switch(w){case ze.Decades:return`${ds(T,100)} - ${ds(T,100)+90}`;case ze.Years:return`${ds(T,10)} - ${ds(T,10)+9}`;case ze.Months:return sa(u,T,{year:"numeric"});case ze.Days:default:return sa(u,T,{month:"long",year:"numeric"})}},Z=(ee,j,V)=>{switch(ee){case ze.Days:return new Date(r2(j,V));case ze.Months:return new Date(cs(j,V));case ze.Years:return new Date(cs(j,V*10));case ze.Decades:return new Date(cs(j,V*100));default:return new Date(cs(j,V*10))}};return _.useEffect(()=>{const ee=j=>{var A,I;const V=(A=L==null?void 0:L.current)==null?void 0:A.contains(j.target),R=(I=Y==null?void 0:Y.current)==null?void 0:I.contains(j.target);!V&&!R&&v(!1)};return document.addEventListener("mousedown",ee),()=>{document.removeEventListener("mousedown",ee)}},[Y,L,v]),g.jsx(Qf.Provider,{value:{theme:x,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:k,setIsOpen:v,view:w,setView:S,viewDate:T,setViewDate:E,selectedDate:N,setSelectedDate:D,changeSelectedDate:O},children:g.jsxs("div",{className:G(x.root.base,h),children:[!n&&g.jsx(ls,{theme:x.root.input,icon:bx,ref:Y,onFocus:()=>{ko(T,N)||E(N),v(!0)},value:N&&sa(u,N),readOnly:!0,...b}),(k||n)&&g.jsx("div",{ref:L,className:G(x.popup.root.base,n&&x.popup.root.inline),children:g.jsxs("div",{className:x.popup.root.inner,children:[g.jsxs("div",{className:x.popup.header.base,children:[t&&g.jsx("div",{className:x.popup.header.title,children:t}),g.jsxs("div",{className:x.popup.header.selectors.base,children:[g.jsx("button",{type:"button",className:G(x.popup.header.selectors.button.base,x.popup.header.selectors.button.prev),onClick:()=>E(Z(w,T,-1)),children:g.jsx(mx,{})}),g.jsx("button",{type:"button",className:G(x.popup.header.selectors.button.base,x.popup.header.selectors.button.view),onClick:()=>S(F()),children:U()}),g.jsx("button",{type:"button",className:G(x.popup.header.selectors.button.base,x.popup.header.selectors.button.next),onClick:()=>E(Z(w,T,1)),children:g.jsx(px,{})})]})]}),g.jsx("div",{className:x.popup.view.base,children:P(w)}),(s||o)&&g.jsxs("div",{className:x.popup.footer.base,children:[o&&g.jsx("button",{type:"button",className:G(x.popup.footer.button.base,x.popup.footer.button.today),onClick:()=>{const ee=new Date;O(ee,!0),E(ee)},children:i}),s&&g.jsx("button",{type:"button",className:G(x.popup.footer.button.base,x.popup.footer.button.clear),onClick:()=>{O(l,!0),l&&E(l)},children:a})]})]})})]})})},Jf=_.forwardRef(c2);Jf.displayName="Datepicker";function _o(){return typeof window<"u"}function Dr(t){return qf(t)?(t.nodeName||"").toLowerCase():"#document"}function Dt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function un(t){var e;return(e=(qf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qf(t){return _o()?t instanceof Node||t instanceof Dt(t).Node:!1}function Pe(t){return _o()?t instanceof Element||t instanceof Dt(t).Element:!1}function ft(t){return _o()?t instanceof HTMLElement||t instanceof Dt(t).HTMLElement:!1}function Zl(t){return!_o()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Dt(t).ShadowRoot}function aa(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=Qt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(s)}function d2(t){return["table","td","th"].includes(Dr(t))}function So(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Jl(t){const e=ql(),n=Pe(t)?Qt(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function u2(t){let e=Rn(t);for(;ft(e)&&!rr(e);){if(Jl(e))return e;if(So(e))return null;e=Rn(e)}return null}function ql(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function rr(t){return["html","body","#document"].includes(Dr(t))}function Qt(t){return Dt(t).getComputedStyle(t)}function Oo(t){return Pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Rn(t){if(Dr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Zl(t)&&t.host||un(t);return Zl(e)?e.host:e}function $f(t){const e=Rn(t);return rr(e)?t.ownerDocument?t.ownerDocument.body:t.body:ft(e)&&aa(e)?e:$f(e)}function sr(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=$f(t),a=s===((r=t.ownerDocument)==null?void 0:r.body),o=Dt(s);if(a){const i=$l(o);return e.concat(o,o.visualViewport||[],aa(s)?s:[],i&&n?sr(i):[])}return e.concat(s,sr(s,[],n))}function $l(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fn(t){let e=t.activeElement;for(;((n=e)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;e=e.shadowRoot.activeElement}return e}function tt(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Zl(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function ec(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function eh(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:n,version:r}=e;return n+"/"+r}).join(" "):navigator.userAgent}function th(t){return t.mozInputSource===0&&t.isTrusted?!0:rc()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function tc(t){return f2()?!1:!rc()&&t.width===0&&t.height===0||rc()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function nc(){return/apple/i.test(navigator.vendor)}function rc(){const t=/android/i;return t.test(ec())||t.test(eh())}function nh(){return ec().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function f2(){return eh().includes("jsdom/")}function Co(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function h2(t){return"nativeEvent"in t}function g2(t){return t.matches("html,body")}function kt(t){return(t==null?void 0:t.ownerDocument)||document}function sc(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const n=t;return n.target!=null&&e.contains(n.target)}function ar(t){return"composedPath"in t?t.composedPath()[0]:t.target}const m2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ac(t){return ft(t)&&t.matches(m2)}function ht(t){t.preventDefault(),t.stopPropagation()}function rh(t){return t?t.getAttribute("role")==="combobox"&&ac(t):!1}const p2=["top","right","bottom","left"],sh=["start","end"],ah=p2.reduce((t,e)=>t.concat(e,e+"-"+sh[0],e+"-"+sh[1]),[]),us=Math.min,Mr=Math.max,Do=Math.round,fs=Math.floor,hn=t=>({x:t,y:t}),b2={left:"right",right:"left",bottom:"top",top:"bottom"},y2={start:"end",end:"start"};function oc(t,e,n){return Mr(t,us(e,n))}function hs(t,e){return typeof t=="function"?t(e):t}function Ln(t){return t.split("-")[0]}function gn(t){return t.split("-")[1]}function oh(t){return t==="x"?"y":"x"}function ic(t){return t==="y"?"height":"width"}function Mo(t){return["top","bottom"].includes(Ln(t))?"y":"x"}function lc(t){return oh(Mo(t))}function ih(t,e,n){n===void 0&&(n=!1);const r=gn(t),s=lc(t),a=ic(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(o=Po(o)),[o,Po(o)]}function w2(t){const e=Po(t);return[Eo(t),e,Eo(e)]}function Eo(t){return t.replace(/start|end/g,e=>y2[e])}function v2(t,e,n){const r=["left","right"],s=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:r:e?r:s;case"left":case"right":return e?a:o;default:return[]}}function x2(t,e,n,r){const s=gn(t);let a=v2(Ln(t),n==="start",r);return s&&(a=a.map(o=>o+"-"+s),e&&(a=a.concat(a.map(Eo)))),a}function Po(t){return t.replace(/left|right|bottom|top/g,e=>b2[e])}function k2(t){return{top:0,right:0,bottom:0,left:0,...t}}function lh(t){return typeof t!="number"?k2(t):{top:t,right:t,bottom:t,left:t}}function To(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function ch(t,e,n){let{reference:r,floating:s}=t;const a=Mo(e),o=lc(e),i=ic(o),l=Ln(e),c=a==="y",d=r.x+r.width/2-s.width/2,u=r.y+r.height/2-s.height/2,f=r[i]/2-s[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-s.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-s.width,y:u};break;default:h={x:r.x,y:r.y}}switch(gn(e)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const _2=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:a=[],platform:o}=n,i=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:u}=ch(c,r,l),f=r,h={},p=0;for(let m=0;m<i.length;m++){const{name:b,fn:y}=i[m],{x,y:k,data:v,reset:w}=await y({x:d,y:u,initialPlacement:r,placement:f,strategy:s,middlewareData:h,rects:c,platform:o,elements:{reference:t,floating:e}});d=x??d,u=k??u,h={...h,[b]:{...h[b],...v}},w&&p<=50&&(p++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(c=w.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):w.rects),{x:d,y:u}=ch(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:s,middlewareData:h}};async function cc(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:a,rects:o,elements:i,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=hs(e,t),p=lh(h),b=i[f?u==="floating"?"reference":"floating":u],y=To(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),x=u==="floating"?{...o.floating,x:r,y:s}:o.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),v=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},w=To(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:k,strategy:l}):x);return{top:(y.top-w.top+p.top)/v.y,bottom:(w.bottom-y.bottom+p.bottom)/v.y,left:(y.left-w.left+p.left)/v.x,right:(w.right-y.right+p.right)/v.x}}const S2=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:a,platform:o,elements:i,middlewareData:l}=e,{element:c,padding:d=0}=hs(t,e)||{};if(c==null)return{};const u=lh(d),f={x:n,y:r},h=lc(s),p=ic(h),m=await o.getDimensions(c),b=h==="y",y=b?"top":"left",x=b?"bottom":"right",k=b?"clientHeight":"clientWidth",v=a.reference[p]+a.reference[h]-f[h]-a.floating[p],w=f[h]-a.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let N=S?S[k]:0;(!N||!await(o.isElement==null?void 0:o.isElement(S)))&&(N=i.floating[k]||a.floating[p]);const D=v/2-w/2,T=N/2-m[p]/2-1,E=us(u[y],T),Y=us(u[x],T),L=E,O=N-m[p]-Y,C=N/2-m[p]/2+D,P=oc(L,C,O),F=!l.arrow&&gn(s)!=null&&C!==P&&a.reference[p]/2-(C<L?E:Y)-m[p]/2<0,U=F?C<L?C-L:C-O:0;return{[h]:f[h]+U,data:{[h]:P,centerOffset:C-P-U,...F&&{alignmentOffset:U}},reset:F}}});function O2(t,e,n){return(t?[...n.filter(s=>gn(s)===t),...n.filter(s=>gn(s)!==t)]:n.filter(s=>Ln(s)===s)).filter(s=>t?gn(s)===t||(e?Eo(s)!==s:!1):!0)}const C2=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,s;const{rects:a,middlewareData:o,placement:i,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:f=ah,autoAlignment:h=!0,...p}=hs(t,e),m=u!==void 0||f===ah?O2(u||null,h,f):f,b=await cc(e,p),y=((n=o.autoPlacement)==null?void 0:n.index)||0,x=m[y];if(x==null)return{};const k=ih(x,a,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(i!==x)return{reset:{placement:m[0]}};const v=[b[Ln(x)],b[k[0]],b[k[1]]],w=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:x,overflows:v}],S=m[y+1];if(S)return{data:{index:y+1,overflows:w},reset:{placement:S}};const N=w.map(E=>{const Y=gn(E.placement);return[E.placement,Y&&d?E.overflows.slice(0,2).reduce((L,O)=>L+O,0):E.overflows[0],E.overflows]}).sort((E,Y)=>E[1]-Y[1]),T=((s=N.filter(E=>E[2].slice(0,gn(E[0])?2:3).every(Y=>Y<=0))[0])==null?void 0:s[0])||N[0][0];return T!==i?{data:{index:y+1,overflows:w},reset:{placement:T}}:{}}}},D2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:a,rects:o,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...b}=hs(t,e);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Ln(s),x=Ln(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),v=f||(x||!m?[Po(i)]:w2(i));!f&&p!=="none"&&v.push(...x2(i,m,p,k));const w=[i,...v],S=await cc(e,b),N=[];let D=((r=a.flip)==null?void 0:r.overflows)||[];if(d&&N.push(S[y]),u){const L=ih(s,o,k);N.push(S[L[0]],S[L[1]])}if(D=[...D,{placement:s,overflows:N}],!N.every(L=>L<=0)){var T,E;const L=(((T=a.flip)==null?void 0:T.index)||0)+1,O=w[L];if(O)return{data:{index:L,overflows:D},reset:{placement:O}};let C=(E=D.filter(P=>P.overflows[0]<=0).sort((P,F)=>P.overflows[1]-F.overflows[1])[0])==null?void 0:E.placement;if(!C)switch(h){case"bestFit":{var Y;const P=(Y=D.map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,Z)=>U+Z,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:Y[0];P&&(C=P);break}case"initialPlacement":C=i;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function M2(t,e){const{placement:n,platform:r,elements:s}=t,a=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Ln(n),i=gn(n),l=Mo(n)==="y",c=["left","top"].includes(o)?-1:1,d=a&&l?-1:1,u=hs(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return i&&typeof p=="number"&&(h=i==="end"?p*-1:p),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const E2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:a,placement:o,middlewareData:i}=e,l=await M2(e,t);return o===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:a+l.y,data:{...l,placement:o}}}}},P2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=hs(t,e),c={x:n,y:r},d=await cc(e,l),u=Mo(Ln(s)),f=oh(u);let h=c[f],p=c[u];if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=h+d[b],k=h-d[y];h=oc(x,h,k)}if(o){const b=u==="y"?"top":"left",y=u==="y"?"bottom":"right",x=p+d[b],k=p-d[y];p=oc(x,p,k)}const m=i.fn({...e,[f]:h,[u]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function dh(t){const e=Qt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=ft(t),a=s?t.offsetWidth:n,o=s?t.offsetHeight:r,i=Do(n)!==a||Do(r)!==o;return i&&(n=a,r=o),{width:n,height:r,$:i}}function dc(t){return Pe(t)?t:t.contextElement}function gs(t){const e=dc(t);if(!ft(e))return hn(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:a}=dh(e);let o=(a?Do(n.width):n.width)/r,i=(a?Do(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const T2=hn(0);function uh(t){const e=Dt(t);return!ql()||!e.visualViewport?T2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function N2(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Dt(t)?!1:e}function Er(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),a=dc(t);let o=hn(1);e&&(r?Pe(r)&&(o=gs(r)):o=gs(t));const i=N2(a,n,r)?uh(a):hn(0);let l=(s.left+i.x)/o.x,c=(s.top+i.y)/o.y,d=s.width/o.x,u=s.height/o.y;if(a){const f=Dt(a),h=r&&Pe(r)?Dt(r):r;let p=f,m=$l(p);for(;m&&r&&h!==p;){const b=gs(m),y=m.getBoundingClientRect(),x=Qt(m),k=y.left+(m.clientLeft+parseFloat(x.paddingLeft))*b.x,v=y.top+(m.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=v,p=Dt(m),m=$l(p)}}return To({width:d,height:u,x:l,y:c})}function uc(t,e){const n=Oo(t).scrollLeft;return e?e.left+n:Er(un(t)).left+n}function fh(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:uc(t,r)),a=r.top+e.scrollTop;return{x:s,y:a}}function j2(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const a=s==="fixed",o=un(r),i=e?So(e.floating):!1;if(r===o||i&&a)return n;let l={scrollLeft:0,scrollTop:0},c=hn(1);const d=hn(0),u=ft(r);if((u||!u&&!a)&&((Dr(r)!=="body"||aa(o))&&(l=Oo(r)),ft(r))){const h=Er(r);c=gs(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const f=o&&!u&&!a?fh(o,l,!0):hn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}}function I2(t){return Array.from(t.getClientRects())}function A2(t){const e=un(t),n=Oo(t),r=t.ownerDocument.body,s=Mr(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=Mr(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+uc(t);const i=-n.scrollTop;return Qt(r).direction==="rtl"&&(o+=Mr(e.clientWidth,r.clientWidth)-s),{width:s,height:a,x:o,y:i}}function R2(t,e){const n=Dt(t),r=un(t),s=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;const c=ql();(!c||c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i,y:l}}function L2(t,e){const n=Er(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,a=ft(t)?gs(t):hn(1),o=t.clientWidth*a.x,i=t.clientHeight*a.y,l=s*a.x,c=r*a.y;return{width:o,height:i,x:l,y:c}}function hh(t,e,n){let r;if(e==="viewport")r=R2(t,n);else if(e==="document")r=A2(un(t));else if(Pe(e))r=L2(e,n);else{const s=uh(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return To(r)}function gh(t,e){const n=Rn(t);return n===e||!Pe(n)||rr(n)?!1:Qt(n).position==="fixed"||gh(n,e)}function F2(t,e){const n=e.get(t);if(n)return n;let r=sr(t,[],!1).filter(i=>Pe(i)&&Dr(i)!=="body"),s=null;const a=Qt(t).position==="fixed";let o=a?Rn(t):t;for(;Pe(o)&&!rr(o);){const i=Qt(o),l=Jl(o);!l&&i.position==="fixed"&&(s=null),(a?!l&&!s:!l&&i.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||aa(o)&&!l&&gh(t,o))?r=r.filter(d=>d!==o):s=i,o=Rn(o)}return e.set(t,r),r}function W2(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?So(e)?[]:F2(e,this._c):[].concat(n),r],i=o[0],l=o.reduce((c,d)=>{const u=hh(e,d,s);return c.top=Mr(u.top,c.top),c.right=us(u.right,c.right),c.bottom=us(u.bottom,c.bottom),c.left=Mr(u.left,c.left),c},hh(e,i,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function B2(t){const{width:e,height:n}=dh(t);return{width:e,height:n}}function z2(t,e,n){const r=ft(e),s=un(e),a=n==="fixed",o=Er(t,!0,a,e);let i={scrollLeft:0,scrollTop:0};const l=hn(0);if(r||!r&&!a)if((Dr(e)!=="body"||aa(s))&&(i=Oo(e)),r){const f=Er(e,!0,a,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else s&&(l.x=uc(s));const c=s&&!r&&!a?fh(s,i):hn(0),d=o.left+i.scrollLeft-l.x-c.x,u=o.top+i.scrollTop-l.y-c.y;return{x:d,y:u,width:o.width,height:o.height}}function fc(t){return Qt(t).position==="static"}function mh(t,e){if(!ft(t)||Qt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return un(t)===n&&(n=n.ownerDocument.body),n}function ph(t,e){const n=Dt(t);if(So(t))return n;if(!ft(t)){let s=Rn(t);for(;s&&!rr(s);){if(Pe(s)&&!fc(s))return s;s=Rn(s)}return n}let r=mh(t,e);for(;r&&d2(r)&&fc(r);)r=mh(r,e);return r&&rr(r)&&fc(r)&&!Jl(r)?n:r||u2(t)||n}const H2=async function(t){const e=this.getOffsetParent||ph,n=this.getDimensions,r=await n(t.floating);return{reference:z2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Y2(t){return Qt(t).direction==="rtl"}const V2={convertOffsetParentRelativeRectToViewportRelativeRect:j2,getDocumentElement:un,getClippingRect:W2,getOffsetParent:ph,getElementRects:H2,getClientRects:I2,getDimensions:B2,getScale:gs,isElement:Pe,isRTL:Y2};function bh(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function U2(t,e){let n=null,r;const s=un(t);function a(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function o(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),a();const c=t.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(i||e(),!f||!h)return;const p=fs(u),m=fs(s.clientWidth-(d+f)),b=fs(s.clientHeight-(u+h)),y=fs(d),k={rootMargin:-p+"px "+-m+"px "+-b+"px "+-y+"px",threshold:Mr(0,us(1,l))||1};let v=!0;function w(S){const N=S[0].intersectionRatio;if(N!==l){if(!v)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!bh(c,t.getBoundingClientRect())&&o(),v=!1}try{n=new IntersectionObserver(w,{...k,root:s.ownerDocument})}catch{n=new IntersectionObserver(w,k)}n.observe(t)}return o(!0),a}function yh(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=dc(t),d=s||a?[...c?sr(c):[],...sr(e)]:[];d.forEach(y=>{s&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const u=c&&i?U2(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let p,m=l?Er(t):null;l&&b();function b(){const y=Er(t);m&&!bh(m,y)&&n(),m=y,p=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(x=>{s&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),u==null||u(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const X2=E2,K2=C2,G2=P2,Q2=D2,wh=S2,Z2=(t,e,n)=>{const r=new Map,s={platform:V2,...n},a={...s.platform,_c:r};return _2(t,e,{...s,platform:a})};var No=typeof document<"u"?_.useLayoutEffect:_.useEffect;function jo(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!jo(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const a=s[r];if(!(a==="_owner"&&t.$$typeof)&&!jo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function vh(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function xh(t,e){const n=vh(t);return Math.round(e*n)/n}function hc(t){const e=z.useRef(t);return No(()=>{e.current=t}),e}function J2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:a,floating:o}={},transform:i=!0,whileElementsMounted:l,open:c}=t,[d,u]=z.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,h]=z.useState(r);jo(f,r)||h(r);const[p,m]=z.useState(null),[b,y]=z.useState(null),x=z.useCallback(Z=>{Z!==S.current&&(S.current=Z,m(Z))},[]),k=z.useCallback(Z=>{Z!==N.current&&(N.current=Z,y(Z))},[]),v=a||p,w=o||b,S=z.useRef(null),N=z.useRef(null),D=z.useRef(d),T=l!=null,E=hc(l),Y=hc(s),L=hc(c),O=z.useCallback(()=>{if(!S.current||!N.current)return;const Z={placement:e,strategy:n,middleware:f};Y.current&&(Z.platform=Y.current),Z2(S.current,N.current,Z).then(ee=>{const j={...ee,isPositioned:L.current!==!1};C.current&&!jo(D.current,j)&&(D.current=j,tx.flushSync(()=>{u(j)}))})},[f,e,n,Y,L]);No(()=>{c===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,u(Z=>({...Z,isPositioned:!1})))},[c]);const C=z.useRef(!1);No(()=>(C.current=!0,()=>{C.current=!1}),[]),No(()=>{if(v&&(S.current=v),w&&(N.current=w),v&&w){if(E.current)return E.current(v,w,O);O()}},[v,w,O,E,T]);const P=z.useMemo(()=>({reference:S,floating:N,setReference:x,setFloating:k}),[x,k]),F=z.useMemo(()=>({reference:v,floating:w}),[v,w]),U=z.useMemo(()=>{const Z={position:n,left:0,top:0};if(!F.floating)return Z;const ee=xh(F.floating,d.x),j=xh(F.floating,d.y);return i?{...Z,transform:"translate("+ee+"px, "+j+"px)",...vh(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:j}},[n,i,F.floating,d.x,d.y]);return z.useMemo(()=>({...d,update:O,refs:P,elements:F,floatingStyles:U}),[d,O,P,F,U])}const q2=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?wh({element:r.current,padding:s}).fn(n):{}:r?wh({element:r,padding:s}).fn(n):{}}}},$2=(t,e)=>({...X2(t),options:[t,e]}),e1=(t,e)=>({...G2(t),options:[t,e]}),t1=(t,e)=>({...Q2(t),options:[t,e]}),n1=(t,e)=>({...K2(t),options:[t,e]}),r1=(t,e)=>({...q2(t),options:[t,e]});/*!
6
6
  * tabbable 6.2.0
7
7
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
8
- */var e1=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Po=e1.join(","),wh=typeof Element>"u",hs=wh?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,To=!wh&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},No=function t(e,n){var r;n===void 0&&(n=!0);var s=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=s===""||s==="true",o=a||n&&e&&t(e.parentNode);return o},t1=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},n1=function(e,n,r){if(No(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Po));return n&&hs.call(e,Po)&&s.unshift(e),s=s.filter(r),s},r1=function t(e,n,r){for(var s=[],a=Array.from(e);a.length;){var o=a.shift();if(!No(o,!1))if(o.tagName==="SLOT"){var i=o.assignedElements(),l=i.length?i:o.children,c=t(l,!0,r);r.flatten?s.push.apply(s,c):s.push({scopeParent:o,candidates:c})}else{var d=hs.call(o,Po);d&&r.filter(o)&&(n||!e.includes(o))&&s.push(o);var u=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),f=!No(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&f){var h=t(u===!0?o.children:u.children,!0,r);r.flatten?s.push.apply(s,h):s.push({scopeParent:o,candidates:h})}else a.unshift.apply(a,o.children)}}return s},vh=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},xh=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||t1(e))&&!vh(e)?0:e.tabIndex},s1=function(e,n){var r=xh(e);return r<0&&n&&!vh(e)?0:r},a1=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},kh=function(e){return e.tagName==="INPUT"},o1=function(e){return kh(e)&&e.type==="hidden"},i1=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},l1=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},c1=function(e){if(!e.name)return!0;var n=e.form||To(e),r=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(e.name));else try{s=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=l1(s,e.form);return!a||a===e},d1=function(e){return kh(e)&&e.type==="radio"},u1=function(e){return d1(e)&&!c1(e)},f1=function(e){var n,r=e&&To(e),s=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==e){var o,i,l;for(a=!!((o=s)!==null&&o!==void 0&&(i=o.ownerDocument)!==null&&i!==void 0&&i.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!a&&s;){var c,d,u;r=To(s),s=(c=r)===null||c===void 0?void 0:c.host,a=!!((d=s)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(s))}}return a},_h=function(e){var n=e.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},h1=function(e,n){var r=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=hs.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if(hs.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof s=="function"){for(var i=e;e;){var l=e.parentElement,c=To(e);if(l&&!l.shadowRoot&&s(l)===!0)return _h(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=i}if(f1(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return _h(e);return!1},g1=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return hs.call(n,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}n=n.parentElement}return!1},m1=function(e,n){return!(n.disabled||No(n)||o1(n)||h1(n,e)||i1(n)||g1(n))},uc=function(e,n){return!(u1(n)||xh(n)<0||!m1(e,n))},p1=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},b1=function t(e){var n=[],r=[];return e.forEach(function(s,a){var o=!!s.scopeParent,i=o?s.scopeParent:s,l=s1(i,o),c=o?t(s.candidates):i;l===0?o?n.push.apply(n,c):n.push(i):r.push({documentOrder:a,tabIndex:l,item:s,isScope:o,content:c})}),r.sort(a1).reduce(function(s,a){return a.isScope?s.push.apply(s,a.content):s.push(a.content),s},[]).concat(n)},jo=function(e,n){n=n||{};var r;return n.getShadowRoot?r=r1([e],n.includeContainer,{filter:uc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:p1}):r=n1(e,n.includeContainer,uc.bind(null,n)),b1(r)},y1=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return hs.call(e,Po)===!1?!1:uc(n,e)};function Sh(t){return z.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})},t)}const w1=z.useInsertionEffect||(t=>t());function mn(t){const e=z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return w1(()=>{e.current=t}),z.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}const fc="ArrowUp",ra="ArrowDown",gs="ArrowLeft",ms="ArrowRight";function Io(t,e,n){return Math.floor(t/e)!==n}function sa(t,e){return e<0||e>=t.current.length}function hc(t,e){return bt(t,{disabledIndices:e})}function Oh(t,e){return bt(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function bt(t,e){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:s,amount:a=1}=e===void 0?{}:e;const o=t.current,i=s?c=>s.includes(c):c=>{const d=o[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=n;do l+=r?-a:a;while(l>=0&&l<=o.length-1&&i(l));return l}function v1(t,e){let{event:n,orientation:r,loop:s,cols:a,disabledIndices:o,minIndex:i,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(n.key===fc){if(d&&ht(n),c===-1)u=l;else if(u=bt(t,{startingIndex:u,amount:a,decrement:!0,disabledIndices:o}),s&&(c-a<i||u<0)){const f=c%a,h=l%a,m=l-(h-f);h===f?u=l:u=h>f?m:m-a}sa(t,u)&&(u=c)}if(n.key===ra&&(d&&ht(n),c===-1?u=i:(u=bt(t,{startingIndex:c,amount:a,disabledIndices:o}),s&&c+a>l&&(u=bt(t,{startingIndex:c%a-a,amount:a,disabledIndices:o}))),sa(t,u)&&(u=c)),r==="both"){const f=ds(c/a);n.key===ms&&(d&&ht(n),c%a!==a-1?(u=bt(t,{startingIndex:c,disabledIndices:o}),s&&Io(u,a,f)&&(u=bt(t,{startingIndex:c-c%a-1,disabledIndices:o}))):s&&(u=bt(t,{startingIndex:c-c%a-1,disabledIndices:o})),Io(u,a,f)&&(u=c)),n.key===gs&&(d&&ht(n),c%a!==0?(u=bt(t,{startingIndex:c,disabledIndices:o,decrement:!0}),s&&Io(u,a,f)&&(u=bt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o}))):s&&(u=bt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o})),Io(u,a,f)&&(u=c));const h=ds(l/a)===f;sa(t,u)&&(s&&h?u=n.key===gs?l:bt(t,{startingIndex:c-c%a-1,disabledIndices:o}):u=c)}return u}function x1(t,e,n){const r=[];let s=0;return t.forEach((a,o)=>{let{width:i,height:l}=a;if(i>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+o+" is greater than grid columns");let c=!1;for(n&&(s=0);!c;){const d=[];for(let u=0;u<i;u++)for(let f=0;f<l;f++)d.push(s+u+f*e);s%e+i<=e&&d.every(u=>r[u]==null)?(d.forEach(u=>{r[u]=o}),c=!0):s++}}),[...r]}function k1(t,e,n,r,s){if(t===-1)return-1;const a=n.indexOf(t);switch(s){case"tl":return a;case"tr":return a+e[t].width-1;case"bl":return a+(e[t].height-1)*r;case"br":return n.lastIndexOf(t)}}function _1(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}let Ch=0;function Ln(t,e){e===void 0&&(e={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:s=!1}=e;r&&cancelAnimationFrame(Ch);const a=()=>t==null?void 0:t.focus({preventScroll:n});s?a():Ch=requestAnimationFrame(a)}var je=typeof document<"u"?_.useLayoutEffect:_.useEffect;function S1(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function O1(t,e){if(t.size!==e.size)return!1;for(const[n,r]of t.entries())if(r!==e.get(n))return!1;return!0}const Dh=z.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function C1(t){let{children:e,elementsRef:n,labelsRef:r}=t;const[s,a]=z.useState(()=>new Map),o=z.useCallback(l=>{a(c=>new Map(c).set(l,null))},[]),i=z.useCallback(l=>{a(c=>{const d=new Map(c);return d.delete(l),d})},[]);return je(()=>{const l=new Map(s);Array.from(l.keys()).sort(S1).forEach((d,u)=>{l.set(d,u)}),O1(s,l)||a(l)},[s]),z.createElement(Dh.Provider,{value:z.useMemo(()=>({register:o,unregister:i,map:s,elementsRef:n,labelsRef:r}),[o,i,s,n,r])},e)}function D1(t){let{label:e}=t===void 0?{}:t;const[n,r]=z.useState(null),s=z.useRef(null),{register:a,unregister:o,map:i,elementsRef:l,labelsRef:c}=z.useContext(Dh),d=z.useCallback(u=>{if(s.current=u,n!==null&&(l.current[n]=u,c)){var f;const h=e!==void 0;c.current[n]=h?e:(f=u==null?void 0:u.textContent)!=null?f:null}},[n,l,c,e]);return je(()=>{const u=s.current;if(u)return a(u),()=>{o(u)}},[a,o]),je(()=>{const u=s.current?i.get(s.current):null;u!=null&&r(u)},[i]),z.useMemo(()=>({ref:d,index:n??-1}),[n,d])}function aa(){return aa=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},aa.apply(this,arguments)}let gc=!1,M1=0;const Mh=()=>"floating-ui-"+M1++;function E1(){const[t,e]=z.useState(()=>gc?Mh():void 0);return je(()=>{t==null&&e(Mh())},[]),z.useEffect(()=>{gc||(gc=!0)},[]),t}const Ao=z.useId||E1;function P1(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(s=>s(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(s=>s!==n))||[])}}}const T1=z.createContext(null),N1=z.createContext(null),Ro=()=>{var t;return((t=z.useContext(T1))==null?void 0:t.id)||null},oa=()=>z.useContext(N1);function Dr(t){return"data-floating-ui-"+t}function pn(t){const e=_.useRef(t);return je(()=>{e.current=t}),e}const Eh=Dr("safe-polygon");function mc(t,e,n){return n&&!ko(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function j1(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,events:a,elements:{domReference:o,floating:i},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:m=!0}=e,p=oa(),b=Ro(),v=pn(u),x=pn(d),k=z.useRef(),w=z.useRef(),y=z.useRef(),S=z.useRef(),N=z.useRef(!0),D=z.useRef(!1),T=z.useRef(()=>{}),E=z.useCallback(()=>{var C;const P=(C=s.current.openEvent)==null?void 0:C.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[s]);z.useEffect(()=>{if(!c)return;function C(P){let{open:F}=P;F||(clearTimeout(w.current),clearTimeout(S.current),N.current=!0)}return a.on("openchange",C),()=>{a.off("openchange",C)}},[c,a]),z.useEffect(()=>{if(!c||!v.current||!n)return;function C(F){E()&&r(!1,F,"hover")}const P=kt(i).documentElement;return P.addEventListener("mouseleave",C),()=>{P.removeEventListener("mouseleave",C)}},[i,n,r,c,v,E]);const Y=z.useCallback(function(C,P,F){P===void 0&&(P=!0),F===void 0&&(F="hover");const U=mc(x.current,"close",k.current);U&&!y.current?(clearTimeout(w.current),w.current=setTimeout(()=>r(!1,C,F),U)):P&&(clearTimeout(w.current),r(!1,C,F))},[x,r]),L=z.useCallback(()=>{T.current(),y.current=void 0},[]),O=z.useCallback(()=>{if(D.current){const C=kt(l.floating.current).body;C.style.pointerEvents="",C.removeAttribute(Eh),D.current=!1}},[l]);return z.useEffect(()=>{if(!c)return;function C(){return s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1}function P(Z){if(clearTimeout(w.current),N.current=!1,f&&!ko(k.current)||h>0&&mc(x.current,"open")===0)return;const ee=mc(x.current,"open",k.current);ee?w.current=setTimeout(()=>{r(!0,Z,"hover")},ee):r(!0,Z,"hover")}function F(Z){if(C())return;T.current();const ee=kt(i);if(clearTimeout(S.current),v.current){n||clearTimeout(w.current),y.current=v.current({...t,tree:p,x:Z.clientX,y:Z.clientY,onClose(){O(),L(),Y(Z,!0,"safe-polygon")}});const V=y.current;ee.addEventListener("mousemove",V),T.current=()=>{ee.removeEventListener("mousemove",V)};return}(k.current==="touch"?!et(i,Z.relatedTarget):!0)&&Y(Z)}function U(Z){C()||v.current==null||v.current({...t,tree:p,x:Z.clientX,y:Z.clientY,onClose(){O(),L(),Y(Z)}})(Z)}if(Ee(o)){const Z=o;return n&&Z.addEventListener("mouseleave",U),i==null||i.addEventListener("mouseleave",U),m&&Z.addEventListener("mousemove",P,{once:!0}),Z.addEventListener("mouseenter",P),Z.addEventListener("mouseleave",F),()=>{n&&Z.removeEventListener("mouseleave",U),i==null||i.removeEventListener("mouseleave",U),m&&Z.removeEventListener("mousemove",P),Z.removeEventListener("mouseenter",P),Z.removeEventListener("mouseleave",F)}}},[o,i,c,t,f,h,m,Y,L,O,r,n,p,x,v,s]),je(()=>{var C;if(c&&n&&(C=v.current)!=null&&C.__options.blockPointerEvents&&E()){const F=kt(i).body;if(F.setAttribute(Eh,""),F.style.pointerEvents="none",D.current=!0,Ee(o)&&i){var P;const U=o,Z=p==null||(P=p.nodesRef.current.find(ee=>ee.id===b))==null||(P=P.context)==null?void 0:P.elements.floating;return Z&&(Z.style.pointerEvents=""),U.style.pointerEvents="auto",i.style.pointerEvents="auto",()=>{U.style.pointerEvents="",i.style.pointerEvents=""}}}},[c,n,b,i,o,p,v,E]),je(()=>{n||(k.current=void 0,L(),O())},[n,L,O]),z.useEffect(()=>()=>{L(),clearTimeout(w.current),clearTimeout(S.current),O()},[c,o,L,O]),z.useMemo(()=>{if(!c)return{};function C(P){k.current=P.pointerType}return{reference:{onPointerDown:C,onPointerEnter:C,onMouseMove(P){n||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{N.current||r(!0,P.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(P){Y(P.nativeEvent,!1)}}}},[c,h,n,r,Y])}function I1(t,e){var n;let r=[],s=(n=t.find(a=>a.id===e))==null?void 0:n.parentId;for(;s;){const a=t.find(o=>o.id===s);s=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function Mr(t,e){let n=t.filter(s=>{var a;return s.parentId===e&&((a=s.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=t.filter(s=>{var a;return(a=r)==null?void 0:a.some(o=>{var i;return s.parentId===o.id&&((i=s.context)==null?void 0:i.open)})}),n=n.concat(r);return n}function A1(t,e){let n,r=-1;function s(a,o){o>r&&(n=a,r=o),Mr(t,a).forEach(l=>{s(l.id,o+1)})}return s(e,0),t.find(a=>a.id===n)}let ps=new WeakMap,Lo=new WeakSet,Fo={},pc=0;const R1=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,Ph=t=>t&&(t.host||Ph(t.parentNode)),L1=(t,e)=>e.map(n=>{if(t.contains(n))return n;const r=Ph(n);return t.contains(r)?r:null}).filter(n=>n!=null);function F1(t,e,n,r){const s="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=L1(e,t),i=new Set,l=new Set(o),c=[];Fo[s]||(Fo[s]=new WeakMap);const d=Fo[s];o.forEach(u),f(e),i.clear();function u(h){!h||i.has(h)||(i.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,m=>{if(i.has(m))f(m);else{const p=a?m.getAttribute(a):null,b=p!==null&&p!=="false",v=(ps.get(m)||0)+1,x=(d.get(m)||0)+1;ps.set(m,v),d.set(m,x),c.push(m),v===1&&b&&Lo.add(m),x===1&&m.setAttribute(s,""),!b&&a&&m.setAttribute(a,"true")}})}return pc++,()=>{c.forEach(h=>{const m=(ps.get(h)||0)-1,p=(d.get(h)||0)-1;ps.set(h,m),d.set(h,p),m||(!Lo.has(h)&&a&&h.removeAttribute(a),Lo.delete(h)),p||h.removeAttribute(s)}),pc--,pc||(ps=new WeakMap,ps=new WeakMap,Lo=new WeakSet,Fo={})}}function Th(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=kt(t[0]).body;return F1(t.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,e,n)}const ia=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Nh(t,e){const n=jo(t,ia());e==="prev"&&n.reverse();const r=n.indexOf(fn(kt(t)));return n.slice(r+1)[0]}function jh(){return Nh(document.body,"next")}function Ih(){return Nh(document.body,"prev")}function la(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!et(n,r)}function W1(t){jo(t,ia()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function B1(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const bc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let z1;function Ah(t){t.key==="Tab"&&(t.target,clearTimeout(z1))}const Wo=z.forwardRef(function(e,n){const[r,s]=z.useState();je(()=>($l()&&s("button"),document.addEventListener("keydown",Ah),()=>{document.removeEventListener("keydown",Ah)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Dr("focus-guard")]:"",style:bc};return z.createElement("span",aa({},e,a))}),Rh=z.createContext(null),Lh=Dr("portal");function H1(t){let{id:e,root:n}=t===void 0?{}:t;const[r,s]=z.useState(null),a=Ao(),o=Fh(),i=z.useRef(null);return je(()=>()=>{r==null||r.remove(),queueMicrotask(()=>{i.current=null})},[r]),je(()=>{if(i.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=a,c.setAttribute(Lh,""),l.appendChild(c),i.current=c,s(c)},[e,a]),je(()=>{if(i.current)return;let l=n||(o==null?void 0:o.portalNode);l&&!Ee(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=a,d.setAttribute(Lh,""),l=c||l,l.appendChild(d),i.current=d,s(d)},[e,n,a,o]),r}function Y1(t){let{children:e,id:n,root:r=null,preserveTabOrder:s=!0}=t;const a=H1({id:n,root:r}),[o,i]=z.useState(null),l=z.useRef(null),c=z.useRef(null),d=z.useRef(null),u=z.useRef(null),f=!!o&&!o.modal&&o.open&&s&&!!(r||a);return z.useEffect(()=>{if(!a||!s||o!=null&&o.modal)return;function h(m){a&&la(m)&&(m.type==="focusin"?B1:W1)(a)}return a.addEventListener("focusin",h,!0),a.addEventListener("focusout",h,!0),()=>{a.removeEventListener("focusin",h,!0),a.removeEventListener("focusout",h,!0)}},[a,s,o==null?void 0:o.modal]),z.createElement(Rh.Provider,{value:z.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:a,setFocusManagerState:i}),[s,a])},f&&a&&z.createElement(Wo,{"data-type":"outside",ref:l,onFocus:h=>{if(la(h,a)){var m;(m=d.current)==null||m.focus()}else{const p=Ih()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus()}}}),f&&a&&z.createElement("span",{"aria-owns":a.id,style:bc}),a&&of.createPortal(e,a),f&&a&&z.createElement(Wo,{"data-type":"outside",ref:c,onFocus:h=>{if(la(h,a)){var m;(m=u.current)==null||m.focus()}else{const p=jh()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,h.nativeEvent))}}}))}const Fh=()=>z.useContext(Rh),V1=20;let Er=[];function yc(t){Er=Er.filter(n=>n.isConnected);let e=t;if(!(!e||Sr(e)==="body")){if(!y1(e,ia())){const n=jo(e,ia())[0];if(!n)return;e=n}Er.push(e),Er.length>V1&&(Er=Er.slice(-20))}}function Wh(){return Er.slice().reverse().find(t=>t.isConnected)}const U1=z.forwardRef(function(e,n){return z.createElement("button",aa({},e,{type:"button",ref:n,tabIndex:-1,style:bc}))});function Bh(t){const{context:e,children:n,disabled:r=!1,order:s=["content"],guards:a=!0,initialFocus:o=0,returnFocus:i=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:f,nodeId:h,onOpenChange:m,events:p,dataRef:b,elements:{domReference:v,floating:x}}=e,k=typeof o=="number"&&o<0,w=eh(v)&&k,y=R1()?a:!0,S=pn(s),N=pn(o),D=pn(i),T=oa(),E=Fh(),Y=z.useRef(null),L=z.useRef(null),O=z.useRef(!1),C=z.useRef(!1),P=E!=null,F=z.useCallback(function(j){return j===void 0&&(j=x),j?jo(j,ia()):[]},[x]),U=z.useCallback(j=>{const V=F(j);return S.current.map(R=>v&&R==="reference"?v:x&&R==="floating"?x:V).filter(Boolean).flat()},[v,x,S,F]);z.useEffect(()=>{if(r||!l)return;function j(R){if(R.key==="Tab"){et(x,fn(kt(x)))&&F().length===0&&!w&&ht(R);const A=U(),I=sr(R);S.current[0]==="reference"&&I===v&&(ht(R),R.shiftKey?Ln(A[A.length-1]):Ln(A[1])),S.current[1]==="floating"&&I===x&&R.shiftKey&&(ht(R),Ln(A[0]))}}const V=kt(x);return V.addEventListener("keydown",j),()=>{V.removeEventListener("keydown",j)}},[r,v,x,l,S,w,F,U]),z.useEffect(()=>{if(r||!d)return;function j(){C.current=!0,setTimeout(()=>{C.current=!1})}function V(R){const A=R.relatedTarget;queueMicrotask(()=>{const I=!(et(v,A)||et(x,A)||et(A,x)||et(E==null?void 0:E.portalNode,A)||A!=null&&A.hasAttribute(Dr("focus-guard"))||T&&(Mr(T.nodesRef.current,h).find(M=>{var H,J;return et((H=M.context)==null?void 0:H.elements.floating,A)||et((J=M.context)==null?void 0:J.elements.domReference,A)})||I1(T.nodesRef.current,h).find(M=>{var H,J;return((H=M.context)==null?void 0:H.elements.floating)===A||((J=M.context)==null?void 0:J.elements.domReference)===A})));A&&I&&!C.current&&A!==Wh()&&(O.current=!0,m(!1,R))})}if(x&&ft(v))return v.addEventListener("focusout",V),v.addEventListener("pointerdown",j),!l&&x.addEventListener("focusout",V),()=>{v.removeEventListener("focusout",V),v.removeEventListener("pointerdown",j),!l&&x.removeEventListener("focusout",V)}},[r,v,x,l,h,T,E,m,d]),z.useEffect(()=>{var j;if(r)return;const V=Array.from((E==null||(j=E.portalNode)==null?void 0:j.querySelectorAll("["+Dr("portal")+"]"))||[]);if(x){const R=[x,...V,Y.current,L.current,S.current.includes("reference")||w?v:null].filter(I=>I!=null),A=l||w?Th(R,y,!y):Th(R);return()=>{A()}}},[r,v,x,l,S,E,w,y]),je(()=>{if(r||!x)return;const j=kt(x),V=fn(j);queueMicrotask(()=>{const R=U(x),A=N.current,I=(typeof A=="number"?R[A]:A.current)||x,M=et(x,V);!k&&!M&&u&&Ln(I,{preventScroll:I===x})})},[r,u,x,k,U,N]),je(()=>{if(r||!x)return;let j=!1;const V=kt(x),R=fn(V),A=b.current;yc(R);function I(M){let{reason:H,event:J,nested:K}=M;H==="escape-key"&&f.domReference.current&&yc(f.domReference.current),H==="hover"&&J.type==="mouseleave"&&(O.current=!0),H==="outside-press"&&(K?(O.current=!1,j=!0):O.current=!(qf(J)||ql(J)))}return p.on("openchange",I),()=>{p.off("openchange",I);const M=fn(V),H=et(x,M)||T&&Mr(T.nodesRef.current,h).some(q=>{var B;return et((B=q.context)==null?void 0:B.elements.floating,M)});(H||A.openEvent&&["click","mousedown"].includes(A.openEvent.type))&&f.domReference.current&&yc(f.domReference.current);const K=Wh();D.current&&!O.current&&ft(K)&&(!(K!==M&&M!==V.body)||H)&&Ln(K,{cancelPrevious:!1,preventScroll:j})}},[r,x,D,b,f,p,T,h]),je(()=>{if(!(r||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:m,refs:f}),()=>{E.setFocusManagerState(null)}},[r,E,l,u,m,f,d]),je(()=>{if(r||!x||typeof MutationObserver!="function"||k)return;const j=()=>{const R=x.getAttribute("tabindex");S.current.includes("floating")||fn(kt(x))!==f.domReference.current&&F().length===0?R!=="0"&&x.setAttribute("tabindex","0"):R!=="-1"&&x.setAttribute("tabindex","-1")};j();const V=new MutationObserver(j);return V.observe(x,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,x,f,S,F,k]);function Z(j){return r||!c||!l?null:z.createElement(U1,{ref:j==="start"?Y:L,onClick:V=>m(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const ee=!r&&y&&(P||l);return z.createElement(z.Fragment,null,ee&&z.createElement(Wo,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:j=>{if(l){const R=U();Ln(s[0]==="reference"?R[0]:R[R.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(O.current=!1,la(j,E.portalNode)){const R=jh()||v;R==null||R.focus()}else{var V;(V=E.beforeOutsideRef.current)==null||V.focus()}}}),!w&&Z("start"),n,Z("end"),ee&&z.createElement(Wo,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:j=>{if(l)Ln(U()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(O.current=!0),la(j,E.portalNode)){const R=Ih()||v;R==null||R.focus()}else{var V;(V=E.afterOutsideRef.current)==null||V.focus()}}}))}const wc=new Set,X1=z.forwardRef(function(e,n){let{lockScroll:r=!1,...s}=e;const a=Ao();return je(()=>{if(!r)return;wc.add(a);const o=/iP(hone|ad|od)|iOS/.test(Jl()),i=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=i.left?parseFloat(i.left):window.pageXOffset,f=i.top?parseFloat(i.top):window.pageYOffset;if(i.overflow="hidden",d&&(i[c]=d+"px"),o){var h,m;const p=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((m=window.visualViewport)==null?void 0:m.offsetTop)||0;Object.assign(i,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(p))+"px",right:"0"})}return()=>{wc.delete(a),wc.size===0&&(Object.assign(i,{overflow:"",[c]:""}),o&&(Object.assign(i,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[a,r]),z.createElement("div",aa({ref:n},s,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}}))});function zh(t){return ft(t.target)&&t.target.tagName==="BUTTON"}function Hh(t){return nc(t)}function Yh(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:a}}=t,{enabled:o=!0,event:i="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=z.useRef(),f=z.useRef(!1);return z.useMemo(()=>o?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(ko(u.current,!0)&&c||i!=="click"&&(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")?r(!1,h.nativeEvent,"click"):(h.preventDefault(),r(!0,h.nativeEvent,"click"))))},onClick(h){if(i==="mousedown"&&u.current){u.current=void 0;return}ko(u.current,!0)&&c||(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="click")?r(!1,h.nativeEvent,"click"):r(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||zh(h))&&(h.key===" "&&!Hh(a)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&r(!(n&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||zh(h)||Hh(a)||h.key===" "&&f.current&&(f.current=!1,r(!(n&&l),h.nativeEvent,"click"))}}}:{},[o,s,i,c,d,a,l,n,r])}const K1={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},G1={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Vh=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function Uh(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,nodeId:s,elements:{reference:a,domReference:o,floating:i},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:b,capture:v}=e,x=oa(),k=mn(typeof u=="function"?u:()=>!1),w=typeof u=="function"?k:u,y=z.useRef(!1),S=z.useRef(!1),{escapeKey:N,outsidePress:D}=Vh(b),{escapeKey:T,outsidePress:E}=Vh(v),Y=mn(P=>{if(!n||!c||!d||P.key!=="Escape")return;const F=x?Mr(x.nodesRef.current,s):[];if(!N&&(P.stopPropagation(),F.length>0)){let U=!0;if(F.forEach(Z=>{var ee;if((ee=Z.context)!=null&&ee.open&&!Z.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}r(!1,c2(P)?P.nativeEvent:P,"escape-key")}),L=mn(P=>{var F;const U=()=>{var Z;Y(P),(Z=sr(P))==null||Z.removeEventListener("keydown",U)};(F=sr(P))==null||F.addEventListener("keydown",U)}),O=mn(P=>{const F=y.current;y.current=!1;const U=S.current;if(S.current=!1,f==="click"&&U||F||typeof w=="function"&&!w(P))return;const Z=sr(P),ee="["+Dr("inert")+"]",j=kt(i).querySelectorAll(ee);let V=Ee(Z)?Z:null;for(;V&&!nr(V);){const I=An(V);if(nr(I)||!Ee(I))break;V=I}if(j.length&&Ee(Z)&&!d2(Z)&&!et(Z,i)&&Array.from(j).every(I=>!et(V,I)))return;if(ft(Z)&&i){const I=Z.clientWidth>0&&Z.scrollWidth>Z.clientWidth,M=Z.clientHeight>0&&Z.scrollHeight>Z.clientHeight;let H=M&&P.offsetX>Z.clientWidth;if(M&&Qt(Z).direction==="rtl"&&(H=P.offsetX<=Z.offsetWidth-Z.clientWidth),H||I&&P.offsetY>Z.clientHeight)return}const R=x&&Mr(x.nodesRef.current,s).some(I=>{var M;return tc(P,(M=I.context)==null?void 0:M.elements.floating)});if(tc(P,i)||tc(P,o)||R)return;const A=x?Mr(x.nodesRef.current,s):[];if(A.length>0){let I=!0;if(A.forEach(M=>{var H;if((H=M.context)!=null&&H.open&&!M.context.dataRef.current.__outsidePressBubbles){I=!1;return}}),!I)return}r(!1,P,"outside-press")}),C=mn(P=>{var F;const U=()=>{var Z;O(P),(Z=sr(P))==null||Z.removeEventListener(f,U)};(F=sr(P))==null||F.addEventListener(f,U)});return z.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=N,l.current.__outsidePressBubbles=D;function P(Z){r(!1,Z,"ancestor-scroll")}const F=kt(i);d&&F.addEventListener("keydown",T?L:Y,T),w&&F.addEventListener(f,E?C:O,E);let U=[];return p&&(Ee(o)&&(U=rr(o)),Ee(i)&&(U=U.concat(rr(i))),!Ee(a)&&a&&a.contextElement&&(U=U.concat(rr(a.contextElement)))),U=U.filter(Z=>{var ee;return Z!==((ee=F.defaultView)==null?void 0:ee.visualViewport)}),U.forEach(Z=>{Z.addEventListener("scroll",P,{passive:!0})}),()=>{d&&F.removeEventListener("keydown",T?L:Y,T),w&&F.removeEventListener(f,E?C:O,E),U.forEach(Z=>{Z.removeEventListener("scroll",P)})}},[l,i,o,a,d,w,f,n,r,p,c,N,D,Y,T,L,O,E,C]),z.useEffect(()=>{y.current=!1},[w,f]),z.useMemo(()=>c?{reference:{onKeyDown:Y,[K1[m]]:P=>{h&&r(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:Y,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[G1[f]]:()=>{y.current=!0}}}:{},[c,h,f,m,r,Y])}let vc;process.env.NODE_ENV!=="production"&&(vc=new Set);function Xh(t){var e;t===void 0&&(t={});const{open:n=!1,onOpenChange:r,nodeId:s}=t;if(process.env.NODE_ENV!=="production"){var a;const D="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((a=t.elements)!=null&&a.reference&&!Ee(t.elements.reference)){var o;if(!((o=vc)!=null&&o.has(D))){var i;(i=vc)==null||i.add(D),console.error(D)}}}const[l,c]=z.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=K2(t),f=oa(),h=Ro()!=null,m=mn((D,T,E)=>{D&&(b.current.openEvent=T),v.emit("openchange",{open:D,event:T,reason:E,nested:h}),r==null||r(D,T,E)}),p=z.useRef(null),b=z.useRef({}),v=z.useState(()=>P1())[0],x=Ao(),k=z.useCallback(D=>{const T=Ee(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),contextElement:D}:D;u.refs.setReference(T)},[u.refs]),w=z.useCallback(D=>{(Ee(D)||D===null)&&(p.current=D,c(D)),(Ee(u.refs.reference.current)||u.refs.reference.current===null||D!==null&&!Ee(D))&&u.refs.setReference(D)},[u.refs]),y=z.useMemo(()=>({...u.refs,setReference:w,setPositionReference:k,domReference:p}),[u.refs,w,k]),S=z.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),N=z.useMemo(()=>({...u,refs:y,elements:S,dataRef:b,nodeId:s,floatingId:x,events:v,open:n,onOpenChange:m}),[u,s,x,v,n,m,y,S]);return je(()=>{const D=f==null?void 0:f.nodesRef.current.find(T=>T.id===s);D&&(D.context=N)}),z.useMemo(()=>({...u,context:N,refs:y,elements:S}),[u,y,S,N])}function Q1(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:s,refs:a,elements:{domReference:o}}=t,{enabled:i=!0,visibleOnly:l=!0}=e,c=z.useRef(!1),d=z.useRef(),u=z.useRef(!0);return z.useEffect(()=>{if(!i)return;const f=Dt(o);function h(){!n&&ft(o)&&o===fn(kt(o))&&(c.current=!0)}function m(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",m,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",m,!0)}},[o,n,i]),z.useEffect(()=>{if(!i)return;function f(h){let{reason:m}=h;(m==="reference-press"||m==="escape-key")&&(c.current=!0)}return s.on("openchange",f),()=>{s.off("openchange",f)}},[s,i]),z.useEffect(()=>()=>{clearTimeout(d.current)},[]),z.useMemo(()=>i?{reference:{onPointerDown(f){ql(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=sr(f.nativeEvent);if(l&&Ee(h))try{if($l()&&$f())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!nc(h))return}r(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,m=Ee(h)&&h.hasAttribute(Dr("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const p=fn(o?o.ownerDocument:document);!h&&p===o||et(a.floating.current,p)||et(o,p)||m||r(!1,f.nativeEvent,"focus")})}}}:{},[i,l,o,a,r])}const Kh="active",Gh="selected";function xc(t,e,n){const r=new Map,s=n==="item";let a=t;if(s&&t){const{[Kh]:o,[Gh]:i,...l}=t;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...e.map(o=>{const i=o?o[n]:null;return typeof i=="function"?t?i(t):null:i}).concat(t).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[c,d]=l;if(!(s&&[Kh,Gh].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof d=="function"){var u;(u=r.get(c))==null||u.push(d),o[c]=function(){for(var f,h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];return(f=r.get(c))==null?void 0:f.map(b=>b(...m)).find(b=>b!==void 0)}}}else o[c]=d}),o),{})}}function Qh(t){t===void 0&&(t=[]);const e=t,n=z.useCallback(a=>xc(a,t,"reference"),e),r=z.useCallback(a=>xc(a,t,"floating"),e),s=z.useCallback(a=>xc(a,t,"item"),t.map(a=>a==null?void 0:a.item));return z.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:s}),[n,r,s])}let Zh=!1;function Bo(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function Jh(t,e){return Bo(e,t===fc||t===ra,t===gs||t===ms)}function kc(t,e,n){return Bo(e,t===ra,n?t===gs:t===ms)||t==="Enter"||t===" "||t===""}function Z1(t,e,n){return Bo(e,n?t===gs:t===ms,t===ra)}function qh(t,e,n){return Bo(e,n?t===ms:t===gs,t===fc)}function J1(t,e){const{open:n,onOpenChange:r,refs:s,elements:{domReference:a,floating:o}}=t,{listRef:i,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:m=!1,rtl:p=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:k=!0,disabledIndices:w=void 0,orientation:y="vertical",cols:S=1,scrollItemIntoView:N=!0,virtualItemRef:D,itemSizes:T,dense:E=!1}=e;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),y==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const Y=Ro(),L=oa(),O=mn(c),C=z.useRef(v),P=z.useRef(u??-1),F=z.useRef(null),U=z.useRef(!0),Z=z.useRef(O),ee=z.useRef(!!o),j=z.useRef(!1),V=z.useRef(!1),R=pn(w),A=pn(n),I=pn(N),[M,H]=z.useState(),[J,K]=z.useState(),q=mn(function(W,ne,se){se===void 0&&(se=!1);const oe=W.current[ne.current];oe&&(b?(H(oe.id),L==null||L.events.emit("virtualfocus",oe),D&&(D.current=oe)):Ln(oe,{preventScroll:!0,sync:$f()&&$l()?Zh||j.current:!1}),requestAnimationFrame(()=>{const ge=I.current;ge&&oe&&(se||!U.current)&&(oe.scrollIntoView==null||oe.scrollIntoView(typeof ge=="boolean"?{block:"nearest",inline:"nearest"}:ge))}))});je(()=>{document.createElement("div").focus({get preventScroll(){return Zh=!0,!1}})},[]),je(()=>{d&&(n&&o?C.current&&u!=null&&(V.current=!0,P.current=u,O(u)):ee.current&&(P.current=-1,Z.current(null)))},[d,n,o,u,O]),je(()=>{if(d&&n&&o)if(l==null){if(j.current=!1,u!=null)return;if(ee.current&&(P.current=-1,q(i,P)),!ee.current&&C.current&&(F.current!=null||C.current===!0&&F.current==null)){let W=0;const ne=()=>{i.current[0]==null?(W<2&&(W?requestAnimationFrame:queueMicrotask)(ne),W++):(P.current=F.current==null||kc(F.current,y,p)||m?hc(i,R.current):Oh(i,R.current),F.current=null,O(P.current))};ne()}}else sa(i,l)||(P.current=l,q(i,P,V.current),V.current=!1)},[d,n,o,l,u,m,i,y,p,O,q,R]),je(()=>{var W;if(!d||o||!L||b||!ee.current)return;const ne=L.nodesRef.current,se=(W=ne.find(ce=>ce.id===Y))==null||(W=W.context)==null?void 0:W.elements.floating,oe=fn(kt(o)),ge=ne.some(ce=>ce.context&&et(ce.context.elements.floating,oe));se&&!ge&&U.current&&se.focus({preventScroll:!0})},[d,o,L,Y,b]),je(()=>{if(!d||!L||!b||Y)return;function W(ne){K(ne.id),D&&(D.current=ne)}return L.events.on("virtualfocus",W),()=>{L.events.off("virtualfocus",W)}},[d,L,b,Y,D]),je(()=>{Z.current=O,ee.current=!!o}),je(()=>{n||(F.current=null)},[n]);const B=l!=null,te=z.useMemo(()=>{function W(se){if(!n)return;const oe=i.current.indexOf(se);oe!==-1&&O(oe)}return{onFocus(se){let{currentTarget:oe}=se;W(oe)},onClick:se=>{let{currentTarget:oe}=se;return oe.focus({preventScroll:!0})},...x&&{onMouseMove(se){let{currentTarget:oe}=se;W(oe)},onPointerLeave(se){let{pointerType:oe}=se;!U.current||oe==="touch"||(P.current=-1,q(i,P),O(null),b||Ln(s.floating.current,{preventScroll:!0}))}}}},[n,s,q,x,i,O,b]);return z.useMemo(()=>{if(!d)return{};const W=R.current;function ne(ae){if(U.current=!1,j.current=!0,!A.current&&ae.currentTarget===s.floating.current)return;if(m&&qh(ae.key,y,p)){ht(ae),r(!1,ae.nativeEvent,"list-navigation"),ft(a)&&!b&&a.focus();return}const Ye=P.current,pe=hc(i,W),ze=Oh(i,W);if(ae.key==="Home"&&(ht(ae),P.current=pe,O(P.current)),ae.key==="End"&&(ht(ae),P.current=ze,O(P.current)),S>1){const Xe=T||Array.from({length:i.current.length},()=>({width:1,height:1})),$e=x1(Xe,S,E),Ut=$e.findIndex(Kt=>Kt!=null&&!(W!=null&&W.includes(Kt))),Xt=$e.reduce((Kt,vr,Gt)=>vr!=null&&!(W!=null&&W.includes(vr))?Gt:Kt,-1);if(P.current=$e[v1({current:$e.map(Kt=>Kt!=null?i.current[Kt]:null)},{event:ae,orientation:y,loop:h,cols:S,disabledIndices:_1([...W||[],void 0],$e),minIndex:Ut,maxIndex:Xt,prevIndex:k1(P.current,Xe,$e,S,ae.key===ra?"bl":ae.key===ms?"tr":"tl"),stopEvent:!0})],O(P.current),y==="both")return}if(Jh(ae.key,y)){if(ht(ae),n&&!b&&fn(ae.currentTarget.ownerDocument)===ae.currentTarget){P.current=kc(ae.key,y,p)?pe:ze,O(P.current);return}kc(ae.key,y,p)?h?P.current=Ye>=ze?f&&Ye!==i.current.length?-1:pe:bt(i,{startingIndex:Ye,disabledIndices:W}):P.current=Math.min(ze,bt(i,{startingIndex:Ye,disabledIndices:W})):h?P.current=Ye<=pe?f&&Ye!==-1?i.current.length:ze:bt(i,{startingIndex:Ye,decrement:!0,disabledIndices:W}):P.current=Math.max(pe,bt(i,{startingIndex:Ye,decrement:!0,disabledIndices:W})),sa(i,P.current)?O(null):O(P.current)}}function se(ae){v==="auto"&&qf(ae.nativeEvent)&&(C.current=!0)}function oe(ae){C.current=v,v==="auto"&&ql(ae.nativeEvent)&&(C.current=!0)}const ge=b&&n&&B&&{"aria-activedescendant":J||M},ce=i.current.find(ae=>(ae==null?void 0:ae.id)===M);return{reference:{...ge,onKeyDown(ae){U.current=!1;const Ye=ae.key.indexOf("Arrow")===0,pe=Z1(ae.key,y,p),ze=qh(ae.key,y,p),Xe=Jh(ae.key,y),$e=(m?pe:Xe)||ae.key==="Enter"||ae.key.trim()==="";if(b&&n){const vr=L==null?void 0:L.nodesRef.current.find(Wl=>Wl.parentId==null),Gt=L&&vr?A1(L.nodesRef.current,vr.id):null;if(Ye&&Gt&&D){const Wl=new KeyboardEvent("keydown",{key:ae.key,bubbles:!0});if(pe||ze){var Ut,Xt;const mL=((Ut=Gt.context)==null?void 0:Ut.elements.domReference)===ae.currentTarget,Zv=ze&&!mL?(Xt=Gt.context)==null?void 0:Xt.elements.domReference:pe?ce:null;Zv&&(ht(ae),Zv.dispatchEvent(Wl),K(void 0))}if(Xe&&Gt.context&&Gt.context.open&&Gt.parentId&&ae.currentTarget!==Gt.context.elements.domReference){var Kt;ht(ae),(Kt=Gt.context.elements.domReference)==null||Kt.dispatchEvent(Wl);return}}return ne(ae)}if(!(!n&&!k&&Ye)){if($e&&(F.current=m&&Xe?null:ae.key),m){pe&&(ht(ae),n?(P.current=hc(i,W),O(P.current)):r(!0,ae.nativeEvent,"list-navigation"));return}Xe&&(u!=null&&(P.current=u),ht(ae),!n&&k?r(!0,ae.nativeEvent,"list-navigation"):ne(ae),n&&O(P.current))}},onFocus(){n&&O(null)},onPointerDown:oe,onMouseDown:se,onClick:se},floating:{"aria-orientation":y==="both"?void 0:y,...!eh(a)&&ge,onKeyDown:ne,onPointerMove(){U.current=!0}},item:te}},[a,s,M,J,R,A,i,d,y,p,b,n,B,m,u,k,f,S,h,v,O,r,te,L,D,T,E])}const q1=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function $h(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:s}=t,{enabled:a=!0,role:o="dialog"}=e,i=(n=q1.get(o))!=null?n:o,l=Ao(),d=Ro()!=null;return z.useMemo(()=>{if(!a)return{};const u={id:s,...i&&{role:i}};return i==="tooltip"||o==="label"?{reference:{["aria-"+(o==="label"?"labelledby":"describedby")]:r?s:void 0},floating:u}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?s:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:l},...i==="menu"&&d&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...i==="menu"&&{"aria-labelledby":l}},item(f){let{active:h,selected:m}=f;const p={role:"option",...h&&{id:s+"-option"}};switch(o){case"select":return{...p,"aria-selected":h&&m};case"combobox":return{...p,...h&&{"aria-selected":!0}}}return{}}}},[a,o,i,r,s,l,d])}function $1(t,e){var n;const{open:r,dataRef:s}=t,{listRef:a,activeIndex:o,onMatch:i,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=e,m=z.useRef(),p=z.useRef(""),b=z.useRef((n=h??o)!=null?n:-1),v=z.useRef(null),x=mn(i),k=mn(l),w=pn(d),y=pn(f);return je(()=>{r&&(clearTimeout(m.current),v.current=null,p.current="")},[r]),je(()=>{if(r&&p.current===""){var S;b.current=(S=h??o)!=null?S:-1}},[r,h,o]),z.useMemo(()=>{if(!c)return{};function S(T){T?s.current.typing||(s.current.typing=T,k(T)):s.current.typing&&(s.current.typing=T,k(T))}function N(T,E,Y){const L=w.current?w.current(E,Y):E.find(O=>(O==null?void 0:O.toLocaleLowerCase().indexOf(Y.toLocaleLowerCase()))===0);return L?T.indexOf(L):-1}function D(T){const E=a.current;if(p.current.length>0&&p.current[0]!==" "&&(N(E,E,p.current)===-1?S(!1):T.key===" "&&ht(T)),E==null||y.current.includes(T.key)||T.key.length!==1||T.ctrlKey||T.metaKey||T.altKey)return;r&&T.key!==" "&&(ht(T),S(!0)),E.every(C=>{var P,F;return C?((P=C[0])==null?void 0:P.toLocaleLowerCase())!==((F=C[1])==null?void 0:F.toLocaleLowerCase()):!0})&&p.current===T.key&&(p.current="",b.current=v.current),p.current+=T.key,clearTimeout(m.current),m.current=setTimeout(()=>{p.current="",b.current=v.current,S(!1)},u);const L=b.current,O=N(E,[...E.slice((L||0)+1),...E.slice(0,(L||0)+1)],p.current);O!==-1?(x(O),v.current=O):T.key!==" "&&(p.current="",S(!1))}return{reference:{onKeyDown:D},floating:{onKeyDown:D,onKeyUp(T){T.key===" "&&S(!1)}}}},[c,r,s,a,u,y,w,x,k])}function eg(t,e){const[n,r]=t;let s=!1;const a=e.length;for(let o=0,i=a-1;o<a;i=o++){const[l,c]=e[o]||[0,0],[d,u]=e[i]||[0,0];c>=r!=u>=r&&n<=(d-l)*(r-c)/(u-c)+l&&(s=!s)}return s}function e_(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function t_(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=t;let s,a=!1,o=null,i=null,l=performance.now();function c(u,f){const h=performance.now(),m=h-l;if(o===null||i===null||m===0)return o=u,i=f,l=h,null;const p=u-o,b=f-i,x=Math.sqrt(p*p+b*b)/m;return o=u,i=f,l=h,x}const d=u=>{let{x:f,y:h,placement:m,elements:p,onClose:b,nodeId:v,tree:x}=u;return function(w){function y(){clearTimeout(s),b()}if(clearTimeout(s),!p.domReference||!p.floating||m==null||f==null||h==null)return;const{clientX:S,clientY:N}=w,D=[S,N],T=sr(w),E=w.type==="mouseleave",Y=et(p.floating,T),L=et(p.domReference,T),O=p.domReference.getBoundingClientRect(),C=p.floating.getBoundingClientRect(),P=m.split("-")[0],F=f>C.right-C.width/2,U=h>C.bottom-C.height/2,Z=e_(D,O),ee=C.width>O.width,j=C.height>O.height,V=(ee?O:C).left,R=(ee?O:C).right,A=(j?O:C).top,I=(j?O:C).bottom;if(Y&&(a=!0,!E))return;if(L&&(a=!1),L&&!E){a=!0;return}if(E&&Ee(w.relatedTarget)&&et(p.floating,w.relatedTarget)||x&&Mr(x.nodesRef.current,v).some(J=>{let{context:K}=J;return K==null?void 0:K.open}))return;if(P==="top"&&h>=O.bottom-1||P==="bottom"&&h<=O.top+1||P==="left"&&f>=O.right-1||P==="right"&&f<=O.left+1)return y();let M=[];switch(P){case"top":M=[[V,O.top+1],[V,C.bottom-1],[R,C.bottom-1],[R,O.top+1]];break;case"bottom":M=[[V,C.top+1],[V,O.bottom-1],[R,O.bottom-1],[R,C.top+1]];break;case"left":M=[[C.right-1,I],[C.right-1,A],[O.left+1,A],[O.left+1,I]];break;case"right":M=[[O.right-1,I],[O.right-1,A],[C.left+1,A],[C.left+1,I]];break}function H(J){let[K,q]=J;switch(P){case"top":{const B=[ee?K+e/2:F?K+e*4:K-e*4,q+e+1],te=[ee?K-e/2:F?K+e*4:K-e*4,q+e+1],W=[[C.left,F||ee?C.bottom-e:C.top],[C.right,F?ee?C.bottom-e:C.top:C.bottom-e]];return[B,te,...W]}case"bottom":{const B=[ee?K+e/2:F?K+e*4:K-e*4,q-e],te=[ee?K-e/2:F?K+e*4:K-e*4,q-e],W=[[C.left,F||ee?C.top+e:C.bottom],[C.right,F?ee?C.top+e:C.bottom:C.top+e]];return[B,te,...W]}case"left":{const B=[K+e+1,j?q+e/2:U?q+e*4:q-e*4],te=[K+e+1,j?q-e/2:U?q+e*4:q-e*4];return[...[[U||j?C.right-e:C.left,C.top],[U?j?C.right-e:C.left:C.right-e,C.bottom]],B,te]}case"right":{const B=[K-e,j?q+e/2:U?q+e*4:q-e*4],te=[K-e,j?q-e/2:U?q+e*4:q-e*4],W=[[U||j?C.left+e:C.right,C.top],[U?j?C.left+e:C.right:C.left+e,C.bottom]];return[B,te,...W]}}}if(!eg([S,N],M)){if(a&&!Z)return y();if(!E&&r){const J=c(w.clientX,w.clientY);if(J!==null&&J<.1)return y()}eg([S,N],H([f,h]))?!a&&r&&(s=window.setTimeout(y,40)):y()}}};return d.__options={blockPointerEvents:n},d}const n_=({arrowRef:t,placement:e})=>{const n=[];return n.push(Q2(8)),n.push(e==="auto"?q2():J2()),n.push(Z2({padding:8})),t!=null&&t.current&&n.push($2({element:t.current})),n},r_=({placement:t})=>t==="auto"?void 0:t,s_=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],tg=({open:t,arrowRef:e,placement:n="top",setOpen:r})=>Xh({placement:r_({placement:n}),open:t,onOpenChange:r,whileElementsMounted:mh,middleware:n_({placement:n,arrowRef:e})}),ng=({context:t,trigger:e,role:n="tooltip",interactions:r=[]})=>Qh([Yh(t,{enabled:e==="click"}),j1(t,{enabled:e==="hover",handleClose:t_()}),Uh(t),$h(t,{role:n}),...r]),rg=_.createContext(void 0);function _c(){const t=_.useContext(rg);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Sc=({className:t,theme:e={},...n})=>{const{theme:r}=_c(),s=e.divider??r.floating.divider;return g.jsx("div",{className:G(s,t),...n})},sg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=_c(),a=n.header??s.floating.header;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:G(a,e),...r,children:t}),g.jsx(Sc,{})]})},Oc=_.forwardRef(({children:t,className:e,icon:n,onClick:r,theme:s={},...a},o)=>{const{ref:i,index:l}=D1({label:typeof t=="string"?t:void 0}),c=Sh([o,i]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:m}=_c(),p=u===l,b=re(d.floating.item,s),v=a;return g.jsx("li",{role:"menuitem",className:b.container,children:g.jsxs(Vl,{ref:c,className:G(b.base,e),...v,...h({onClick:()=>{r==null||r(),f&&m(null)}}),tabIndex:p?0:-1,children:[n&&g.jsx(n,{className:b.icon}),t]})})});Oc.displayName="DropdownItem";const a_={top:wx,right:mf,bottom:gf,left:yx},o_=({refs:t,children:e,inline:n,theme:r,disabled:s,setButtonWidth:a,getReferenceProps:o,renderTrigger:i,...l})=>{const c=t.reference,d=o();if(_.useEffect(()=>{c.current&&(a==null||a(c.current.clientWidth))},[c,a]),i){const u=i(r);return _.cloneElement(u,{ref:t.setReference,disabled:s,...d,...u.props})}return n?g.jsx("button",{type:"button",ref:t.setReference,className:r==null?void 0:r.inlineWrapper,disabled:s,...d,children:e}):g.jsx(Js,{...l,disabled:s,type:"button",ref:t.setReference,...d,children:e})},ag=({children:t,className:e,dismissOnClick:n=!0,theme:r={},renderTrigger:s,...a})=>{const[o,i]=_.useState(!1),[l,c]=_.useState(null),[d,u]=_.useState(null),[f,h]=_.useState(void 0),m=_.useRef([]),p=_.useRef([]),b=re(he().dropdown,r),v=a,x=a["data-testid"]||"flowbite-dropdown-target",{placement:k=a.inline?"bottom-start":"bottom",trigger:w="click",label:y,inline:S,arrowIcon:N=!0,...D}=v,T=_.useCallback(j=>{u(j),i(!1)},[]),E=_.useCallback(j=>{o?c(j):T(j)},[o,T]),{context:Y,floatingStyles:L,refs:O}=tg({open:o,setOpen:i,placement:k}),C=J1(Y,{listRef:m,activeIndex:l,selectedIndex:d,onNavigate:c}),P=$1(Y,{listRef:p,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:F,getFloatingProps:U,getItemProps:Z}=ng({context:Y,role:"menu",trigger:w,interactions:[C,P]}),ee=_.useMemo(()=>{const[j]=k.split("-");return a_[j]??gf},[k]);return g.jsxs(rg.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:n,getItemProps:Z,handleSelect:T},children:[g.jsxs(o_,{...D,refs:O,inline:S,theme:b,"data-testid":x,className:G(b.floating.target,D.className),setButtonWidth:h,getReferenceProps:F,renderTrigger:s,children:[y,N&&g.jsx(ee,{className:b.arrowIcon})]}),o&&g.jsx(Bh,{context:Y,modal:!1,children:g.jsx("div",{ref:O.setFloating,style:{...L,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":o,...U({className:G(b.floating.base,b.floating.animation,"duration-100",!o&&b.floating.hidden,b.floating.style.auto,e)}),children:g.jsx(C1,{elementsRef:m,labelsRef:p,children:g.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};ag.displayName="Dropdown",sg.displayName="Dropdown.Header",Sc.displayName="Dropdown.Divider";const i_=Object.assign(ag,{Item:Oc,Header:sg,Divider:Sc}),og=_.forwardRef(({className:t,color:e="gray",helperText:n,sizing:r="md",theme:s={},...a},o)=>{const i=re(he().fileInput,s);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:G(i.root.base,t),children:g.jsx("div",{className:i.field.base,children:g.jsx("input",{className:G(i.field.input.base,i.field.input.colors[e],i.field.input.sizes[r]),...a,type:"file",ref:o})})}),n&&g.jsx($s,{color:e,children:n})]})});og.displayName="FileInput";const l_=_.forwardRef(({label:t,helperText:e,color:n="default",sizing:r="md",variant:s,disabled:a=!1,theme:o={},className:i,...l},c)=>{const d=_.useId(),u=re(he().floatingLabel,o);return g.jsxs("div",{children:[g.jsxs("div",{className:G("relative",s==="standard"?"z-0":""),children:[g.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:G(u.input[n][s][r],i),placeholder:" ","data-testid":"floating-label",disabled:a,...l,ref:c}),g.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:G(u.label[n][s][r],i),children:t})]}),g.jsx("p",{id:"outlined_helper_text"+d,className:G(u.helperText[n],i),children:e})]})});l_.displayName="FloatingLabel";const ig=({alt:t,className:e,children:n,href:r,name:s,src:a,theme:o={},...i})=>{const l=re(he().footer.brand,o);return g.jsx("div",{children:r?g.jsxs("a",{"data-testid":"flowbite-footer-brand",href:r,className:G(l.base,e),...i,children:[g.jsx("img",{alt:t,src:a,className:l.img}),g.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:s}),n]}):g.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:a,className:G(l.img,e),...i})})},lg=({by:t,className:e,href:n,theme:r={},year:s,...a})=>{const o=re(he().footer.copyright,r);return g.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:G(o.base,e),...a,children:["© ",s,n?g.jsx("a",{href:n,className:o.href,children:t}):g.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:o.span,children:t})]})},cg=({className:t,theme:e={},...n})=>{const r=re(he().footer.divider,e);return g.jsx("hr",{"data-testid":"footer-divider",className:G(r.base,t),...n})},dg=({ariaLabel:t,className:e,href:n,icon:r,theme:s={},...a})=>{const o=re(he().footer.icon,s);return g.jsx("div",{children:n?g.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:n,className:G(o.base,e),...a,children:g.jsx(r,{className:o.size})}):g.jsx(r,{"data-testid":"flowbite-footer-icon",className:o.size,...a})})},ug=({as:t="a",children:e,className:n,href:r,theme:s={},...a})=>{const o=re(he().footer.groupLink.link,s);return g.jsx("li",{className:G(o.base,n),children:g.jsx(t,{href:r,className:o.href,...a,children:e})})},fg=({children:t,className:e,col:n=!1,theme:r={},...s})=>{const a=re(he().footer.groupLink,r);return g.jsx("ul",{"data-testid":"footer-groupLink",className:G(a.base,n&&a.col,e),...s,children:t})},hg=({as:t="h2",className:e,theme:n={},title:r,...s})=>{const a=re(he().footer.title,n);return g.jsx(t,{"data-testid":"flowbite-footer-title",className:G(a.base,e),...s,children:r})},gg=({bgDark:t=!1,children:e,className:n,container:r=!1,theme:s={},...a})=>{const o=re(he().footer,s);return g.jsx("footer",{"data-testid":"flowbite-footer",className:G(o.root.base,t&&o.root.bgDark,r&&o.root.container,n),...a,children:e})};gg.displayName="Footer",lg.displayName="Footer.Copyright",ug.displayName="Footer.Link",ig.displayName="Footer.Brand",fg.displayName="Footer.LinkGroup",dg.displayName="Footer.Icon",hg.displayName="Footer.Title",cg.displayName="Footer.Divider",Object.assign(gg,{Copyright:lg,Link:ug,LinkGroup:fg,Brand:ig,Icon:dg,Title:hg,Divider:cg});const Cc=({children:t,className:e,color:n="default",disabled:r=!1,theme:s={},value:a,...o})=>{const i=re(he().label,s);return g.jsx("label",{className:G(i.root.base,i.root.colors[n],r&&i.root.disabled,e),"data-testid":"flowbite-label",...o,children:a??t??""})};Cc.displayName="Label";const mg=({children:t,className:e,icon:n,theme:r={},...s})=>{const a=re(he().list.item,r);return g.jsxs("li",{className:G(a.withIcon[n?"on":"off"],e),...s,children:[n&&g.jsx(n,{className:G(a.icon)}),t]})},pg=({children:t,className:e,unstyled:n,nested:r,ordered:s,horizontal:a,theme:o={},...i})=>{const l=re(he().list,o),c=s?"ol":"ul";return g.jsx(c,{className:G(l.root.base,l.root.ordered[s?"on":"off"],n&&l.root.unstyled,r&&l.root.nested,a&&l.root.horizontal,e),...i,children:t})};pg.displayName="List",mg.displayName="List.Item",Object.assign(pg,{Item:mg});const bg=({active:t,children:e,className:n,href:r,icon:s,onClick:a,theme:o={},disabled:i,...l})=>{const c=re(he().listGroup.item,o),d=typeof r<"u",u=d?"a":"button";return g.jsx("li",{className:G(c.base,n),children:g.jsxs(u,{href:r,onClick:a,type:d?void 0:"button",disabled:i,className:G(c.link.active[t?"on":"off"],c.link.disabled[i?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[s&&g.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},yg=({children:t,className:e,theme:n={},...r})=>{const s=re(he().listGroup,n);return g.jsx("ul",{className:G(s.root.base,e),...r,children:t})};yg.displayName="ListGroup",bg.displayName="ListGroup.Item",Object.assign(yg,{Item:bg});const wg=_.createContext(void 0);function Dc(){const t=_.useContext(wg);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const vg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Dc(),o=re(s.body,n);return g.jsx("div",{className:G(o.base,a&&[o.popup],e),...r,children:t})},xg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Dc(),o=re(s.footer,n);return g.jsx("div",{className:G(o.base,!a&&o.popup,e),...r,children:t})},kg=({as:t="h3",children:e,className:n,theme:r={},id:s,...a})=>{const o=_.useId(),i=s||o,{theme:l,popup:c,onClose:d,setHeaderId:u}=Dc(),f=re(l.header,r);return _.useLayoutEffect(()=>(u(i),()=>u(void 0)),[i,u]),g.jsxs("div",{className:G(f.base,c&&f.popup,n),...a,children:[g.jsx(t,{id:i,className:f.title,children:e}),g.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:g.jsx(vx,{"aria-hidden":!0,className:f.close.icon})})]})},_g=_.forwardRef(({children:t,className:e,dismissible:n=!1,onClose:r,popup:s,position:a="center",root:o,show:i,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,m]=_.useState(void 0),p=re(he().modal,c),{context:b}=Xh({open:i,onOpenChange:()=>r&&r()}),v=Sh([b.refs.setFloating,f]),x=Yh(b),k=Uh(b,{outsidePressEvent:"mousedown",enabled:n}),w=$h(b),{getFloatingProps:y}=Qh([x,k,w]);return i?g.jsx(wg.Provider,{value:{theme:p,popup:s,onClose:r,setHeaderId:m},children:g.jsx(Y1,{root:o,children:g.jsx(X1,{lockScroll:!0,"data-testid":"modal-overlay",className:G(p.root.base,p.root.positions[a],i?p.root.show.on:p.root.show.off,e),...u,children:g.jsx(Bh,{context:b,initialFocus:d,children:g.jsx("div",{ref:v,...y(u),"aria-labelledby":h,className:G(p.content.base,p.root.sizes[l]),children:g.jsx("div",{className:p.content.inner,children:t})})})})})}):null});_g.displayName="Modal",kg.displayName="Modal.Header",vg.displayName="Modal.Body",xg.displayName="Modal.Footer",Object.assign(_g,{Header:kg,Body:vg,Footer:xg});const Sg=_.createContext(void 0);function zo(){const t=_.useContext(Sg);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Og=({as:t="a",children:e,className:n,theme:r={},...s})=>{const{theme:a}=zo(),o=re(a.brand,r);return g.jsx(t,{className:G(o.base,n),...s,children:e})},Cg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a}=zo(),o=re(s.collapse,n);return g.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:G(o.base,o.hidden[a?"off":"on"],e),...r,children:g.jsx("ul",{className:o.list,children:t})})},Dg=({active:t,as:e="a",disabled:n,children:r,className:s,theme:a={},onClick:o,...i})=>{const{theme:l,setIsOpen:c}=zo(),d=re(l.link,a),u=f=>{c(!1),o==null||o(f)};return g.jsx("li",{children:g.jsx(e,{className:G(d.base,t&&d.active.on,!t&&!n&&d.active.off,d.disabled[n?"on":"off"],s),onClick:u,...i,children:r})})},Mg=({barIcon:t=ix,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a,setIsOpen:o}=zo(),i=re(s.toggle,n),l=()=>{o(!a)};return g.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:G(i.base,e),...r,children:[g.jsx("span",{className:"sr-only",children:"Open main menu"}),g.jsx(t,{"aria-hidden":!0,className:i.icon})]})},Eg=({border:t,children:e,className:n,fluid:r=!1,menuOpen:s,rounded:a,theme:o={},...i})=>{const[l,c]=_.useState(s),d=re(he().navbar,o);return g.jsx(Sg.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:g.jsx("nav",{className:G(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[a?"on":"off"],n),...i,children:g.jsx("div",{className:G(d.root.inner.base,d.root.inner.fluid[r?"on":"off"]),children:e})})})};Eg.displayName="Navbar",Og.displayName="Navbar.Brand",Cg.displayName="Navbar.Collapse",Dg.displayName="Navbar.Link",Mg.displayName="Navbar.Toggle",Object.assign(Eg,{Brand:Og,Collapse:Cg,Link:Dg,Toggle:Mg});const c_=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(n=>n+t),Mc=({active:t,children:e,className:n,onClick:r,theme:s={},...a})=>{const o=re(he().pagination,s);return g.jsx("button",{type:"button",className:G(t&&o.pages.selector.active,n),onClick:r,...a,children:e})};Mc.displayName="Pagination.Button";const Ec=({children:t,className:e,onClick:n,theme:r={},disabled:s=!1,...a})=>{const o=re(he().pagination,r);return g.jsx("button",{type:"button",className:G(s&&o.pages.selector.disabled,e),disabled:s,onClick:n,...a,children:t})};Ec.displayName="Pagination.Navigation";const Pg=({className:t,currentPage:e,layout:n="pagination",nextLabel:r="Next",onPageChange:s,previousLabel:a="Previous",renderPaginationButton:o=u=>g.jsx(Mc,{...u}),showIcons:i=!1,theme:l={},totalPages:c,...d})=>{const u=re(he().pagination,l),f=Math.min(Math.max(n==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),m=()=>{s(Math.min(e+1,c))},p=()=>{s(Math.max(e-1,1))};return g.jsxs("nav",{className:G(u.base,t),...d,children:[n==="table"&&g.jsxs("div",{className:u.layout.table.base,children:["Showing ",g.jsx("span",{className:u.layout.table.span,children:h})," to ",g.jsx("span",{className:u.layout.table.span,children:f})," of ",g.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),g.jsxs("ul",{className:u.pages.base,children:[g.jsx("li",{children:g.jsxs(Ec,{className:G(u.pages.previous.base,i&&u.pages.showIcon),onClick:p,disabled:e===1,children:[i&&g.jsx(gx,{"aria-hidden":!0,className:u.pages.previous.icon}),a]})}),n==="pagination"&&c_(h,f).map(b=>g.jsx("li",{"aria-current":b===e?"page":void 0,children:o({className:G(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>s(b),children:b})},b)),g.jsx("li",{children:g.jsxs(Ec,{className:G(u.pages.next.base,i&&u.pages.showIcon),onClick:m,disabled:e===c,children:[r,i&&g.jsx(mx,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};Pg.displayName="Pagination",Object.assign(Pg,{Button:Mc});const Tg=_.forwardRef(({className:t,theme:e={},...n},r)=>{const s=re(he().radio,e);return g.jsx("input",{ref:r,type:"radio",className:G(s.root.base,t),...n})});Tg.displayName="Radio";const d_=_.forwardRef(({className:t,sizing:e="md",theme:n={},...r},s)=>{const a=re(he().rangeSlider,n);return g.jsx(g.Fragment,{children:g.jsx("div",{"data-testid":"flowbite-range-slider",className:G(a.root.base,t),children:g.jsx("div",{className:a.field.base,children:g.jsx("input",{ref:s,type:"range",className:G(a.field.input.base,a.field.input.sizes[e]),...r})})})})});d_.displayName="RangeSlider";const Ng=({children:t,className:e,percentFilled:n=0,theme:r={},...s})=>{const a=re(he().ratingAdvanced,r);return g.jsxs("div",{className:G(a.base,e),...s,children:[g.jsx("span",{className:a.label,children:t}),g.jsx("div",{className:a.progress.base,children:g.jsx("div",{className:a.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),g.jsx("span",{className:a.progress.label,children:`${n}%`})]})},jg=_.createContext(void 0);function u_(){const t=_.useContext(jg);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const Ig=({className:t,filled:e=!0,starIcon:n=px,theme:r={},...s})=>{const{theme:a,size:o="sm"}=u_(),i=re(a.star,r);return g.jsx(n,{"data-testid":"flowbite-rating-star",className:G(i.sizes[o],i[e?"filled":"empty"],t),...s})},Ag=({children:t,className:e,size:n="sm",theme:r={},...s})=>{const a=re(he().rating,r);return g.jsx(jg.Provider,{value:{theme:a,size:n},children:g.jsx("div",{className:G(a.root.base,e),...s,children:t})})};Ag.displayName="Rating",Ig.displayName="Rating.Star",Ng.displayName="Rating.Advanced",Object.assign(Ag,{Star:Ig,Advanced:Ng});const f_=_.forwardRef(({addon:t,children:e,className:n,color:r="gray",helperText:s,icon:a,shadow:o,sizing:i="md",theme:l={},...c},d)=>{const u=re(he().select,l);return g.jsxs("div",{className:G(u.base,n),children:[t&&g.jsx("span",{className:u.addon,children:t}),g.jsxs("div",{className:u.field.base,children:[a&&g.jsx("div",{className:u.field.icon.base,children:g.jsx(a,{className:u.field.icon.svg})}),g.jsx("select",{className:G(u.field.select.base,u.field.select.colors[r],u.field.select.sizes[i],u.field.select.withIcon[a?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[o?"on":"off"]),...c,ref:d,children:e}),s&&g.jsx($s,{color:r,children:s})]})]})});f_.displayName="Select";const h_=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i,trigger:l="hover",minWidth:c,...d})=>{const u=_.useRef(null),[f,h]=_.useState(!1),m=tg({open:f,placement:a,arrowRef:u,setOpen:h}),{context:p,middlewareData:{arrow:{x:b,y:v}={}},refs:x,strategy:k,update:w,x:y,y:S}=m,N=Q1(p),{getFloatingProps:D,getReferenceProps:T}=ng({context:p,role:"tooltip",trigger:l,interactions:[N]});return _.useEffect(()=>{if(x.reference.current&&x.floating.current&&f)return mh(x.reference.current,x.floating.current,w)},[f,x.floating,x.reference,w]),g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:x.setReference,className:i.target,"data-testid":"flowbite-tooltip-target",...T(),children:n}),g.jsxs("div",{ref:x.setFloating,"data-testid":"flowbite-tooltip",...D({className:G(i.base,t&&`${i.animation} ${t}`,!f&&i.hidden,i.style[o],r),style:{position:k,top:S??" ",left:y??" ",minWidth:c},...d}),children:[g.jsx("div",{className:i.content,children:s}),e&&g.jsx("div",{className:G(i.arrow.base,o==="dark"&&i.arrow.style.dark,o==="light"&&i.arrow.style.light,o==="auto"&&i.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:v??" ",left:b??" ",right:" ",bottom:" ",[s_({placement:m.placement})]:i.arrow.placement},children:" "})]})]})},Ho=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i={},trigger:l="hover",...c})=>{const d=re(he().tooltip,i);return g.jsx(h_,{animation:t,arrow:e,content:s,placement:a,style:o,theme:d,trigger:l,className:r,...c,children:n})};Ho.displayName="Tooltip";const Rg=_.createContext(void 0);function bs(){const t=_.useContext(Rg);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Pc=_.createContext(void 0);function g_(){const t=_.useContext(Pc);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const Lg=({children:t,className:e,icon:n,label:r,chevronIcon:s=zl,renderChevronIcon:a,open:o=!1,theme:i={},...l})=>{const c=_.useId(),[d,u]=_.useState(o),{theme:f,isCollapsed:h}=bs(),m=re(f.collapse,i);_.useEffect(()=>u(o),[o]);const p=({children:b})=>g.jsx("li",{children:h&&!d?g.jsx(Ho,{content:r,placement:"right",children:b}):b});return g.jsxs(p,{children:[g.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:r,type:"button",className:G(m.button,e),...l,children:[n&&g.jsx(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:G(m.icon.base,m.icon.open[d?"on":"off"])}),h?g.jsx("span",{className:"sr-only",children:r}):g.jsxs(g.Fragment,{children:[g.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:m.label.base,children:r}),a?a(m,d):g.jsx(s,{"aria-hidden":!0,className:G(m.label.icon.base,m.label.icon.open[d?"on":"off"])})]})]}),g.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:m.list,children:g.jsx(Pc.Provider,{value:{isInsideCollapse:!0},children:t})})]})};Lg.displayName="Sidebar.Collapse";const Fg=({children:t,color:e="info",className:n,theme:r={},...s})=>{const{theme:a,isCollapsed:o}=bs(),i=re(a.cta,r);return g.jsx("div",{"data-testid":"sidebar-cta",hidden:o,className:G(i.base,i.color[e],n),...s,children:t})};Fg.displayName="Sidebar.CTA";const m_=({id:t,theme:e,isCollapsed:n,tooltipChildren:r,children:s,...a})=>g.jsx("li",{...a,children:n?g.jsx(Ho,{content:g.jsx(Wg,{id:t,theme:e,children:r}),placement:"right",children:s}):s}),Wg=({id:t,theme:e,children:n})=>g.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:G(e.content.base),children:n}),Bg=_.forwardRef(({active:t,as:e="a",children:n,className:r,icon:s,label:a,labelColor:o="info",theme:i={},...l},c)=>{var p,b,v,x;const d=_.useId(),{theme:u,isCollapsed:f}=bs(),{isInsideCollapse:h}=g_(),m=re(u.item,i);return g.jsx(m_,{theme:m,className:m.listItem,id:d,isCollapsed:f,tooltipChildren:n,children:g.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:G(m.base,t&&m.active,!f&&h&&((p=m.collapsed)==null?void 0:p.insideCollapse),r),...l,children:[s&&g.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:G((b=m.icon)==null?void 0:b.base,t&&((v=m.icon)==null?void 0:v.active))}),f&&!s&&g.jsx("span",{className:(x=m.collapsed)==null?void 0:x.noIcon,children:n.charAt(0).toLocaleUpperCase()??"?"}),!f&&g.jsx(Wg,{id:d,theme:m,children:n}),!f&&a&&g.jsx(Nf,{color:o,"data-testid":"flowbite-sidebar-label",hidden:f,className:m.label,children:a})]})})});Bg.displayName="Sidebar.Item";const zg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=bs(),a=re(s.itemGroup,n);return g.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:G(a.base,e),...r,children:g.jsx(Pc.Provider,{value:{isInsideCollapse:!1},children:t})})};zg.displayName="Sidebar.ItemGroup";const Hg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=bs(),a=re(s.items,n);return g.jsx("div",{className:G(a.base,e),"data-testid":"flowbite-sidebar-items",...r,children:t})};Hg.displayName="Sidebar.Items";const Yg=({children:t,className:e,href:n,img:r,imgAlt:s="",theme:a={},...o})=>{const i=_.useId(),{theme:l,isCollapsed:c}=bs(),d=re(l.logo,a);return g.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${i}`,href:n,className:G(d.base,e),...o,children:[g.jsx("img",{alt:s,src:r,className:d.img}),g.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${i}`,children:t})]})};Yg.displayName="Sidebar.Logo";const Vg=({children:t,as:e="nav",collapseBehavior:n="collapse",collapsed:r=!1,theme:s={},className:a,...o})=>{const i=re(he().sidebar,s);return g.jsx(Rg.Provider,{value:{theme:i,isCollapsed:r},children:g.jsx(e,{"aria-label":"Sidebar",hidden:r&&n==="hide",className:G(i.root.base,i.root.collapsed[r?"on":"off"],a),...o,children:g.jsx("div",{className:i.root.inner,children:t})})})};Vg.displayName="Sidebar",Object.assign(Vg,{Collapse:Lg,CTA:Fg,Item:Bg,Items:Hg,ItemGroup:zg,Logo:Yg});const Ug=_.createContext(void 0);function p_(){const t=_.useContext(Ug);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const Xg=_.createContext(void 0);function Tc(){const t=_.useContext(Xg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const Kg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=Tc(),o=re(a.body,n);return g.jsx(Ug.Provider,{value:{theme:o},children:g.jsx("tbody",{className:G(o.base,e),ref:s,...r,children:t})})});Kg.displayName="Table.Body";const Gg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=p_(),o=re(a.cell,n);return g.jsx("td",{className:G(o.base,e),ref:s,...r,children:t})});Gg.displayName="Table.Cell";const Qg=_.createContext(void 0);function b_(){const t=_.useContext(Qg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const Zg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=Tc(),o=re(a.head,n);return g.jsx(Qg.Provider,{value:{theme:o},children:g.jsx("thead",{className:G(o.base,e),ref:s,...r,children:g.jsx("tr",{children:t})})})});Zg.displayName="Table.Head";const Jg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=b_(),o=re(a.cell,n);return g.jsx("th",{className:G(o.base,e),ref:s,...r,children:t})});Jg.displayName="Table.HeadCell";const qg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a,hoverable:o,striped:i}=Tc(),l=re(a.row,n);return g.jsx("tr",{ref:s,"data-testid":"table-row-element",className:G(l.base,i&&l.striped,o&&l.hovered,e),...r,children:t})});qg.displayName="Table.Row";const $g=_.forwardRef(({children:t,className:e,striped:n,hoverable:r,theme:s={},...a},o)=>{const i=re(he().table,s);return g.jsx("div",{"data-testid":"table-element",className:G(i.root.wrapper),children:g.jsxs(Xg.Provider,{value:{theme:i,striped:n,hoverable:r},children:[g.jsx("div",{className:G(i.root.shadow,e)}),g.jsx("table",{className:G(i.root.base,e),...a,ref:o,children:t})]})})});$g.displayName="Table";const Ke=Object.assign($g,{Head:Zg,Body:Kg,Row:qg,Cell:Gg,HeadCell:Jg}),em=({children:t,className:e})=>g.jsx("div",{className:e,children:t});em.displayName="Tabs.Item";const tm=_.forwardRef(({children:t,className:e,onActiveTabChange:n,style:r="default",theme:s={},...a},o)=>{const i=re(he().tabs,s),l=_.useId(),c=_.useMemo(()=>_.Children.map(_.Children.toArray(t),({props:w})=>w),[t]),d=_.useRef([]),[u,f]=_.useState(Math.max(0,c.findIndex(w=>w.active))),[h,m]=_.useState(-1),p=w=>{f(w),n&&n(w)},b=({target:w})=>{p(w),m(w)},v=({event:w,target:y})=>{w.key==="ArrowLeft"&&m(Math.max(0,h-1)),w.key==="ArrowRight"&&m(Math.min(c.length-1,h+1)),w.key==="Enter"&&(p(y),m(y))},x=i.tablist.tabitem.styles[r],k=i.tabitemcontainer.styles[r];return _.useEffect(()=>{var w;(w=d.current[h])==null||w.focus()},[h]),_.useImperativeHandle(o,()=>({setActiveTab:p})),g.jsxs("div",{className:G(i.base,e),children:[g.jsx("div",{"aria-label":"Tabs",role:"tablist",className:G(i.tablist.base,i.tablist.styles[r],e),...a,children:c.map((w,y)=>g.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${y}`,"aria-selected":y===u,className:G(i.tablist.tabitem.base,x.base,y===u&&x.active.on,y!==u&&!w.disabled&&x.active.off),disabled:w.disabled,id:`${l}-tab-${y}`,onClick:()=>b({target:y}),onKeyDown:S=>v({event:S,target:y}),ref:S=>d.current[y]=S,role:"tab",tabIndex:y===h?0:-1,style:{zIndex:y===h?2:1},children:[w.icon&&g.jsx(w.icon,{className:i.tablist.tabitem.icon}),w.title]},y))}),g.jsx("div",{className:G(i.tabitemcontainer.base,k),children:c.map((w,y)=>g.jsx("div",{"aria-labelledby":`${l}-tab-${y}`,className:i.tabpanel,hidden:y!==u,id:`${l}-tabpanel-${y}`,role:"tabpanel",tabIndex:0,children:w.children},y))})]})});tm.displayName="Tabs",Object.assign(tm,{Item:em});const y_=_.forwardRef(({className:t,color:e="gray",helperText:n,shadow:r,theme:s={},...a},o)=>{const i=re(he().textarea,s);return g.jsxs(g.Fragment,{children:[g.jsx("textarea",{ref:o,className:G(i.base,i.colors[e],i.withShadow[r?"on":"off"],t),...a}),n&&g.jsx($s,{color:e,children:n})]})});y_.displayName="Textarea";const nm=_.createContext(void 0);function Nc(){const t=_.useContext(nm);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const rm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Nc(),a=re(s.body,n);return g.jsx("div",{className:G(a.base,e),...r,children:t})},sm=_.createContext(void 0);function jc(){const t=_.useContext(sm);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const am=_.createContext(void 0);function om(){const t=_.useContext(am);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const im=({children:t,className:e,theme:n={},...r})=>{const{horizontal:s}=jc(),{theme:a}=om(),o=re(a.content,n);return g.jsx(nm.Provider,{value:{theme:o},children:g.jsx("div",{"data-testid":"timeline-content",className:G(s&&o.root.base,e),...r,children:t})})},lm=({children:t,className:e,theme:n={},...r})=>{const{theme:s,horizontal:a}=jc(),o=re(s.item,n);return g.jsx(am.Provider,{value:{theme:o},children:g.jsx("li",{"data-testid":"timeline-item",className:G(a&&o.root.horizontal,!a&&o.root.vertical,e),...r,children:t})})},cm=({children:t,className:e,icon:n,theme:r={},...s})=>{const{horizontal:a}=jc(),{theme:o}=om(),i=re(o.point,r);return g.jsxs("div",{"data-testid":"timeline-point",className:G(a&&i.horizontal,!a&&i.vertical,e),...s,children:[t,n?g.jsx("span",{className:G(i.marker.icon.wrapper),children:g.jsx(n,{"aria-hidden":!0,className:G(i.marker.icon.base)})}):g.jsx("div",{className:G(a&&i.marker.base.horizontal,!a&&i.marker.base.vertical)}),a&&g.jsx("div",{className:G(i.line)})]})},dm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Nc(),a=re(s.time,n);return g.jsx("time",{className:G(a.base,e),...r,children:t})},um=({as:t="h3",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Nc(),o=re(a.title,r);return g.jsx(t,{className:G(o.base,n),...s,children:e})},fm=({children:t,className:e,horizontal:n,theme:r={},...s})=>{const a=re(he().timeline,r);return g.jsx(sm.Provider,{value:{theme:a,horizontal:n},children:g.jsx("ol",{"data-testid":"timeline-component",className:G(n&&a.root.direction.horizontal,!n&&a.root.direction.vertical,e),...s,children:t})})};fm.displayName="Timeline",lm.displayName="Timeline.Item",cm.displayName="Timeline.Point",im.displayName="Timeline.Content",dm.displayName="Timeline.Time",um.displayName="Timeline.Title",rm.displayName="Timeline.Body",Object.assign(fm,{Item:lm,Point:cm,Content:im,Time:dm,Title:um,Body:rm});const hm=_.createContext(void 0);function w_(){const t=_.useContext(hm);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const gm=({className:t,onClick:e,theme:n={},xIcon:r=bx,onDismiss:s,...a})=>{const{theme:o,duration:i,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=w_(),f=re(o.toggle,n),h=m=>{if(e&&e(m),s){s();return}d(!l),setTimeout(()=>u(!c),i)};return g.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:G(f.base,t),...a,children:g.jsx(r,{"aria-hidden":!0,className:f.icon})})},v_={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},mm=({children:t,className:e,duration:n=300,theme:r={},...s})=>{const[a,o]=_.useState(!1),[i,l]=_.useState(!1),c=re(he().toast,r);return i?null:g.jsx(hm.Provider,{value:{theme:c,duration:n,isClosed:a,isRemoved:i,setIsClosed:o,setIsRemoved:l},children:g.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:G(c.root.base,v_[n],a&&c.root.closed,e),...s,children:t})})};mm.displayName="Toast",gm.displayName="Toast.Toggle",Object.assign(mm,{Toggle:gm});const x_=_.forwardRef(({checked:t,className:e,color:n="blue",sizing:r="md",disabled:s,label:a,name:o,onChange:i,theme:l={},...c},d)=>{const u=_.useId(),f=re(he().toggleSwitch,l),h=()=>i(!t),m=()=>{h()},p=b=>{b.code=="Enter"&&b.preventDefault()};return g.jsxs(g.Fragment,{children:[o&&t?g.jsx("input",{ref:d,checked:t,hidden:!0,name:o,readOnly:!0,type:"checkbox",className:"sr-only"}):null,g.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:s,id:`${u}-flowbite-toggleswitch`,onClick:m,onKeyDown:p,role:"switch",tabIndex:0,type:"button",className:G(f.root.base,f.root.active[s?"off":"on"],e),...c,children:[g.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:G(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[n],f.toggle.sizes[r])}),a!=null&&a.length?g.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:a}):null]})]})});x_.displayName="ToggleSwitch";const Ic=_.forwardRef(({icon:t,placeholder:e,label:n,error:r,type:s,classInclude:a,maxLength:o,onChange:i,...l},c)=>g.jsxs("div",{className:`${n?"mb-3":""}`,children:[n&&g.jsx("label",{className:"mb-1 block font-semibold",children:n}),t===!0?g.jsx(os,{className:`${a}`,maxLength:o,ref:c,type:s,rightIcon:dx,placeholder:e,onChange:i,...l}):g.jsx(os,{className:`${a}`,maxLength:o,ref:c,type:s,placeholder:e,onChange:i,...l}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Ic.displayName="InputForm";const k_={"mth-password":"passwordInput-module__mth-password__R6DoN"},Ac=({placeholder:t,onChange:e,value:n,...r})=>{const[s,a]=_.useState(!1),o=()=>{a(!s)};return g.jsx("div",{className:"mb-5",children:g.jsxs("div",{className:"relative inline-block w-full",children:[g.jsx("input",{type:s?"text":"password",value:n,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...r}),g.jsx("button",{type:"button",onClick:o,className:k_["mth-password"],children:s?g.jsx(lx,{}):g.jsx(cx,{})})]})})},pm={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},bm=({start:t,end:e,current:n,type:r})=>{const s=(n-t)/(e-t)*100,a=Math.min(Math.max(s,0),100),o=()=>a<10?"left-0":a>90?"right-0":"left-1/2 transform -translate-x-1/2";return g.jsxs("div",{className:"w-full p-1",children:[g.jsxs("div",{className:"mb-2 flex justify-between text-xs text-gray-400",children:[g.jsx("span",{children:t.toLocaleString()}),g.jsx("span",{children:e.toLocaleString()})]}),g.jsxs("div",{className:"relative mb-5 h-1 w-full rounded-full bg-gray-200",children:[g.jsx("div",{className:`${pm.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${a}%`}}),g.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${a}%`},children:[g.jsx("div",{className:`${pm.mth_progress_bar_thumb} w-2 h-2 rounded-full shadow-lg`}),g.jsxs("div",{className:`absolute top-full mt-2 text-xs font-medium text-black whitespace-nowrap ${o()}`,children:[n.toLocaleString()," ",r==="percentage"?"%":""]})]})]})]})},ym=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:s,id:a,classDiv:o,...i},l)=>g.jsxs("div",{className:o,children:[g.jsxs("select",{ref:l,id:a,className:"h-8 w-full rounded-lg border px-3 py-0.5",value:r,onChange:s,...i,children:[g.jsx("option",{value:"0",children:e||"Seleccione una opción"}),t==null?void 0:t.map(c=>g.jsx("option",{value:c.value,children:c.label},c.value))]}),n&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));ym.displayName="SelectForm";const wm={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},__=({logo:t,number:e,title:n,start:r,end:s,current:a,type:o,classIm:i})=>{const l=c=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(c);return g.jsxs("div",{className:`${wm.mth_card_indicator} flex flex-col border bg-white px-3.5 py-4`,children:[g.jsx("div",{className:"flex justify-end",children:g.jsx(xr,{src:t||"",alt:"Icon",width:30,height:30,classIm:i})}),g.jsx("h2",{className:"mt-2 font-bold mth_card_indicator_title",id:`mth_card_indicator_${n}_title`,children:n.toUpperCase()}),g.jsxs("small",{className:"text-2xl font-extrabold mth_card_indicator_number",children:[l(e)," ",o==="percentage"?"%":""]}),g.jsx("div",{className:"mt-2 mth_card_indicator_progress_bar",children:g.jsx(bm,{start:r,end:s,current:a,type:o})})]})};/*!
8
+ */var s1=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Io=s1.join(","),kh=typeof Element>"u",ms=kh?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ao=!kh&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Ro=function t(e,n){var r;n===void 0&&(n=!0);var s=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=s===""||s==="true",o=a||n&&e&&t(e.parentNode);return o},a1=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},o1=function(e,n,r){if(Ro(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(Io));return n&&ms.call(e,Io)&&s.unshift(e),s=s.filter(r),s},i1=function t(e,n,r){for(var s=[],a=Array.from(e);a.length;){var o=a.shift();if(!Ro(o,!1))if(o.tagName==="SLOT"){var i=o.assignedElements(),l=i.length?i:o.children,c=t(l,!0,r);r.flatten?s.push.apply(s,c):s.push({scopeParent:o,candidates:c})}else{var d=ms.call(o,Io);d&&r.filter(o)&&(n||!e.includes(o))&&s.push(o);var u=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),f=!Ro(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&f){var h=t(u===!0?o.children:u.children,!0,r);r.flatten?s.push.apply(s,h):s.push({scopeParent:o,candidates:h})}else a.unshift.apply(a,o.children)}}return s},_h=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Sh=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||a1(e))&&!_h(e)?0:e.tabIndex},l1=function(e,n){var r=Sh(e);return r<0&&n&&!_h(e)?0:r},c1=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Oh=function(e){return e.tagName==="INPUT"},d1=function(e){return Oh(e)&&e.type==="hidden"},u1=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},f1=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},h1=function(e){if(!e.name)return!0;var n=e.form||Ao(e),r=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(e.name));else try{s=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=f1(s,e.form);return!a||a===e},g1=function(e){return Oh(e)&&e.type==="radio"},m1=function(e){return g1(e)&&!h1(e)},p1=function(e){var n,r=e&&Ao(e),s=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==e){var o,i,l;for(a=!!((o=s)!==null&&o!==void 0&&(i=o.ownerDocument)!==null&&i!==void 0&&i.contains(s)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!a&&s;){var c,d,u;r=Ao(s),s=(c=r)===null||c===void 0?void 0:c.host,a=!!((d=s)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(s))}}return a},Ch=function(e){var n=e.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},b1=function(e,n){var r=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=ms.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if(ms.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof s=="function"){for(var i=e;e;){var l=e.parentElement,c=Ao(e);if(l&&!l.shadowRoot&&s(l)===!0)return Ch(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=i}if(p1(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Ch(e);return!1},y1=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return ms.call(n,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}n=n.parentElement}return!1},w1=function(e,n){return!(n.disabled||Ro(n)||d1(n)||b1(n,e)||u1(n)||y1(n))},gc=function(e,n){return!(m1(n)||Sh(n)<0||!w1(e,n))},v1=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},x1=function t(e){var n=[],r=[];return e.forEach(function(s,a){var o=!!s.scopeParent,i=o?s.scopeParent:s,l=l1(i,o),c=o?t(s.candidates):i;l===0?o?n.push.apply(n,c):n.push(i):r.push({documentOrder:a,tabIndex:l,item:s,isScope:o,content:c})}),r.sort(c1).reduce(function(s,a){return a.isScope?s.push.apply(s,a.content):s.push(a.content),s},[]).concat(n)},Lo=function(e,n){n=n||{};var r;return n.getShadowRoot?r=i1([e],n.includeContainer,{filter:gc.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:v1}):r=o1(e,n.includeContainer,gc.bind(null,n)),x1(r)},k1=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return ms.call(e,Io)===!1?!1:gc(n,e)};function Dh(t){return z.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})},t)}const _1=z.useInsertionEffect||(t=>t());function mn(t){const e=z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return _1(()=>{e.current=t}),z.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return e.current==null?void 0:e.current(...r)},[])}const mc="ArrowUp",oa="ArrowDown",ps="ArrowLeft",bs="ArrowRight";function Fo(t,e,n){return Math.floor(t/e)!==n}function ia(t,e){return e<0||e>=t.current.length}function pc(t,e){return bt(t,{disabledIndices:e})}function Mh(t,e){return bt(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function bt(t,e){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:s,amount:a=1}=e===void 0?{}:e;const o=t.current,i=s?c=>s.includes(c):c=>{const d=o[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=n;do l+=r?-a:a;while(l>=0&&l<=o.length-1&&i(l));return l}function S1(t,e){let{event:n,orientation:r,loop:s,cols:a,disabledIndices:o,minIndex:i,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(n.key===mc){if(d&&ht(n),c===-1)u=l;else if(u=bt(t,{startingIndex:u,amount:a,decrement:!0,disabledIndices:o}),s&&(c-a<i||u<0)){const f=c%a,h=l%a,p=l-(h-f);h===f?u=l:u=h>f?p:p-a}ia(t,u)&&(u=c)}if(n.key===oa&&(d&&ht(n),c===-1?u=i:(u=bt(t,{startingIndex:c,amount:a,disabledIndices:o}),s&&c+a>l&&(u=bt(t,{startingIndex:c%a-a,amount:a,disabledIndices:o}))),ia(t,u)&&(u=c)),r==="both"){const f=fs(c/a);n.key===bs&&(d&&ht(n),c%a!==a-1?(u=bt(t,{startingIndex:c,disabledIndices:o}),s&&Fo(u,a,f)&&(u=bt(t,{startingIndex:c-c%a-1,disabledIndices:o}))):s&&(u=bt(t,{startingIndex:c-c%a-1,disabledIndices:o})),Fo(u,a,f)&&(u=c)),n.key===ps&&(d&&ht(n),c%a!==0?(u=bt(t,{startingIndex:c,disabledIndices:o,decrement:!0}),s&&Fo(u,a,f)&&(u=bt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o}))):s&&(u=bt(t,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:o})),Fo(u,a,f)&&(u=c));const h=fs(l/a)===f;ia(t,u)&&(s&&h?u=n.key===ps?l:bt(t,{startingIndex:c-c%a-1,disabledIndices:o}):u=c)}return u}function O1(t,e,n){const r=[];let s=0;return t.forEach((a,o)=>{let{width:i,height:l}=a;if(i>e&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+o+" is greater than grid columns");let c=!1;for(n&&(s=0);!c;){const d=[];for(let u=0;u<i;u++)for(let f=0;f<l;f++)d.push(s+u+f*e);s%e+i<=e&&d.every(u=>r[u]==null)?(d.forEach(u=>{r[u]=o}),c=!0):s++}}),[...r]}function C1(t,e,n,r,s){if(t===-1)return-1;const a=n.indexOf(t);switch(s){case"tl":return a;case"tr":return a+e[t].width-1;case"bl":return a+(e[t].height-1)*r;case"br":return n.lastIndexOf(t)}}function D1(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}let Eh=0;function Fn(t,e){e===void 0&&(e={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:s=!1}=e;r&&cancelAnimationFrame(Eh);const a=()=>t==null?void 0:t.focus({preventScroll:n});s?a():Eh=requestAnimationFrame(a)}var Ie=typeof document<"u"?_.useLayoutEffect:_.useEffect;function M1(t,e){const n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function E1(t,e){if(t.size!==e.size)return!1;for(const[n,r]of t.entries())if(r!==e.get(n))return!1;return!0}const Ph=z.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function P1(t){let{children:e,elementsRef:n,labelsRef:r}=t;const[s,a]=z.useState(()=>new Map),o=z.useCallback(l=>{a(c=>new Map(c).set(l,null))},[]),i=z.useCallback(l=>{a(c=>{const d=new Map(c);return d.delete(l),d})},[]);return Ie(()=>{const l=new Map(s);Array.from(l.keys()).sort(M1).forEach((d,u)=>{l.set(d,u)}),E1(s,l)||a(l)},[s]),z.createElement(Ph.Provider,{value:z.useMemo(()=>({register:o,unregister:i,map:s,elementsRef:n,labelsRef:r}),[o,i,s,n,r])},e)}function T1(t){let{label:e}=t===void 0?{}:t;const[n,r]=z.useState(null),s=z.useRef(null),{register:a,unregister:o,map:i,elementsRef:l,labelsRef:c}=z.useContext(Ph),d=z.useCallback(u=>{if(s.current=u,n!==null&&(l.current[n]=u,c)){var f;const h=e!==void 0;c.current[n]=h?e:(f=u==null?void 0:u.textContent)!=null?f:null}},[n,l,c,e]);return Ie(()=>{const u=s.current;if(u)return a(u),()=>{o(u)}},[a,o]),Ie(()=>{const u=s.current?i.get(s.current):null;u!=null&&r(u)},[i]),z.useMemo(()=>({ref:d,index:n??-1}),[n,d])}function la(){return la=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},la.apply(this,arguments)}let bc=!1,N1=0;const Th=()=>"floating-ui-"+N1++;function j1(){const[t,e]=z.useState(()=>bc?Th():void 0);return Ie(()=>{t==null&&e(Th())},[]),z.useEffect(()=>{bc||(bc=!0)},[]),t}const Wo=z.useId||j1;function I1(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(s=>s(n))},on(e,n){t.set(e,[...t.get(e)||[],n])},off(e,n){var r;t.set(e,((r=t.get(e))==null?void 0:r.filter(s=>s!==n))||[])}}}const A1=z.createContext(null),R1=z.createContext(null),Bo=()=>{var t;return((t=z.useContext(A1))==null?void 0:t.id)||null},ca=()=>z.useContext(R1);function Pr(t){return"data-floating-ui-"+t}function pn(t){const e=_.useRef(t);return Ie(()=>{e.current=t}),e}const Nh=Pr("safe-polygon");function yc(t,e,n){return n&&!Co(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function L1(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,events:a,elements:{domReference:o,floating:i},refs:l}=t,{enabled:c=!0,delay:d=0,handleClose:u=null,mouseOnly:f=!1,restMs:h=0,move:p=!0}=e,m=ca(),b=Bo(),y=pn(u),x=pn(d),k=z.useRef(),v=z.useRef(),w=z.useRef(),S=z.useRef(),N=z.useRef(!0),D=z.useRef(!1),T=z.useRef(()=>{}),E=z.useCallback(()=>{var C;const P=(C=s.current.openEvent)==null?void 0:C.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[s]);z.useEffect(()=>{if(!c)return;function C(P){let{open:F}=P;F||(clearTimeout(v.current),clearTimeout(S.current),N.current=!0)}return a.on("openchange",C),()=>{a.off("openchange",C)}},[c,a]),z.useEffect(()=>{if(!c||!y.current||!n)return;function C(F){E()&&r(!1,F,"hover")}const P=kt(i).documentElement;return P.addEventListener("mouseleave",C),()=>{P.removeEventListener("mouseleave",C)}},[i,n,r,c,y,E]);const Y=z.useCallback(function(C,P,F){P===void 0&&(P=!0),F===void 0&&(F="hover");const U=yc(x.current,"close",k.current);U&&!w.current?(clearTimeout(v.current),v.current=setTimeout(()=>r(!1,C,F),U)):P&&(clearTimeout(v.current),r(!1,C,F))},[x,r]),L=z.useCallback(()=>{T.current(),w.current=void 0},[]),O=z.useCallback(()=>{if(D.current){const C=kt(l.floating.current).body;C.style.pointerEvents="",C.removeAttribute(Nh),D.current=!1}},[l]);return z.useEffect(()=>{if(!c)return;function C(){return s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1}function P(Z){if(clearTimeout(v.current),N.current=!1,f&&!Co(k.current)||h>0&&yc(x.current,"open")===0)return;const ee=yc(x.current,"open",k.current);ee?v.current=setTimeout(()=>{r(!0,Z,"hover")},ee):r(!0,Z,"hover")}function F(Z){if(C())return;T.current();const ee=kt(i);if(clearTimeout(S.current),y.current){n||clearTimeout(v.current),w.current=y.current({...t,tree:m,x:Z.clientX,y:Z.clientY,onClose(){O(),L(),Y(Z,!0,"safe-polygon")}});const V=w.current;ee.addEventListener("mousemove",V),T.current=()=>{ee.removeEventListener("mousemove",V)};return}(k.current==="touch"?!tt(i,Z.relatedTarget):!0)&&Y(Z)}function U(Z){C()||y.current==null||y.current({...t,tree:m,x:Z.clientX,y:Z.clientY,onClose(){O(),L(),Y(Z)}})(Z)}if(Pe(o)){const Z=o;return n&&Z.addEventListener("mouseleave",U),i==null||i.addEventListener("mouseleave",U),p&&Z.addEventListener("mousemove",P,{once:!0}),Z.addEventListener("mouseenter",P),Z.addEventListener("mouseleave",F),()=>{n&&Z.removeEventListener("mouseleave",U),i==null||i.removeEventListener("mouseleave",U),p&&Z.removeEventListener("mousemove",P),Z.removeEventListener("mouseenter",P),Z.removeEventListener("mouseleave",F)}}},[o,i,c,t,f,h,p,Y,L,O,r,n,m,x,y,s]),Ie(()=>{var C;if(c&&n&&(C=y.current)!=null&&C.__options.blockPointerEvents&&E()){const F=kt(i).body;if(F.setAttribute(Nh,""),F.style.pointerEvents="none",D.current=!0,Pe(o)&&i){var P;const U=o,Z=m==null||(P=m.nodesRef.current.find(ee=>ee.id===b))==null||(P=P.context)==null?void 0:P.elements.floating;return Z&&(Z.style.pointerEvents=""),U.style.pointerEvents="auto",i.style.pointerEvents="auto",()=>{U.style.pointerEvents="",i.style.pointerEvents=""}}}},[c,n,b,i,o,m,y,E]),Ie(()=>{n||(k.current=void 0,L(),O())},[n,L,O]),z.useEffect(()=>()=>{L(),clearTimeout(v.current),clearTimeout(S.current),O()},[c,o,L,O]),z.useMemo(()=>{if(!c)return{};function C(P){k.current=P.pointerType}return{reference:{onPointerDown:C,onPointerEnter:C,onMouseMove(P){n||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{N.current||r(!0,P.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(v.current)},onMouseLeave(P){Y(P.nativeEvent,!1)}}}},[c,h,n,r,Y])}function F1(t,e){var n;let r=[],s=(n=t.find(a=>a.id===e))==null?void 0:n.parentId;for(;s;){const a=t.find(o=>o.id===s);s=a==null?void 0:a.parentId,a&&(r=r.concat(a))}return r}function Tr(t,e){let n=t.filter(s=>{var a;return s.parentId===e&&((a=s.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=t.filter(s=>{var a;return(a=r)==null?void 0:a.some(o=>{var i;return s.parentId===o.id&&((i=s.context)==null?void 0:i.open)})}),n=n.concat(r);return n}function W1(t,e){let n,r=-1;function s(a,o){o>r&&(n=a,r=o),Tr(t,a).forEach(l=>{s(l.id,o+1)})}return s(e,0),t.find(a=>a.id===n)}let ys=new WeakMap,zo=new WeakSet,Ho={},wc=0;const B1=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,jh=t=>t&&(t.host||jh(t.parentNode)),z1=(t,e)=>e.map(n=>{if(t.contains(n))return n;const r=jh(n);return t.contains(r)?r:null}).filter(n=>n!=null);function H1(t,e,n,r){const s="data-floating-ui-inert",a=r?"inert":n?"aria-hidden":null,o=z1(e,t),i=new Set,l=new Set(o),c=[];Ho[s]||(Ho[s]=new WeakMap);const d=Ho[s];o.forEach(u),f(e),i.clear();function u(h){!h||i.has(h)||(i.add(h),h.parentNode&&u(h.parentNode))}function f(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,p=>{if(i.has(p))f(p);else{const m=a?p.getAttribute(a):null,b=m!==null&&m!=="false",y=(ys.get(p)||0)+1,x=(d.get(p)||0)+1;ys.set(p,y),d.set(p,x),c.push(p),y===1&&b&&zo.add(p),x===1&&p.setAttribute(s,""),!b&&a&&p.setAttribute(a,"true")}})}return wc++,()=>{c.forEach(h=>{const p=(ys.get(h)||0)-1,m=(d.get(h)||0)-1;ys.set(h,p),d.set(h,m),p||(!zo.has(h)&&a&&h.removeAttribute(a),zo.delete(h)),m||h.removeAttribute(s)}),wc--,wc||(ys=new WeakMap,ys=new WeakMap,zo=new WeakSet,Ho={})}}function Ih(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=kt(t[0]).body;return H1(t.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,e,n)}const da=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ah(t,e){const n=Lo(t,da());e==="prev"&&n.reverse();const r=n.indexOf(fn(kt(t)));return n.slice(r+1)[0]}function Rh(){return Ah(document.body,"next")}function Lh(){return Ah(document.body,"prev")}function ua(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!tt(n,r)}function Y1(t){Lo(t,da()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function V1(t){t.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const vc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let U1;function Fh(t){t.key==="Tab"&&(t.target,clearTimeout(U1))}const Yo=z.forwardRef(function(e,n){const[r,s]=z.useState();Ie(()=>(nc()&&s("button"),document.addEventListener("keydown",Fh),()=>{document.removeEventListener("keydown",Fh)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Pr("focus-guard")]:"",style:vc};return z.createElement("span",la({},e,a))}),Wh=z.createContext(null),Bh=Pr("portal");function X1(t){let{id:e,root:n}=t===void 0?{}:t;const[r,s]=z.useState(null),a=Wo(),o=zh(),i=z.useRef(null);return Ie(()=>()=>{r==null||r.remove(),queueMicrotask(()=>{i.current=null})},[r]),Ie(()=>{if(i.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=a,c.setAttribute(Bh,""),l.appendChild(c),i.current=c,s(c)},[e,a]),Ie(()=>{if(i.current)return;let l=n||(o==null?void 0:o.portalNode);l&&!Pe(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=a,d.setAttribute(Bh,""),l=c||l,l.appendChild(d),i.current=d,s(d)},[e,n,a,o]),r}function K1(t){let{children:e,id:n,root:r=null,preserveTabOrder:s=!0}=t;const a=X1({id:n,root:r}),[o,i]=z.useState(null),l=z.useRef(null),c=z.useRef(null),d=z.useRef(null),u=z.useRef(null),f=!!o&&!o.modal&&o.open&&s&&!!(r||a);return z.useEffect(()=>{if(!a||!s||o!=null&&o.modal)return;function h(p){a&&ua(p)&&(p.type==="focusin"?V1:Y1)(a)}return a.addEventListener("focusin",h,!0),a.addEventListener("focusout",h,!0),()=>{a.removeEventListener("focusin",h,!0),a.removeEventListener("focusout",h,!0)}},[a,s,o==null?void 0:o.modal]),z.createElement(Wh.Provider,{value:z.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:a,setFocusManagerState:i}),[s,a])},f&&a&&z.createElement(Yo,{"data-type":"outside",ref:l,onFocus:h=>{if(ua(h,a)){var p;(p=d.current)==null||p.focus()}else{const m=Lh()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus()}}}),f&&a&&z.createElement("span",{"aria-owns":a.id,style:vc}),a&&cf.createPortal(e,a),f&&a&&z.createElement(Yo,{"data-type":"outside",ref:c,onFocus:h=>{if(ua(h,a)){var p;(p=u.current)==null||p.focus()}else{const m=Rh()||(o==null?void 0:o.refs.domReference.current);m==null||m.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,h.nativeEvent))}}}))}const zh=()=>z.useContext(Wh),G1=20;let Nr=[];function xc(t){Nr=Nr.filter(n=>n.isConnected);let e=t;if(!(!e||Dr(e)==="body")){if(!k1(e,da())){const n=Lo(e,da())[0];if(!n)return;e=n}Nr.push(e),Nr.length>G1&&(Nr=Nr.slice(-20))}}function Hh(){return Nr.slice().reverse().find(t=>t.isConnected)}const Q1=z.forwardRef(function(e,n){return z.createElement("button",la({},e,{type:"button",ref:n,tabIndex:-1,style:vc}))});function Yh(t){const{context:e,children:n,disabled:r=!1,order:s=["content"],guards:a=!0,initialFocus:o=0,returnFocus:i=!0,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=t,{open:u,refs:f,nodeId:h,onOpenChange:p,events:m,dataRef:b,elements:{domReference:y,floating:x}}=e,k=typeof o=="number"&&o<0,v=rh(y)&&k,w=B1()?a:!0,S=pn(s),N=pn(o),D=pn(i),T=ca(),E=zh(),Y=z.useRef(null),L=z.useRef(null),O=z.useRef(!1),C=z.useRef(!1),P=E!=null,F=z.useCallback(function(j){return j===void 0&&(j=x),j?Lo(j,da()):[]},[x]),U=z.useCallback(j=>{const V=F(j);return S.current.map(R=>y&&R==="reference"?y:x&&R==="floating"?x:V).filter(Boolean).flat()},[y,x,S,F]);z.useEffect(()=>{if(r||!l)return;function j(R){if(R.key==="Tab"){tt(x,fn(kt(x)))&&F().length===0&&!v&&ht(R);const A=U(),I=ar(R);S.current[0]==="reference"&&I===y&&(ht(R),R.shiftKey?Fn(A[A.length-1]):Fn(A[1])),S.current[1]==="floating"&&I===x&&R.shiftKey&&(ht(R),Fn(A[0]))}}const V=kt(x);return V.addEventListener("keydown",j),()=>{V.removeEventListener("keydown",j)}},[r,y,x,l,S,v,F,U]),z.useEffect(()=>{if(r||!d)return;function j(){C.current=!0,setTimeout(()=>{C.current=!1})}function V(R){const A=R.relatedTarget;queueMicrotask(()=>{const I=!(tt(y,A)||tt(x,A)||tt(A,x)||tt(E==null?void 0:E.portalNode,A)||A!=null&&A.hasAttribute(Pr("focus-guard"))||T&&(Tr(T.nodesRef.current,h).find(M=>{var H,J;return tt((H=M.context)==null?void 0:H.elements.floating,A)||tt((J=M.context)==null?void 0:J.elements.domReference,A)})||F1(T.nodesRef.current,h).find(M=>{var H,J;return((H=M.context)==null?void 0:H.elements.floating)===A||((J=M.context)==null?void 0:J.elements.domReference)===A})));A&&I&&!C.current&&A!==Hh()&&(O.current=!0,p(!1,R))})}if(x&&ft(y))return y.addEventListener("focusout",V),y.addEventListener("pointerdown",j),!l&&x.addEventListener("focusout",V),()=>{y.removeEventListener("focusout",V),y.removeEventListener("pointerdown",j),!l&&x.removeEventListener("focusout",V)}},[r,y,x,l,h,T,E,p,d]),z.useEffect(()=>{var j;if(r)return;const V=Array.from((E==null||(j=E.portalNode)==null?void 0:j.querySelectorAll("["+Pr("portal")+"]"))||[]);if(x){const R=[x,...V,Y.current,L.current,S.current.includes("reference")||v?y:null].filter(I=>I!=null),A=l||v?Ih(R,w,!w):Ih(R);return()=>{A()}}},[r,y,x,l,S,E,v,w]),Ie(()=>{if(r||!x)return;const j=kt(x),V=fn(j);queueMicrotask(()=>{const R=U(x),A=N.current,I=(typeof A=="number"?R[A]:A.current)||x,M=tt(x,V);!k&&!M&&u&&Fn(I,{preventScroll:I===x})})},[r,u,x,k,U,N]),Ie(()=>{if(r||!x)return;let j=!1;const V=kt(x),R=fn(V),A=b.current;xc(R);function I(M){let{reason:H,event:J,nested:K}=M;H==="escape-key"&&f.domReference.current&&xc(f.domReference.current),H==="hover"&&J.type==="mouseleave"&&(O.current=!0),H==="outside-press"&&(K?(O.current=!1,j=!0):O.current=!(th(J)||tc(J)))}return m.on("openchange",I),()=>{m.off("openchange",I);const M=fn(V),H=tt(x,M)||T&&Tr(T.nodesRef.current,h).some(q=>{var B;return tt((B=q.context)==null?void 0:B.elements.floating,M)});(H||A.openEvent&&["click","mousedown"].includes(A.openEvent.type))&&f.domReference.current&&xc(f.domReference.current);const K=Hh();D.current&&!O.current&&ft(K)&&(!(K!==M&&M!==V.body)||H)&&Fn(K,{cancelPrevious:!1,preventScroll:j})}},[r,x,D,b,f,m,T,h]),Ie(()=>{if(!(r||!E))return E.setFocusManagerState({modal:l,closeOnFocusOut:d,open:u,onOpenChange:p,refs:f}),()=>{E.setFocusManagerState(null)}},[r,E,l,u,p,f,d]),Ie(()=>{if(r||!x||typeof MutationObserver!="function"||k)return;const j=()=>{const R=x.getAttribute("tabindex");S.current.includes("floating")||fn(kt(x))!==f.domReference.current&&F().length===0?R!=="0"&&x.setAttribute("tabindex","0"):R!=="-1"&&x.setAttribute("tabindex","-1")};j();const V=new MutationObserver(j);return V.observe(x,{childList:!0,subtree:!0,attributes:!0}),()=>{V.disconnect()}},[r,x,f,S,F,k]);function Z(j){return r||!c||!l?null:z.createElement(Q1,{ref:j==="start"?Y:L,onClick:V=>p(!1,V.nativeEvent)},typeof c=="string"?c:"Dismiss")}const ee=!r&&w&&(P||l);return z.createElement(z.Fragment,null,ee&&z.createElement(Yo,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:j=>{if(l){const R=U();Fn(s[0]==="reference"?R[0]:R[R.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(O.current=!1,ua(j,E.portalNode)){const R=Rh()||y;R==null||R.focus()}else{var V;(V=E.beforeOutsideRef.current)==null||V.focus()}}}),!v&&Z("start"),n,Z("end"),ee&&z.createElement(Yo,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:j=>{if(l)Fn(U()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(O.current=!0),ua(j,E.portalNode)){const R=Lh()||y;R==null||R.focus()}else{var V;(V=E.afterOutsideRef.current)==null||V.focus()}}}))}const kc=new Set,Z1=z.forwardRef(function(e,n){let{lockScroll:r=!1,...s}=e;const a=Wo();return Ie(()=>{if(!r)return;kc.add(a);const o=/iP(hone|ad|od)|iOS/.test(ec()),i=document.body.style,c=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",d=window.innerWidth-document.documentElement.clientWidth,u=i.left?parseFloat(i.left):window.pageXOffset,f=i.top?parseFloat(i.top):window.pageYOffset;if(i.overflow="hidden",d&&(i[c]=d+"px"),o){var h,p;const m=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,b=((p=window.visualViewport)==null?void 0:p.offsetTop)||0;Object.assign(i,{position:"fixed",top:-(f-Math.floor(b))+"px",left:-(u-Math.floor(m))+"px",right:"0"})}return()=>{kc.delete(a),kc.size===0&&(Object.assign(i,{overflow:"",[c]:""}),o&&(Object.assign(i,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[a,r]),z.createElement("div",la({ref:n},s,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}}))});function Vh(t){return ft(t.target)&&t.target.tagName==="BUTTON"}function Uh(t){return ac(t)}function Xh(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:a}}=t,{enabled:o=!0,event:i="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=e,u=z.useRef(),f=z.useRef(!1);return z.useMemo(()=>o?{reference:{onPointerDown(h){u.current=h.pointerType},onMouseDown(h){h.button===0&&(Co(u.current,!0)&&c||i!=="click"&&(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="mousedown")?r(!1,h.nativeEvent,"click"):(h.preventDefault(),r(!0,h.nativeEvent,"click"))))},onClick(h){if(i==="mousedown"&&u.current){u.current=void 0;return}Co(u.current,!0)&&c||(n&&l&&(!s.current.openEvent||s.current.openEvent.type==="click")?r(!1,h.nativeEvent,"click"):r(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||Vh(h))&&(h.key===" "&&!Uh(a)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&r(!(n&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||Vh(h)||Uh(a)||h.key===" "&&f.current&&(f.current=!1,r(!(n&&l),h.nativeEvent,"click"))}}}:{},[o,s,i,c,d,a,l,n,r])}const J1={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},q1={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Kh=t=>{var e,n;return{escapeKey:typeof t=="boolean"?t:(e=t==null?void 0:t.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(n=t==null?void 0:t.outsidePress)!=null?n:!0}};function Gh(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,nodeId:s,elements:{reference:a,domReference:o,floating:i},dataRef:l}=t,{enabled:c=!0,escapeKey:d=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:b,capture:y}=e,x=ca(),k=mn(typeof u=="function"?u:()=>!1),v=typeof u=="function"?k:u,w=z.useRef(!1),S=z.useRef(!1),{escapeKey:N,outsidePress:D}=Kh(b),{escapeKey:T,outsidePress:E}=Kh(y),Y=mn(P=>{if(!n||!c||!d||P.key!=="Escape")return;const F=x?Tr(x.nodesRef.current,s):[];if(!N&&(P.stopPropagation(),F.length>0)){let U=!0;if(F.forEach(Z=>{var ee;if((ee=Z.context)!=null&&ee.open&&!Z.context.dataRef.current.__escapeKeyBubbles){U=!1;return}}),!U)return}r(!1,h2(P)?P.nativeEvent:P,"escape-key")}),L=mn(P=>{var F;const U=()=>{var Z;Y(P),(Z=ar(P))==null||Z.removeEventListener("keydown",U)};(F=ar(P))==null||F.addEventListener("keydown",U)}),O=mn(P=>{const F=w.current;w.current=!1;const U=S.current;if(S.current=!1,f==="click"&&U||F||typeof v=="function"&&!v(P))return;const Z=ar(P),ee="["+Pr("inert")+"]",j=kt(i).querySelectorAll(ee);let V=Pe(Z)?Z:null;for(;V&&!rr(V);){const I=Rn(V);if(rr(I)||!Pe(I))break;V=I}if(j.length&&Pe(Z)&&!g2(Z)&&!tt(Z,i)&&Array.from(j).every(I=>!tt(V,I)))return;if(ft(Z)&&i){const I=Z.clientWidth>0&&Z.scrollWidth>Z.clientWidth,M=Z.clientHeight>0&&Z.scrollHeight>Z.clientHeight;let H=M&&P.offsetX>Z.clientWidth;if(M&&Qt(Z).direction==="rtl"&&(H=P.offsetX<=Z.offsetWidth-Z.clientWidth),H||I&&P.offsetY>Z.clientHeight)return}const R=x&&Tr(x.nodesRef.current,s).some(I=>{var M;return sc(P,(M=I.context)==null?void 0:M.elements.floating)});if(sc(P,i)||sc(P,o)||R)return;const A=x?Tr(x.nodesRef.current,s):[];if(A.length>0){let I=!0;if(A.forEach(M=>{var H;if((H=M.context)!=null&&H.open&&!M.context.dataRef.current.__outsidePressBubbles){I=!1;return}}),!I)return}r(!1,P,"outside-press")}),C=mn(P=>{var F;const U=()=>{var Z;O(P),(Z=ar(P))==null||Z.removeEventListener(f,U)};(F=ar(P))==null||F.addEventListener(f,U)});return z.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=N,l.current.__outsidePressBubbles=D;function P(Z){r(!1,Z,"ancestor-scroll")}const F=kt(i);d&&F.addEventListener("keydown",T?L:Y,T),v&&F.addEventListener(f,E?C:O,E);let U=[];return m&&(Pe(o)&&(U=sr(o)),Pe(i)&&(U=U.concat(sr(i))),!Pe(a)&&a&&a.contextElement&&(U=U.concat(sr(a.contextElement)))),U=U.filter(Z=>{var ee;return Z!==((ee=F.defaultView)==null?void 0:ee.visualViewport)}),U.forEach(Z=>{Z.addEventListener("scroll",P,{passive:!0})}),()=>{d&&F.removeEventListener("keydown",T?L:Y,T),v&&F.removeEventListener(f,E?C:O,E),U.forEach(Z=>{Z.removeEventListener("scroll",P)})}},[l,i,o,a,d,v,f,n,r,m,c,N,D,Y,T,L,O,E,C]),z.useEffect(()=>{w.current=!1},[v,f]),z.useMemo(()=>c?{reference:{onKeyDown:Y,[J1[p]]:P=>{h&&r(!1,P.nativeEvent,"reference-press")}},floating:{onKeyDown:Y,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[q1[f]]:()=>{w.current=!0}}}:{},[c,h,f,p,r,Y])}let _c;process.env.NODE_ENV!=="production"&&(_c=new Set);function Qh(t){var e;t===void 0&&(t={});const{open:n=!1,onOpenChange:r,nodeId:s}=t;if(process.env.NODE_ENV!=="production"){var a;const D="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((a=t.elements)!=null&&a.reference&&!Pe(t.elements.reference)){var o;if(!((o=_c)!=null&&o.has(D))){var i;(i=_c)==null||i.add(D),console.error(D)}}}const[l,c]=z.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=J2(t),f=ca(),h=Bo()!=null,p=mn((D,T,E)=>{D&&(b.current.openEvent=T),y.emit("openchange",{open:D,event:T,reason:E,nested:h}),r==null||r(D,T,E)}),m=z.useRef(null),b=z.useRef({}),y=z.useState(()=>I1())[0],x=Wo(),k=z.useCallback(D=>{const T=Pe(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),contextElement:D}:D;u.refs.setReference(T)},[u.refs]),v=z.useCallback(D=>{(Pe(D)||D===null)&&(m.current=D,c(D)),(Pe(u.refs.reference.current)||u.refs.reference.current===null||D!==null&&!Pe(D))&&u.refs.setReference(D)},[u.refs]),w=z.useMemo(()=>({...u.refs,setReference:v,setPositionReference:k,domReference:m}),[u.refs,v,k]),S=z.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),N=z.useMemo(()=>({...u,refs:w,elements:S,dataRef:b,nodeId:s,floatingId:x,events:y,open:n,onOpenChange:p}),[u,s,x,y,n,p,w,S]);return Ie(()=>{const D=f==null?void 0:f.nodesRef.current.find(T=>T.id===s);D&&(D.context=N)}),z.useMemo(()=>({...u,context:N,refs:w,elements:S}),[u,w,S,N])}function $1(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:s,refs:a,elements:{domReference:o}}=t,{enabled:i=!0,visibleOnly:l=!0}=e,c=z.useRef(!1),d=z.useRef(),u=z.useRef(!0);return z.useEffect(()=>{if(!i)return;const f=Dt(o);function h(){!n&&ft(o)&&o===fn(kt(o))&&(c.current=!0)}function p(){u.current=!0}return f.addEventListener("blur",h),f.addEventListener("keydown",p,!0),()=>{f.removeEventListener("blur",h),f.removeEventListener("keydown",p,!0)}},[o,n,i]),z.useEffect(()=>{if(!i)return;function f(h){let{reason:p}=h;(p==="reference-press"||p==="escape-key")&&(c.current=!0)}return s.on("openchange",f),()=>{s.off("openchange",f)}},[s,i]),z.useEffect(()=>()=>{clearTimeout(d.current)},[]),z.useMemo(()=>i?{reference:{onPointerDown(f){tc(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=ar(f.nativeEvent);if(l&&Pe(h))try{if(nc()&&nh())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!ac(h))return}r(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,p=Pe(h)&&h.hasAttribute(Pr("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const m=fn(o?o.ownerDocument:document);!h&&m===o||tt(a.floating.current,m)||tt(o,m)||p||r(!1,f.nativeEvent,"focus")})}}}:{},[i,l,o,a,r])}const Zh="active",Jh="selected";function Sc(t,e,n){const r=new Map,s=n==="item";let a=t;if(s&&t){const{[Zh]:o,[Jh]:i,...l}=t;a=l}return{...n==="floating"&&{tabIndex:-1},...a,...e.map(o=>{const i=o?o[n]:null;return typeof i=="function"?t?i(t):null:i}).concat(t).reduce((o,i)=>(i&&Object.entries(i).forEach(l=>{let[c,d]=l;if(!(s&&[Zh,Jh].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof d=="function"){var u;(u=r.get(c))==null||u.push(d),o[c]=function(){for(var f,h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return(f=r.get(c))==null?void 0:f.map(b=>b(...p)).find(b=>b!==void 0)}}}else o[c]=d}),o),{})}}function qh(t){t===void 0&&(t=[]);const e=t,n=z.useCallback(a=>Sc(a,t,"reference"),e),r=z.useCallback(a=>Sc(a,t,"floating"),e),s=z.useCallback(a=>Sc(a,t,"item"),t.map(a=>a==null?void 0:a.item));return z.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:s}),[n,r,s])}let $h=!1;function Vo(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function eg(t,e){return Vo(e,t===mc||t===oa,t===ps||t===bs)}function Oc(t,e,n){return Vo(e,t===oa,n?t===ps:t===bs)||t==="Enter"||t===" "||t===""}function e_(t,e,n){return Vo(e,n?t===ps:t===bs,t===oa)}function tg(t,e,n){return Vo(e,n?t===bs:t===ps,t===mc)}function t_(t,e){const{open:n,onOpenChange:r,refs:s,elements:{domReference:a,floating:o}}=t,{listRef:i,activeIndex:l,onNavigate:c=()=>{},enabled:d=!0,selectedIndex:u=null,allowEscape:f=!1,loop:h=!1,nested:p=!1,rtl:m=!1,virtual:b=!1,focusItemOnOpen:y="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:k=!0,disabledIndices:v=void 0,orientation:w="vertical",cols:S=1,scrollItemIntoView:N=!0,virtualItemRef:D,itemSizes:T,dense:E=!1}=e;process.env.NODE_ENV!=="production"&&(f&&(h||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),w==="vertical"&&S>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const Y=Bo(),L=ca(),O=mn(c),C=z.useRef(y),P=z.useRef(u??-1),F=z.useRef(null),U=z.useRef(!0),Z=z.useRef(O),ee=z.useRef(!!o),j=z.useRef(!1),V=z.useRef(!1),R=pn(v),A=pn(n),I=pn(N),[M,H]=z.useState(),[J,K]=z.useState(),q=mn(function(W,ne,se){se===void 0&&(se=!1);const oe=W.current[ne.current];oe&&(b?(H(oe.id),L==null||L.events.emit("virtualfocus",oe),D&&(D.current=oe)):Fn(oe,{preventScroll:!0,sync:nh()&&nc()?$h||j.current:!1}),requestAnimationFrame(()=>{const ge=I.current;ge&&oe&&(se||!U.current)&&(oe.scrollIntoView==null||oe.scrollIntoView(typeof ge=="boolean"?{block:"nearest",inline:"nearest"}:ge))}))});Ie(()=>{document.createElement("div").focus({get preventScroll(){return $h=!0,!1}})},[]),Ie(()=>{d&&(n&&o?C.current&&u!=null&&(V.current=!0,P.current=u,O(u)):ee.current&&(P.current=-1,Z.current(null)))},[d,n,o,u,O]),Ie(()=>{if(d&&n&&o)if(l==null){if(j.current=!1,u!=null)return;if(ee.current&&(P.current=-1,q(i,P)),!ee.current&&C.current&&(F.current!=null||C.current===!0&&F.current==null)){let W=0;const ne=()=>{i.current[0]==null?(W<2&&(W?requestAnimationFrame:queueMicrotask)(ne),W++):(P.current=F.current==null||Oc(F.current,w,m)||p?pc(i,R.current):Mh(i,R.current),F.current=null,O(P.current))};ne()}}else ia(i,l)||(P.current=l,q(i,P,V.current),V.current=!1)},[d,n,o,l,u,p,i,w,m,O,q,R]),Ie(()=>{var W;if(!d||o||!L||b||!ee.current)return;const ne=L.nodesRef.current,se=(W=ne.find(ce=>ce.id===Y))==null||(W=W.context)==null?void 0:W.elements.floating,oe=fn(kt(o)),ge=ne.some(ce=>ce.context&&tt(ce.context.elements.floating,oe));se&&!ge&&U.current&&se.focus({preventScroll:!0})},[d,o,L,Y,b]),Ie(()=>{if(!d||!L||!b||Y)return;function W(ne){K(ne.id),D&&(D.current=ne)}return L.events.on("virtualfocus",W),()=>{L.events.off("virtualfocus",W)}},[d,L,b,Y,D]),Ie(()=>{Z.current=O,ee.current=!!o}),Ie(()=>{n||(F.current=null)},[n]);const B=l!=null,te=z.useMemo(()=>{function W(se){if(!n)return;const oe=i.current.indexOf(se);oe!==-1&&O(oe)}return{onFocus(se){let{currentTarget:oe}=se;W(oe)},onClick:se=>{let{currentTarget:oe}=se;return oe.focus({preventScroll:!0})},...x&&{onMouseMove(se){let{currentTarget:oe}=se;W(oe)},onPointerLeave(se){let{pointerType:oe}=se;!U.current||oe==="touch"||(P.current=-1,q(i,P),O(null),b||Fn(s.floating.current,{preventScroll:!0}))}}}},[n,s,q,x,i,O,b]);return z.useMemo(()=>{if(!d)return{};const W=R.current;function ne(ae){if(U.current=!1,j.current=!0,!A.current&&ae.currentTarget===s.floating.current)return;if(p&&tg(ae.key,w,m)){ht(ae),r(!1,ae.nativeEvent,"list-navigation"),ft(a)&&!b&&a.focus();return}const Ve=P.current,pe=pc(i,W),He=Mh(i,W);if(ae.key==="Home"&&(ht(ae),P.current=pe,O(P.current)),ae.key==="End"&&(ht(ae),P.current=He,O(P.current)),S>1){const Ke=T||Array.from({length:i.current.length},()=>({width:1,height:1})),et=O1(Ke,S,E),Ut=et.findIndex(Kt=>Kt!=null&&!(W!=null&&W.includes(Kt))),Xt=et.reduce((Kt,kr,Gt)=>kr!=null&&!(W!=null&&W.includes(kr))?Gt:Kt,-1);if(P.current=et[S1({current:et.map(Kt=>Kt!=null?i.current[Kt]:null)},{event:ae,orientation:w,loop:h,cols:S,disabledIndices:D1([...W||[],void 0],et),minIndex:Ut,maxIndex:Xt,prevIndex:C1(P.current,Ke,et,S,ae.key===oa?"bl":ae.key===bs?"tr":"tl"),stopEvent:!0})],O(P.current),w==="both")return}if(eg(ae.key,w)){if(ht(ae),n&&!b&&fn(ae.currentTarget.ownerDocument)===ae.currentTarget){P.current=Oc(ae.key,w,m)?pe:He,O(P.current);return}Oc(ae.key,w,m)?h?P.current=Ve>=He?f&&Ve!==i.current.length?-1:pe:bt(i,{startingIndex:Ve,disabledIndices:W}):P.current=Math.min(He,bt(i,{startingIndex:Ve,disabledIndices:W})):h?P.current=Ve<=pe?f&&Ve!==-1?i.current.length:He:bt(i,{startingIndex:Ve,decrement:!0,disabledIndices:W}):P.current=Math.max(pe,bt(i,{startingIndex:Ve,decrement:!0,disabledIndices:W})),ia(i,P.current)?O(null):O(P.current)}}function se(ae){y==="auto"&&th(ae.nativeEvent)&&(C.current=!0)}function oe(ae){C.current=y,y==="auto"&&tc(ae.nativeEvent)&&(C.current=!0)}const ge=b&&n&&B&&{"aria-activedescendant":J||M},ce=i.current.find(ae=>(ae==null?void 0:ae.id)===M);return{reference:{...ge,onKeyDown(ae){U.current=!1;const Ve=ae.key.indexOf("Arrow")===0,pe=e_(ae.key,w,m),He=tg(ae.key,w,m),Ke=eg(ae.key,w),et=(p?pe:Ke)||ae.key==="Enter"||ae.key.trim()==="";if(b&&n){const kr=L==null?void 0:L.nodesRef.current.find(Hl=>Hl.parentId==null),Gt=L&&kr?W1(L.nodesRef.current,kr.id):null;if(Ve&&Gt&&D){const Hl=new KeyboardEvent("keydown",{key:ae.key,bubbles:!0});if(pe||He){var Ut,Xt;const OL=((Ut=Gt.context)==null?void 0:Ut.elements.domReference)===ae.currentTarget,ex=He&&!OL?(Xt=Gt.context)==null?void 0:Xt.elements.domReference:pe?ce:null;ex&&(ht(ae),ex.dispatchEvent(Hl),K(void 0))}if(Ke&&Gt.context&&Gt.context.open&&Gt.parentId&&ae.currentTarget!==Gt.context.elements.domReference){var Kt;ht(ae),(Kt=Gt.context.elements.domReference)==null||Kt.dispatchEvent(Hl);return}}return ne(ae)}if(!(!n&&!k&&Ve)){if(et&&(F.current=p&&Ke?null:ae.key),p){pe&&(ht(ae),n?(P.current=pc(i,W),O(P.current)):r(!0,ae.nativeEvent,"list-navigation"));return}Ke&&(u!=null&&(P.current=u),ht(ae),!n&&k?r(!0,ae.nativeEvent,"list-navigation"):ne(ae),n&&O(P.current))}},onFocus(){n&&O(null)},onPointerDown:oe,onMouseDown:se,onClick:se},floating:{"aria-orientation":w==="both"?void 0:w,...!rh(a)&&ge,onKeyDown:ne,onPointerMove(){U.current=!0}},item:te}},[a,s,M,J,R,A,i,d,w,m,b,n,B,p,u,k,f,S,h,y,O,r,te,L,D,T,E])}const n_=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function ng(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:s}=t,{enabled:a=!0,role:o="dialog"}=e,i=(n=n_.get(o))!=null?n:o,l=Wo(),d=Bo()!=null;return z.useMemo(()=>{if(!a)return{};const u={id:s,...i&&{role:i}};return i==="tooltip"||o==="label"?{reference:{["aria-"+(o==="label"?"labelledby":"describedby")]:r?s:void 0},floating:u}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?s:void 0,...i==="listbox"&&{role:"combobox"},...i==="menu"&&{id:l},...i==="menu"&&d&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},floating:{...u,...i==="menu"&&{"aria-labelledby":l}},item(f){let{active:h,selected:p}=f;const m={role:"option",...h&&{id:s+"-option"}};switch(o){case"select":return{...m,"aria-selected":h&&p};case"combobox":return{...m,...h&&{"aria-selected":!0}}}return{}}}},[a,o,i,r,s,l,d])}function r_(t,e){var n;const{open:r,dataRef:s}=t,{listRef:a,activeIndex:o,onMatch:i,onTypingChange:l,enabled:c=!0,findMatch:d=null,resetMs:u=750,ignoreKeys:f=[],selectedIndex:h=null}=e,p=z.useRef(),m=z.useRef(""),b=z.useRef((n=h??o)!=null?n:-1),y=z.useRef(null),x=mn(i),k=mn(l),v=pn(d),w=pn(f);return Ie(()=>{r&&(clearTimeout(p.current),y.current=null,m.current="")},[r]),Ie(()=>{if(r&&m.current===""){var S;b.current=(S=h??o)!=null?S:-1}},[r,h,o]),z.useMemo(()=>{if(!c)return{};function S(T){T?s.current.typing||(s.current.typing=T,k(T)):s.current.typing&&(s.current.typing=T,k(T))}function N(T,E,Y){const L=v.current?v.current(E,Y):E.find(O=>(O==null?void 0:O.toLocaleLowerCase().indexOf(Y.toLocaleLowerCase()))===0);return L?T.indexOf(L):-1}function D(T){const E=a.current;if(m.current.length>0&&m.current[0]!==" "&&(N(E,E,m.current)===-1?S(!1):T.key===" "&&ht(T)),E==null||w.current.includes(T.key)||T.key.length!==1||T.ctrlKey||T.metaKey||T.altKey)return;r&&T.key!==" "&&(ht(T),S(!0)),E.every(C=>{var P,F;return C?((P=C[0])==null?void 0:P.toLocaleLowerCase())!==((F=C[1])==null?void 0:F.toLocaleLowerCase()):!0})&&m.current===T.key&&(m.current="",b.current=y.current),m.current+=T.key,clearTimeout(p.current),p.current=setTimeout(()=>{m.current="",b.current=y.current,S(!1)},u);const L=b.current,O=N(E,[...E.slice((L||0)+1),...E.slice(0,(L||0)+1)],m.current);O!==-1?(x(O),y.current=O):T.key!==" "&&(m.current="",S(!1))}return{reference:{onKeyDown:D},floating:{onKeyDown:D,onKeyUp(T){T.key===" "&&S(!1)}}}},[c,r,s,a,u,w,v,x,k])}function rg(t,e){const[n,r]=t;let s=!1;const a=e.length;for(let o=0,i=a-1;o<a;i=o++){const[l,c]=e[o]||[0,0],[d,u]=e[i]||[0,0];c>=r!=u>=r&&n<=(d-l)*(r-c)/(u-c)+l&&(s=!s)}return s}function s_(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function a_(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=t;let s,a=!1,o=null,i=null,l=performance.now();function c(u,f){const h=performance.now(),p=h-l;if(o===null||i===null||p===0)return o=u,i=f,l=h,null;const m=u-o,b=f-i,x=Math.sqrt(m*m+b*b)/p;return o=u,i=f,l=h,x}const d=u=>{let{x:f,y:h,placement:p,elements:m,onClose:b,nodeId:y,tree:x}=u;return function(v){function w(){clearTimeout(s),b()}if(clearTimeout(s),!m.domReference||!m.floating||p==null||f==null||h==null)return;const{clientX:S,clientY:N}=v,D=[S,N],T=ar(v),E=v.type==="mouseleave",Y=tt(m.floating,T),L=tt(m.domReference,T),O=m.domReference.getBoundingClientRect(),C=m.floating.getBoundingClientRect(),P=p.split("-")[0],F=f>C.right-C.width/2,U=h>C.bottom-C.height/2,Z=s_(D,O),ee=C.width>O.width,j=C.height>O.height,V=(ee?O:C).left,R=(ee?O:C).right,A=(j?O:C).top,I=(j?O:C).bottom;if(Y&&(a=!0,!E))return;if(L&&(a=!1),L&&!E){a=!0;return}if(E&&Pe(v.relatedTarget)&&tt(m.floating,v.relatedTarget)||x&&Tr(x.nodesRef.current,y).some(J=>{let{context:K}=J;return K==null?void 0:K.open}))return;if(P==="top"&&h>=O.bottom-1||P==="bottom"&&h<=O.top+1||P==="left"&&f>=O.right-1||P==="right"&&f<=O.left+1)return w();let M=[];switch(P){case"top":M=[[V,O.top+1],[V,C.bottom-1],[R,C.bottom-1],[R,O.top+1]];break;case"bottom":M=[[V,C.top+1],[V,O.bottom-1],[R,O.bottom-1],[R,C.top+1]];break;case"left":M=[[C.right-1,I],[C.right-1,A],[O.left+1,A],[O.left+1,I]];break;case"right":M=[[O.right-1,I],[O.right-1,A],[C.left+1,A],[C.left+1,I]];break}function H(J){let[K,q]=J;switch(P){case"top":{const B=[ee?K+e/2:F?K+e*4:K-e*4,q+e+1],te=[ee?K-e/2:F?K+e*4:K-e*4,q+e+1],W=[[C.left,F||ee?C.bottom-e:C.top],[C.right,F?ee?C.bottom-e:C.top:C.bottom-e]];return[B,te,...W]}case"bottom":{const B=[ee?K+e/2:F?K+e*4:K-e*4,q-e],te=[ee?K-e/2:F?K+e*4:K-e*4,q-e],W=[[C.left,F||ee?C.top+e:C.bottom],[C.right,F?ee?C.top+e:C.bottom:C.top+e]];return[B,te,...W]}case"left":{const B=[K+e+1,j?q+e/2:U?q+e*4:q-e*4],te=[K+e+1,j?q-e/2:U?q+e*4:q-e*4];return[...[[U||j?C.right-e:C.left,C.top],[U?j?C.right-e:C.left:C.right-e,C.bottom]],B,te]}case"right":{const B=[K-e,j?q+e/2:U?q+e*4:q-e*4],te=[K-e,j?q-e/2:U?q+e*4:q-e*4],W=[[U||j?C.left+e:C.right,C.top],[U?j?C.left+e:C.right:C.left+e,C.bottom]];return[B,te,...W]}}}if(!rg([S,N],M)){if(a&&!Z)return w();if(!E&&r){const J=c(v.clientX,v.clientY);if(J!==null&&J<.1)return w()}rg([S,N],H([f,h]))?!a&&r&&(s=window.setTimeout(w,40)):w()}}};return d.__options={blockPointerEvents:n},d}const o_=({arrowRef:t,placement:e})=>{const n=[];return n.push($2(8)),n.push(e==="auto"?n1():t1()),n.push(e1({padding:8})),t!=null&&t.current&&n.push(r1({element:t.current})),n},i_=({placement:t})=>t==="auto"?void 0:t,l_=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],sg=({open:t,arrowRef:e,placement:n="top",setOpen:r})=>Qh({placement:i_({placement:n}),open:t,onOpenChange:r,whileElementsMounted:yh,middleware:o_({placement:n,arrowRef:e})}),ag=({context:t,trigger:e,role:n="tooltip",interactions:r=[]})=>qh([Xh(t,{enabled:e==="click"}),L1(t,{enabled:e==="hover",handleClose:a_()}),Gh(t),ng(t,{role:n}),...r]),og=_.createContext(void 0);function Cc(){const t=_.useContext(og);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const Dc=({className:t,theme:e={},...n})=>{const{theme:r}=Cc(),s=e.divider??r.floating.divider;return g.jsx("div",{className:G(s,t),...n})},ig=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Cc(),a=n.header??s.floating.header;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:G(a,e),...r,children:t}),g.jsx(Dc,{})]})},Mc=_.forwardRef(({children:t,className:e,icon:n,onClick:r,theme:s={},...a},o)=>{const{ref:i,index:l}=T1({label:typeof t=="string"?t:void 0}),c=Dh([o,i]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:p}=Cc(),m=u===l,b=re(d.floating.item,s),y=a;return g.jsx("li",{role:"menuitem",className:b.container,children:g.jsxs(Kl,{ref:c,className:G(b.base,e),...y,...h({onClick:()=>{r==null||r(),f&&p(null)}}),tabIndex:m?0:-1,children:[n&&g.jsx(n,{className:b.icon}),t]})})});Mc.displayName="DropdownItem";const c_={top:_x,right:bf,bottom:pf,left:kx},d_=({refs:t,children:e,inline:n,theme:r,disabled:s,setButtonWidth:a,getReferenceProps:o,renderTrigger:i,...l})=>{const c=t.reference,d=o();if(_.useEffect(()=>{c.current&&(a==null||a(c.current.clientWidth))},[c,a]),i){const u=i(r);return _.cloneElement(u,{ref:t.setReference,disabled:s,...d,...u.props})}return n?g.jsx("button",{type:"button",ref:t.setReference,className:r==null?void 0:r.inlineWrapper,disabled:s,...d,children:e}):g.jsx(Bf,{...l,disabled:s,type:"button",ref:t.setReference,...d,children:e})},lg=({children:t,className:e,dismissOnClick:n=!0,theme:r={},renderTrigger:s,...a})=>{const[o,i]=_.useState(!1),[l,c]=_.useState(null),[d,u]=_.useState(null),[f,h]=_.useState(void 0),p=_.useRef([]),m=_.useRef([]),b=re(he().dropdown,r),y=a,x=a["data-testid"]||"flowbite-dropdown-target",{placement:k=a.inline?"bottom-start":"bottom",trigger:v="click",label:w,inline:S,arrowIcon:N=!0,...D}=y,T=_.useCallback(j=>{u(j),i(!1)},[]),E=_.useCallback(j=>{o?c(j):T(j)},[o,T]),{context:Y,floatingStyles:L,refs:O}=sg({open:o,setOpen:i,placement:k}),C=t_(Y,{listRef:p,activeIndex:l,selectedIndex:d,onNavigate:c}),P=r_(Y,{listRef:m,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:F,getFloatingProps:U,getItemProps:Z}=ag({context:Y,role:"menu",trigger:v,interactions:[C,P]}),ee=_.useMemo(()=>{const[j]=k.split("-");return c_[j]??pf},[k]);return g.jsxs(og.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:n,getItemProps:Z,handleSelect:T},children:[g.jsxs(d_,{...D,refs:O,inline:S,theme:b,"data-testid":x,className:G(b.floating.target,D.className),setButtonWidth:h,getReferenceProps:F,renderTrigger:s,children:[w,N&&g.jsx(ee,{className:b.arrowIcon})]}),o&&g.jsx(Yh,{context:Y,modal:!1,children:g.jsx("div",{ref:O.setFloating,style:{...L,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":o,...U({className:G(b.floating.base,b.floating.animation,"duration-100",!o&&b.floating.hidden,b.floating.style.auto,e)}),children:g.jsx(P1,{elementsRef:p,labelsRef:m,children:g.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};lg.displayName="Dropdown",ig.displayName="Dropdown.Header",Dc.displayName="Dropdown.Divider";const u_=Object.assign(lg,{Item:Mc,Header:ig,Divider:Dc}),cg=_.forwardRef(({className:t,color:e="gray",helperText:n,sizing:r="md",theme:s={},...a},o)=>{const i=re(he().fileInput,s);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:G(i.root.base,t),children:g.jsx("div",{className:i.field.base,children:g.jsx("input",{className:G(i.field.input.base,i.field.input.colors[e],i.field.input.sizes[r]),...a,type:"file",ref:o})})}),n&&g.jsx(na,{color:e,children:n})]})});cg.displayName="FileInput";const f_=_.forwardRef(({label:t,helperText:e,color:n="default",sizing:r="md",variant:s,disabled:a=!1,theme:o={},className:i,...l},c)=>{const d=_.useId(),u=re(he().floatingLabel,o);return g.jsxs("div",{children:[g.jsxs("div",{className:G("relative",s==="standard"?"z-0":""),children:[g.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:G(u.input[n][s][r],i),placeholder:" ","data-testid":"floating-label",disabled:a,...l,ref:c}),g.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:G(u.label[n][s][r],i),children:t})]}),g.jsx("p",{id:"outlined_helper_text"+d,className:G(u.helperText[n],i),children:e})]})});f_.displayName="FloatingLabel";const dg=({alt:t,className:e,children:n,href:r,name:s,src:a,theme:o={},...i})=>{const l=re(he().footer.brand,o);return g.jsx("div",{children:r?g.jsxs("a",{"data-testid":"flowbite-footer-brand",href:r,className:G(l.base,e),...i,children:[g.jsx("img",{alt:t,src:a,className:l.img}),g.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:s}),n]}):g.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:a,className:G(l.img,e),...i})})},ug=({by:t,className:e,href:n,theme:r={},year:s,...a})=>{const o=re(he().footer.copyright,r);return g.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:G(o.base,e),...a,children:["© ",s,n?g.jsx("a",{href:n,className:o.href,children:t}):g.jsx("span",{"data-testid":"flowbite-footer-copyright-span",className:o.span,children:t})]})},fg=({className:t,theme:e={},...n})=>{const r=re(he().footer.divider,e);return g.jsx("hr",{"data-testid":"footer-divider",className:G(r.base,t),...n})},hg=({ariaLabel:t,className:e,href:n,icon:r,theme:s={},...a})=>{const o=re(he().footer.icon,s);return g.jsx("div",{children:n?g.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:n,className:G(o.base,e),...a,children:g.jsx(r,{className:o.size})}):g.jsx(r,{"data-testid":"flowbite-footer-icon",className:o.size,...a})})},gg=({as:t="a",children:e,className:n,href:r,theme:s={},...a})=>{const o=re(he().footer.groupLink.link,s);return g.jsx("li",{className:G(o.base,n),children:g.jsx(t,{href:r,className:o.href,...a,children:e})})},mg=({children:t,className:e,col:n=!1,theme:r={},...s})=>{const a=re(he().footer.groupLink,r);return g.jsx("ul",{"data-testid":"footer-groupLink",className:G(a.base,n&&a.col,e),...s,children:t})},pg=({as:t="h2",className:e,theme:n={},title:r,...s})=>{const a=re(he().footer.title,n);return g.jsx(t,{"data-testid":"flowbite-footer-title",className:G(a.base,e),...s,children:r})},bg=({bgDark:t=!1,children:e,className:n,container:r=!1,theme:s={},...a})=>{const o=re(he().footer,s);return g.jsx("footer",{"data-testid":"flowbite-footer",className:G(o.root.base,t&&o.root.bgDark,r&&o.root.container,n),...a,children:e})};bg.displayName="Footer",ug.displayName="Footer.Copyright",gg.displayName="Footer.Link",dg.displayName="Footer.Brand",mg.displayName="Footer.LinkGroup",hg.displayName="Footer.Icon",pg.displayName="Footer.Title",fg.displayName="Footer.Divider",Object.assign(bg,{Copyright:ug,Link:gg,LinkGroup:mg,Brand:dg,Icon:hg,Title:pg,Divider:fg});const Ec=({children:t,className:e,color:n="default",disabled:r=!1,theme:s={},value:a,...o})=>{const i=re(he().label,s);return g.jsx("label",{className:G(i.root.base,i.root.colors[n],r&&i.root.disabled,e),"data-testid":"flowbite-label",...o,children:a??t??""})};Ec.displayName="Label";const yg=({children:t,className:e,icon:n,theme:r={},...s})=>{const a=re(he().list.item,r);return g.jsxs("li",{className:G(a.withIcon[n?"on":"off"],e),...s,children:[n&&g.jsx(n,{className:G(a.icon)}),t]})},wg=({children:t,className:e,unstyled:n,nested:r,ordered:s,horizontal:a,theme:o={},...i})=>{const l=re(he().list,o),c=s?"ol":"ul";return g.jsx(c,{className:G(l.root.base,l.root.ordered[s?"on":"off"],n&&l.root.unstyled,r&&l.root.nested,a&&l.root.horizontal,e),...i,children:t})};wg.displayName="List",yg.displayName="List.Item",Object.assign(wg,{Item:yg});const vg=({active:t,children:e,className:n,href:r,icon:s,onClick:a,theme:o={},disabled:i,...l})=>{const c=re(he().listGroup.item,o),d=typeof r<"u",u=d?"a":"button";return g.jsx("li",{className:G(c.base,n),children:g.jsxs(u,{href:r,onClick:a,type:d?void 0:"button",disabled:i,className:G(c.link.active[t?"on":"off"],c.link.disabled[i?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[s&&g.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},xg=({children:t,className:e,theme:n={},...r})=>{const s=re(he().listGroup,n);return g.jsx("ul",{className:G(s.root.base,e),...r,children:t})};xg.displayName="ListGroup",vg.displayName="ListGroup.Item",Object.assign(xg,{Item:vg});const kg=_.createContext(void 0);function Pc(){const t=_.useContext(kg);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const _g=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Pc(),o=re(s.body,n);return g.jsx("div",{className:G(o.base,a&&[o.popup],e),...r,children:t})},Sg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,popup:a}=Pc(),o=re(s.footer,n);return g.jsx("div",{className:G(o.base,!a&&o.popup,e),...r,children:t})},Og=({as:t="h3",children:e,className:n,theme:r={},id:s,...a})=>{const o=_.useId(),i=s||o,{theme:l,popup:c,onClose:d,setHeaderId:u}=Pc(),f=re(l.header,r);return _.useLayoutEffect(()=>(u(i),()=>u(void 0)),[i,u]),g.jsxs("div",{className:G(f.base,c&&f.popup,n),...a,children:[g.jsx(t,{id:i,className:f.title,children:e}),g.jsx("button",{"aria-label":"Close",className:f.close.base,type:"button",onClick:d,children:g.jsx(Sx,{"aria-hidden":!0,className:f.close.icon})})]})},Cg=_.forwardRef(({children:t,className:e,dismissible:n=!1,onClose:r,popup:s,position:a="center",root:o,show:i,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,p]=_.useState(void 0),m=re(he().modal,c),{context:b}=Qh({open:i,onOpenChange:()=>r&&r()}),y=Dh([b.refs.setFloating,f]),x=Xh(b),k=Gh(b,{outsidePressEvent:"mousedown",enabled:n}),v=ng(b),{getFloatingProps:w}=qh([x,k,v]);return i?g.jsx(kg.Provider,{value:{theme:m,popup:s,onClose:r,setHeaderId:p},children:g.jsx(K1,{root:o,children:g.jsx(Z1,{lockScroll:!0,"data-testid":"modal-overlay",className:G(m.root.base,m.root.positions[a],i?m.root.show.on:m.root.show.off,e),...u,children:g.jsx(Yh,{context:b,initialFocus:d,children:g.jsx("div",{ref:y,...w(u),"aria-labelledby":h,className:G(m.content.base,m.root.sizes[l]),children:g.jsx("div",{className:m.content.inner,children:t})})})})})}):null});Cg.displayName="Modal",Og.displayName="Modal.Header",_g.displayName="Modal.Body",Sg.displayName="Modal.Footer",Object.assign(Cg,{Header:Og,Body:_g,Footer:Sg});const Dg=_.createContext(void 0);function Uo(){const t=_.useContext(Dg);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const Mg=({as:t="a",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Uo(),o=re(a.brand,r);return g.jsx(t,{className:G(o.base,n),...s,children:e})},Eg=({children:t,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a}=Uo(),o=re(s.collapse,n);return g.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:G(o.base,o.hidden[a?"off":"on"],e),...r,children:g.jsx("ul",{className:o.list,children:t})})},Pg=({active:t,as:e="a",disabled:n,children:r,className:s,theme:a={},onClick:o,...i})=>{const{theme:l,setIsOpen:c}=Uo(),d=re(l.link,a),u=f=>{c(!1),o==null||o(f)};return g.jsx("li",{children:g.jsx(e,{className:G(d.base,t&&d.active.on,!t&&!n&&d.active.off,d.disabled[n?"on":"off"],s),onClick:u,...i,children:r})})},Tg=({barIcon:t=dx,className:e,theme:n={},...r})=>{const{theme:s,isOpen:a,setIsOpen:o}=Uo(),i=re(s.toggle,n),l=()=>{o(!a)};return g.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:G(i.base,e),...r,children:[g.jsx("span",{className:"sr-only",children:"Open main menu"}),g.jsx(t,{"aria-hidden":!0,className:i.icon})]})},Ng=({border:t,children:e,className:n,fluid:r=!1,menuOpen:s,rounded:a,theme:o={},...i})=>{const[l,c]=_.useState(s),d=re(he().navbar,o);return g.jsx(Dg.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:g.jsx("nav",{className:G(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[a?"on":"off"],n),...i,children:g.jsx("div",{className:G(d.root.inner.base,d.root.inner.fluid[r?"on":"off"]),children:e})})})};Ng.displayName="Navbar",Mg.displayName="Navbar.Brand",Eg.displayName="Navbar.Collapse",Pg.displayName="Navbar.Link",Tg.displayName="Navbar.Toggle",Object.assign(Ng,{Brand:Mg,Collapse:Eg,Link:Pg,Toggle:Tg});const h_=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(n=>n+t),Tc=({active:t,children:e,className:n,onClick:r,theme:s={},...a})=>{const o=re(he().pagination,s);return g.jsx("button",{type:"button",className:G(t&&o.pages.selector.active,n),onClick:r,...a,children:e})};Tc.displayName="Pagination.Button";const Nc=({children:t,className:e,onClick:n,theme:r={},disabled:s=!1,...a})=>{const o=re(he().pagination,r);return g.jsx("button",{type:"button",className:G(s&&o.pages.selector.disabled,e),disabled:s,onClick:n,...a,children:t})};Nc.displayName="Pagination.Navigation";const jg=({className:t,currentPage:e,layout:n="pagination",nextLabel:r="Next",onPageChange:s,previousLabel:a="Previous",renderPaginationButton:o=u=>g.jsx(Tc,{...u}),showIcons:i=!1,theme:l={},totalPages:c,...d})=>{const u=re(he().pagination,l),f=Math.min(Math.max(n==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),p=()=>{s(Math.min(e+1,c))},m=()=>{s(Math.max(e-1,1))};return g.jsxs("nav",{className:G(u.base,t),...d,children:[n==="table"&&g.jsxs("div",{className:u.layout.table.base,children:["Showing ",g.jsx("span",{className:u.layout.table.span,children:h})," to ",g.jsx("span",{className:u.layout.table.span,children:f})," of ",g.jsx("span",{className:u.layout.table.span,children:c})," Entries"]}),g.jsxs("ul",{className:u.pages.base,children:[g.jsx("li",{children:g.jsxs(Nc,{className:G(u.pages.previous.base,i&&u.pages.showIcon),onClick:m,disabled:e===1,children:[i&&g.jsx(yx,{"aria-hidden":!0,className:u.pages.previous.icon}),a]})}),n==="pagination"&&h_(h,f).map(b=>g.jsx("li",{"aria-current":b===e?"page":void 0,children:o({className:G(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>s(b),children:b})},b)),g.jsx("li",{children:g.jsxs(Nc,{className:G(u.pages.next.base,i&&u.pages.showIcon),onClick:p,disabled:e===c,children:[r,i&&g.jsx(wx,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};jg.displayName="Pagination",Object.assign(jg,{Button:Tc});const Ig=_.forwardRef(({className:t,theme:e={},...n},r)=>{const s=re(he().radio,e);return g.jsx("input",{ref:r,type:"radio",className:G(s.root.base,t),...n})});Ig.displayName="Radio";const g_=_.forwardRef(({className:t,sizing:e="md",theme:n={},...r},s)=>{const a=re(he().rangeSlider,n);return g.jsx(g.Fragment,{children:g.jsx("div",{"data-testid":"flowbite-range-slider",className:G(a.root.base,t),children:g.jsx("div",{className:a.field.base,children:g.jsx("input",{ref:s,type:"range",className:G(a.field.input.base,a.field.input.sizes[e]),...r})})})})});g_.displayName="RangeSlider";const Ag=({children:t,className:e,percentFilled:n=0,theme:r={},...s})=>{const a=re(he().ratingAdvanced,r);return g.jsxs("div",{className:G(a.base,e),...s,children:[g.jsx("span",{className:a.label,children:t}),g.jsx("div",{className:a.progress.base,children:g.jsx("div",{className:a.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),g.jsx("span",{className:a.progress.label,children:`${n}%`})]})},Rg=_.createContext(void 0);function m_(){const t=_.useContext(Rg);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const Lg=({className:t,filled:e=!0,starIcon:n=vx,theme:r={},...s})=>{const{theme:a,size:o="sm"}=m_(),i=re(a.star,r);return g.jsx(n,{"data-testid":"flowbite-rating-star",className:G(i.sizes[o],i[e?"filled":"empty"],t),...s})},Fg=({children:t,className:e,size:n="sm",theme:r={},...s})=>{const a=re(he().rating,r);return g.jsx(Rg.Provider,{value:{theme:a,size:n},children:g.jsx("div",{className:G(a.root.base,e),...s,children:t})})};Fg.displayName="Rating",Lg.displayName="Rating.Star",Ag.displayName="Rating.Advanced",Object.assign(Fg,{Star:Lg,Advanced:Ag});const p_=_.forwardRef(({addon:t,children:e,className:n,color:r="gray",helperText:s,icon:a,shadow:o,sizing:i="md",theme:l={},...c},d)=>{const u=re(he().select,l);return g.jsxs("div",{className:G(u.base,n),children:[t&&g.jsx("span",{className:u.addon,children:t}),g.jsxs("div",{className:u.field.base,children:[a&&g.jsx("div",{className:u.field.icon.base,children:g.jsx(a,{className:u.field.icon.svg})}),g.jsx("select",{className:G(u.field.select.base,u.field.select.colors[r],u.field.select.sizes[i],u.field.select.withIcon[a?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[o?"on":"off"]),...c,ref:d,children:e}),s&&g.jsx(na,{color:r,children:s})]})]})});p_.displayName="Select";const b_=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i,trigger:l="hover",minWidth:c,...d})=>{const u=_.useRef(null),[f,h]=_.useState(!1),p=sg({open:f,placement:a,arrowRef:u,setOpen:h}),{context:m,middlewareData:{arrow:{x:b,y}={}},refs:x,strategy:k,update:v,x:w,y:S}=p,N=$1(m),{getFloatingProps:D,getReferenceProps:T}=ag({context:m,role:"tooltip",trigger:l,interactions:[N]});return _.useEffect(()=>{if(x.reference.current&&x.floating.current&&f)return yh(x.reference.current,x.floating.current,v)},[f,x.floating,x.reference,v]),g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:x.setReference,className:i.target,"data-testid":"flowbite-tooltip-target",...T(),children:n}),g.jsxs("div",{ref:x.setFloating,"data-testid":"flowbite-tooltip",...D({className:G(i.base,t&&`${i.animation} ${t}`,!f&&i.hidden,i.style[o],r),style:{position:k,top:S??" ",left:w??" ",minWidth:c},...d}),children:[g.jsx("div",{className:i.content,children:s}),e&&g.jsx("div",{className:G(i.arrow.base,o==="dark"&&i.arrow.style.dark,o==="light"&&i.arrow.style.light,o==="auto"&&i.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:u,style:{top:y??" ",left:b??" ",right:" ",bottom:" ",[l_({placement:p.placement})]:i.arrow.placement},children:" "})]})]})},Xo=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:s,placement:a="top",style:o="dark",theme:i={},trigger:l="hover",...c})=>{const d=re(he().tooltip,i);return g.jsx(b_,{animation:t,arrow:e,content:s,placement:a,style:o,theme:d,trigger:l,className:r,...c,children:n})};Xo.displayName="Tooltip";const Wg=_.createContext(void 0);function ws(){const t=_.useContext(Wg);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const jc=_.createContext(void 0);function y_(){const t=_.useContext(jc);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const Bg=({children:t,className:e,icon:n,label:r,chevronIcon:s=Vl,renderChevronIcon:a,open:o=!1,theme:i={},...l})=>{const c=_.useId(),[d,u]=_.useState(o),{theme:f,isCollapsed:h}=ws(),p=re(f.collapse,i);_.useEffect(()=>u(o),[o]);const m=({children:b})=>g.jsx("li",{children:h&&!d?g.jsx(Xo,{content:r,placement:"right",children:b}):b});return g.jsxs(m,{children:[g.jsxs("button",{id:`flowbite-sidebar-collapse-${c}`,onClick:()=>u(!d),title:r,type:"button",className:G(p.button,e),...l,children:[n&&g.jsx(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:G(p.icon.base,p.icon.open[d?"on":"off"])}),h?g.jsx("span",{className:"sr-only",children:r}):g.jsxs(g.Fragment,{children:[g.jsx("span",{"data-testid":"flowbite-sidebar-collapse-label",className:p.label.base,children:r}),a?a(p,d):g.jsx(s,{"aria-hidden":!0,className:G(p.label.icon.base,p.label.icon.open[d?"on":"off"])})]})]}),g.jsx("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${c}`,hidden:!d,className:p.list,children:g.jsx(jc.Provider,{value:{isInsideCollapse:!0},children:t})})]})};Bg.displayName="Sidebar.Collapse";const zg=({children:t,color:e="info",className:n,theme:r={},...s})=>{const{theme:a,isCollapsed:o}=ws(),i=re(a.cta,r);return g.jsx("div",{"data-testid":"sidebar-cta",hidden:o,className:G(i.base,i.color[e],n),...s,children:t})};zg.displayName="Sidebar.CTA";const w_=({id:t,theme:e,isCollapsed:n,tooltipChildren:r,children:s,...a})=>g.jsx("li",{...a,children:n?g.jsx(Xo,{content:g.jsx(Hg,{id:t,theme:e,children:r}),placement:"right",children:s}):s}),Hg=({id:t,theme:e,children:n})=>g.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:G(e.content.base),children:n}),Yg=_.forwardRef(({active:t,as:e="a",children:n,className:r,icon:s,label:a,labelColor:o="info",theme:i={},...l},c)=>{var m,b,y,x;const d=_.useId(),{theme:u,isCollapsed:f}=ws(),{isInsideCollapse:h}=y_(),p=re(u.item,i);return g.jsx(w_,{theme:p,className:p.listItem,id:d,isCollapsed:f,tooltipChildren:n,children:g.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:G(p.base,t&&p.active,!f&&h&&((m=p.collapsed)==null?void 0:m.insideCollapse),r),...l,children:[s&&g.jsx(s,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:G((b=p.icon)==null?void 0:b.base,t&&((y=p.icon)==null?void 0:y.active))}),f&&!s&&g.jsx("span",{className:(x=p.collapsed)==null?void 0:x.noIcon,children:n.charAt(0).toLocaleUpperCase()??"?"}),!f&&g.jsx(Hg,{id:d,theme:p,children:n}),!f&&a&&g.jsx(If,{color:o,"data-testid":"flowbite-sidebar-label",hidden:f,className:p.label,children:a})]})})});Yg.displayName="Sidebar.Item";const Vg=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ws(),a=re(s.itemGroup,n);return g.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:G(a.base,e),...r,children:g.jsx(jc.Provider,{value:{isInsideCollapse:!1},children:t})})};Vg.displayName="Sidebar.ItemGroup";const Ug=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=ws(),a=re(s.items,n);return g.jsx("div",{className:G(a.base,e),"data-testid":"flowbite-sidebar-items",...r,children:t})};Ug.displayName="Sidebar.Items";const Xg=({children:t,className:e,href:n,img:r,imgAlt:s="",theme:a={},...o})=>{const i=_.useId(),{theme:l,isCollapsed:c}=ws(),d=re(l.logo,a);return g.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${i}`,href:n,className:G(d.base,e),...o,children:[g.jsx("img",{alt:s,src:r,className:d.img}),g.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${i}`,children:t})]})};Xg.displayName="Sidebar.Logo";const Kg=({children:t,as:e="nav",collapseBehavior:n="collapse",collapsed:r=!1,theme:s={},className:a,...o})=>{const i=re(he().sidebar,s);return g.jsx(Wg.Provider,{value:{theme:i,isCollapsed:r},children:g.jsx(e,{"aria-label":"Sidebar",hidden:r&&n==="hide",className:G(i.root.base,i.root.collapsed[r?"on":"off"],a),...o,children:g.jsx("div",{className:i.root.inner,children:t})})})};Kg.displayName="Sidebar",Object.assign(Kg,{Collapse:Bg,CTA:zg,Item:Yg,Items:Ug,ItemGroup:Vg,Logo:Xg});const Gg=_.createContext(void 0);function v_(){const t=_.useContext(Gg);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const Qg=_.createContext(void 0);function Ic(){const t=_.useContext(Qg);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const Zg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=Ic(),o=re(a.body,n);return g.jsx(Gg.Provider,{value:{theme:o},children:g.jsx("tbody",{className:G(o.base,e),ref:s,...r,children:t})})});Zg.displayName="Table.Body";const Jg=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=v_(),o=re(a.cell,n);return g.jsx("td",{className:G(o.base,e),ref:s,...r,children:t})});Jg.displayName="Table.Cell";const qg=_.createContext(void 0);function x_(){const t=_.useContext(qg);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const $g=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=Ic(),o=re(a.head,n);return g.jsx(qg.Provider,{value:{theme:o},children:g.jsx("thead",{className:G(o.base,e),ref:s,...r,children:g.jsx("tr",{children:t})})})});$g.displayName="Table.Head";const em=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a}=x_(),o=re(a.cell,n);return g.jsx("th",{className:G(o.base,e),ref:s,...r,children:t})});em.displayName="Table.HeadCell";const tm=_.forwardRef(({children:t,className:e,theme:n={},...r},s)=>{const{theme:a,hoverable:o,striped:i}=Ic(),l=re(a.row,n);return g.jsx("tr",{ref:s,"data-testid":"table-row-element",className:G(l.base,i&&l.striped,o&&l.hovered,e),...r,children:t})});tm.displayName="Table.Row";const nm=_.forwardRef(({children:t,className:e,striped:n,hoverable:r,theme:s={},...a},o)=>{const i=re(he().table,s);return g.jsx("div",{"data-testid":"table-element",className:G(i.root.wrapper),children:g.jsxs(Qg.Provider,{value:{theme:i,striped:n,hoverable:r},children:[g.jsx("div",{className:G(i.root.shadow,e)}),g.jsx("table",{className:G(i.root.base,e),...a,ref:o,children:t})]})})});nm.displayName="Table";const Ge=Object.assign(nm,{Head:$g,Body:Zg,Row:tm,Cell:Jg,HeadCell:em}),rm=({children:t,className:e})=>g.jsx("div",{className:e,children:t});rm.displayName="Tabs.Item";const sm=_.forwardRef(({children:t,className:e,onActiveTabChange:n,style:r="default",theme:s={},...a},o)=>{const i=re(he().tabs,s),l=_.useId(),c=_.useMemo(()=>_.Children.map(_.Children.toArray(t),({props:v})=>v),[t]),d=_.useRef([]),[u,f]=_.useState(Math.max(0,c.findIndex(v=>v.active))),[h,p]=_.useState(-1),m=v=>{f(v),n&&n(v)},b=({target:v})=>{m(v),p(v)},y=({event:v,target:w})=>{v.key==="ArrowLeft"&&p(Math.max(0,h-1)),v.key==="ArrowRight"&&p(Math.min(c.length-1,h+1)),v.key==="Enter"&&(m(w),p(w))},x=i.tablist.tabitem.styles[r],k=i.tabitemcontainer.styles[r];return _.useEffect(()=>{var v;(v=d.current[h])==null||v.focus()},[h]),_.useImperativeHandle(o,()=>({setActiveTab:m})),g.jsxs("div",{className:G(i.base,e),children:[g.jsx("div",{"aria-label":"Tabs",role:"tablist",className:G(i.tablist.base,i.tablist.styles[r],e),...a,children:c.map((v,w)=>g.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${w}`,"aria-selected":w===u,className:G(i.tablist.tabitem.base,x.base,w===u&&x.active.on,w!==u&&!v.disabled&&x.active.off),disabled:v.disabled,id:`${l}-tab-${w}`,onClick:()=>b({target:w}),onKeyDown:S=>y({event:S,target:w}),ref:S=>d.current[w]=S,role:"tab",tabIndex:w===h?0:-1,style:{zIndex:w===h?2:1},children:[v.icon&&g.jsx(v.icon,{className:i.tablist.tabitem.icon}),v.title]},w))}),g.jsx("div",{className:G(i.tabitemcontainer.base,k),children:c.map((v,w)=>g.jsx("div",{"aria-labelledby":`${l}-tab-${w}`,className:i.tabpanel,hidden:w!==u,id:`${l}-tabpanel-${w}`,role:"tabpanel",tabIndex:0,children:v.children},w))})]})});sm.displayName="Tabs",Object.assign(sm,{Item:rm});const k_=_.forwardRef(({className:t,color:e="gray",helperText:n,shadow:r,theme:s={},...a},o)=>{const i=re(he().textarea,s);return g.jsxs(g.Fragment,{children:[g.jsx("textarea",{ref:o,className:G(i.base,i.colors[e],i.withShadow[r?"on":"off"],t),...a}),n&&g.jsx(na,{color:e,children:n})]})});k_.displayName="Textarea";const am=_.createContext(void 0);function Ac(){const t=_.useContext(am);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const om=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Ac(),a=re(s.body,n);return g.jsx("div",{className:G(a.base,e),...r,children:t})},im=_.createContext(void 0);function Rc(){const t=_.useContext(im);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const lm=_.createContext(void 0);function cm(){const t=_.useContext(lm);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const dm=({children:t,className:e,theme:n={},...r})=>{const{horizontal:s}=Rc(),{theme:a}=cm(),o=re(a.content,n);return g.jsx(am.Provider,{value:{theme:o},children:g.jsx("div",{"data-testid":"timeline-content",className:G(s&&o.root.base,e),...r,children:t})})},um=({children:t,className:e,theme:n={},...r})=>{const{theme:s,horizontal:a}=Rc(),o=re(s.item,n);return g.jsx(lm.Provider,{value:{theme:o},children:g.jsx("li",{"data-testid":"timeline-item",className:G(a&&o.root.horizontal,!a&&o.root.vertical,e),...r,children:t})})},fm=({children:t,className:e,icon:n,theme:r={},...s})=>{const{horizontal:a}=Rc(),{theme:o}=cm(),i=re(o.point,r);return g.jsxs("div",{"data-testid":"timeline-point",className:G(a&&i.horizontal,!a&&i.vertical,e),...s,children:[t,n?g.jsx("span",{className:G(i.marker.icon.wrapper),children:g.jsx(n,{"aria-hidden":!0,className:G(i.marker.icon.base)})}):g.jsx("div",{className:G(a&&i.marker.base.horizontal,!a&&i.marker.base.vertical)}),a&&g.jsx("div",{className:G(i.line)})]})},hm=({children:t,className:e,theme:n={},...r})=>{const{theme:s}=Ac(),a=re(s.time,n);return g.jsx("time",{className:G(a.base,e),...r,children:t})},gm=({as:t="h3",children:e,className:n,theme:r={},...s})=>{const{theme:a}=Ac(),o=re(a.title,r);return g.jsx(t,{className:G(o.base,n),...s,children:e})},mm=({children:t,className:e,horizontal:n,theme:r={},...s})=>{const a=re(he().timeline,r);return g.jsx(im.Provider,{value:{theme:a,horizontal:n},children:g.jsx("ol",{"data-testid":"timeline-component",className:G(n&&a.root.direction.horizontal,!n&&a.root.direction.vertical,e),...s,children:t})})};mm.displayName="Timeline",um.displayName="Timeline.Item",fm.displayName="Timeline.Point",dm.displayName="Timeline.Content",hm.displayName="Timeline.Time",gm.displayName="Timeline.Title",om.displayName="Timeline.Body",Object.assign(mm,{Item:um,Point:fm,Content:dm,Time:hm,Title:gm,Body:om});const pm=_.createContext(void 0);function __(){const t=_.useContext(pm);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const bm=({className:t,onClick:e,theme:n={},xIcon:r=xx,onDismiss:s,...a})=>{const{theme:o,duration:i,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=__(),f=re(o.toggle,n),h=p=>{if(e&&e(p),s){s();return}d(!l),setTimeout(()=>u(!c),i)};return g.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:G(f.base,t),...a,children:g.jsx(r,{"aria-hidden":!0,className:f.icon})})},S_={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},ym=({children:t,className:e,duration:n=300,theme:r={},...s})=>{const[a,o]=_.useState(!1),[i,l]=_.useState(!1),c=re(he().toast,r);return i?null:g.jsx(pm.Provider,{value:{theme:c,duration:n,isClosed:a,isRemoved:i,setIsClosed:o,setIsRemoved:l},children:g.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:G(c.root.base,S_[n],a&&c.root.closed,e),...s,children:t})})};ym.displayName="Toast",bm.displayName="Toast.Toggle",Object.assign(ym,{Toggle:bm});const O_=_.forwardRef(({checked:t,className:e,color:n="blue",sizing:r="md",disabled:s,label:a,name:o,onChange:i,theme:l={},...c},d)=>{const u=_.useId(),f=re(he().toggleSwitch,l),h=()=>i(!t),p=()=>{h()},m=b=>{b.code=="Enter"&&b.preventDefault()};return g.jsxs(g.Fragment,{children:[o&&t?g.jsx("input",{ref:d,checked:t,hidden:!0,name:o,readOnly:!0,type:"checkbox",className:"sr-only"}):null,g.jsxs("button",{"aria-checked":t,"aria-labelledby":`${u}-flowbite-toggleswitch-label`,disabled:s,id:`${u}-flowbite-toggleswitch`,onClick:p,onKeyDown:m,role:"switch",tabIndex:0,type:"button",className:G(f.root.base,f.root.active[s?"off":"on"],e),...c,children:[g.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:G(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[n],f.toggle.sizes[r])}),a!=null&&a.length?g.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:a}):null]})]})});O_.displayName="ToggleSwitch";const Ko=_.forwardRef(({icon:t,placeholder:e,label:n,error:r,type:s,classInclude:a,maxLength:o,onChange:i,...l},c)=>g.jsxs("div",{className:`${n?"mb-3":""}`,children:[n&&g.jsx("label",{className:"mb-1 block font-semibold",children:n}),t===!0?g.jsx(ls,{className:`${a}`,sizing:"sm",maxLength:o,ref:c,type:s,rightIcon:gx,placeholder:e,onChange:i,...l}):g.jsx(ls,{className:`${a}`,sizing:"sm",maxLength:o,ref:c,type:s,placeholder:e,onChange:i,...l}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Ko.displayName="InputForm";const C_={"mth-password":"passwordInput-module__mth-password__R6DoN"},Lc=({placeholder:t,onChange:e,value:n,...r})=>{const[s,a]=_.useState(!1),o=()=>{a(!s)};return g.jsx("div",{className:"mb-5",children:g.jsxs("div",{className:"relative inline-block w-full",children:[g.jsx("input",{type:s?"text":"password",value:n,className:"w-full border p-2 pr-10",onChange:e,placeholder:t,...r}),g.jsx("button",{type:"button",onClick:o,className:C_["mth-password"],children:s?g.jsx(ux,{}):g.jsx(fx,{})})]})})},wm={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},vm=({start:t,end:e,current:n,type:r})=>{const s=(n-t)/(e-t)*100,a=Math.min(Math.max(s,0),100),o=()=>a<10?"left-0":a>90?"right-0":"left-1/2 transform -translate-x-1/2";return g.jsxs("div",{className:"w-full p-1",children:[g.jsxs("div",{className:"mb-2 flex justify-between text-xs text-gray-400",children:[g.jsx("span",{children:t.toLocaleString()}),g.jsx("span",{children:e.toLocaleString()})]}),g.jsxs("div",{className:"relative mb-5 h-1 w-full rounded-full bg-gray-200",children:[g.jsx("div",{className:`${wm.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${a}%`}}),g.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${a}%`},children:[g.jsx("div",{className:`${wm.mth_progress_bar_thumb} w-2 h-2 rounded-full shadow-lg`}),g.jsxs("div",{className:`absolute top-full mt-2 text-xs font-medium text-black whitespace-nowrap ${o()}`,children:[n.toLocaleString()," ",r==="percentage"?"%":""]})]})]})]})},xm=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:s,id:a,classDiv:o,...i},l)=>g.jsxs("div",{className:o,children:[g.jsxs("select",{ref:l,id:a,className:"h-8 w-full rounded-lg border px-3 py-0.5",value:r,onChange:s,...i,children:[g.jsx("option",{value:"0",children:e||"Seleccione una opción"}),t==null?void 0:t.map(c=>g.jsx("option",{value:c.value,children:c.label},c.value))]}),n&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));xm.displayName="SelectForm";const km={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},D_=({logo:t,number:e,title:n,start:r,end:s,current:a,type:o,classIm:i})=>{const l=c=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(c);return g.jsxs("div",{className:`${km.mth_card_indicator} flex flex-col border bg-white px-3.5 py-4`,children:[g.jsx("div",{className:"flex justify-end",children:g.jsx(Sr,{src:t||"",alt:"Icon",width:30,height:30,classIm:i})}),g.jsx("h2",{className:"mt-2 font-bold mth_card_indicator_title",id:`mth_card_indicator_${n}_title`,children:n.toUpperCase()}),g.jsxs("small",{className:"text-2xl font-extrabold mth_card_indicator_number",children:[l(e)," ",o==="percentage"?"%":""]}),g.jsx("div",{className:"mt-2 mth_card_indicator_progress_bar",children:g.jsx(vm,{start:r,end:s,current:a,type:o})})]})};/*!
9
9
  * @kurkle/color v0.3.4
10
10
  * https://github.com/kurkle/color#readme
11
11
  * (c) 2024 Jukka Kurkela
12
12
  * Released under the MIT License
13
- */function ca(t){return t+.5|0}const ar=(t,e,n)=>Math.max(Math.min(t,n),e);function da(t){return ar(ca(t*2.55),0,255)}function or(t){return ar(ca(t*255),0,255)}function Fn(t){return ar(ca(t/2.55)/100,0,1)}function vm(t){return ar(ca(t*100),0,100)}const Zt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Rc=[..."0123456789ABCDEF"],S_=t=>Rc[t&15],O_=t=>Rc[(t&240)>>4]+Rc[t&15],Yo=t=>(t&240)>>4===(t&15),C_=t=>Yo(t.r)&&Yo(t.g)&&Yo(t.b)&&Yo(t.a);function D_(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Zt[t[1]]*17,g:255&Zt[t[2]]*17,b:255&Zt[t[3]]*17,a:e===5?Zt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Zt[t[1]]<<4|Zt[t[2]],g:Zt[t[3]]<<4|Zt[t[4]],b:Zt[t[5]]<<4|Zt[t[6]],a:e===9?Zt[t[7]]<<4|Zt[t[8]]:255})),n}const M_=(t,e)=>t<255?e(t):"";function E_(t){var e=C_(t)?S_:O_;return t?"#"+e(t.r)+e(t.g)+e(t.b)+M_(t.a,e):void 0}const P_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function xm(t,e,n){const r=e*Math.min(n,1-n),s=(a,o=(a+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function T_(t,e,n){const r=(s,a=(s+t/60)%6)=>n-n*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function N_(t,e,n){const r=xm(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)r[s]*=1-e-n,r[s]+=e;return r}function j_(t,e,n,r,s){return t===s?(e-n)/r+(e<n?6:0):e===s?(n-t)/r+2:(t-e)/r+4}function Lc(t){const n=t.r/255,r=t.g/255,s=t.b/255,a=Math.max(n,r,s),o=Math.min(n,r,s),i=(a+o)/2;let l,c,d;return a!==o&&(d=a-o,c=i>.5?d/(2-a-o):d/(a+o),l=j_(n,r,s,d,a),l=l*60+.5),[l|0,c||0,i]}function Fc(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(or)}function Wc(t,e,n){return Fc(xm,t,e,n)}function I_(t,e,n){return Fc(N_,t,e,n)}function A_(t,e,n){return Fc(T_,t,e,n)}function km(t){return(t%360+360)%360}function R_(t){const e=P_.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?da(+e[5]):or(+e[5]));const s=km(+e[2]),a=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=I_(s,a,o):e[1]==="hsv"?r=A_(s,a,o):r=Wc(s,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function L_(t,e){var n=Lc(t);n[0]=km(n[0]+e),n=Wc(n),t.r=n[0],t.g=n[1],t.b=n[2]}function F_(t){if(!t)return;const e=Lc(t),n=e[0],r=vm(e[1]),s=vm(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${s}%, ${Fn(t.a)})`:`hsl(${n}, ${r}%, ${s}%)`}const _m={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Sm={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function W_(){const t={},e=Object.keys(Sm),n=Object.keys(_m);let r,s,a,o,i;for(r=0;r<e.length;r++){for(o=i=e[r],s=0;s<n.length;s++)a=n[s],i=i.replace(a,_m[a]);a=parseInt(Sm[o],16),t[i]=[a>>16&255,a>>8&255,a&255]}return t}let Vo;function B_(t){Vo||(Vo=W_(),Vo.transparent=[0,0,0,0]);const e=Vo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const z_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function H_(t){const e=z_.exec(t);let n=255,r,s,a;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?da(o):ar(o*255,0,255)}return r=+e[1],s=+e[3],a=+e[5],r=255&(e[2]?da(r):ar(r,0,255)),s=255&(e[4]?da(s):ar(s,0,255)),a=255&(e[6]?da(a):ar(a,0,255)),{r,g:s,b:a,a:n}}}function Y_(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Fn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Bc=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,ys=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function V_(t,e,n){const r=ys(Fn(t.r)),s=ys(Fn(t.g)),a=ys(Fn(t.b));return{r:or(Bc(r+n*(ys(Fn(e.r))-r))),g:or(Bc(s+n*(ys(Fn(e.g))-s))),b:or(Bc(a+n*(ys(Fn(e.b))-a))),a:t.a+n*(e.a-t.a)}}function Uo(t,e,n){if(t){let r=Lc(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Wc(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Om(t,e){return t&&Object.assign(e||{},t)}function Cm(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=or(t[3]))):(e=Om(t,{r:0,g:0,b:0,a:1}),e.a=or(e.a)),e}function U_(t){return t.charAt(0)==="r"?H_(t):R_(t)}class ua{constructor(e){if(e instanceof ua)return e;const n=typeof e;let r;n==="object"?r=Cm(e):n==="string"&&(r=D_(e)||B_(e)||U_(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Om(this._rgb);return e&&(e.a=Fn(e.a)),e}set rgb(e){this._rgb=Cm(e)}rgbString(){return this._valid?Y_(this._rgb):void 0}hexString(){return this._valid?E_(this._rgb):void 0}hslString(){return this._valid?F_(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,s=e.rgb;let a;const o=n===a?.5:n,i=2*o-1,l=r.a-s.a,c=((i*l===-1?i:(i+l)/(1+i*l))+1)/2;a=1-c,r.r=255&c*r.r+a*s.r+.5,r.g=255&c*r.g+a*s.g+.5,r.b=255&c*r.b+a*s.b+.5,r.a=o*r.a+(1-o)*s.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=V_(this._rgb,e._rgb,n)),this}clone(){return new ua(this.rgb)}alpha(e){return this._rgb.a=or(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=ca(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Uo(this._rgb,2,e),this}darken(e){return Uo(this._rgb,2,-e),this}saturate(e){return Uo(this._rgb,1,e),this}desaturate(e){return Uo(this._rgb,1,-e),this}rotate(e){return L_(this._rgb,e),this}}/*!
14
- * Chart.js v4.4.8
13
+ */function fa(t){return t+.5|0}const or=(t,e,n)=>Math.max(Math.min(t,n),e);function ha(t){return or(fa(t*2.55),0,255)}function ir(t){return or(fa(t*255),0,255)}function Wn(t){return or(fa(t/2.55)/100,0,1)}function _m(t){return or(fa(t*100),0,100)}const Zt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Fc=[..."0123456789ABCDEF"],M_=t=>Fc[t&15],E_=t=>Fc[(t&240)>>4]+Fc[t&15],Go=t=>(t&240)>>4===(t&15),P_=t=>Go(t.r)&&Go(t.g)&&Go(t.b)&&Go(t.a);function T_(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Zt[t[1]]*17,g:255&Zt[t[2]]*17,b:255&Zt[t[3]]*17,a:e===5?Zt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Zt[t[1]]<<4|Zt[t[2]],g:Zt[t[3]]<<4|Zt[t[4]],b:Zt[t[5]]<<4|Zt[t[6]],a:e===9?Zt[t[7]]<<4|Zt[t[8]]:255})),n}const N_=(t,e)=>t<255?e(t):"";function j_(t){var e=P_(t)?M_:E_;return t?"#"+e(t.r)+e(t.g)+e(t.b)+N_(t.a,e):void 0}const I_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Sm(t,e,n){const r=e*Math.min(n,1-n),s=(a,o=(a+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function A_(t,e,n){const r=(s,a=(s+t/60)%6)=>n-n*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function R_(t,e,n){const r=Sm(t,1,.5);let s;for(e+n>1&&(s=1/(e+n),e*=s,n*=s),s=0;s<3;s++)r[s]*=1-e-n,r[s]+=e;return r}function L_(t,e,n,r,s){return t===s?(e-n)/r+(e<n?6:0):e===s?(n-t)/r+2:(t-e)/r+4}function Wc(t){const n=t.r/255,r=t.g/255,s=t.b/255,a=Math.max(n,r,s),o=Math.min(n,r,s),i=(a+o)/2;let l,c,d;return a!==o&&(d=a-o,c=i>.5?d/(2-a-o):d/(a+o),l=L_(n,r,s,d,a),l=l*60+.5),[l|0,c||0,i]}function Bc(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(ir)}function zc(t,e,n){return Bc(Sm,t,e,n)}function F_(t,e,n){return Bc(R_,t,e,n)}function W_(t,e,n){return Bc(A_,t,e,n)}function Om(t){return(t%360+360)%360}function B_(t){const e=I_.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?ha(+e[5]):ir(+e[5]));const s=Om(+e[2]),a=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=F_(s,a,o):e[1]==="hsv"?r=W_(s,a,o):r=zc(s,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function z_(t,e){var n=Wc(t);n[0]=Om(n[0]+e),n=zc(n),t.r=n[0],t.g=n[1],t.b=n[2]}function H_(t){if(!t)return;const e=Wc(t),n=e[0],r=_m(e[1]),s=_m(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${s}%, ${Wn(t.a)})`:`hsl(${n}, ${r}%, ${s}%)`}const Cm={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Dm={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Y_(){const t={},e=Object.keys(Dm),n=Object.keys(Cm);let r,s,a,o,i;for(r=0;r<e.length;r++){for(o=i=e[r],s=0;s<n.length;s++)a=n[s],i=i.replace(a,Cm[a]);a=parseInt(Dm[o],16),t[i]=[a>>16&255,a>>8&255,a&255]}return t}let Qo;function V_(t){Qo||(Qo=Y_(),Qo.transparent=[0,0,0,0]);const e=Qo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const U_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function X_(t){const e=U_.exec(t);let n=255,r,s,a;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?ha(o):or(o*255,0,255)}return r=+e[1],s=+e[3],a=+e[5],r=255&(e[2]?ha(r):or(r,0,255)),s=255&(e[4]?ha(s):or(s,0,255)),a=255&(e[6]?ha(a):or(a,0,255)),{r,g:s,b:a,a:n}}}function K_(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Wn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Hc=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,vs=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function G_(t,e,n){const r=vs(Wn(t.r)),s=vs(Wn(t.g)),a=vs(Wn(t.b));return{r:ir(Hc(r+n*(vs(Wn(e.r))-r))),g:ir(Hc(s+n*(vs(Wn(e.g))-s))),b:ir(Hc(a+n*(vs(Wn(e.b))-a))),a:t.a+n*(e.a-t.a)}}function Zo(t,e,n){if(t){let r=Wc(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=zc(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Mm(t,e){return t&&Object.assign(e||{},t)}function Em(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=ir(t[3]))):(e=Mm(t,{r:0,g:0,b:0,a:1}),e.a=ir(e.a)),e}function Q_(t){return t.charAt(0)==="r"?X_(t):B_(t)}class ga{constructor(e){if(e instanceof ga)return e;const n=typeof e;let r;n==="object"?r=Em(e):n==="string"&&(r=T_(e)||V_(e)||Q_(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Mm(this._rgb);return e&&(e.a=Wn(e.a)),e}set rgb(e){this._rgb=Em(e)}rgbString(){return this._valid?K_(this._rgb):void 0}hexString(){return this._valid?j_(this._rgb):void 0}hslString(){return this._valid?H_(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,s=e.rgb;let a;const o=n===a?.5:n,i=2*o-1,l=r.a-s.a,c=((i*l===-1?i:(i+l)/(1+i*l))+1)/2;a=1-c,r.r=255&c*r.r+a*s.r+.5,r.g=255&c*r.g+a*s.g+.5,r.b=255&c*r.b+a*s.b+.5,r.a=o*r.a+(1-o)*s.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=G_(this._rgb,e._rgb,n)),this}clone(){return new ga(this.rgb)}alpha(e){return this._rgb.a=ir(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=fa(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Zo(this._rgb,2,e),this}darken(e){return Zo(this._rgb,2,-e),this}saturate(e){return Zo(this._rgb,1,e),this}desaturate(e){return Zo(this._rgb,1,-e),this}rotate(e){return z_(this._rgb,e),this}}/*!
14
+ * Chart.js v4.5.1
15
15
  * https://www.chartjs.org
16
16
  * (c) 2025 Chart.js Contributors
17
17
  * Released under the MIT License
18
- */function Wn(){}const X_=(()=>{let t=0;return()=>t++})();function yt(t){return t==null}function gt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ye(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Bn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function bn(t,e){return Bn(t)?t:e}function De(t,e){return typeof t>"u"?e:t}const K_=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Dm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Le(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Me(t,e,n,r){let s,a,o;if(gt(t))for(a=t.length,s=0;s<a;s++)e.call(n,t[s],s);else if(ye(t))for(o=Object.keys(t),a=o.length,s=0;s<a;s++)e.call(n,t[o[s]],o[s])}function Xo(t,e){let n,r,s,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(s=t[n],a=e[n],s.datasetIndex!==a.datasetIndex||s.index!==a.index)return!1;return!0}function Ko(t){if(gt(t))return t.map(Ko);if(ye(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let s=0;for(;s<r;++s)e[n[s]]=Ko(t[n[s]]);return e}return t}function Mm(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function G_(t,e,n,r){if(!Mm(t))return;const s=e[t],a=n[t];ye(s)&&ye(a)?fa(s,a,r):e[t]=Ko(a)}function fa(t,e,n){const r=gt(e)?e:[e],s=r.length;if(!ye(t))return t;n=n||{};const a=n.merger||G_;let o;for(let i=0;i<s;++i){if(o=r[i],!ye(o))continue;const l=Object.keys(o);for(let c=0,d=l.length;c<d;++c)a(l[c],t,o,n)}return t}function ha(t,e){return fa(t,e,{merger:Q_})}function Q_(t,e,n){if(!Mm(t))return;const r=e[t],s=n[t];ye(r)&&ye(s)?ha(r,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Ko(s))}const Em={"":t=>t,x:t=>t.x,y:t=>t.y};function Z_(t){const e=t.split("."),n=[];let r="";for(const s of e)r+=s,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function J_(t){const e=Z_(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ga(t,e){return(Em[e]||(Em[e]=J_(e)))(t)}function zc(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Go=t=>typeof t<"u",ir=t=>typeof t=="function",Pm=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function q_(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const lt=Math.PI,tt=2*lt,Qo=Number.POSITIVE_INFINITY,$_=lt/180,ot=lt/2,Pr=lt/4,Tm=lt*2/3,Nm=Math.sign;function eS(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((s,a)=>s-a).pop(),e}function tS(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Zo(t){return!tS(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Tr(t){return t*(lt/180)}function nS(t){return t*(180/lt)}function jm(t,e){const n=e.x-t.x,r=e.y-t.y,s=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*lt&&(a+=tt),{angle:a,distance:s}}function rS(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Nr(t){return(t%tt+tt)%tt}function Jo(t,e,n,r){const s=Nr(t),a=Nr(e),o=Nr(n),i=Nr(a-s),l=Nr(o-s),c=Nr(s-a),d=Nr(s-o);return s===a||s===o||r&&a===o||i>l&&c<d}function Jt(t,e,n){return Math.max(e,Math.min(n,t))}function sS(t){return Jt(t,-32768,32767)}function ma(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Hc(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,s=0,a;for(;r-s>1;)a=s+r>>1,n(a)?s=a:r=a;return{lo:s,hi:r}}const Yc=(t,e,n,r)=>Hc(t,n,r?s=>{const a=t[s][e];return a<n||a===n&&t[s+1][e]===n}:s=>t[s][e]<n),aS=(t,e,n)=>Hc(t,n,r=>t[r][e]>=n);function oS(t,e,n){let r=0,s=t.length;for(;r<s&&t[r]<e;)r++;for(;s>r&&t[s-1]>n;)s--;return r>0||s<t.length?t.slice(r,s):t}const Im=["push","pop","shift","splice","unshift"];function iS(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Im.forEach(n=>{const r="_onData"+zc(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...a){const o=s.apply(this,a);return t._chartjs.listeners.forEach(i=>{typeof i[r]=="function"&&i[r](...a)}),o}})})}function Am(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,s=r.indexOf(e);s!==-1&&r.splice(s,1),!(r.length>0)&&(Im.forEach(a=>{delete t[a]}),delete t._chartjs)}function lS(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Rm=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Lm(t,e){let n=[],r=!1;return function(...s){n=s,r||(r=!0,Rm.call(window,()=>{r=!1,t.apply(e,n)}))}}function cS(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const Fm=t=>t==="start"?"left":t==="end"?"right":"center",Lt=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,dS=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,qo=t=>t===0||t===1,Wm=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*tt/n)),Bm=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*tt/n)+1,pa={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*ot)+1,easeOutSine:t=>Math.sin(t*ot),easeInOutSine:t=>-.5*(Math.cos(lt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>qo(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>qo(t)?t:Wm(t,.075,.3),easeOutElastic:t=>qo(t)?t:Bm(t,.075,.3),easeInOutElastic(t){return qo(t)?t:t<.5?.5*Wm(t*2,.1125,.45):.5+.5*Bm(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-pa.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?pa.easeInBounce(t*2)*.5:pa.easeOutBounce(t*2-1)*.5+.5};function zm(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Hm(t){return zm(t)?t:new ua(t)}function Vc(t){return zm(t)?t:new ua(t).saturate(.5).darken(.1).hexString()}const uS=["x","y","borderWidth","radius","tension"],fS=["color","borderColor","backgroundColor"];function hS(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:fS},numbers:{type:"number",properties:uS}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function gS(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Ym=new Map;function mS(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Ym.get(n);return r||(r=new Intl.NumberFormat(t,e),Ym.set(n,r)),r}function pS(t,e,n){return mS(e,n).format(t)}var bS={formatters:{values(t){return gt(t)?t:""+t}}};function yS(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:bS.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const jr=Object.create(null),Uc=Object.create(null);function ba(t,e){if(!e)return t;const n=e.split(".");for(let r=0,s=n.length;r<s;++r){const a=n[r];t=t[a]||(t[a]=Object.create(null))}return t}function Xc(t,e,n){return typeof e=="string"?fa(ba(t,e),n):fa(ba(t,""),e)}class wS{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,s)=>Vc(s.backgroundColor),this.hoverBorderColor=(r,s)=>Vc(s.borderColor),this.hoverColor=(r,s)=>Vc(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Xc(this,e,n)}get(e){return ba(this,e)}describe(e,n){return Xc(Uc,e,n)}override(e,n){return Xc(jr,e,n)}route(e,n,r,s){const a=ba(this,e),o=ba(this,r),i="_"+n;Object.defineProperties(a,{[i]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[i],c=o[s];return ye(l)?Object.assign({},c,l):De(l,c)},set(l){this[i]=l}}})}apply(e){e.forEach(n=>n(this))}}var Ge=new wS({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[hS,gS,yS]);function vS(t){return!t||yt(t.size)||yt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Vm(t,e,n,r,s){let a=e[s];return a||(a=e[s]=t.measureText(s).width,n.push(s)),a>r&&(r=a),r}function Ir(t,e,n){const r=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*r)/r+s}function Um(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Xm(t,e,n,r){Km(t,e,n,r,null)}function Km(t,e,n,r,s){let a,o,i,l,c,d,u,f;const h=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*$_;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(b),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:s?t.ellipse(n,r,s/2,p,0,0,tt):t.arc(n,r,p,0,tt),t.closePath();break;case"triangle":d=s?s/2:p,t.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=Tm,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=Tm,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),t.closePath();break;case"rectRounded":c=p*.516,l=p-c,o=Math.cos(b+Pr)*l,u=Math.cos(b+Pr)*(s?s/2-c:l),i=Math.sin(b+Pr)*l,f=Math.sin(b+Pr)*(s?s/2-c:l),t.arc(n-u,r-i,c,b-lt,b-ot),t.arc(n+f,r-o,c,b-ot,b),t.arc(n+u,r+i,c,b,b+ot),t.arc(n-f,r+o,c,b+ot,b+lt),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,d=s?s/2:l,t.rect(n-d,r-l,2*d,2*l);break}b+=Pr;case"rectRot":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+f,r-o),t.lineTo(n+u,r+i),t.lineTo(n-f,r+o),t.closePath();break;case"crossRot":b+=Pr;case"cross":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+f,r-o),t.lineTo(n-f,r+o);break;case"star":u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+f,r-o),t.lineTo(n-f,r+o),b+=Pr,u=Math.cos(b)*(s?s/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(s?s/2:p),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+f,r-o),t.lineTo(n-f,r+o);break;case"line":o=s?s/2:Math.cos(b)*p,i=Math.sin(b)*p,t.moveTo(n-o,r-i),t.lineTo(n+o,r+i);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(b)*(s?s/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Gm(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Kc(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Gc(t){t.restore()}function xS(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),yt(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function kS(t,e,n,r,s){if(s.strikethrough||s.underline){const a=t.measureText(r),o=e-a.actualBoundingBoxLeft,i=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,d),t.lineTo(i,d),t.stroke()}}function _S(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function $o(t,e,n,r,s,a={}){const o=gt(e)?e:[e],i=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(t.save(),t.font=s.string,xS(t,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&_S(t,a.backdrop),i&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),yt(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,r,a.maxWidth)),t.fillText(c,n,r,a.maxWidth),kS(t,n,r,c,a),r+=Number(s.lineHeight);t.restore()}function Qc(t,e){const{x:n,y:r,w:s,h:a,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*lt,lt,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,lt,ot,!0),t.lineTo(n+s-o.bottomRight,r+a),t.arc(n+s-o.bottomRight,r+a-o.bottomRight,o.bottomRight,ot,0,!0),t.lineTo(n+s,r+o.topRight),t.arc(n+s-o.topRight,r+o.topRight,o.topRight,0,-ot,!0),t.lineTo(n+o.topLeft,r)}const SS=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,OS=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function CS(t,e){const n=(""+t).match(SS);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const DS=t=>+t||0;function Zc(t,e){const n={},r=ye(e),s=r?Object.keys(e):e,a=ye(t)?r?o=>De(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=DS(a(o));return n}function MS(t){return Zc(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ya(t){return Zc(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sn(t){const e=MS(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Mt(t,e){t=t||{},e=e||Ge.font;let n=De(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=De(t.style,e.style);r&&!(""+r).match(OS)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const s={family:De(t.family,e.family),lineHeight:CS(De(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:De(t.weight,e.weight),string:""};return s.string=vS(s),s}function ei(t,e,n,r){let s,a,o;for(s=0,a=t.length;s<a;++s)if(o=t[s],o!==void 0&&o!==void 0)return o}function ES(t,e,n){const{min:r,max:s}=t,a=Dm(e,(s-r)/2),o=(i,l)=>n&&i===0?0:i+l;return{min:o(r,-Math.abs(a)),max:o(s,a)}}function ws(t,e){return Object.assign(Object.create(t),e)}function Jc(t,e=[""],n,r,s=()=>t[0]){const a=n||t;typeof r>"u"&&(r=$m("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:r,_getTarget:s,override:i=>Jc([i,...t],e,a,r)};return new Proxy(o,{deleteProperty(i,l){return delete i[l],delete i._keys,delete t[0][l],!0},get(i,l){return Zm(i,l,()=>LS(l,e,t,i))},getOwnPropertyDescriptor(i,l){return Reflect.getOwnPropertyDescriptor(i._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(i,l){return ep(i).includes(l)},ownKeys(i){return ep(i)},set(i,l,c){const d=i._storage||(i._storage=s());return i[l]=d[l]=c,delete i._keys,!0}})}function vs(t,e,n,r){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Qm(t,r),setContext:a=>vs(t,a,n,r),override:a=>vs(t.override(a),e,n,r)};return new Proxy(s,{deleteProperty(a,o){return delete a[o],delete t[o],!0},get(a,o,i){return Zm(a,o,()=>TS(a,o,i))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(a,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(a,o,i){return t[o]=i,delete a[o],!0}})}function Qm(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:r,isScriptable:ir(n)?n:()=>n,isIndexable:ir(r)?r:()=>r}}const PS=(t,e)=>t?t+zc(e):e,qc=(t,e)=>ye(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Zm(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function TS(t,e,n){const{_proxy:r,_context:s,_subProxy:a,_descriptors:o}=t;let i=r[e];return ir(i)&&o.isScriptable(e)&&(i=NS(e,i,t,n)),gt(i)&&i.length&&(i=jS(e,i,t,o.isIndexable)),qc(e,i)&&(i=vs(i,s,a&&a[e],o)),i}function NS(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_stack:i}=n;if(i.has(t))throw new Error("Recursion detected: "+Array.from(i).join("->")+"->"+t);i.add(t);let l=e(a,o||r);return i.delete(t),qc(t,l)&&(l=$c(s._scopes,s,t,l)),l}function jS(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_descriptors:i}=n;if(typeof a.index<"u"&&r(t))return e[a.index%e.length];if(ye(e[0])){const l=e,c=s._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=$c(c,s,t,d);e.push(vs(u,a,o&&o[t],i))}}return e}function Jm(t,e,n){return ir(t)?t(e,n):t}const IS=(t,e)=>t===!0?e:typeof t=="string"?ga(e,t):void 0;function AS(t,e,n,r,s){for(const a of e){const o=IS(n,a);if(o){t.add(o);const i=Jm(o._fallback,n,s);if(typeof i<"u"&&i!==n&&i!==r)return i}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function $c(t,e,n,r){const s=e._rootScopes,a=Jm(e._fallback,n,r),o=[...t,...s],i=new Set;i.add(r);let l=qm(i,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=qm(i,o,a,l,r),l===null)?!1:Jc(Array.from(i),[""],s,a,()=>RS(e,n,r))}function qm(t,e,n,r,s){for(;n;)n=AS(t,e,n,r,s);return n}function RS(t,e,n){const r=t._getTarget();e in r||(r[e]={});const s=r[e];return gt(s)&&ye(n)?n:s||{}}function LS(t,e,n,r){let s;for(const a of e)if(s=$m(PS(a,t),n),typeof s<"u")return qc(t,s)?$c(n,r,t,s):s}function $m(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function ep(t){let e=t._keys;return e||(e=t._keys=FS(t._scopes)),e}function FS(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(r);return Array.from(e)}function ed(){return typeof window<"u"&&typeof document<"u"}function td(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function ti(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const ni=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function WS(t,e){return ni(t).getPropertyValue(e)}const BS=["top","right","bottom","left"];function Ar(t,e,n){const r={};n=n?"-"+n:"";for(let s=0;s<4;s++){const a=BS[s];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const zS=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function HS(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:s,offsetY:a}=r;let o=!1,i,l;if(zS(s,a,t.target))i=s,l=a;else{const c=e.getBoundingClientRect();i=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:i,y:l,box:o}}function Rr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,s=ni(n),a=s.boxSizing==="border-box",o=Ar(s,"padding"),i=Ar(s,"border","width"),{x:l,y:c,box:d}=HS(t,n),u=o.left+(d&&i.left),f=o.top+(d&&i.top);let{width:h,height:m}=e;return a&&(h-=o.width+i.width,m-=o.height+i.height),{x:Math.round((l-u)/h*n.width/r),y:Math.round((c-f)/m*n.height/r)}}function YS(t,e,n){let r,s;if(e===void 0||n===void 0){const a=t&&td(t);if(!a)e=t.clientWidth,n=t.clientHeight;else{const o=a.getBoundingClientRect(),i=ni(a),l=Ar(i,"border","width"),c=Ar(i,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=ti(i.maxWidth,a,"clientWidth"),s=ti(i.maxHeight,a,"clientHeight")}}return{width:e,height:n,maxWidth:r||Qo,maxHeight:s||Qo}}const ri=t=>Math.round(t*10)/10;function VS(t,e,n,r){const s=ni(t),a=Ar(s,"margin"),o=ti(s.maxWidth,t,"clientWidth")||Qo,i=ti(s.maxHeight,t,"clientHeight")||Qo,l=YS(t,e,n);let{width:c,height:d}=l;if(s.boxSizing==="content-box"){const f=Ar(s,"border","width"),h=Ar(s,"padding");c-=h.width+f.width,d-=h.height+f.height}return c=Math.max(0,c-a.width),d=Math.max(0,r?c/r:d-a.height),c=ri(Math.min(c,o,l.maxWidth)),d=ri(Math.min(d,i,l.maxHeight)),c&&!d&&(d=ri(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=ri(Math.floor(d*r))),{width:c,height:d}}function tp(t,e,n){const r=e||1,s=Math.floor(t.height*r),a=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||o.height!==s||o.width!==a?(t.currentDevicePixelRatio=r,o.height=s,o.width=a,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const US=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};ed()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function np(t,e){const n=WS(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const XS=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},KS=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function xs(t,e,n){return t?XS(e,n):KS()}function rp(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function sp(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
19
- * Chart.js v4.4.8
18
+ */function Bn(){}const Z_=(()=>{let t=0;return()=>t++})();function yt(t){return t==null}function gt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ye(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function zn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function bn(t,e){return zn(t)?t:e}function De(t,e){return typeof t>"u"?e:t}const J_=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Pm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Fe(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Me(t,e,n,r){let s,a,o;if(gt(t))for(a=t.length,s=0;s<a;s++)e.call(n,t[s],s);else if(ye(t))for(o=Object.keys(t),a=o.length,s=0;s<a;s++)e.call(n,t[o[s]],o[s])}function Jo(t,e){let n,r,s,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(s=t[n],a=e[n],s.datasetIndex!==a.datasetIndex||s.index!==a.index)return!1;return!0}function qo(t){if(gt(t))return t.map(qo);if(ye(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let s=0;for(;s<r;++s)e[n[s]]=qo(t[n[s]]);return e}return t}function Tm(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function q_(t,e,n,r){if(!Tm(t))return;const s=e[t],a=n[t];ye(s)&&ye(a)?ma(s,a,r):e[t]=qo(a)}function ma(t,e,n){const r=gt(e)?e:[e],s=r.length;if(!ye(t))return t;n=n||{};const a=n.merger||q_;let o;for(let i=0;i<s;++i){if(o=r[i],!ye(o))continue;const l=Object.keys(o);for(let c=0,d=l.length;c<d;++c)a(l[c],t,o,n)}return t}function pa(t,e){return ma(t,e,{merger:$_})}function $_(t,e,n){if(!Tm(t))return;const r=e[t],s=n[t];ye(r)&&ye(s)?pa(r,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=qo(s))}const Nm={"":t=>t,x:t=>t.x,y:t=>t.y};function eS(t){const e=t.split("."),n=[];let r="";for(const s of e)r+=s,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function tS(t){const e=eS(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ba(t,e){return(Nm[e]||(Nm[e]=tS(e)))(t)}function Yc(t){return t.charAt(0).toUpperCase()+t.slice(1)}const $o=t=>typeof t<"u",lr=t=>typeof t=="function",jm=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function nS(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const We=Math.PI,nt=2*We,ei=Number.POSITIVE_INFINITY,rS=We/180,it=We/2,jr=We/4,Im=We*2/3,Am=Math.sign;function sS(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((s,a)=>s-a).pop(),e}function aS(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function ti(t){return!aS(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Ir(t){return t*(We/180)}function oS(t){return t*(180/We)}function Rm(t,e){const n=e.x-t.x,r=e.y-t.y,s=Math.sqrt(n*n+r*r);let a=Math.atan2(r,n);return a<-.5*We&&(a+=nt),{angle:a,distance:s}}function iS(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function yn(t){return(t%nt+nt)%nt}function ni(t,e,n,r){const s=yn(t),a=yn(e),o=yn(n),i=yn(a-s),l=yn(o-s),c=yn(s-a),d=yn(s-o);return s===a||s===o||r&&a===o||i>l&&c<d}function Jt(t,e,n){return Math.max(e,Math.min(n,t))}function lS(t){return Jt(t,-32768,32767)}function ya(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Vc(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,s=0,a;for(;r-s>1;)a=s+r>>1,n(a)?s=a:r=a;return{lo:s,hi:r}}const Uc=(t,e,n,r)=>Vc(t,n,r?s=>{const a=t[s][e];return a<n||a===n&&t[s+1][e]===n}:s=>t[s][e]<n),cS=(t,e,n)=>Vc(t,n,r=>t[r][e]>=n);function dS(t,e,n){let r=0,s=t.length;for(;r<s&&t[r]<e;)r++;for(;s>r&&t[s-1]>n;)s--;return r>0||s<t.length?t.slice(r,s):t}const Lm=["push","pop","shift","splice","unshift"];function uS(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Lm.forEach(n=>{const r="_onData"+Yc(n),s=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...a){const o=s.apply(this,a);return t._chartjs.listeners.forEach(i=>{typeof i[r]=="function"&&i[r](...a)}),o}})})}function Fm(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,s=r.indexOf(e);s!==-1&&r.splice(s,1),!(r.length>0)&&(Lm.forEach(a=>{delete t[a]}),delete t._chartjs)}function fS(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Wm=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function Bm(t,e){let n=[],r=!1;return function(...s){n=s,r||(r=!0,Wm.call(window,()=>{r=!1,t.apply(e,n)}))}}function hS(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const zm=t=>t==="start"?"left":t==="end"?"right":"center",Lt=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,gS=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,ri=t=>t===0||t===1,Hm=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*nt/n)),Ym=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*nt/n)+1,wa={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*it)+1,easeOutSine:t=>Math.sin(t*it),easeInOutSine:t=>-.5*(Math.cos(We*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>ri(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ri(t)?t:Hm(t,.075,.3),easeOutElastic:t=>ri(t)?t:Ym(t,.075,.3),easeInOutElastic(t){return ri(t)?t:t<.5?.5*Hm(t*2,.1125,.45):.5+.5*Ym(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-wa.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?wa.easeInBounce(t*2)*.5:wa.easeOutBounce(t*2-1)*.5+.5};function Vm(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Um(t){return Vm(t)?t:new ga(t)}function Xc(t){return Vm(t)?t:new ga(t).saturate(.5).darken(.1).hexString()}const mS=["x","y","borderWidth","radius","tension"],pS=["color","borderColor","backgroundColor"];function bS(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:pS},numbers:{type:"number",properties:mS}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function yS(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Xm=new Map;function wS(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Xm.get(n);return r||(r=new Intl.NumberFormat(t,e),Xm.set(n,r)),r}function vS(t,e,n){return wS(e,n).format(t)}var xS={formatters:{values(t){return gt(t)?t:""+t}}};function kS(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:xS.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Ar=Object.create(null),Kc=Object.create(null);function va(t,e){if(!e)return t;const n=e.split(".");for(let r=0,s=n.length;r<s;++r){const a=n[r];t=t[a]||(t[a]=Object.create(null))}return t}function Gc(t,e,n){return typeof e=="string"?ma(va(t,e),n):ma(va(t,""),e)}class _S{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,s)=>Xc(s.backgroundColor),this.hoverBorderColor=(r,s)=>Xc(s.borderColor),this.hoverColor=(r,s)=>Xc(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Gc(this,e,n)}get(e){return va(this,e)}describe(e,n){return Gc(Kc,e,n)}override(e,n){return Gc(Ar,e,n)}route(e,n,r,s){const a=va(this,e),o=va(this,r),i="_"+n;Object.defineProperties(a,{[i]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[i],c=o[s];return ye(l)?Object.assign({},c,l):De(l,c)},set(l){this[i]=l}}})}apply(e){e.forEach(n=>n(this))}}var Qe=new _S({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[bS,yS,kS]);function SS(t){return!t||yt(t.size)||yt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Km(t,e,n,r,s){let a=e[s];return a||(a=e[s]=t.measureText(s).width,n.push(s)),a>r&&(r=a),r}function Rr(t,e,n){const r=t.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((e-s)*r)/r+s}function Gm(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Qm(t,e,n,r){Zm(t,e,n,r,null)}function Zm(t,e,n,r,s){let a,o,i,l,c,d,u,f;const h=e.pointStyle,p=e.rotation,m=e.radius;let b=(p||0)*rS;if(h&&typeof h=="object"&&(a=h.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(b),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),h){default:s?t.ellipse(n,r,s/2,m,0,0,nt):t.arc(n,r,m,0,nt),t.closePath();break;case"triangle":d=s?s/2:m,t.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*m),b+=Im,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*m),b+=Im,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*m),t.closePath();break;case"rectRounded":c=m*.516,l=m-c,o=Math.cos(b+jr)*l,u=Math.cos(b+jr)*(s?s/2-c:l),i=Math.sin(b+jr)*l,f=Math.sin(b+jr)*(s?s/2-c:l),t.arc(n-u,r-i,c,b-We,b-it),t.arc(n+f,r-o,c,b-it,b),t.arc(n+u,r+i,c,b,b+it),t.arc(n-f,r+o,c,b+it,b+We),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,d=s?s/2:l,t.rect(n-d,r-l,2*d,2*l);break}b+=jr;case"rectRot":u=Math.cos(b)*(s?s/2:m),o=Math.cos(b)*m,i=Math.sin(b)*m,f=Math.sin(b)*(s?s/2:m),t.moveTo(n-u,r-i),t.lineTo(n+f,r-o),t.lineTo(n+u,r+i),t.lineTo(n-f,r+o),t.closePath();break;case"crossRot":b+=jr;case"cross":u=Math.cos(b)*(s?s/2:m),o=Math.cos(b)*m,i=Math.sin(b)*m,f=Math.sin(b)*(s?s/2:m),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+f,r-o),t.lineTo(n-f,r+o);break;case"star":u=Math.cos(b)*(s?s/2:m),o=Math.cos(b)*m,i=Math.sin(b)*m,f=Math.sin(b)*(s?s/2:m),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+f,r-o),t.lineTo(n-f,r+o),b+=jr,u=Math.cos(b)*(s?s/2:m),o=Math.cos(b)*m,i=Math.sin(b)*m,f=Math.sin(b)*(s?s/2:m),t.moveTo(n-u,r-i),t.lineTo(n+u,r+i),t.moveTo(n+f,r-o),t.lineTo(n-f,r+o);break;case"line":o=s?s/2:Math.cos(b)*m,i=Math.sin(b)*m,t.moveTo(n-o,r-i),t.lineTo(n+o,r+i);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(b)*(s?s/2:m),r+Math.sin(b)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Jm(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Qc(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Zc(t){t.restore()}function OS(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),yt(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function CS(t,e,n,r,s){if(s.strikethrough||s.underline){const a=t.measureText(r),o=e-a.actualBoundingBoxLeft,i=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=s.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(o,d),t.lineTo(i,d),t.stroke()}}function DS(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function si(t,e,n,r,s,a={}){const o=gt(e)?e:[e],i=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(t.save(),t.font=s.string,OS(t,a),l=0;l<o.length;++l)c=o[l],a.backdrop&&DS(t,a.backdrop),i&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),yt(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,r,a.maxWidth)),t.fillText(c,n,r,a.maxWidth),CS(t,n,r,c,a),r+=Number(s.lineHeight);t.restore()}function Jc(t,e){const{x:n,y:r,w:s,h:a,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*We,We,!0),t.lineTo(n,r+a-o.bottomLeft),t.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,We,it,!0),t.lineTo(n+s-o.bottomRight,r+a),t.arc(n+s-o.bottomRight,r+a-o.bottomRight,o.bottomRight,it,0,!0),t.lineTo(n+s,r+o.topRight),t.arc(n+s-o.topRight,r+o.topRight,o.topRight,0,-it,!0),t.lineTo(n+o.topLeft,r)}const MS=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ES=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function PS(t,e){const n=(""+t).match(MS);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const TS=t=>+t||0;function qc(t,e){const n={},r=ye(e),s=r?Object.keys(e):e,a=ye(t)?r?o=>De(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of s)n[o]=TS(a(o));return n}function NS(t){return qc(t,{top:"y",right:"x",bottom:"y",left:"x"})}function xa(t){return qc(t,["topLeft","topRight","bottomLeft","bottomRight"])}function sn(t){const e=NS(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Mt(t,e){t=t||{},e=e||Qe.font;let n=De(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=De(t.style,e.style);r&&!(""+r).match(ES)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const s={family:De(t.family,e.family),lineHeight:PS(De(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:De(t.weight,e.weight),string:""};return s.string=SS(s),s}function ai(t,e,n,r){let s,a,o;for(s=0,a=t.length;s<a;++s)if(o=t[s],o!==void 0&&o!==void 0)return o}function jS(t,e,n){const{min:r,max:s}=t,a=Pm(e,(s-r)/2),o=(i,l)=>n&&i===0?0:i+l;return{min:o(r,-Math.abs(a)),max:o(s,a)}}function xs(t,e){return Object.assign(Object.create(t),e)}function $c(t,e=[""],n,r,s=()=>t[0]){const a=n||t;typeof r>"u"&&(r=np("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:r,_getTarget:s,override:i=>$c([i,...t],e,a,r)};return new Proxy(o,{deleteProperty(i,l){return delete i[l],delete i._keys,delete t[0][l],!0},get(i,l){return $m(i,l,()=>zS(l,e,t,i))},getOwnPropertyDescriptor(i,l){return Reflect.getOwnPropertyDescriptor(i._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(i,l){return rp(i).includes(l)},ownKeys(i){return rp(i)},set(i,l,c){const d=i._storage||(i._storage=s());return i[l]=d[l]=c,delete i._keys,!0}})}function ks(t,e,n,r){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:qm(t,r),setContext:a=>ks(t,a,n,r),override:a=>ks(t.override(a),e,n,r)};return new Proxy(s,{deleteProperty(a,o){return delete a[o],delete t[o],!0},get(a,o,i){return $m(a,o,()=>AS(a,o,i))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(a,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(a,o,i){return t[o]=i,delete a[o],!0}})}function qm(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:n,indexable:r,isScriptable:lr(n)?n:()=>n,isIndexable:lr(r)?r:()=>r}}const IS=(t,e)=>t?t+Yc(e):e,ed=(t,e)=>ye(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function $m(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function AS(t,e,n){const{_proxy:r,_context:s,_subProxy:a,_descriptors:o}=t;let i=r[e];return lr(i)&&o.isScriptable(e)&&(i=RS(e,i,t,n)),gt(i)&&i.length&&(i=LS(e,i,t,o.isIndexable)),ed(e,i)&&(i=ks(i,s,a&&a[e],o)),i}function RS(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_stack:i}=n;if(i.has(t))throw new Error("Recursion detected: "+Array.from(i).join("->")+"->"+t);i.add(t);let l=e(a,o||r);return i.delete(t),ed(t,l)&&(l=td(s._scopes,s,t,l)),l}function LS(t,e,n,r){const{_proxy:s,_context:a,_subProxy:o,_descriptors:i}=n;if(typeof a.index<"u"&&r(t))return e[a.index%e.length];if(ye(e[0])){const l=e,c=s._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=td(c,s,t,d);e.push(ks(u,a,o&&o[t],i))}}return e}function ep(t,e,n){return lr(t)?t(e,n):t}const FS=(t,e)=>t===!0?e:typeof t=="string"?ba(e,t):void 0;function WS(t,e,n,r,s){for(const a of e){const o=FS(n,a);if(o){t.add(o);const i=ep(o._fallback,n,s);if(typeof i<"u"&&i!==n&&i!==r)return i}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function td(t,e,n,r){const s=e._rootScopes,a=ep(e._fallback,n,r),o=[...t,...s],i=new Set;i.add(r);let l=tp(i,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=tp(i,o,a,l,r),l===null)?!1:$c(Array.from(i),[""],s,a,()=>BS(e,n,r))}function tp(t,e,n,r,s){for(;n;)n=WS(t,e,n,r,s);return n}function BS(t,e,n){const r=t._getTarget();e in r||(r[e]={});const s=r[e];return gt(s)&&ye(n)?n:s||{}}function zS(t,e,n,r){let s;for(const a of e)if(s=np(IS(a,t),n),typeof s<"u")return ed(t,s)?td(n,r,t,s):s}function np(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function rp(t){let e=t._keys;return e||(e=t._keys=HS(t._scopes)),e}function HS(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(s=>!s.startsWith("_")))e.add(r);return Array.from(e)}function nd(){return typeof window<"u"&&typeof document<"u"}function rd(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function oi(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const ii=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function YS(t,e){return ii(t).getPropertyValue(e)}const VS=["top","right","bottom","left"];function Lr(t,e,n){const r={};n=n?"-"+n:"";for(let s=0;s<4;s++){const a=VS[s];r[a]=parseFloat(t[e+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const US=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function XS(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:s,offsetY:a}=r;let o=!1,i,l;if(US(s,a,t.target))i=s,l=a;else{const c=e.getBoundingClientRect();i=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:i,y:l,box:o}}function Fr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,s=ii(n),a=s.boxSizing==="border-box",o=Lr(s,"padding"),i=Lr(s,"border","width"),{x:l,y:c,box:d}=XS(t,n),u=o.left+(d&&i.left),f=o.top+(d&&i.top);let{width:h,height:p}=e;return a&&(h-=o.width+i.width,p-=o.height+i.height),{x:Math.round((l-u)/h*n.width/r),y:Math.round((c-f)/p*n.height/r)}}function KS(t,e,n){let r,s;if(e===void 0||n===void 0){const a=t&&rd(t);if(!a)e=t.clientWidth,n=t.clientHeight;else{const o=a.getBoundingClientRect(),i=ii(a),l=Lr(i,"border","width"),c=Lr(i,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=oi(i.maxWidth,a,"clientWidth"),s=oi(i.maxHeight,a,"clientHeight")}}return{width:e,height:n,maxWidth:r||ei,maxHeight:s||ei}}const cr=t=>Math.round(t*10)/10;function GS(t,e,n,r){const s=ii(t),a=Lr(s,"margin"),o=oi(s.maxWidth,t,"clientWidth")||ei,i=oi(s.maxHeight,t,"clientHeight")||ei,l=KS(t,e,n);let{width:c,height:d}=l;if(s.boxSizing==="content-box"){const f=Lr(s,"border","width"),h=Lr(s,"padding");c-=h.width+f.width,d-=h.height+f.height}return c=Math.max(0,c-a.width),d=Math.max(0,r?c/r:d-a.height),c=cr(Math.min(c,o,l.maxWidth)),d=cr(Math.min(d,i,l.maxHeight)),c&&!d&&(d=cr(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=cr(Math.floor(d*r))),{width:c,height:d}}function sp(t,e,n){const r=e||1,s=cr(t.height*r),a=cr(t.width*r);t.height=cr(t.height),t.width=cr(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||o.height!==s||o.width!==a?(t.currentDevicePixelRatio=r,o.height=s,o.width=a,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const QS=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};nd()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function ap(t,e){const n=YS(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const ZS=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},JS=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function _s(t,e,n){return t?ZS(e,n):JS()}function op(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function ip(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function li(t,e,n){return t.options.clip?t[n]:e[n]}function qS(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:li(n,e,"left"),right:li(n,e,"right"),top:li(r,e,"top"),bottom:li(r,e,"bottom")}:e}function $S(t,e){const n=e._clip;if(n.disabled)return!1;const r=qS(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}/*!
19
+ * Chart.js v4.5.1
20
20
  * https://www.chartjs.org
21
21
  * (c) 2025 Chart.js Contributors
22
22
  * Released under the MIT License
23
- */class GS{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,s){const a=n.listeners[s],o=n.duration;a.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=Rm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,s)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,i=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),i=!0):(a[o]=a[a.length-1],a.pop());i&&(s.draw(),this._notify(s,r,e,"progress")),a.length||(r.running=!1,this._notify(s,r,e,"complete"),r.initial=!1),n+=a.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,s)=>Math.max(r,s._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 s=r.length-1;for(;s>=0;--s)r[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var zn=new GS;const ap="transparent",QS={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=Hm(t||ap),s=r.valid&&Hm(e||ap);return s&&s.valid?s.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class ZS{constructor(e,n,r,s){const a=n[r];s=ei([e.to,s,a,e.from]);const o=ei([e.from,a,s]);this._active=!0,this._fn=e.fn||QS[e.type||typeof o],this._easing=pa[e.easing]||pa.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=s,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const s=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=ei([e.to,n,s,e.from]),this._from=ei([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,s=this._prop,a=this._from,o=this._loop,i=this._to;let l;if(this._active=a!==i&&(o||n<r),!this._active){this._target[s]=i,this._notify(!0);return}if(n<0){this._target[s]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(a,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 s=0;s<r.length;s++)r[s][n]()}}class op{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!ye(e))return;const n=Object.keys(Ge.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const a=e[s];if(!ye(a))return;const o={};for(const i of n)o[i]=a[i];(gt(a.properties)&&a.properties||[s]).forEach(i=>{(i===s||!r.has(i))&&r.set(i,o)})})}_animateOptions(e,n){const r=n.options,s=qS(e,r);if(!s)return[];const a=this._createAnimations(s,r);return r.$shared&&JS(e.options.$animations,r).then(()=>{e.options=r},()=>{}),a}_createAnimations(e,n){const r=this._properties,s=[],a=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"){s.push(...this._animateOptions(e,n));continue}const d=n[c];let u=a[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}a[c]=u=new ZS(f,e,c,d),s.push(u)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return zn.add(this._chart,r),!0}}function JS(t,e){const n=[],r=Object.keys(e);for(let s=0;s<r.length;s++){const a=t[r[s]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function qS(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 ip(t,e){const n=t&&t.options||{},r=n.reverse,s=n.min===void 0?e:0,a=n.max===void 0?e:0;return{start:r?a:s,end:r?s:a}}function $S(t,e,n){if(n===!1)return!1;const r=ip(t,n),s=ip(e,n);return{top:s.end,right:r.end,bottom:s.start,left:r.start}}function eO(t){let e,n,r,s;return ye(t)?(e=t.top,n=t.right,r=t.bottom,s=t.left):e=n=r=s=t,{top:e,right:n,bottom:r,left:s,disabled:t===!1}}function lp(t,e){const n=[],r=t._getSortedDatasetMetas(e);let s,a;for(s=0,a=r.length;s<a;++s)n.push(r[s].index);return n}function cp(t,e,n,r={}){const s=t.keys,a=r.mode==="single";let o,i,l,c;if(e===null)return;let d=!1;for(o=0,i=s.length;o<i;++o){if(l=+s[o],l===n){if(d=!0,r.all)continue;break}c=t.values[l],Bn(c)&&(a||e===0||Nm(e)===Nm(c))&&(e+=c)}return!d&&!r.all?0:e}function tO(t,e){const{iScale:n,vScale:r}=e,s=n.axis==="x"?"x":"y",a=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]={[s]:d,[a]:t[d]};return i}function nd(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function nO(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function rO(t){const{min:e,max:n,minDefined:r,maxDefined:s}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function sO(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function dp(t,e,n,r){for(const s of e.getMatchingVisibleMetas(r).reverse()){const a=t[s.index];if(n&&a>0||!n&&a<0)return s.index}return null}function up(t,e){const{chart:n,_cachedMeta:r}=t,s=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:i}=r,l=a.axis,c=o.axis,d=nO(a,o,r),u=e.length;let f;for(let h=0;h<u;++h){const m=e[h],{[l]:p,[c]:b}=m,v=m._stacks||(m._stacks={});f=v[c]=sO(s,d,p),f[i]=b,f._top=dp(f,o,!0,r.type),f._bottom=dp(f,o,!1,r.type);const x=f._visualValues||(f._visualValues={});x[i]=b}}function rd(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function aO(t,e){return ws(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function oO(t,e,n){return ws(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function wa(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const s of e){const a=s._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const sd=t=>t==="reset"||t==="none",fp=(t,e)=>e?t:Object.assign({},t),iO=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:lp(n,!0),values:null};class va{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=nd(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&&wa(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),s=(u,f,h,m)=>u==="x"?f:u==="r"?m:h,a=n.xAxisID=De(r.xAxisID,rd(e,"x")),o=n.yAxisID=De(r.yAxisID,rd(e,"y")),i=n.rAxisID=De(r.rAxisID,rd(e,"r")),l=n.indexAxis,c=n.iAxisID=s(l,a,o,i),d=n.vAxisID=s(l,o,a,i);n.xScale=this.getScaleForId(a),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&&Am(this._data,this),e._stacked&&wa(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(ye(n)){const s=this._cachedMeta;this._data=tO(n,s)}else if(r!==n){if(r){Am(r,this);const s=this._cachedMeta;wa(s),s._parsed=[]}n&&Object.isExtensible(n)&&iS(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 s=!1;this._dataCheck();const a=n._stacked;n._stacked=nd(n.vScale,n),n.stack!==r.stack&&(s=!0,wa(n),n.stack=r.stack),this._resyncElements(e),(s||a!==n._stacked)&&(up(this,n._parsed),n._stacked=nd(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:s}=this,{iScale:a,_stacked:o}=r,i=a.axis;let l=e===0&&n===s.length?!0:r._sorted,c=e>0&&r._parsed[e-1],d,u,f;if(this._parsing===!1)r._parsed=s,r._sorted=!0,f=s;else{gt(s[e])?f=this.parseArrayData(r,s,e,n):ye(s[e])?f=this.parseObjectData(r,s,e,n):f=this.parsePrimitiveData(r,s,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&&up(this,f)}parsePrimitiveData(e,n,r,s){const{iScale:a,vScale:o}=e,i=a.axis,l=o.axis,c=a.getLabels(),d=a===o,u=new Array(s);let f,h,m;for(f=0,h=s;f<h;++f)m=f+r,u[f]={[i]:d||a.parse(c[m],m),[l]:o.parse(n[m],m)};return u}parseArrayData(e,n,r,s){const{xScale:a,yScale:o}=e,i=new Array(s);let l,c,d,u;for(l=0,c=s;l<c;++l)d=l+r,u=n[d],i[l]={x:a.parse(u[0],d),y:o.parse(u[1],d)};return i}parseObjectData(e,n,r,s){const{xScale:a,yScale:o}=e,{xAxisKey:i="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let d,u,f,h;for(d=0,u=s;d<u;++d)f=d+r,h=n[f],c[d]={x:a.parse(ga(h,i),f),y:o.parse(ga(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const s=this.chart,a=this._cachedMeta,o=n[e.axis],i={keys:lp(s,!0),values:n._stacks[e.axis]._visualValues};return cp(i,o,a.index,{mode:r})}updateRangeFromParsed(e,n,r,s){const a=r[n.axis];let o=a===null?NaN:a;const i=s&&r._stacks[n.axis];s&&i&&(s.values=i,o=cp(s,a,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,s=r._parsed,a=r._sorted&&e===r.iScale,o=s.length,i=this._getOtherScale(e),l=iO(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=rO(i);let f,h;function m(){h=s[f];const p=h[i.axis];return!Bn(h[e.axis])||d>p||u<p}for(f=0;f<o&&!(!m()&&(this.updateRangeFromParsed(c,e,h,l),a));++f);if(a){for(f=o-1;f>=0;--f)if(!m()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let s,a,o;for(s=0,a=n.length;s<a;++s)o=n[s][e.axis],Bn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,s=n.vScale,a=this.getParsed(e);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:s?""+s.getLabelForValue(a[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=eO(De(this.options.clip,$S(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,s=r.data||[],a=n.chartArea,o=[],i=this._drawStart||0,l=this._drawCount||s.length-i,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,a,i,l),d=i;d<i+l;++d){const u=s[d];u.hidden||(u.active&&c?o.push(u):u.draw(e,a))}for(d=0;d<o.length;++d)o[d].draw(e,a)}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 s=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];a=o.$context||(o.$context=oO(this.getContext(),e,o)),a.parsed=this.getParsed(e),a.raw=s.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=aO(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}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 s=n==="active",a=this._cachedDataOpts,o=e+"-"+n,i=a[o],l=this.enableOptionSharing&&Go(r);if(i)return fp(i,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=s?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(Ge.elements[e]),m=()=>this.getContext(r,s,n),p=c.resolveNamedOptions(f,h,m,u);return p.$shared&&(p.$shared=l,a[o]=Object.freeze(fp(p,l))),p}_resolveAnimations(e,n,r){const s=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,i=a[o];if(i)return i;let l;if(s.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 op(s,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||sd(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),s=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==s;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(e,n,r,s){sd(s)?Object.assign(e,r):this._resolveAnimations(n,s).update(e,r)}updateSharedOptions(e,n,r){e&&!sd(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,s){e.active=s;const a=this.getStyle(n,s);this._resolveAnimations(n,r,s).update(e,{options:!s&&this.getSharedOptions(a)||a})}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 s=r.length,a=n.length,o=Math.min(a,s);o&&this.parse(0,o),a>s?this._insertElements(s,a-s,e):a<s&&this._removeElements(a,s-a)}_insertElements(e,n,r=!0){const s=this._cachedMeta,a=s.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(a),i=e;i<o;++i)a[i]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(e,n),r&&this.updateElements(a,e,n,"reset")}updateElements(e,n,r,s){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const s=r._parsed.splice(e,n);r._stacked&&wa(r,s)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,s]=e;this[n](r,s)}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])}}$(va,"defaults",{}),$(va,"datasetElementType",null),$(va,"dataElementType",null);function lO(t,e,n){let r=1,s=1,a=0,o=0;if(e<tt){const i=t,l=i+e,c=Math.cos(i),d=Math.sin(i),u=Math.cos(l),f=Math.sin(l),h=(k,w,y)=>Jo(k,i,l,!0)?1:Math.max(w,w*n,y,y*n),m=(k,w,y)=>Jo(k,i,l,!0)?-1:Math.min(w,w*n,y,y*n),p=h(0,c,u),b=h(ot,d,f),v=m(lt,c,u),x=m(lt+ot,d,f);r=(p-v)/2,s=(b-x)/2,a=-(p+v)/2,o=-(b+x)/2}return{ratioX:r,ratioY:s,offsetX:a,offsetY:o}}class xa extends va{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,s=this._cachedMeta;if(this._parsing===!1)s._parsed=r;else{let a=l=>+r[l];if(ye(r[e])){const{key:l="value"}=this._parsing;a=c=>+ga(r[c],l)}let o,i;for(o=e,i=e+n;o<i;++o)s._parsed[o]=a(o)}}_getRotation(){return Tr(this.options.rotation-90)}_getCircumference(){return Tr(this.options.circumference)}_getRotationExtents(){let e=tt,n=-tt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const s=this.chart.getDatasetMeta(r).controller,a=s._getRotation(),o=s._getCircumference();e=Math.min(e,a),n=Math.max(n,a+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,s=this._cachedMeta,a=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,i=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(K_(this.options.cutout,i),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:m,offsetY:p}=lO(u,d,l),b=(r.width-o)/f,v=(r.height-o)/h,x=Math.max(Math.min(b,v)/2,0),k=Dm(this.options.radius,x),w=Math.max(k*l,0),y=(k-w)/this._getVisibleDatasetWeightTotal();this.offsetX=m*k,this.offsetY=p*k,s.total=this.calculateTotal(),this.outerRadius=k-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*c,0),this.updateElements(a,0,a.length,e)}_circumference(e,n){const r=this.options,s=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*a/tt)}updateElements(e,n,r,s){const a=s==="reset",o=this.chart,i=o.chartArea,c=o.options.animation,d=(i.left+i.right)/2,u=(i.top+i.bottom)/2,f=a&&c.animateScale,h=f?0:this.innerRadius,m=f?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(n,s);let v=this._getRotation(),x;for(x=0;x<n;++x)v+=this._circumference(x,a);for(x=n;x<n+r;++x){const k=this._circumference(x,a),w=e[x],y={x:d+this.offsetX,y:u+this.offsetY,startAngle:v,endAngle:v+k,circumference:k,outerRadius:m,innerRadius:h};b&&(y.options=p||this.resolveDataElementOptions(x,w.active?"active":s)),v+=k,this.updateElement(w,x,y,s)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,s;for(s=0;s<n.length;s++){const a=e._parsed[s];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?tt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,s=r.data.labels||[],a=pS(n._parsed[e],r.options.locale);return{label:s[e]||"",value:a}}getMaxBorderWidth(e){let n=0;const r=this.chart;let s,a,o,i,l;if(!e){for(s=0,a=r.data.datasets.length;s<a;++s)if(r.isDatasetVisible(s)){o=r.getDatasetMeta(s),e=o.data,i=o.controller;break}}if(!e)return 0;for(s=0,a=e.length;s<a;++s)l=i.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,s=e.length;r<s;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.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(De(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}$(xa,"id","doughnut"),$(xa,"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"}),$(xa,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),$(xa,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:s}}=e.legend.options;return n.labels.map((a,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:a,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,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 Lr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ad{constructor(e){$(this,"options");this.options=e||{}}static override(e){Object.assign(ad.prototype,e)}init(){}formats(){return Lr()}parse(){return Lr()}format(){return Lr()}add(){return Lr()}diff(){return Lr()}startOf(){return Lr()}endOf(){return Lr()}}var cO={_date:ad};function dO(t,e,n,r){const{controller:s,data:a,_sorted:o}=t,i=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(i&&e===i.axis&&e!=="r"&&o&&a.length){const c=i._reversePixels?aS:Yc;if(r){if(s._sharedOptions){const d=a[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(a,e,n-u),h=c(a,e,n+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(a,e,n);if(l){const{vScale:u}=s._cachedMeta,{_parsed:f}=t,h=f.slice(0,d.lo+1).reverse().findIndex(p=>!yt(p[u.axis]));d.lo-=Math.max(0,h);const m=f.slice(d.hi).findIndex(p=>!yt(p[u.axis]));d.hi+=Math.max(0,m)}return d}}return{lo:0,hi:a.length-1}}function si(t,e,n,r,s){const a=t.getSortedVisibleDatasetMetas(),o=n[e];for(let i=0,l=a.length;i<l;++i){const{index:c,data:d}=a[i],{lo:u,hi:f}=dO(a[i],e,o,s);for(let h=u;h<=f;++h){const m=d[h];m.skip||r(m,c,h)}}}function uO(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,s){const a=e?Math.abs(r.x-s.x):0,o=n?Math.abs(r.y-s.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function od(t,e,n,r,s){const a=[];return!s&&!t.isPointInArea(e)||si(t,n,e,function(i,l,c){!s&&!Gm(i,t.chartArea,0)||i.inRange(e.x,e.y,r)&&a.push({element:i,datasetIndex:l,index:c})},!0),a}function fO(t,e,n,r){let s=[];function a(o,i,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:u}=jm(o,{x:e.x,y:e.y});Jo(u,c,d)&&s.push({element:o,datasetIndex:i,index:l})}return si(t,n,e,a),s}function hO(t,e,n,r,s,a){let o=[];const i=uO(n);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(e.x,e.y,s);if(r&&!h)return;const m=d.getCenterPoint(s);if(!(!!a||t.isPointInArea(m))&&!h)return;const b=i(e,m);b<l?(o=[{element:d,datasetIndex:u,index:f}],l=b):b===l&&o.push({element:d,datasetIndex:u,index:f})}return si(t,n,e,c),o}function id(t,e,n,r,s,a){return!a&&!t.isPointInArea(e)?[]:n==="r"&&!r?fO(t,e,n,s):hO(t,e,n,r,s,a)}function hp(t,e,n,r,s){const a=[],o=n==="x"?"inXRange":"inYRange";let i=!1;return si(t,n,e,(l,c,d)=>{l[o]&&l[o](e[n],s)&&(a.push({element:l,datasetIndex:c,index:d}),i=i||l.inRange(e.x,e.y,s))}),r&&!i?[]:a}var gO={modes:{index(t,e,n,r){const s=Rr(e,t),a=n.axis||"x",o=n.includeInvisible||!1,i=n.intersect?od(t,s,a,r,o):id(t,s,a,!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 s=Rr(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;let i=n.intersect?od(t,s,a,r,o):id(t,s,a,!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 s=Rr(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return od(t,s,a,r,o)},nearest(t,e,n,r){const s=Rr(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return id(t,s,a,n.intersect,r,o)},x(t,e,n,r){const s=Rr(e,t);return hp(t,s,"x",n.intersect,r)},y(t,e,n,r){const s=Rr(e,t);return hp(t,s,"y",n.intersect,r)}}};const gp=["left","top","right","bottom"];function ka(t,e){return t.filter(n=>n.pos===e)}function mp(t,e){return t.filter(n=>gp.indexOf(n.pos)===-1&&n.box.axis===e)}function _a(t,e){return t.sort((n,r)=>{const s=e?r:n,a=e?n:r;return s.weight===a.weight?s.index-a.index:s.weight-a.weight})}function mO(t){const e=[];let n,r,s,a,o,i;for(n=0,r=(t||[]).length;n<r;++n)s=t[n],{position:a,options:{stack:o,stackWeight:i=1}}=s,e.push({index:n,box:s,pos:a,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&a+o,stackWeight:i});return e}function pO(t){const e={};for(const n of t){const{stack:r,pos:s,stackWeight:a}=n;if(!r||!gp.includes(s))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return e}function bO(t,e){const n=pO(t),{vBoxMaxWidth:r,hBoxMaxHeight:s}=e;let a,o,i;for(a=0,o=t.length;a<o;++a){i=t[a];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=s):(i.width=r,i.height=d?d*s:l&&e.availableHeight)}return n}function yO(t){const e=mO(t),n=_a(e.filter(c=>c.box.fullSize),!0),r=_a(ka(e,"left"),!0),s=_a(ka(e,"right")),a=_a(ka(e,"top"),!0),o=_a(ka(e,"bottom")),i=mp(e,"x"),l=mp(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:s.concat(l).concat(o).concat(i),chartArea:ka(e,"chartArea"),vertical:r.concat(s).concat(l),horizontal:a.concat(o).concat(i)}}function pp(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function bp(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 wO(t,e,n,r){const{pos:s,box:a}=n,o=t.maxPadding;if(!ye(s)){n.size&&(t[s]-=n.size);const u=r[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?a.height:a.width),n.size=u.size/u.count,t[s]+=n.size}a.getPadding&&bp(o,a.getPadding());const i=Math.max(0,e.outerWidth-pp(o,t,"left","right")),l=Math.max(0,e.outerHeight-pp(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 vO(t){const e=t.maxPadding;function n(r){const s=Math.max(e[r]-t[r],0);return t[r]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function xO(t,e){const n=e.maxPadding;function r(s){const a={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{a[o]=Math.max(e[o],n[o])}),a}return r(t?["left","right"]:["top","bottom"])}function Sa(t,e,n,r){const s=[];let a,o,i,l,c,d;for(a=0,o=t.length,c=0;a<o;++a){i=t[a],l=i.box,l.update(i.width||e.w,i.height||e.h,xO(i.horizontal,e));const{same:u,other:f}=wO(e,n,i,r);c|=u&&s.length,d=d||f,l.fullSize||s.push(i)}return c&&Sa(s,e,n,r)||d}function ai(t,e,n,r,s){t.top=n,t.left=e,t.right=e+r,t.bottom=n+s,t.width=r,t.height=s}function yp(t,e,n,r){const s=n.padding;let{x:a,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;Go(c.start)&&(o=c.start),l.fullSize?ai(l,s.left,o,n.outerWidth-s.right-s.left,f):ai(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;Go(c.start)&&(a=c.start),l.fullSize?ai(l,a,s.top,f,n.outerHeight-s.bottom-s.top):ai(l,a,e.top+c.placed,f,u),c.start=a,c.placed+=u,a=l.right}}e.x=a,e.y=o}var lr={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 s=sn(t.options.layout.padding),a=Math.max(e-s.width,0),o=Math.max(n-s.height,0),i=yO(t.boxes),l=i.vertical,c=i.horizontal;Me(t.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});const d=l.reduce((p,b)=>b.box.options&&b.box.options.display===!1?p:p+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/d,hBoxMaxHeight:o/2}),f=Object.assign({},s);bp(f,sn(r));const h=Object.assign({maxPadding:f,w:a,h:o,x:s.left,y:s.top},s),m=bO(l.concat(c),u);Sa(i.fullSize,h,u,m),Sa(l,h,u,m),Sa(c,h,u,m)&&Sa(l,h,u,m),vO(h),yp(i.leftAndTop,h,u,m),h.x+=h.w,h.y+=h.h,yp(i.rightAndBottom,h,u,m),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Me(i.chartArea,p=>{const b=p.box;Object.assign(b,t.chartArea),b.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class wp{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,s){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):r)}}isAttached(e){return!0}updateConfig(e){}}class kO extends wp{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const oi="$chartjs",_O={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},vp=t=>t===null||t==="";function SO(t,e){const n=t.style,r=t.getAttribute("height"),s=t.getAttribute("width");if(t[oi]={initial:{height:r,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",vp(s)){const a=np(t,"width");a!==void 0&&(t.width=a)}if(vp(r))if(t.style.height==="")t.height=t.width/(e||2);else{const a=np(t,"height");a!==void 0&&(t.height=a)}return t}const xp=US?{passive:!0}:!1;function OO(t,e,n){t&&t.addEventListener(e,n,xp)}function CO(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,xp)}function DO(t,e){const n=_O[t.type]||t.type,{x:r,y:s}=Rr(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:s!==void 0?s:null}}function ii(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function MO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||ii(i.addedNodes,r),o=o&&!ii(i.removedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function EO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||ii(i.removedNodes,r),o=o&&!ii(i.addedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const Oa=new Map;let kp=0;function _p(){const t=window.devicePixelRatio;t!==kp&&(kp=t,Oa.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function PO(t,e){Oa.size||window.addEventListener("resize",_p),Oa.set(t,e)}function TO(t){Oa.delete(t),Oa.size||window.removeEventListener("resize",_p)}function NO(t,e,n){const r=t.canvas,s=r&&td(r);if(!s)return;const a=Lm((i,l)=>{const c=s.clientWidth;n(i,l),c<s.clientWidth&&n()},window),o=new ResizeObserver(i=>{const l=i[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||a(c,d)});return o.observe(s),PO(t,a),o}function ld(t,e,n){n&&n.disconnect(),e==="resize"&&TO(t)}function jO(t,e,n){const r=t.canvas,s=Lm(a=>{t.ctx!==null&&n(DO(a,t))},t);return OO(r,e,s),s}class IO extends wp{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(SO(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[oi])return!1;const r=n[oi].initial;["height","width"].forEach(a=>{const o=r[a];yt(o)?n.removeAttribute(a):n.setAttribute(a,o)});const s=r.style||{};return Object.keys(s).forEach(a=>{n.style[a]=s[a]}),n.width=n.width,delete n[oi],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:MO,detach:EO,resize:NO}[n]||jO;s[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),s=r[n];if(!s)return;({attach:ld,detach:ld,resize:ld}[n]||CO)(e,n,s),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,s){return VS(e,n,r,s)}isAttached(e){const n=e&&td(e);return!!(n&&n.isConnected)}}function AO(t){return!ed()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?kO:IO}let Ca=(Fl=class{constructor(){$(this,"x");$(this,"y");$(this,"active",!1);$(this,"options");$(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Zo(this.x)&&Zo(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const s={};return e.forEach(a=>{s[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),s}},$(Fl,"defaults",{}),$(Fl,"defaultRoutes"),Fl);function RO(t,e){const n=t.options.ticks,r=LO(t),s=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?WO(e):[],o=a.length,i=a[0],l=a[o-1],c=[];if(o>s)return BO(e,c,a,o/s),c;const d=FO(a,e,s);if(o>0){let u,f;const h=o>1?Math.round((l-i)/(o-1)):null;for(li(e,c,d,yt(h)?0:i-h,i),u=0,f=o-1;u<f;u++)li(e,c,d,a[u],a[u+1]);return li(e,c,d,l,yt(h)?e.length:l+h),c}return li(e,c,d),c}function LO(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(r,s))}function FO(t,e,n){const r=zO(t),s=e.length/n;if(!r)return Math.max(s,1);const a=eS(r);for(let o=0,i=a.length-1;o<i;o++){const l=a[o];if(l>s)return l}return Math.max(s,1)}function WO(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function BO(t,e,n,r){let s=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),s++,a=n[s*r])}function li(t,e,n,r,s){const a=De(r,0),o=Math.min(De(s,t.length),t.length);let i=0,l,c,d;for(n=Math.ceil(n),s&&(l=s-r,n=l/Math.floor(l/n)),d=a;d<0;)i++,d=Math.round(a+i*n);for(c=Math.max(a,0);c<o;c++)c===d&&(e.push(t[c]),i++,d=Math.round(a+i*n))}function zO(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 HO=t=>t==="left"?"right":t==="right"?"left":t,Sp=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Op=(t,e)=>Math.min(e||t,t);function Cp(t,e){const n=[],r=t.length/e,s=t.length;let a=0;for(;a<s;a+=r)n.push(t[Math.floor(a)]);return n}function YO(t,e,n){const r=t.ticks.length,s=Math.min(e,r-1),a=t._startPixel,o=t._endPixel,i=1e-6;let l=t.getPixelForTick(s),c;if(!(n&&(r===1?c=Math.max(l-a,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(s-1))/2,l+=s<e?c:-c,l<a-i||l>o+i)))return l}function VO(t,e){Me(t,n=>{const r=n.gc,s=r.length/2;let a;if(s>e){for(a=0;a<s;++a)delete n.data[r[a]];r.splice(0,s)}})}function Da(t){return t.drawTicks?t.tickLength:0}function Dp(t,e){if(!t.display)return 0;const n=Mt(t.font,e),r=sn(t.padding);return(gt(t.text)?t.text.length:1)*n.lineHeight+r.height}function UO(t,e){return ws(t,{scale:e,type:"scale"})}function XO(t,e,n){return ws(t,{tick:n,index:e,type:"tick"})}function KO(t,e,n){let r=Fm(t);return(n&&e!=="right"||!n&&e==="right")&&(r=HO(r)),r}function GO(t,e,n,r){const{top:s,left:a,bottom:o,right:i,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,f,h,m;const p=o-s,b=i-a;if(t.isHorizontal()){if(h=Lt(r,a,i),ye(n)){const v=Object.keys(n)[0],x=n[v];m=d[v].getPixelForValue(x)+p-e}else n==="center"?m=(c.bottom+c.top)/2+p-e:m=Sp(t,n,e);f=i-a}else{if(ye(n)){const v=Object.keys(n)[0],x=n[v];h=d[v].getPixelForValue(x)-b+e}else n==="center"?h=(c.left+c.right)/2-b+e:h=Sp(t,n,e);m=Lt(r,o,s),u=n==="left"?-ot:ot}return{titleX:h,titleY:m,maxWidth:f,rotation:u}}class ci extends Ca{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:s}=this;return e=bn(e,Number.POSITIVE_INFINITY),n=bn(n,Number.NEGATIVE_INFINITY),r=bn(r,Number.POSITIVE_INFINITY),s=bn(s,Number.NEGATIVE_INFINITY),{min:bn(e,r),max:bn(n,s),minDefined:Bn(e),maxDefined:Bn(n)}}getMinMax(e){let{min:n,max:r,minDefined:s,maxDefined:a}=this.getUserBounds(),o;if(s&&a)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),s||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=s&&n>r?n:r,{min:bn(n,bn(r,n)),max:bn(r,bn(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(){Le(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:s,grace:a,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=ES(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=i<this.ticks.length;this._convertTicksToLabels(l?Cp(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=RO(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(){Le(this.options.afterUpdate,[this])}beforeSetDimensions(){Le(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(){Le(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Le(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Le(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,s,a;for(r=0,s=e.length;r<s;r++)a=e[r],a.label=Le(n.callback,[a.value,r,e],this)}afterTickToLabelConversion(){Le(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Le(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=Op(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,a=n.maxRotation;let o=s,i,l,c;if(!this._isVisible()||!n.display||s>=a||r<=1||!this.isHorizontal()){this.labelRotation=s;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-Da(e.grid)-n.padding-Dp(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),o=nS(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(s,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Le(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Le(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:s,grid:a}}=this,o=this._isVisible(),i=this.isHorizontal();if(o){const l=Dp(s,n.options.font);if(i?(e.width=this.maxWidth,e.height=Da(a)+l):(e.height=this.maxHeight,e.width=Da(a)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=r.padding*2,m=Tr(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(i){const v=r.mirror?0:b*u.width+p*f.height;e.height=Math.min(this.maxHeight,e.height+v+h)}else{const v=r.mirror?0:p*u.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+v+h)}this._calculatePadding(c,d,b,p)}}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,s){const{ticks:{align:a,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=s*e.width,h=r*n.height):(f=r*e.height,h=s*n.width):a==="start"?h=n.width:a==="end"?f=e.width:a!=="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;a==="start"?(d=0,u=e.height):a==="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(){Le(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++)yt(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=Cp(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:s,_longestTextCache:a}=this,o=[],i=[],l=Math.floor(n/Op(n,r));let c=0,d=0,u,f,h,m,p,b,v,x,k,w,y;for(u=0;u<n;u+=l){if(m=e[u].label,p=this._resolveTickFontOptions(u),s.font=b=p.string,v=a[b]=a[b]||{data:{},gc:[]},x=p.lineHeight,k=w=0,!yt(m)&&!gt(m))k=Vm(s,v.data,v.gc,k,m),w=x;else if(gt(m))for(f=0,h=m.length;f<h;++f)y=m[f],!yt(y)&&!gt(y)&&(k=Vm(s,v.data,v.gc,k,y),w+=x);o.push(k),i.push(w),c=Math.max(k,c),d=Math.max(w,d)}VO(a,n);const S=o.indexOf(c),N=i.indexOf(d),D=T=>({width:o[T]||0,height:i[T]||0});return{first:D(0),last:D(n-1),widest:D(S),highest:D(N),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 sS(this._alignToPixels?Ir(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=XO(this.getContext(),e,r))}return this.$context||(this.$context=UO(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Tr(this.labelRotation),r=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=e.autoSkipPadding||0,i=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>i*s?i/r:l/s:l*s<i*r?l/r:i/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,s=this.options,{grid:a,position:o,border:i}=s,l=a.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=Da(a),h=[],m=i.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,v=function(F){return Ir(r,F,p)};let x,k,w,y,S,N,D,T,E,Y,L,O;if(o==="top")x=v(this.bottom),N=this.bottom-f,T=x-b,Y=v(e.top)+b,O=e.bottom;else if(o==="bottom")x=v(this.top),Y=e.top,O=v(e.bottom)-b,N=x+b,T=this.top+f;else if(o==="left")x=v(this.right),S=this.right-f,D=x-b,E=v(e.left)+b,L=e.right;else if(o==="right")x=v(this.left),E=e.left,L=v(e.right)-b,S=x+b,D=this.left+f;else if(n==="x"){if(o==="center")x=v((e.top+e.bottom)/2+.5);else if(ye(o)){const F=Object.keys(o)[0],U=o[F];x=v(this.chart.scales[F].getPixelForValue(U))}Y=e.top,O=e.bottom,N=x+b,T=N+f}else if(n==="y"){if(o==="center")x=v((e.left+e.right)/2);else if(ye(o)){const F=Object.keys(o)[0],U=o[F];x=v(this.chart.scales[F].getPixelForValue(U))}S=x-b,D=S-f,E=e.left,L=e.right}const C=De(s.ticks.maxTicksLimit,u),P=Math.max(1,Math.ceil(u/C));for(k=0;k<u;k+=P){const F=this.getContext(k),U=a.setContext(F),Z=i.setContext(F),ee=U.lineWidth,j=U.color,V=Z.dash||[],R=Z.dashOffset,A=U.tickWidth,I=U.tickColor,M=U.tickBorderDash||[],H=U.tickBorderDashOffset;w=YO(this,k,l),w!==void 0&&(y=Ir(r,w,ee),c?S=D=E=L=y:N=T=Y=O=y,h.push({tx1:S,ty1:N,tx2:D,ty2:T,x1:E,y1:Y,x2:L,y2:O,width:ee,color:j,borderDash:V,borderDashOffset:R,tickWidth:A,tickColor:I,tickBorderDash:M,tickBorderDashOffset:H}))}return this._ticksLength=u,this._borderValue=x,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:s,ticks:a}=r,o=this.isHorizontal(),i=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=a,f=Da(r.grid),h=f+d,m=u?-d:h,p=-Tr(this.labelRotation),b=[];let v,x,k,w,y,S,N,D,T,E,Y,L,O="middle";if(s==="top")S=this.bottom-m,N=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+m,N=this._getXAxisLabelAlignment();else if(s==="left"){const P=this._getYAxisLabelAlignment(f);N=P.textAlign,y=P.x}else if(s==="right"){const P=this._getYAxisLabelAlignment(f);N=P.textAlign,y=P.x}else if(n==="x"){if(s==="center")S=(e.top+e.bottom)/2+h;else if(ye(s)){const P=Object.keys(s)[0],F=s[P];S=this.chart.scales[P].getPixelForValue(F)+h}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")y=(e.left+e.right)/2-h;else if(ye(s)){const P=Object.keys(s)[0],F=s[P];y=this.chart.scales[P].getPixelForValue(F)}N=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?O="top":l==="end"&&(O="bottom"));const C=this._getLabelSizes();for(v=0,x=i.length;v<x;++v){k=i[v],w=k.label;const P=a.setContext(this.getContext(v));D=this.getPixelForTick(v)+a.labelOffset,T=this._resolveTickFontOptions(v),E=T.lineHeight,Y=gt(w)?w.length:1;const F=Y/2,U=P.color,Z=P.textStrokeColor,ee=P.textStrokeWidth;let j=N;o?(y=D,N==="inner"&&(v===x-1?j=this.options.reverse?"left":"right":v===0?j=this.options.reverse?"right":"left":j="center"),s==="top"?c==="near"||p!==0?L=-Y*E+E/2:c==="center"?L=-C.highest.height/2-F*E+E:L=-C.highest.height+E/2:c==="near"||p!==0?L=E/2:c==="center"?L=C.highest.height/2-F*E:L=C.highest.height-Y*E,u&&(L*=-1),p!==0&&!P.showLabelBackdrop&&(y+=E/2*Math.sin(p))):(S=D,L=(1-Y)*E/2);let V;if(P.showLabelBackdrop){const R=sn(P.backdropPadding),A=C.heights[v],I=C.widths[v];let M=L-R.top,H=0-R.left;switch(O){case"middle":M-=A/2;break;case"bottom":M-=A;break}switch(N){case"center":H-=I/2;break;case"right":H-=I;break;case"inner":v===x-1?H-=I:v>0&&(H-=I/2);break}V={left:H,top:M,width:I+R.width,height:A+R.height,color:P.backdropColor}}b.push({label:w,font:T,textOffset:L,options:{rotation:p,color:U,strokeColor:Z,strokeWidth:ee,textAlign:j,textBaseline:O,translation:[y,S],backdrop:V}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Tr(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:s,padding:a}}=this.options,o=this._getLabelSizes(),i=e+a,l=o.widest.width;let c,d;return n==="left"?s?(d=this.right+a,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"?s?(d=this.left+a,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:s,width:a,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,s,a,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(a=>a.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,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(a=0,o=s.length;a<o;++a){const l=s[a];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:s}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const i=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,f;this.isHorizontal()?(c=Ir(e,this.left,o)-o/2,d=Ir(e,this.right,i)+i/2,u=f=l):(u=Ir(e,this.top,o)-o/2,f=Ir(e,this.bottom,i)+i/2,c=d=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.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,s=this._computeLabelArea();s&&Kc(r,s);const a=this.getLabelItems(e);for(const o of a){const i=o.options,l=o.font,c=o.label,d=o.textOffset;$o(r,c,0,d,l,i)}s&&Gc(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:s}}=this;if(!r.display)return;const a=Mt(r.font),o=sn(r.padding),i=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||ye(n)?(l+=o.bottom,gt(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=GO(this,l,n,i);$o(e,r.text,0,0,a,{color:r.color,maxWidth:u,rotation:f,textAlign:KO(i,n,s),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=De(e.grid&&e.grid.z,-1),s=De(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==ci.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",s=[];let a,o;for(a=0,o=n.length;a<o;++a){const i=n[a];i[r]===this.id&&(!e||i.type===e)&&s.push(i)}return s}_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 di{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;JO(n)&&(r=this.register(n));const s=this.items,a=e.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in s||(s[a]=e,QO(e,o,r),this.override&&Ge.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,s=this.scope;r in n&&delete n[r],s&&r in Ge[s]&&(delete Ge[s][r],this.override&&delete jr[r])}}function QO(t,e,n){const r=fa(Object.create(null),[n?Ge.get(n):{},Ge.get(e),t.defaults]);Ge.set(e,r),t.defaultRoutes&&ZO(e,t.defaultRoutes),t.descriptors&&Ge.describe(e,t.descriptors)}function ZO(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),s=r.pop(),a=[t].concat(r).join("."),o=e[n].split("."),i=o.pop(),l=o.join(".");Ge.route(a,s,l,i)})}function JO(t){return"id"in t&&"defaults"in t}class qO{constructor(){this.controllers=new di(va,"datasets",!0),this.elements=new di(Ca,"elements"),this.plugins=new di(Object,"plugins"),this.scales=new di(ci,"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(s=>{const a=r||this._getRegistryForType(s);r||a.isForType(s)||a===this.plugins&&s.id?this._exec(e,a,s):Me(s,o=>{const i=r||this._getRegistryForType(o);this._exec(e,i,o)})})}_exec(e,n,r){const s=zc(e);Le(r["before"+s],[],r),n[e](r),Le(r["after"+s],[],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 s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return s}}var yn=new qO;class $O{constructor(){this._init=[]}notify(e,n,r,s){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const a=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(a,e,n,r);return n==="afterDestroy"&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,n,r,s){s=s||{};for(const a of e){const o=a.plugin,i=o[r],l=[n,s,a.options];if(Le(i,l,o)===!1&&s.cancelable)return!1}return!0}invalidate(){yt(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,s=De(r.options&&r.options.plugins,{}),a=eC(r);return s===!1&&!n?[]:nC(e,a,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,s=(a,o)=>a.filter(i=>!o.some(l=>i.plugin.id===l.plugin.id));this._notify(s(n,r),e,"stop"),this._notify(s(r,n),e,"start")}}function eC(t){const e={},n=[],r=Object.keys(yn.plugins.items);for(let a=0;a<r.length;a++)n.push(yn.getPlugin(r[a]));const s=t.plugins||[];for(let a=0;a<s.length;a++){const o=s[a];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function tC(t,e){return!e&&t===!1?null:t===!0?{}:t}function nC(t,{plugins:e,localIds:n},r,s){const a=[],o=t.getContext();for(const i of e){const l=i.id,c=tC(r[l],s);c!==null&&a.push({plugin:i,options:rC(t.config,{plugin:i,local:n[l]},c,o)})}return a}function rC(t,{plugin:e,local:n},r,s){const a=t.pluginScopeKeys(e),o=t.getOptionScopes(r,a);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function cd(t,e){const n=Ge.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function sC(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function aC(t,e){return t===e?"_index_":"_value_"}function Mp(t){if(t==="x"||t==="y"||t==="r")return t}function oC(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function dd(t,...e){if(Mp(t))return t;for(const n of e){const r=n.axis||oC(n.position)||t.length>1&&Mp(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Ep(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function iC(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 Ep(t,"x",n[0])||Ep(t,"y",n[0])}return{}}function lC(t,e){const n=jr[t.type]||{scales:{}},r=e.scales||{},s=cd(t.type,e),a=Object.create(null);return Object.keys(r).forEach(o=>{const i=r[o];if(!ye(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=dd(o,i,iC(o,t),Ge.scales[i.type]),c=aC(l,s),d=n.scales||{};a[o]=ha(Object.create(null),[{axis:l},i,d[l],d[c]])}),t.data.datasets.forEach(o=>{const i=o.type||t.type,l=o.indexAxis||cd(i,e),d=(jr[i]||{}).scales||{};Object.keys(d).forEach(u=>{const f=sC(u,l),h=o[f+"AxisID"]||f;a[h]=a[h]||Object.create(null),ha(a[h],[{axis:f},r[h],d[u]])})}),Object.keys(a).forEach(o=>{const i=a[o];ha(i,[Ge.scales[i.type],Ge.scale])}),a}function Pp(t){const e=t.options||(t.options={});e.plugins=De(e.plugins,{}),e.scales=lC(t,e)}function Tp(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function cC(t){return t=t||{},t.data=Tp(t.data),Pp(t),t}const Np=new Map,jp=new Set;function ui(t,e){let n=Np.get(t);return n||(n=e(),Np.set(t,n),jp.add(n)),n}const Ma=(t,e,n)=>{const r=ga(e,n);r!==void 0&&t.add(r)};class dC{constructor(e){this._config=cC(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=Tp(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(),Pp(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ui(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return ui(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return ui(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return ui(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let s=r.get(e);return(!s||n)&&(s=new Map,r.set(e,s)),s}getOptionScopes(e,n,r){const{options:s,type:a}=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=>Ma(l,e,u))),d.forEach(u=>Ma(l,s,u)),d.forEach(u=>Ma(l,jr[a]||{},u)),d.forEach(u=>Ma(l,Ge,u)),d.forEach(u=>Ma(l,Uc,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),jp.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,jr[n]||{},Ge.datasets[n]||{},{type:n},Ge,Uc]}resolveNamedOptions(e,n,r,s=[""]){const a={$shared:!0},{resolver:o,subPrefixes:i}=Ip(this._resolverCache,e,s);let l=o;if(fC(o,n)){a.$shared=!1,r=ir(r)?r():r;const c=this.createResolver(e,r,i);l=vs(o,r,c)}for(const c of n)a[c]=l[c];return a}createResolver(e,n,r=[""],s){const{resolver:a}=Ip(this._resolverCache,e,r);return ye(n)?vs(a,n,void 0,s):a}}function Ip(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const s=n.join();let a=r.get(s);return a||(a={resolver:Jc(e,n),subPrefixes:n.filter(i=>!i.toLowerCase().includes("hover"))},r.set(s,a)),a}const uC=t=>ye(t)&&Object.getOwnPropertyNames(t).some(e=>ir(t[e]));function fC(t,e){const{isScriptable:n,isIndexable:r}=Qm(t);for(const s of e){const a=n(s),o=r(s),i=(o||a)&&t[s];if(a&&(ir(i)||uC(i))||o&&gt(i))return!0}return!1}var hC="4.4.8";const gC=["top","bottom","left","right","chartArea"];function Ap(t,e){return t==="top"||t==="bottom"||gC.indexOf(t)===-1&&e==="x"}function Rp(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Lp(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Le(n&&n.onComplete,[t],e)}function mC(t){const e=t.chart,n=e.options.animation;Le(n&&n.onProgress,[t],e)}function Fp(t){return ed()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const fi={},Wp=t=>{const e=Fp(t);return Object.values(fi).filter(n=>n.canvas===e).pop()};function pC(t,e,n){const r=Object.keys(t);for(const s of r){const a=+s;if(a>=e){const o=t[s];delete t[s],(n>0||a>e)&&(t[a+n]=o)}}}function bC(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function hi(t,e,n){return t.options.clip?t[n]:e[n]}function yC(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:hi(n,e,"left"),right:hi(n,e,"right"),top:hi(r,e,"top"),bottom:hi(r,e,"bottom")}:e}let gi=(wr=class{static register(...e){yn.add(...e),Bp()}static unregister(...e){yn.remove(...e),Bp()}constructor(e,n){const r=this.config=new dC(n),s=Fp(e),a=Wp(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||AO(s)),this.platform.updateConfig(r);const i=this.platform.acquireContext(s,o.aspectRatio),l=i&&i.canvas,c=l&&l.height,d=l&&l.width;if(this.id=X_(),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 $O,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=cS(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],fi[this.id]=this,!i||!l){console.error("Failed to create chart: can't acquire context from the given item");return}zn.listen(this,"complete",Lp),zn.listen(this,"progress",mC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:s,_aspectRatio:a}=this;return yt(e)?n&&a?a:s?r/s: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 yn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():tp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Um(this.canvas,this.ctx),this}stop(){return zn.stop(this),this}resize(e,n){zn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,s=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,a),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,tp(this,i,!0)&&(this.notifyPlugins("resize",{size:o}),Le(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Me(n,(r,s)=>{r.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,s=Object.keys(r).reduce((o,i)=>(o[i]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const i=n[o],l=dd(o,i),c=l==="r",d=l==="x";return{options:i,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Me(a,o=>{const i=o.options,l=i.id,c=dd(l,i),d=De(i.type,o.dtype);(i.position===void 0||Ap(i.position,c)!==Ap(o.dposition))&&(i.position=o.dposition),s[l]=!0;let u=null;if(l in r&&r[l].type===d)u=r[l];else{const f=yn.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,e)}),Me(s,(o,i)=>{o||delete r[i]}),Me(r,o=>{lr.configure(this,o,o.options),lr.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((s,a)=>s.index-a.index),r>n){for(let s=n;s<r;++s)this._destroyDatasetMeta(s);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(Rp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,s)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,s;for(this._removeUnreferencedMetasets(),r=0,s=n.length;r<s;r++){const a=n[r];let o=this.getDatasetMeta(r);const i=a.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=a.indexAxis||cd(i,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=yn.getController(i),{datasetElementType:c,dataElementType:d}=Ge.datasets[i];Object.assign(l,{dataElementType:yn.getElement(d),datasetElementType:c&&yn.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Me(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()),s=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const a=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=!s&&a.indexOf(u)===-1;u.buildOrUpdateElements(f),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),s||Me(a,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Rp("z","_idx"));const{_active:i,_lastEvent:l}=this;l?this._eventHandler(l,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Me(this.scales,e=>{lr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!Pm(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:s,count:a}of n){const o=r==="_removeElements"?-a:a;pC(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(e.filter(o=>o[0]===a).map((o,i)=>i+","+o.splice(1).join(","))),s=r(0);for(let a=1;a<n;a++)if(!Pm(s,r(a)))return;return Array.from(s).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;lr.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Me(this.boxes,s=>{r&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),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,ir(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),s={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(r.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(zn.has(this)?this.attached&&!zn.running(this)&&zn.start(this):(this.draw(),Lp({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,s)}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 s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];(!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,s=!r.disabled,a=yC(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(s&&Kc(n,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),e.controller.draw(),s&&Gc(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return Gm(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,s){const a=gO.modes[n];return typeof a=="function"?a(this,e,r,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let s=r.filter(a=>a&&a._dataset===n).pop();return s||(s={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(s)),s}getContext(){return this.$context||(this.$context=ws(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 s=r?"show":"hide",a=this.getDatasetMeta(e),o=a.controller._resolveAnimations(void 0,s);Go(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(a,{visible:r}),this.update(i=>i.datasetIndex===e?s: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(),zn.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(),Um(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete fi[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=(a,o)=>{n.addEventListener(this,a,o),e[a]=o},s=(a,o,i)=>{a.offsetX=o,a.offsetY=i,this._eventHandler(a)};Me(this.options.events,a=>r(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},s=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const i=()=>{s("attach",i),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),r("attach",i)},n.isAttached(this.canvas)?i():o()}unbindEvents(){Me(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Me(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const s=r?"set":"remove";let a,o,i,l;for(n==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),i=0,l=e.length;i<l;++i){o=e[i];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:a,index:o})=>{const i=this.getDatasetMeta(a);if(!i)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:i.data[o],index:o}});!Xo(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 s=this.options.hover,a=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=a(n,e),i=r?e:a(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),i.length&&s.mode&&this.updateHoverStyle(i,s.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,s)===!1)return;const a=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,s),(a||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:s=[],options:a}=this,o=n,i=this._getActiveElements(e,s,r,o),l=q_(e),c=bC(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Le(a.onHover,[e,i,this],this),l&&Le(a.onClick,[e,i,this],this));const d=!Xo(i,s);return(d||n)&&(this._active=i,this._updateHoverStyles(i,s,n)),this._lastEvent=c,d}_getActiveElements(e,n,r,s){if(e.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,s)}},$(wr,"defaults",Ge),$(wr,"instances",fi),$(wr,"overrides",jr),$(wr,"registry",yn),$(wr,"version",hC),$(wr,"getChart",Wp),wr);function Bp(){return Me(gi.instances,t=>t._plugins.invalidate())}function wC(t,e,n){const{startAngle:r,pixelMargin:s,x:a,y:o,outerRadius:i,innerRadius:l}=e;let c=s/i;t.beginPath(),t.arc(a,o,i,r-c,n+c),l>s?(c=s/l,t.arc(a,o,l,n+c,r-c,!0)):t.arc(a,o,s,n+ot,r-ot),t.closePath(),t.clip()}function vC(t){return Zc(t,["outerStart","outerEnd","innerStart","innerEnd"])}function xC(t,e,n,r){const s=vC(t.options.borderRadius),a=(n-e)/2,o=Math.min(a,r*e/2),i=l=>{const c=(n-Math.min(a,l))*r/2;return Jt(l,0,Math.min(a,c))};return{outerStart:i(s.outerStart),outerEnd:i(s.outerEnd),innerStart:Jt(s.innerStart,0,o),innerEnd:Jt(s.innerEnd,0,o)}}function ks(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function mi(t,e,n,r,s,a){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 m=s-l;if(r){const P=d>0?d-r:0,F=u>0?u-r:0,U=(P+F)/2,Z=U!==0?m*U/(U+r):m;h=(m-Z)/2}const p=Math.max(.001,m*u-n/lt)/u,b=(m-p)/2,v=l+b+h,x=s-b-h,{outerStart:k,outerEnd:w,innerStart:y,innerEnd:S}=xC(e,f,u,x-v),N=u-k,D=u-w,T=v+k/N,E=x-w/D,Y=f+y,L=f+S,O=v+y/Y,C=x-S/L;if(t.beginPath(),a){const P=(T+E)/2;if(t.arc(o,i,u,T,P),t.arc(o,i,u,P,E),w>0){const ee=ks(D,E,o,i);t.arc(ee.x,ee.y,w,E,x+ot)}const F=ks(L,x,o,i);if(t.lineTo(F.x,F.y),S>0){const ee=ks(L,C,o,i);t.arc(ee.x,ee.y,S,x+ot,C+Math.PI)}const U=(x-S/f+(v+y/f))/2;if(t.arc(o,i,f,x-S/f,U,!0),t.arc(o,i,f,U,v+y/f,!0),y>0){const ee=ks(Y,O,o,i);t.arc(ee.x,ee.y,y,O+Math.PI,v-ot)}const Z=ks(N,v,o,i);if(t.lineTo(Z.x,Z.y),k>0){const ee=ks(N,T,o,i);t.arc(ee.x,ee.y,k,v-ot,T)}}else{t.moveTo(o,i);const P=Math.cos(T)*u+o,F=Math.sin(T)*u+i;t.lineTo(P,F);const U=Math.cos(E)*u+o,Z=Math.sin(E)*u+i;t.lineTo(U,Z)}t.closePath()}function kC(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i}=e;let l=e.endAngle;if(a){mi(t,e,n,r,l,s);for(let c=0;c<a;++c)t.fill();isNaN(i)||(l=o+(i%tt||tt))}return mi(t,e,n,r,l,s),t.fill(),l}function _C(t,e,n,r,s){const{fullCircles:a,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 m=e.endAngle;if(a){mi(t,e,n,r,m,s);for(let p=0;p<a;++p)t.stroke();isNaN(i)||(m=o+(i%tt||tt))}h&&wC(t,e,m),a||(mi(t,e,n,r,m,s),t.stroke())}class Ea extends Ca{constructor(n){super();$(this,"circumference");$(this,"endAngle");$(this,"fullCircles");$(this,"innerRadius");$(this,"outerRadius");$(this,"pixelMargin");$(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,s){const a=this.getProps(["x","y"],s),{angle:o,distance:i}=jm(a,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),h=(this.options.spacing+this.options.borderWidth)/2,m=De(f,c-l),p=Jo(o,l,c)&&l!==c,b=m>=tt||p,v=ma(i,d+h,u+h);return b&&v}getCenterPoint(n){const{x:r,y:s,startAngle:a,endAngle:o,innerRadius:i,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,u=(a+o)/2,f=(i+l+d+c)/2;return{x:r+Math.cos(u)*f,y:s+Math.sin(u)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:s}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,i=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=s>tt?Math.floor(s/tt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const c=1-Math.sin(Math.min(lt,s||0)),d=a*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,kC(n,this,d,o,i),_C(n,this,d,o,i),n.restore()}}$(Ea,"id","arc"),$(Ea,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),$(Ea,"defaultRoutes",{backgroundColor:"backgroundColor"}),$(Ea,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});const zp=(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)}},SC=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Hp extends Ca{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=Le(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,s)=>e.sort(r,s,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,s=Mt(r.font),a=s.size,o=this._computeTitleHeight(),{boxWidth:i,itemHeight:l}=zp(r,a);let c,d;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,a,i,l)+10):(d=this.maxHeight,c=this._fitCols(o,s,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,s){const{ctx:a,maxWidth:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=s+i;let u=e;a.textAlign="left",a.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((m,p)=>{const b=r+n/2+a.measureText(m.text).width;(p===0||c[c.length-1]+b+2*i>o)&&(u+=d,c[c.length-(p>0?0:1)]=0,h+=d,f++),l[p]={left:0,top:h,row:f,width:b,height:s},c[c.length-1]+=b+i}),u}_fitCols(e,n,r,s){const{ctx:a,maxHeight:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=i,f=0,h=0,m=0,p=0;return this.legendItems.forEach((b,v)=>{const{itemWidth:x,itemHeight:k}=OC(r,n,a,b,s);v>0&&h+k+2*i>d&&(u+=f+i,c.push({width:f,height:h}),m+=f+i,p++,f=h=0),l[v]={left:m,top:h,col:p,width:x,height:k},f=Math.max(f,x),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:s},rtl:a}}=this,o=xs(a,this.left,this.width);if(this.isHorizontal()){let i=0,l=Lt(r,this.left+s,this.right-this.lineWidths[i]);for(const c of n)i!==c.row&&(i=c.row,l=Lt(r,this.left+s,this.right-this.lineWidths[i])),c.top+=this.top+e+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let i=0,l=Lt(r,this.top+e+s,this.bottom-this.columnSizes[i].height);for(const c of n)c.col!==i&&(i=c.col,l=Lt(r,this.top+e+s,this.bottom-this.columnSizes[i].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Kc(e,this),this._draw(),Gc(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:s}=this,{align:a,labels:o}=e,i=Ge.color,l=xs(e.rtl,this.left,this.width),c=Mt(o.font),{padding:d}=o,u=c.size,f=u/2;let h;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=zp(o,u),v=function(S,N,D){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;s.save();const T=De(D.lineWidth,1);if(s.fillStyle=De(D.fillStyle,i),s.lineCap=De(D.lineCap,"butt"),s.lineDashOffset=De(D.lineDashOffset,0),s.lineJoin=De(D.lineJoin,"miter"),s.lineWidth=T,s.strokeStyle=De(D.strokeStyle,i),s.setLineDash(De(D.lineDash,[])),o.usePointStyle){const E={radius:p*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:T},Y=l.xPlus(S,m/2),L=N+f;Km(s,E,Y,L,o.pointStyleWidth&&m)}else{const E=N+Math.max((u-p)/2,0),Y=l.leftForLtr(S,m),L=ya(D.borderRadius);s.beginPath(),Object.values(L).some(O=>O!==0)?Qc(s,{x:Y,y:E,w:m,h:p,radius:L}):s.rect(Y,E,m,p),s.fill(),T!==0&&s.stroke()}s.restore()},x=function(S,N,D){$o(s,D.text,S,N+b/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},k=this.isHorizontal(),w=this._computeTitleHeight();k?h={x:Lt(a,this.left+d,this.right-r[0]),y:this.top+d+w,line:0}:h={x:this.left+d,y:Lt(a,this.top+w+d,this.bottom-n[0].height),line:0},rp(this.ctx,e.textDirection);const y=b+d;this.legendItems.forEach((S,N)=>{s.strokeStyle=S.fontColor,s.fillStyle=S.fontColor;const D=s.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=o.textAlign)),E=m+f+D;let Y=h.x,L=h.y;l.setWidth(this.width),k?N>0&&Y+E+d>this.right&&(L=h.y+=y,h.line++,Y=h.x=Lt(a,this.left+d,this.right-r[h.line])):N>0&&L+y>this.bottom&&(Y=h.x=Y+n[h.line].width+d,h.line++,L=h.y=Lt(a,this.top+w+d,this.bottom-n[h.line].height));const O=l.x(Y);if(v(O,L,S),Y=dS(T,Y+m+f,k?Y+E:this.right,e.rtl),x(l.x(Y),L,S),k)h.x+=E+d;else if(typeof S.text!="string"){const C=c.lineHeight;h.y+=Yp(S,C)+d}else h.y+=y}),sp(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Mt(n.font),s=sn(n.padding);if(!n.display)return;const a=xs(e.rtl,this.left,this.width),o=this.ctx,i=n.position,l=r.size/2,c=s.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=Lt(e.align,u,this.right-f);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);d=c+Lt(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const h=Lt(i,u,u+f);o.textAlign=a.textAlign(Fm(i)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,$o(o,n.text,h,d,r)}_computeTitleHeight(){const e=this.options.title,n=Mt(e.font),r=sn(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,s,a;if(ma(e,this.left,this.right)&&ma(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(s=a[r],ma(e,s.left,s.left+s.width)&&ma(n,s.top,s.top+s.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!MC(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,a=SC(s,r);s&&!a&&Le(n.onLeave,[e,s,this],this),this._hoveredItem=r,r&&!a&&Le(n.onHover,[e,r,this],this)}else r&&Le(n.onClick,[e,r,this],this)}}function OC(t,e,n,r,s){const a=CC(r,t,e,n),o=DC(s,r,e.lineHeight);return{itemWidth:a,itemHeight:o}}function CC(t,e,n,r){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((a,o)=>a.length>o.length?a:o)),e+n.size/2+r.measureText(s).width}function DC(t,e,n){let r=t;return typeof e.text!="string"&&(r=Yp(e,n)),r}function Yp(t,e){const n=t.text?t.text.length:0;return e*n}function MC(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var EC={id:"legend",_element:Hp,start(t,e,n){const r=t.legend=new Hp({ctx:t.ctx,options:n,chart:t});lr.configure(t,r,n),lr.addBox(t,r)},stop(t){lr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;lr.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,s=n.chart;s.isDatasetVisible(r)?(s.hide(r),e.hidden=!0):(s.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:s,color:a,useBorderRadius:o,borderRadius:i}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=sn(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:a,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:s||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 Pa={average(t){if(!t.length)return!1;let e,n,r=new Set,s=0,a=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),s+=l.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((i,l)=>i+l)/r.size,y:s/a}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,s=Number.POSITIVE_INFINITY,a,o,i;for(a=0,o=t.length;a<o;++a){const l=t[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=rS(e,c);d<s&&(s=d,i=l)}}if(i){const l=i.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function wn(t,e){return e&&(gt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Hn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
23
+ */class eO{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,s){const a=n.listeners[s],o=n.duration;a.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=Wm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,s)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,i=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),i=!0):(a[o]=a[a.length-1],a.pop());i&&(s.draw(),this._notify(s,r,e,"progress")),a.length||(r.running=!1,this._notify(s,r,e,"complete"),r.initial=!1),n+=a.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,s)=>Math.max(r,s._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 s=r.length-1;for(;s>=0;--s)r[s].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Hn=new eO;const lp="transparent",tO={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=Um(t||lp),s=r.valid&&Um(e||lp);return s&&s.valid?s.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class nO{constructor(e,n,r,s){const a=n[r];s=ai([e.to,s,a,e.from]);const o=ai([e.from,a,s]);this._active=!0,this._fn=e.fn||tO[e.type||typeof o],this._easing=wa[e.easing]||wa.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=s,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const s=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=ai([e.to,n,s,e.from]),this._from=ai([e.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,s=this._prop,a=this._from,o=this._loop,i=this._to;let l;if(this._active=a!==i&&(o||n<r),!this._active){this._target[s]=i,this._notify(!0);return}if(n<0){this._target[s]=a;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(a,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 s=0;s<r.length;s++)r[s][n]()}}class cp{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!ye(e))return;const n=Object.keys(Qe.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const a=e[s];if(!ye(a))return;const o={};for(const i of n)o[i]=a[i];(gt(a.properties)&&a.properties||[s]).forEach(i=>{(i===s||!r.has(i))&&r.set(i,o)})})}_animateOptions(e,n){const r=n.options,s=sO(e,r);if(!s)return[];const a=this._createAnimations(s,r);return r.$shared&&rO(e.options.$animations,r).then(()=>{e.options=r},()=>{}),a}_createAnimations(e,n){const r=this._properties,s=[],a=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"){s.push(...this._animateOptions(e,n));continue}const d=n[c];let u=a[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}a[c]=u=new nO(f,e,c,d),s.push(u)}return s}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return Hn.add(this._chart,r),!0}}function rO(t,e){const n=[],r=Object.keys(e);for(let s=0;s<r.length;s++){const a=t[r[s]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}function sO(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 dp(t,e){const n=t&&t.options||{},r=n.reverse,s=n.min===void 0?e:0,a=n.max===void 0?e:0;return{start:r?a:s,end:r?s:a}}function aO(t,e,n){if(n===!1)return!1;const r=dp(t,n),s=dp(e,n);return{top:s.end,right:r.end,bottom:s.start,left:r.start}}function oO(t){let e,n,r,s;return ye(t)?(e=t.top,n=t.right,r=t.bottom,s=t.left):e=n=r=s=t,{top:e,right:n,bottom:r,left:s,disabled:t===!1}}function up(t,e){const n=[],r=t._getSortedDatasetMetas(e);let s,a;for(s=0,a=r.length;s<a;++s)n.push(r[s].index);return n}function fp(t,e,n,r={}){const s=t.keys,a=r.mode==="single";let o,i,l,c;if(e===null)return;let d=!1;for(o=0,i=s.length;o<i;++o){if(l=+s[o],l===n){if(d=!0,r.all)continue;break}c=t.values[l],zn(c)&&(a||e===0||Am(e)===Am(c))&&(e+=c)}return!d&&!r.all?0:e}function iO(t,e){const{iScale:n,vScale:r}=e,s=n.axis==="x"?"x":"y",a=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]={[s]:d,[a]:t[d]};return i}function sd(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function lO(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function cO(t){const{min:e,max:n,minDefined:r,maxDefined:s}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function dO(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function hp(t,e,n,r){for(const s of e.getMatchingVisibleMetas(r).reverse()){const a=t[s.index];if(n&&a>0||!n&&a<0)return s.index}return null}function gp(t,e){const{chart:n,_cachedMeta:r}=t,s=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:i}=r,l=a.axis,c=o.axis,d=lO(a,o,r),u=e.length;let f;for(let h=0;h<u;++h){const p=e[h],{[l]:m,[c]:b}=p,y=p._stacks||(p._stacks={});f=y[c]=dO(s,d,m),f[i]=b,f._top=hp(f,o,!0,r.type),f._bottom=hp(f,o,!1,r.type);const x=f._visualValues||(f._visualValues={});x[i]=b}}function ad(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function uO(t,e){return xs(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function fO(t,e,n){return xs(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function ka(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const s of e){const a=s._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const od=t=>t==="reset"||t==="none",mp=(t,e)=>e?t:Object.assign({},t),hO=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:up(n,!0),values:null};class _a{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=sd(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&&ka(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),s=(u,f,h,p)=>u==="x"?f:u==="r"?p:h,a=n.xAxisID=De(r.xAxisID,ad(e,"x")),o=n.yAxisID=De(r.yAxisID,ad(e,"y")),i=n.rAxisID=De(r.rAxisID,ad(e,"r")),l=n.indexAxis,c=n.iAxisID=s(l,a,o,i),d=n.vAxisID=s(l,o,a,i);n.xScale=this.getScaleForId(a),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&&Fm(this._data,this),e._stacked&&ka(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(ye(n)){const s=this._cachedMeta;this._data=iO(n,s)}else if(r!==n){if(r){Fm(r,this);const s=this._cachedMeta;ka(s),s._parsed=[]}n&&Object.isExtensible(n)&&uS(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 s=!1;this._dataCheck();const a=n._stacked;n._stacked=sd(n.vScale,n),n.stack!==r.stack&&(s=!0,ka(n),n.stack=r.stack),this._resyncElements(e),(s||a!==n._stacked)&&(gp(this,n._parsed),n._stacked=sd(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:s}=this,{iScale:a,_stacked:o}=r,i=a.axis;let l=e===0&&n===s.length?!0:r._sorted,c=e>0&&r._parsed[e-1],d,u,f;if(this._parsing===!1)r._parsed=s,r._sorted=!0,f=s;else{gt(s[e])?f=this.parseArrayData(r,s,e,n):ye(s[e])?f=this.parseObjectData(r,s,e,n):f=this.parsePrimitiveData(r,s,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&&gp(this,f)}parsePrimitiveData(e,n,r,s){const{iScale:a,vScale:o}=e,i=a.axis,l=o.axis,c=a.getLabels(),d=a===o,u=new Array(s);let f,h,p;for(f=0,h=s;f<h;++f)p=f+r,u[f]={[i]:d||a.parse(c[p],p),[l]:o.parse(n[p],p)};return u}parseArrayData(e,n,r,s){const{xScale:a,yScale:o}=e,i=new Array(s);let l,c,d,u;for(l=0,c=s;l<c;++l)d=l+r,u=n[d],i[l]={x:a.parse(u[0],d),y:o.parse(u[1],d)};return i}parseObjectData(e,n,r,s){const{xScale:a,yScale:o}=e,{xAxisKey:i="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let d,u,f,h;for(d=0,u=s;d<u;++d)f=d+r,h=n[f],c[d]={x:a.parse(ba(h,i),f),y:o.parse(ba(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const s=this.chart,a=this._cachedMeta,o=n[e.axis],i={keys:up(s,!0),values:n._stacks[e.axis]._visualValues};return fp(i,o,a.index,{mode:r})}updateRangeFromParsed(e,n,r,s){const a=r[n.axis];let o=a===null?NaN:a;const i=s&&r._stacks[n.axis];s&&i&&(s.values=i,o=fp(s,a,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,s=r._parsed,a=r._sorted&&e===r.iScale,o=s.length,i=this._getOtherScale(e),l=hO(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=cO(i);let f,h;function p(){h=s[f];const m=h[i.axis];return!zn(h[e.axis])||d>m||u<m}for(f=0;f<o&&!(!p()&&(this.updateRangeFromParsed(c,e,h,l),a));++f);if(a){for(f=o-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let s,a,o;for(s=0,a=n.length;s<a;++s)o=n[s][e.axis],zn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,s=n.vScale,a=this.getParsed(e);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:s?""+s.getLabelForValue(a[s.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=oO(De(this.options.clip,aO(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,s=r.data||[],a=n.chartArea,o=[],i=this._drawStart||0,l=this._drawCount||s.length-i,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,a,i,l),d=i;d<i+l;++d){const u=s[d];u.hidden||(u.active&&c?o.push(u):u.draw(e,a))}for(d=0;d<o.length;++d)o[d].draw(e,a)}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 s=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];a=o.$context||(o.$context=fO(this.getContext(),e,o)),a.parsed=this.getParsed(e),a.raw=s.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=uO(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!n,a.mode=r,a}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 s=n==="active",a=this._cachedDataOpts,o=e+"-"+n,i=a[o],l=this.enableOptionSharing&&$o(r);if(i)return mp(i,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=s?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(Qe.elements[e]),p=()=>this.getContext(r,s,n),m=c.resolveNamedOptions(f,h,p,u);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(mp(m,l))),m}_resolveAnimations(e,n,r){const s=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,i=a[o];if(i)return i;let l;if(s.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 cp(s,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||od(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),s=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==s;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(e,n,r,s){od(s)?Object.assign(e,r):this._resolveAnimations(n,s).update(e,r)}updateSharedOptions(e,n,r){e&&!od(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,s){e.active=s;const a=this.getStyle(n,s);this._resolveAnimations(n,r,s).update(e,{options:!s&&this.getSharedOptions(a)||a})}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 s=r.length,a=n.length,o=Math.min(a,s);o&&this.parse(0,o),a>s?this._insertElements(s,a-s,e):a<s&&this._removeElements(a,s-a)}_insertElements(e,n,r=!0){const s=this._cachedMeta,a=s.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(a),i=e;i<o;++i)a[i]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(e,n),r&&this.updateElements(a,e,n,"reset")}updateElements(e,n,r,s){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const s=r._parsed.splice(e,n);r._stacked&&ka(r,s)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,s]=e;this[n](r,s)}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])}}$(_a,"defaults",{}),$(_a,"datasetElementType",null),$(_a,"dataElementType",null);function gO(t,e,n){let r=1,s=1,a=0,o=0;if(e<nt){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,w)=>ni(k,i,l,!0)?1:Math.max(v,v*n,w,w*n),p=(k,v,w)=>ni(k,i,l,!0)?-1:Math.min(v,v*n,w,w*n),m=h(0,c,u),b=h(it,d,f),y=p(We,c,u),x=p(We+it,d,f);r=(m-y)/2,s=(b-x)/2,a=-(m+y)/2,o=-(b+x)/2}return{ratioX:r,ratioY:s,offsetX:a,offsetY:o}}class Sa extends _a{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,s=this._cachedMeta;if(this._parsing===!1)s._parsed=r;else{let a=l=>+r[l];if(ye(r[e])){const{key:l="value"}=this._parsing;a=c=>+ba(r[c],l)}let o,i;for(o=e,i=e+n;o<i;++o)s._parsed[o]=a(o)}}_getRotation(){return Ir(this.options.rotation-90)}_getCircumference(){return Ir(this.options.circumference)}_getRotationExtents(){let e=nt,n=-nt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const s=this.chart.getDatasetMeta(r).controller,a=s._getRotation(),o=s._getCircumference();e=Math.min(e,a),n=Math.max(n,a+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,s=this._cachedMeta,a=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,i=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(J_(this.options.cutout,i),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:m}=gO(u,d,l),b=(r.width-o)/f,y=(r.height-o)/h,x=Math.max(Math.min(b,y)/2,0),k=Pm(this.options.radius,x),v=Math.max(k*l,0),w=(k-v)/this._getVisibleDatasetWeightTotal();this.offsetX=p*k,this.offsetY=m*k,s.total=this.calculateTotal(),this.outerRadius=k-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(a,0,a.length,e)}_circumference(e,n){const r=this.options,s=this._cachedMeta,a=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*a/nt)}updateElements(e,n,r,s){const a=s==="reset",o=this.chart,i=o.chartArea,c=o.options.animation,d=(i.left+i.right)/2,u=(i.top+i.bottom)/2,f=a&&c.animateScale,h=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:m,includeOptions:b}=this._getSharedOptions(n,s);let y=this._getRotation(),x;for(x=0;x<n;++x)y+=this._circumference(x,a);for(x=n;x<n+r;++x){const k=this._circumference(x,a),v=e[x],w={x:d+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+k,circumference:k,outerRadius:p,innerRadius:h};b&&(w.options=m||this.resolveDataElementOptions(x,v.active?"active":s)),y+=k,this.updateElement(v,x,w,s)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,s;for(s=0;s<n.length;s++){const a=e._parsed[s];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(s)&&!n[s].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?nt*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,s=r.data.labels||[],a=vS(n._parsed[e],r.options.locale);return{label:s[e]||"",value:a}}getMaxBorderWidth(e){let n=0;const r=this.chart;let s,a,o,i,l;if(!e){for(s=0,a=r.data.datasets.length;s<a;++s)if(r.isDatasetVisible(s)){o=r.getDatasetMeta(s),e=o.data,i=o.controller;break}}if(!e)return 0;for(s=0,a=e.length;s<a;++s)l=i.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,s=e.length;r<s;++r){const a=this.resolveDataElementOptions(r);n=Math.max(n,a.offset||0,a.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(De(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}$(Sa,"id","doughnut"),$(Sa,"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"}),$(Sa,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),$(Sa,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:r,textAlign:s,color:a,useBorderRadius:o,borderRadius:i}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const u=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:u.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(c),lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:u.borderWidth,strokeStyle:u.borderColor,textAlign:s,pointStyle:r,borderRadius:o&&(i||u.borderRadius),index:c}}):[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function Wr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class id{constructor(e){$(this,"options");this.options=e||{}}static override(e){Object.assign(id.prototype,e)}init(){}formats(){return Wr()}parse(){return Wr()}format(){return Wr()}add(){return Wr()}diff(){return Wr()}startOf(){return Wr()}endOf(){return Wr()}}var mO={_date:id};function pO(t,e,n,r){const{controller:s,data:a,_sorted:o}=t,i=s._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(i&&e===i.axis&&e!=="r"&&o&&a.length){const c=i._reversePixels?cS:Uc;if(r){if(s._sharedOptions){const d=a[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(a,e,n-u),h=c(a,e,n+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(a,e,n);if(l){const{vScale:u}=s._cachedMeta,{_parsed:f}=t,h=f.slice(0,d.lo+1).reverse().findIndex(m=>!yt(m[u.axis]));d.lo-=Math.max(0,h);const p=f.slice(d.hi).findIndex(m=>!yt(m[u.axis]));d.hi+=Math.max(0,p)}return d}}return{lo:0,hi:a.length-1}}function ci(t,e,n,r,s){const a=t.getSortedVisibleDatasetMetas(),o=n[e];for(let i=0,l=a.length;i<l;++i){const{index:c,data:d}=a[i],{lo:u,hi:f}=pO(a[i],e,o,s);for(let h=u;h<=f;++h){const p=d[h];p.skip||r(p,c,h)}}}function bO(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,s){const a=e?Math.abs(r.x-s.x):0,o=n?Math.abs(r.y-s.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function ld(t,e,n,r,s){const a=[];return!s&&!t.isPointInArea(e)||ci(t,n,e,function(i,l,c){!s&&!Jm(i,t.chartArea,0)||i.inRange(e.x,e.y,r)&&a.push({element:i,datasetIndex:l,index:c})},!0),a}function yO(t,e,n,r){let s=[];function a(o,i,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:u}=Rm(o,{x:e.x,y:e.y});ni(u,c,d)&&s.push({element:o,datasetIndex:i,index:l})}return ci(t,n,e,a),s}function wO(t,e,n,r,s,a){let o=[];const i=bO(n);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(e.x,e.y,s);if(r&&!h)return;const p=d.getCenterPoint(s);if(!(!!a||t.isPointInArea(p))&&!h)return;const b=i(e,p);b<l?(o=[{element:d,datasetIndex:u,index:f}],l=b):b===l&&o.push({element:d,datasetIndex:u,index:f})}return ci(t,n,e,c),o}function cd(t,e,n,r,s,a){return!a&&!t.isPointInArea(e)?[]:n==="r"&&!r?yO(t,e,n,s):wO(t,e,n,r,s,a)}function pp(t,e,n,r,s){const a=[],o=n==="x"?"inXRange":"inYRange";let i=!1;return ci(t,n,e,(l,c,d)=>{l[o]&&l[o](e[n],s)&&(a.push({element:l,datasetIndex:c,index:d}),i=i||l.inRange(e.x,e.y,s))}),r&&!i?[]:a}var vO={modes:{index(t,e,n,r){const s=Fr(e,t),a=n.axis||"x",o=n.includeInvisible||!1,i=n.intersect?ld(t,s,a,r,o):cd(t,s,a,!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 s=Fr(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;let i=n.intersect?ld(t,s,a,r,o):cd(t,s,a,!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 s=Fr(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return ld(t,s,a,r,o)},nearest(t,e,n,r){const s=Fr(e,t),a=n.axis||"xy",o=n.includeInvisible||!1;return cd(t,s,a,n.intersect,r,o)},x(t,e,n,r){const s=Fr(e,t);return pp(t,s,"x",n.intersect,r)},y(t,e,n,r){const s=Fr(e,t);return pp(t,s,"y",n.intersect,r)}}};const bp=["left","top","right","bottom"];function Oa(t,e){return t.filter(n=>n.pos===e)}function yp(t,e){return t.filter(n=>bp.indexOf(n.pos)===-1&&n.box.axis===e)}function Ca(t,e){return t.sort((n,r)=>{const s=e?r:n,a=e?n:r;return s.weight===a.weight?s.index-a.index:s.weight-a.weight})}function xO(t){const e=[];let n,r,s,a,o,i;for(n=0,r=(t||[]).length;n<r;++n)s=t[n],{position:a,options:{stack:o,stackWeight:i=1}}=s,e.push({index:n,box:s,pos:a,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&a+o,stackWeight:i});return e}function kO(t){const e={};for(const n of t){const{stack:r,pos:s,stackWeight:a}=n;if(!r||!bp.includes(s))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=a}return e}function _O(t,e){const n=kO(t),{vBoxMaxWidth:r,hBoxMaxHeight:s}=e;let a,o,i;for(a=0,o=t.length;a<o;++a){i=t[a];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=s):(i.width=r,i.height=d?d*s:l&&e.availableHeight)}return n}function SO(t){const e=xO(t),n=Ca(e.filter(c=>c.box.fullSize),!0),r=Ca(Oa(e,"left"),!0),s=Ca(Oa(e,"right")),a=Ca(Oa(e,"top"),!0),o=Ca(Oa(e,"bottom")),i=yp(e,"x"),l=yp(e,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:s.concat(l).concat(o).concat(i),chartArea:Oa(e,"chartArea"),vertical:r.concat(s).concat(l),horizontal:a.concat(o).concat(i)}}function wp(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function vp(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 OO(t,e,n,r){const{pos:s,box:a}=n,o=t.maxPadding;if(!ye(s)){n.size&&(t[s]-=n.size);const u=r[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?a.height:a.width),n.size=u.size/u.count,t[s]+=n.size}a.getPadding&&vp(o,a.getPadding());const i=Math.max(0,e.outerWidth-wp(o,t,"left","right")),l=Math.max(0,e.outerHeight-wp(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 CO(t){const e=t.maxPadding;function n(r){const s=Math.max(e[r]-t[r],0);return t[r]+=s,s}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function DO(t,e){const n=e.maxPadding;function r(s){const a={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{a[o]=Math.max(e[o],n[o])}),a}return r(t?["left","right"]:["top","bottom"])}function Da(t,e,n,r){const s=[];let a,o,i,l,c,d;for(a=0,o=t.length,c=0;a<o;++a){i=t[a],l=i.box,l.update(i.width||e.w,i.height||e.h,DO(i.horizontal,e));const{same:u,other:f}=OO(e,n,i,r);c|=u&&s.length,d=d||f,l.fullSize||s.push(i)}return c&&Da(s,e,n,r)||d}function di(t,e,n,r,s){t.top=n,t.left=e,t.right=e+r,t.bottom=n+s,t.width=r,t.height=s}function xp(t,e,n,r){const s=n.padding;let{x:a,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;$o(c.start)&&(o=c.start),l.fullSize?di(l,s.left,o,n.outerWidth-s.right-s.left,f):di(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;$o(c.start)&&(a=c.start),l.fullSize?di(l,a,s.top,f,n.outerHeight-s.bottom-s.top):di(l,a,e.top+c.placed,f,u),c.start=a,c.placed+=u,a=l.right}}e.x=a,e.y=o}var dr={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 s=sn(t.options.layout.padding),a=Math.max(e-s.width,0),o=Math.max(n-s.height,0),i=SO(t.boxes),l=i.vertical,c=i.horizontal;Me(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:s,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/d,hBoxMaxHeight:o/2}),f=Object.assign({},s);vp(f,sn(r));const h=Object.assign({maxPadding:f,w:a,h:o,x:s.left,y:s.top},s),p=_O(l.concat(c),u);Da(i.fullSize,h,u,p),Da(l,h,u,p),Da(c,h,u,p)&&Da(l,h,u,p),CO(h),xp(i.leftAndTop,h,u,p),h.x+=h.w,h.y+=h.h,xp(i.rightAndBottom,h,u,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Me(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 kp{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,s){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,s?Math.floor(n/s):r)}}isAttached(e){return!0}updateConfig(e){}}class MO extends kp{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ui="$chartjs",EO={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},_p=t=>t===null||t==="";function PO(t,e){const n=t.style,r=t.getAttribute("height"),s=t.getAttribute("width");if(t[ui]={initial:{height:r,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",_p(s)){const a=ap(t,"width");a!==void 0&&(t.width=a)}if(_p(r))if(t.style.height==="")t.height=t.width/(e||2);else{const a=ap(t,"height");a!==void 0&&(t.height=a)}return t}const Sp=QS?{passive:!0}:!1;function TO(t,e,n){t&&t.addEventListener(e,n,Sp)}function NO(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Sp)}function jO(t,e){const n=EO[t.type]||t.type,{x:r,y:s}=Fr(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:s!==void 0?s:null}}function fi(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function IO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||fi(i.addedNodes,r),o=o&&!fi(i.removedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function AO(t,e,n){const r=t.canvas,s=new MutationObserver(a=>{let o=!1;for(const i of a)o=o||fi(i.removedNodes,r),o=o&&!fi(i.addedNodes,r);o&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const Ma=new Map;let Op=0;function Cp(){const t=window.devicePixelRatio;t!==Op&&(Op=t,Ma.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function RO(t,e){Ma.size||window.addEventListener("resize",Cp),Ma.set(t,e)}function LO(t){Ma.delete(t),Ma.size||window.removeEventListener("resize",Cp)}function FO(t,e,n){const r=t.canvas,s=r&&rd(r);if(!s)return;const a=Bm((i,l)=>{const c=s.clientWidth;n(i,l),c<s.clientWidth&&n()},window),o=new ResizeObserver(i=>{const l=i[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||a(c,d)});return o.observe(s),RO(t,a),o}function dd(t,e,n){n&&n.disconnect(),e==="resize"&&LO(t)}function WO(t,e,n){const r=t.canvas,s=Bm(a=>{t.ctx!==null&&n(jO(a,t))},t);return TO(r,e,s),s}class BO extends kp{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(PO(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[ui])return!1;const r=n[ui].initial;["height","width"].forEach(a=>{const o=r[a];yt(o)?n.removeAttribute(a):n.setAttribute(a,o)});const s=r.style||{};return Object.keys(s).forEach(a=>{n.style[a]=s[a]}),n.width=n.width,delete n[ui],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const s=e.$proxies||(e.$proxies={}),o={attach:IO,detach:AO,resize:FO}[n]||WO;s[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),s=r[n];if(!s)return;({attach:dd,detach:dd,resize:dd}[n]||NO)(e,n,s),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,s){return GS(e,n,r,s)}isAttached(e){const n=e&&rd(e);return!!(n&&n.isConnected)}}function zO(t){return!nd()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?MO:BO}let Ea=(zl=class{constructor(){$(this,"x");$(this,"y");$(this,"active",!1);$(this,"options");$(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return ti(this.x)&&ti(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const s={};return e.forEach(a=>{s[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),s}},$(zl,"defaults",{}),$(zl,"defaultRoutes"),zl);function HO(t,e){const n=t.options.ticks,r=YO(t),s=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?UO(e):[],o=a.length,i=a[0],l=a[o-1],c=[];if(o>s)return XO(e,c,a,o/s),c;const d=VO(a,e,s);if(o>0){let u,f;const h=o>1?Math.round((l-i)/(o-1)):null;for(hi(e,c,d,yt(h)?0:i-h,i),u=0,f=o-1;u<f;u++)hi(e,c,d,a[u],a[u+1]);return hi(e,c,d,l,yt(h)?e.length:l+h),c}return hi(e,c,d),c}function YO(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),s=t._maxLength/n;return Math.floor(Math.min(r,s))}function VO(t,e,n){const r=KO(t),s=e.length/n;if(!r)return Math.max(s,1);const a=sS(r);for(let o=0,i=a.length-1;o<i;o++){const l=a[o];if(l>s)return l}return Math.max(s,1)}function UO(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function XO(t,e,n,r){let s=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===a&&(e.push(t[o]),s++,a=n[s*r])}function hi(t,e,n,r,s){const a=De(r,0),o=Math.min(De(s,t.length),t.length);let i=0,l,c,d;for(n=Math.ceil(n),s&&(l=s-r,n=l/Math.floor(l/n)),d=a;d<0;)i++,d=Math.round(a+i*n);for(c=Math.max(a,0);c<o;c++)c===d&&(e.push(t[c]),i++,d=Math.round(a+i*n))}function KO(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 GO=t=>t==="left"?"right":t==="right"?"left":t,Dp=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,Mp=(t,e)=>Math.min(e||t,t);function Ep(t,e){const n=[],r=t.length/e,s=t.length;let a=0;for(;a<s;a+=r)n.push(t[Math.floor(a)]);return n}function QO(t,e,n){const r=t.ticks.length,s=Math.min(e,r-1),a=t._startPixel,o=t._endPixel,i=1e-6;let l=t.getPixelForTick(s),c;if(!(n&&(r===1?c=Math.max(l-a,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(s-1))/2,l+=s<e?c:-c,l<a-i||l>o+i)))return l}function ZO(t,e){Me(t,n=>{const r=n.gc,s=r.length/2;let a;if(s>e){for(a=0;a<s;++a)delete n.data[r[a]];r.splice(0,s)}})}function Pa(t){return t.drawTicks?t.tickLength:0}function Pp(t,e){if(!t.display)return 0;const n=Mt(t.font,e),r=sn(t.padding);return(gt(t.text)?t.text.length:1)*n.lineHeight+r.height}function JO(t,e){return xs(t,{scale:e,type:"scale"})}function qO(t,e,n){return xs(t,{tick:n,index:e,type:"tick"})}function $O(t,e,n){let r=zm(t);return(n&&e!=="right"||!n&&e==="right")&&(r=GO(r)),r}function eC(t,e,n,r){const{top:s,left:a,bottom:o,right:i,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,f,h,p;const m=o-s,b=i-a;if(t.isHorizontal()){if(h=Lt(r,a,i),ye(n)){const y=Object.keys(n)[0],x=n[y];p=d[y].getPixelForValue(x)+m-e}else n==="center"?p=(c.bottom+c.top)/2+m-e:p=Dp(t,n,e);f=i-a}else{if(ye(n)){const y=Object.keys(n)[0],x=n[y];h=d[y].getPixelForValue(x)-b+e}else n==="center"?h=(c.left+c.right)/2-b+e:h=Dp(t,n,e);p=Lt(r,o,s),u=n==="left"?-it:it}return{titleX:h,titleY:p,maxWidth:f,rotation:u}}class gi extends Ea{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:s}=this;return e=bn(e,Number.POSITIVE_INFINITY),n=bn(n,Number.NEGATIVE_INFINITY),r=bn(r,Number.POSITIVE_INFINITY),s=bn(s,Number.NEGATIVE_INFINITY),{min:bn(e,r),max:bn(n,s),minDefined:zn(e),maxDefined:zn(n)}}getMinMax(e){let{min:n,max:r,minDefined:s,maxDefined:a}=this.getUserBounds(),o;if(s&&a)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),s||(n=Math.min(n,o.min)),a||(r=Math.max(r,o.max));return n=a&&n>r?r:n,r=s&&n>r?n:r,{min:bn(n,bn(r,n)),max:bn(r,bn(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(){Fe(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:s,grace:a,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=jS(this,a,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=i<this.ticks.length;this._convertTicksToLabels(l?Ep(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=HO(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(){Fe(this.options.afterUpdate,[this])}beforeSetDimensions(){Fe(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(){Fe(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Fe(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Fe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,s,a;for(r=0,s=e.length;r<s;r++)a=e[r],a.label=Fe(n.callback,[a.value,r,e],this)}afterTickToLabelConversion(){Fe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Fe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=Mp(this.ticks.length,e.ticks.maxTicksLimit),s=n.minRotation||0,a=n.maxRotation;let o=s,i,l,c;if(!this._isVisible()||!n.display||s>=a||r<=1||!this.isHorizontal()){this.labelRotation=s;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-Pp(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),o=oS(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(s,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){Fe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Fe(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:s,grid:a}}=this,o=this._isVisible(),i=this.isHorizontal();if(o){const l=Pp(s,n.options.font);if(i?(e.width=this.maxWidth,e.height=Pa(a)+l):(e.height=this.maxHeight,e.width=Pa(a)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=r.padding*2,p=Ir(this.labelRotation),m=Math.cos(p),b=Math.sin(p);if(i){const y=r.mirror?0:b*u.width+m*f.height;e.height=Math.min(this.maxHeight,e.height+y+h)}else{const y=r.mirror?0:m*u.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+y+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,s){const{ticks:{align:a,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=s*e.width,h=r*n.height):(f=r*e.height,h=s*n.width):a==="start"?h=n.width:a==="end"?f=e.width:a!=="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;a==="start"?(d=0,u=e.height):a==="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(){Fe(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++)yt(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=Ep(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:s,_longestTextCache:a}=this,o=[],i=[],l=Math.floor(n/Mp(n,r));let c=0,d=0,u,f,h,p,m,b,y,x,k,v,w;for(u=0;u<n;u+=l){if(p=e[u].label,m=this._resolveTickFontOptions(u),s.font=b=m.string,y=a[b]=a[b]||{data:{},gc:[]},x=m.lineHeight,k=v=0,!yt(p)&&!gt(p))k=Km(s,y.data,y.gc,k,p),v=x;else if(gt(p))for(f=0,h=p.length;f<h;++f)w=p[f],!yt(w)&&!gt(w)&&(k=Km(s,y.data,y.gc,k,w),v+=x);o.push(k),i.push(v),c=Math.max(k,c),d=Math.max(v,d)}ZO(a,n);const S=o.indexOf(c),N=i.indexOf(d),D=T=>({width:o[T]||0,height:i[T]||0});return{first:D(0),last:D(n-1),widest:D(S),highest:D(N),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 lS(this._alignToPixels?Rr(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=qO(this.getContext(),e,r))}return this.$context||(this.$context=JO(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Ir(this.labelRotation),r=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),a=this._getLabelSizes(),o=e.autoSkipPadding||0,i=a?a.widest.width+o:0,l=a?a.highest.height+o:0;return this.isHorizontal()?l*r>i*s?i/r:l/s:l*s<i*r?l/r:i/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,s=this.options,{grid:a,position:o,border:i}=s,l=a.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=Pa(a),h=[],p=i.setContext(this.getContext()),m=p.display?p.width:0,b=m/2,y=function(F){return Rr(r,F,m)};let x,k,v,w,S,N,D,T,E,Y,L,O;if(o==="top")x=y(this.bottom),N=this.bottom-f,T=x-b,Y=y(e.top)+b,O=e.bottom;else if(o==="bottom")x=y(this.top),Y=e.top,O=y(e.bottom)-b,N=x+b,T=this.top+f;else if(o==="left")x=y(this.right),S=this.right-f,D=x-b,E=y(e.left)+b,L=e.right;else if(o==="right")x=y(this.left),E=e.left,L=y(e.right)-b,S=x+b,D=this.left+f;else if(n==="x"){if(o==="center")x=y((e.top+e.bottom)/2+.5);else if(ye(o)){const F=Object.keys(o)[0],U=o[F];x=y(this.chart.scales[F].getPixelForValue(U))}Y=e.top,O=e.bottom,N=x+b,T=N+f}else if(n==="y"){if(o==="center")x=y((e.left+e.right)/2);else if(ye(o)){const F=Object.keys(o)[0],U=o[F];x=y(this.chart.scales[F].getPixelForValue(U))}S=x-b,D=S-f,E=e.left,L=e.right}const C=De(s.ticks.maxTicksLimit,u),P=Math.max(1,Math.ceil(u/C));for(k=0;k<u;k+=P){const F=this.getContext(k),U=a.setContext(F),Z=i.setContext(F),ee=U.lineWidth,j=U.color,V=Z.dash||[],R=Z.dashOffset,A=U.tickWidth,I=U.tickColor,M=U.tickBorderDash||[],H=U.tickBorderDashOffset;v=QO(this,k,l),v!==void 0&&(w=Rr(r,v,ee),c?S=D=E=L=w:N=T=Y=O=w,h.push({tx1:S,ty1:N,tx2:D,ty2:T,x1:E,y1:Y,x2:L,y2:O,width:ee,color:j,borderDash:V,borderDashOffset:R,tickWidth:A,tickColor:I,tickBorderDash:M,tickBorderDashOffset:H}))}return this._ticksLength=u,this._borderValue=x,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:s,ticks:a}=r,o=this.isHorizontal(),i=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=a,f=Pa(r.grid),h=f+d,p=u?-d:h,m=-Ir(this.labelRotation),b=[];let y,x,k,v,w,S,N,D,T,E,Y,L,O="middle";if(s==="top")S=this.bottom-p,N=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+p,N=this._getXAxisLabelAlignment();else if(s==="left"){const P=this._getYAxisLabelAlignment(f);N=P.textAlign,w=P.x}else if(s==="right"){const P=this._getYAxisLabelAlignment(f);N=P.textAlign,w=P.x}else if(n==="x"){if(s==="center")S=(e.top+e.bottom)/2+h;else if(ye(s)){const P=Object.keys(s)[0],F=s[P];S=this.chart.scales[P].getPixelForValue(F)+h}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")w=(e.left+e.right)/2-h;else if(ye(s)){const P=Object.keys(s)[0],F=s[P];w=this.chart.scales[P].getPixelForValue(F)}N=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?O="top":l==="end"&&(O="bottom"));const C=this._getLabelSizes();for(y=0,x=i.length;y<x;++y){k=i[y],v=k.label;const P=a.setContext(this.getContext(y));D=this.getPixelForTick(y)+a.labelOffset,T=this._resolveTickFontOptions(y),E=T.lineHeight,Y=gt(v)?v.length:1;const F=Y/2,U=P.color,Z=P.textStrokeColor,ee=P.textStrokeWidth;let j=N;o?(w=D,N==="inner"&&(y===x-1?j=this.options.reverse?"left":"right":y===0?j=this.options.reverse?"right":"left":j="center"),s==="top"?c==="near"||m!==0?L=-Y*E+E/2:c==="center"?L=-C.highest.height/2-F*E+E:L=-C.highest.height+E/2:c==="near"||m!==0?L=E/2:c==="center"?L=C.highest.height/2-F*E:L=C.highest.height-Y*E,u&&(L*=-1),m!==0&&!P.showLabelBackdrop&&(w+=E/2*Math.sin(m))):(S=D,L=(1-Y)*E/2);let V;if(P.showLabelBackdrop){const R=sn(P.backdropPadding),A=C.heights[y],I=C.widths[y];let M=L-R.top,H=0-R.left;switch(O){case"middle":M-=A/2;break;case"bottom":M-=A;break}switch(N){case"center":H-=I/2;break;case"right":H-=I;break;case"inner":y===x-1?H-=I:y>0&&(H-=I/2);break}V={left:H,top:M,width:I+R.width,height:A+R.height,color:P.backdropColor}}b.push({label:v,font:T,textOffset:L,options:{rotation:m,color:U,strokeColor:Z,strokeWidth:ee,textAlign:j,textBaseline:O,translation:[w,S],backdrop:V}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Ir(this.labelRotation))return e==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:s,padding:a}}=this.options,o=this._getLabelSizes(),i=e+a,l=o.widest.width;let c,d;return n==="left"?s?(d=this.right+a,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"?s?(d=this.left+a,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:s,width:a,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,s,a,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(a=>a.value===e);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,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(a=0,o=s.length;a<o;++a){const l=s[a];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:s}}=this,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(!o)return;const i=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,f;this.isHorizontal()?(c=Rr(e,this.left,o)-o/2,d=Rr(e,this.right,i)+i/2,u=f=l):(u=Rr(e,this.top,o)-o/2,f=Rr(e,this.bottom,i)+i/2,c=d=l),n.save(),n.lineWidth=a.width,n.strokeStyle=a.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,s=this._computeLabelArea();s&&Qc(r,s);const a=this.getLabelItems(e);for(const o of a){const i=o.options,l=o.font,c=o.label,d=o.textOffset;si(r,c,0,d,l,i)}s&&Zc(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:s}}=this;if(!r.display)return;const a=Mt(r.font),o=sn(r.padding),i=r.align;let l=a.lineHeight/2;n==="bottom"||n==="center"||ye(n)?(l+=o.bottom,gt(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=eC(this,l,n,i);si(e,r.text,0,0,a,{color:r.color,maxWidth:u,rotation:f,textAlign:$O(i,n,s),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=De(e.grid&&e.grid.z,-1),s=De(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==gi.prototype.draw?[{z:n,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",s=[];let a,o;for(a=0,o=n.length;a<o;++a){const i=n[a];i[r]===this.id&&(!e||i.type===e)&&s.push(i)}return s}_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 mi{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;rC(n)&&(r=this.register(n));const s=this.items,a=e.id,o=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in s||(s[a]=e,tC(e,o,r),this.override&&Qe.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,s=this.scope;r in n&&delete n[r],s&&r in Qe[s]&&(delete Qe[s][r],this.override&&delete Ar[r])}}function tC(t,e,n){const r=ma(Object.create(null),[n?Qe.get(n):{},Qe.get(e),t.defaults]);Qe.set(e,r),t.defaultRoutes&&nC(e,t.defaultRoutes),t.descriptors&&Qe.describe(e,t.descriptors)}function nC(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),s=r.pop(),a=[t].concat(r).join("."),o=e[n].split("."),i=o.pop(),l=o.join(".");Qe.route(a,s,l,i)})}function rC(t){return"id"in t&&"defaults"in t}class sC{constructor(){this.controllers=new mi(_a,"datasets",!0),this.elements=new mi(Ea,"elements"),this.plugins=new mi(Object,"plugins"),this.scales=new mi(gi,"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(s=>{const a=r||this._getRegistryForType(s);r||a.isForType(s)||a===this.plugins&&s.id?this._exec(e,a,s):Me(s,o=>{const i=r||this._getRegistryForType(o);this._exec(e,i,o)})})}_exec(e,n,r){const s=Yc(e);Fe(r["before"+s],[],r),n[e](r),Fe(r["after"+s],[],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 s=n.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return s}}var wn=new sC;class aC{constructor(){this._init=void 0}notify(e,n,r,s){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const a=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(a,e,n,r);return n==="afterDestroy"&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),o}_notify(e,n,r,s){s=s||{};for(const a of e){const o=a.plugin,i=o[r],l=[n,s,a.options];if(Fe(i,l,o)===!1&&s.cancelable)return!1}return!0}invalidate(){yt(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,s=De(r.options&&r.options.plugins,{}),a=oC(r);return s===!1&&!n?[]:lC(e,a,s,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,s=(a,o)=>a.filter(i=>!o.some(l=>i.plugin.id===l.plugin.id));this._notify(s(n,r),e,"stop"),this._notify(s(r,n),e,"start")}}function oC(t){const e={},n=[],r=Object.keys(wn.plugins.items);for(let a=0;a<r.length;a++)n.push(wn.getPlugin(r[a]));const s=t.plugins||[];for(let a=0;a<s.length;a++){const o=s[a];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function iC(t,e){return!e&&t===!1?null:t===!0?{}:t}function lC(t,{plugins:e,localIds:n},r,s){const a=[],o=t.getContext();for(const i of e){const l=i.id,c=iC(r[l],s);c!==null&&a.push({plugin:i,options:cC(t.config,{plugin:i,local:n[l]},c,o)})}return a}function cC(t,{plugin:e,local:n},r,s){const a=t.pluginScopeKeys(e),o=t.getOptionScopes(r,a);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ud(t,e){const n=Qe.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function dC(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function uC(t,e){return t===e?"_index_":"_value_"}function Tp(t){if(t==="x"||t==="y"||t==="r")return t}function fC(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function fd(t,...e){if(Tp(t))return t;for(const n of e){const r=n.axis||fC(n.position)||t.length>1&&Tp(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Np(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function hC(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 Np(t,"x",n[0])||Np(t,"y",n[0])}return{}}function gC(t,e){const n=Ar[t.type]||{scales:{}},r=e.scales||{},s=ud(t.type,e),a=Object.create(null);return Object.keys(r).forEach(o=>{const i=r[o];if(!ye(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=fd(o,i,hC(o,t),Qe.scales[i.type]),c=uC(l,s),d=n.scales||{};a[o]=pa(Object.create(null),[{axis:l},i,d[l],d[c]])}),t.data.datasets.forEach(o=>{const i=o.type||t.type,l=o.indexAxis||ud(i,e),d=(Ar[i]||{}).scales||{};Object.keys(d).forEach(u=>{const f=dC(u,l),h=o[f+"AxisID"]||f;a[h]=a[h]||Object.create(null),pa(a[h],[{axis:f},r[h],d[u]])})}),Object.keys(a).forEach(o=>{const i=a[o];pa(i,[Qe.scales[i.type],Qe.scale])}),a}function jp(t){const e=t.options||(t.options={});e.plugins=De(e.plugins,{}),e.scales=gC(t,e)}function Ip(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function mC(t){return t=t||{},t.data=Ip(t.data),jp(t),t}const Ap=new Map,Rp=new Set;function pi(t,e){let n=Ap.get(t);return n||(n=e(),Ap.set(t,n),Rp.add(n)),n}const Ta=(t,e,n)=>{const r=ba(e,n);r!==void 0&&t.add(r)};class pC{constructor(e){this._config=mC(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=Ip(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(),jp(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return pi(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return pi(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return pi(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return pi(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let s=r.get(e);return(!s||n)&&(s=new Map,r.set(e,s)),s}getOptionScopes(e,n,r){const{options:s,type:a}=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=>Ta(l,e,u))),d.forEach(u=>Ta(l,s,u)),d.forEach(u=>Ta(l,Ar[a]||{},u)),d.forEach(u=>Ta(l,Qe,u)),d.forEach(u=>Ta(l,Kc,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Rp.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,Ar[n]||{},Qe.datasets[n]||{},{type:n},Qe,Kc]}resolveNamedOptions(e,n,r,s=[""]){const a={$shared:!0},{resolver:o,subPrefixes:i}=Lp(this._resolverCache,e,s);let l=o;if(yC(o,n)){a.$shared=!1,r=lr(r)?r():r;const c=this.createResolver(e,r,i);l=ks(o,r,c)}for(const c of n)a[c]=l[c];return a}createResolver(e,n,r=[""],s){const{resolver:a}=Lp(this._resolverCache,e,r);return ye(n)?ks(a,n,void 0,s):a}}function Lp(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const s=n.join();let a=r.get(s);return a||(a={resolver:$c(e,n),subPrefixes:n.filter(i=>!i.toLowerCase().includes("hover"))},r.set(s,a)),a}const bC=t=>ye(t)&&Object.getOwnPropertyNames(t).some(e=>lr(t[e]));function yC(t,e){const{isScriptable:n,isIndexable:r}=qm(t);for(const s of e){const a=n(s),o=r(s),i=(o||a)&&t[s];if(a&&(lr(i)||bC(i))||o&&gt(i))return!0}return!1}var wC="4.5.1";const vC=["top","bottom","left","right","chartArea"];function Fp(t,e){return t==="top"||t==="bottom"||vC.indexOf(t)===-1&&e==="x"}function Wp(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Bp(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Fe(n&&n.onComplete,[t],e)}function xC(t){const e=t.chart,n=e.options.animation;Fe(n&&n.onProgress,[t],e)}function zp(t){return nd()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const bi={},Hp=t=>{const e=zp(t);return Object.values(bi).filter(n=>n.canvas===e).pop()};function kC(t,e,n){const r=Object.keys(t);for(const s of r){const a=+s;if(a>=e){const o=t[s];delete t[s],(n>0||a>e)&&(t[a+n]=o)}}}function _C(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}let yi=(xr=class{static register(...e){wn.add(...e),Yp()}static unregister(...e){wn.remove(...e),Yp()}constructor(e,n){const r=this.config=new pC(n),s=zp(e),a=Hp(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||zO(s)),this.platform.updateConfig(r);const i=this.platform.acquireContext(s,o.aspectRatio),l=i&&i.canvas,c=l&&l.height,d=l&&l.width;if(this.id=Z_(),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 aC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=hS(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],bi[this.id]=this,!i||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Hn.listen(this,"complete",Bp),Hn.listen(this,"progress",xC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:s,_aspectRatio:a}=this;return yt(e)?n&&a?a:s?r/s: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 wn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():sp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Gm(this.canvas,this.ctx),this}stop(){return Hn.stop(this),this}resize(e,n){Hn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,s=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,n,a),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,sp(this,i,!0)&&(this.notifyPlugins("resize",{size:o}),Fe(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Me(n,(r,s)=>{r.id=s})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,s=Object.keys(r).reduce((o,i)=>(o[i]=!1,o),{});let a=[];n&&(a=a.concat(Object.keys(n).map(o=>{const i=n[o],l=fd(o,i),c=l==="r",d=l==="x";return{options:i,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Me(a,o=>{const i=o.options,l=i.id,c=fd(l,i),d=De(i.type,o.dtype);(i.position===void 0||Fp(i.position,c)!==Fp(o.dposition))&&(i.position=o.dposition),s[l]=!0;let u=null;if(l in r&&r[l].type===d)u=r[l];else{const f=wn.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,e)}),Me(s,(o,i)=>{o||delete r[i]}),Me(r,o=>{dr.configure(this,o,o.options),dr.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((s,a)=>s.index-a.index),r>n){for(let s=n;s<r;++s)this._destroyDatasetMeta(s);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(Wp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,s)=>{n.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,s;for(this._removeUnreferencedMetasets(),r=0,s=n.length;r<s;r++){const a=n[r];let o=this.getDatasetMeta(r);const i=a.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=a.indexAxis||ud(i,this.options),o.order=a.order||0,o.index=r,o.label=""+a.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=wn.getController(i),{datasetElementType:c,dataElementType:d}=Qe.datasets[i];Object.assign(l,{dataElementType:wn.getElement(d),datasetElementType:c&&wn.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Me(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()),s=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const a=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=!s&&a.indexOf(u)===-1;u.buildOrUpdateElements(f),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),s||Me(a,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Wp("z","_idx"));const{_active:i,_lastEvent:l}=this;l?this._eventHandler(l,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Me(this.scales,e=>{dr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!jm(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:s,count:a}of n){const o=r==="_removeElements"?-a:a;kC(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=a=>new Set(e.filter(o=>o[0]===a).map((o,i)=>i+","+o.splice(1).join(","))),s=r(0);for(let a=1;a<n;a++)if(!jm(s,r(a)))return;return Array.from(s).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;dr.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Me(this.boxes,s=>{r&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),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,lr(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),s={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(r.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Hn.has(this)?this.attached&&!Hn.running(this)&&Hn.start(this):(this.draw(),Bp({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,s)}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 s,a;for(s=0,a=n.length;s<a;++s){const o=n[s];(!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={meta:e,index:e.index,cancelable:!0},s=$S(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&Qc(n,s),e.controller.draw(),s&&Zc(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return Jm(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,s){const a=vO.modes[n];return typeof a=="function"?a(this,e,r,s):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let s=r.filter(a=>a&&a._dataset===n).pop();return s||(s={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(s)),s}getContext(){return this.$context||(this.$context=xs(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 s=r?"show":"hide",a=this.getDatasetMeta(e),o=a.controller._resolveAnimations(void 0,s);$o(n)?(a.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(a,{visible:r}),this.update(i=>i.datasetIndex===e?s: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(),Hn.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(),Gm(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete bi[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=(a,o)=>{n.addEventListener(this,a,o),e[a]=o},s=(a,o,i)=>{a.offsetX=o,a.offsetY=i,this._eventHandler(a)};Me(this.options.events,a=>r(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},s=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const i=()=>{s("attach",i),this.attached=!0,this.resize(),r("resize",a),r("detach",o)};o=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),r("attach",i)},n.isAttached(this.canvas)?i():o()}unbindEvents(){Me(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Me(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const s=r?"set":"remove";let a,o,i,l;for(n==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),i=0,l=e.length;i<l;++i){o=e[i];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:a,index:o})=>{const i=this.getDatasetMeta(a);if(!i)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:i.data[o],index:o}});!Jo(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 s=this.options.hover,a=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=a(n,e),i=r?e:a(e,n);o.length&&this.updateHoverStyle(o,s.mode,!1),i.length&&s.mode&&this.updateHoverStyle(i,s.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,s)===!1)return;const a=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,s),(a||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:s=[],options:a}=this,o=n,i=this._getActiveElements(e,s,r,o),l=nS(e),c=_C(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Fe(a.onHover,[e,i,this],this),l&&Fe(a.onClick,[e,i,this],this));const d=!Jo(i,s);return(d||n)&&(this._active=i,this._updateHoverStyles(i,s,n)),this._lastEvent=c,d}_getActiveElements(e,n,r,s){if(e.type==="mouseout")return[];if(!r)return n;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,s)}},$(xr,"defaults",Qe),$(xr,"instances",bi),$(xr,"overrides",Ar),$(xr,"registry",wn),$(xr,"version",wC),$(xr,"getChart",Hp),xr);function Yp(){return Me(yi.instances,t=>t._plugins.invalidate())}function SC(t,e,n){const{startAngle:r,x:s,y:a,outerRadius:o,innerRadius:i,options:l}=e,{borderWidth:c,borderJoinStyle:d}=l,u=Math.min(c/o,yn(r-n));if(t.beginPath(),t.arc(s,a,o-c/2,r+u/2,n-u/2),i>0){const f=Math.min(c/i,yn(r-n));t.arc(s,a,i+c/2,n-f/2,r+f/2,!0)}else{const f=Math.min(c/2,o*yn(r-n));if(d==="round")t.arc(s,a,f,n-We/2,r+We/2,!0);else if(d==="bevel"){const h=2*f*f,p=-h*Math.cos(n+We/2)+s,m=-h*Math.sin(n+We/2)+a,b=h*Math.cos(r+We/2)+s,y=h*Math.sin(r+We/2)+a;t.lineTo(p,m),t.lineTo(b,y)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function OC(t,e,n){const{startAngle:r,pixelMargin:s,x:a,y:o,outerRadius:i,innerRadius:l}=e;let c=s/i;t.beginPath(),t.arc(a,o,i,r-c,n+c),l>s?(c=s/l,t.arc(a,o,l,n+c,r-c,!0)):t.arc(a,o,s,n+it,r-it),t.closePath(),t.clip()}function CC(t){return qc(t,["outerStart","outerEnd","innerStart","innerEnd"])}function DC(t,e,n,r){const s=CC(t.options.borderRadius),a=(n-e)/2,o=Math.min(a,r*e/2),i=l=>{const c=(n-Math.min(a,l))*r/2;return Jt(l,0,Math.min(a,c))};return{outerStart:i(s.outerStart),outerEnd:i(s.outerEnd),innerStart:Jt(s.innerStart,0,o),innerEnd:Jt(s.innerEnd,0,o)}}function Ss(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function wi(t,e,n,r,s,a){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 p=s-l;if(r){const P=d>0?d-r:0,F=u>0?u-r:0,U=(P+F)/2,Z=U!==0?p*U/(U+r):p;h=(p-Z)/2}const m=Math.max(.001,p*u-n/We)/u,b=(p-m)/2,y=l+b+h,x=s-b-h,{outerStart:k,outerEnd:v,innerStart:w,innerEnd:S}=DC(e,f,u,x-y),N=u-k,D=u-v,T=y+k/N,E=x-v/D,Y=f+w,L=f+S,O=y+w/Y,C=x-S/L;if(t.beginPath(),a){const P=(T+E)/2;if(t.arc(o,i,u,T,P),t.arc(o,i,u,P,E),v>0){const ee=Ss(D,E,o,i);t.arc(ee.x,ee.y,v,E,x+it)}const F=Ss(L,x,o,i);if(t.lineTo(F.x,F.y),S>0){const ee=Ss(L,C,o,i);t.arc(ee.x,ee.y,S,x+it,C+Math.PI)}const U=(x-S/f+(y+w/f))/2;if(t.arc(o,i,f,x-S/f,U,!0),t.arc(o,i,f,U,y+w/f,!0),w>0){const ee=Ss(Y,O,o,i);t.arc(ee.x,ee.y,w,O+Math.PI,y-it)}const Z=Ss(N,y,o,i);if(t.lineTo(Z.x,Z.y),k>0){const ee=Ss(N,T,o,i);t.arc(ee.x,ee.y,k,y-it,T)}}else{t.moveTo(o,i);const P=Math.cos(T)*u+o,F=Math.sin(T)*u+i;t.lineTo(P,F);const U=Math.cos(E)*u+o,Z=Math.sin(E)*u+i;t.lineTo(U,Z)}t.closePath()}function MC(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i}=e;let l=e.endAngle;if(a){wi(t,e,n,r,l,s);for(let c=0;c<a;++c)t.fill();isNaN(i)||(l=o+(i%nt||nt))}return wi(t,e,n,r,l,s),t.fill(),l}function EC(t,e,n,r,s){const{fullCircles:a,startAngle:o,circumference:i,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f,borderRadius:h}=l,p=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=f,p?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let m=e.endAngle;if(a){wi(t,e,n,r,m,s);for(let b=0;b<a;++b)t.stroke();isNaN(i)||(m=o+(i%nt||nt))}p&&OC(t,e,m),l.selfJoin&&m-o>=We&&h===0&&d!=="miter"&&SC(t,e,m),a||(wi(t,e,n,r,m,s),t.stroke())}class Na extends Ea{constructor(n){super();$(this,"circumference");$(this,"endAngle");$(this,"fullCircles");$(this,"innerRadius");$(this,"outerRadius");$(this,"pixelMargin");$(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,s){const a=this.getProps(["x","y"],s),{angle:o,distance:i}=Rm(a,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),h=(this.options.spacing+this.options.borderWidth)/2,p=De(f,c-l),m=ni(o,l,c)&&l!==c,b=p>=nt||m,y=ya(i,d+h,u+h);return b&&y}getCenterPoint(n){const{x:r,y:s,startAngle:a,endAngle:o,innerRadius:i,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,u=(a+o)/2,f=(i+l+d+c)/2;return{x:r+Math.cos(u)*f,y:s+Math.sin(u)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:s}=this,a=(r.offset||0)/4,o=(r.spacing||0)/2,i=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=s>nt?Math.floor(s/nt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*a,Math.sin(l)*a);const c=1-Math.sin(Math.min(We,s||0)),d=a*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,MC(n,this,d,o,i),EC(n,this,d,o,i),n.restore()}}$(Na,"id","arc"),$(Na,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),$(Na,"defaultRoutes",{backgroundColor:"backgroundColor"}),$(Na,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});const Vp=(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)}},PC=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Up extends Ea{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=Fe(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,s)=>e.sort(r,s,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,s=Mt(r.font),a=s.size,o=this._computeTitleHeight(),{boxWidth:i,itemHeight:l}=Vp(r,a);let c,d;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,a,i,l)+10):(d=this.maxHeight,c=this._fitCols(o,s,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,s){const{ctx:a,maxWidth:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=s+i;let u=e;a.textAlign="left",a.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((p,m)=>{const b=r+n/2+a.measureText(p.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:s},c[c.length-1]+=b+i}),u}_fitCols(e,n,r,s){const{ctx:a,maxHeight:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=i,f=0,h=0,p=0,m=0;return this.legendItems.forEach((b,y)=>{const{itemWidth:x,itemHeight:k}=TC(r,n,a,b,s);y>0&&h+k+2*i>d&&(u+=f+i,c.push({width:f,height:h}),p+=f+i,m++,f=h=0),l[y]={left:p,top:h,col:m,width:x,height:k},f=Math.max(f,x),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:s},rtl:a}}=this,o=_s(a,this.left,this.width);if(this.isHorizontal()){let i=0,l=Lt(r,this.left+s,this.right-this.lineWidths[i]);for(const c of n)i!==c.row&&(i=c.row,l=Lt(r,this.left+s,this.right-this.lineWidths[i])),c.top+=this.top+e+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let i=0,l=Lt(r,this.top+e+s,this.bottom-this.columnSizes[i].height);for(const c of n)c.col!==i&&(i=c.col,l=Lt(r,this.top+e+s,this.bottom-this.columnSizes[i].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Qc(e,this),this._draw(),Zc(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:s}=this,{align:a,labels:o}=e,i=Qe.color,l=_s(e.rtl,this.left,this.width),c=Mt(o.font),{padding:d}=o,u=c.size,f=u/2;let h;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:p,boxHeight:m,itemHeight:b}=Vp(o,u),y=function(S,N,D){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;s.save();const T=De(D.lineWidth,1);if(s.fillStyle=De(D.fillStyle,i),s.lineCap=De(D.lineCap,"butt"),s.lineDashOffset=De(D.lineDashOffset,0),s.lineJoin=De(D.lineJoin,"miter"),s.lineWidth=T,s.strokeStyle=De(D.strokeStyle,i),s.setLineDash(De(D.lineDash,[])),o.usePointStyle){const E={radius:m*Math.SQRT2/2,pointStyle:D.pointStyle,rotation:D.rotation,borderWidth:T},Y=l.xPlus(S,p/2),L=N+f;Zm(s,E,Y,L,o.pointStyleWidth&&p)}else{const E=N+Math.max((u-m)/2,0),Y=l.leftForLtr(S,p),L=xa(D.borderRadius);s.beginPath(),Object.values(L).some(O=>O!==0)?Jc(s,{x:Y,y:E,w:p,h:m,radius:L}):s.rect(Y,E,p,m),s.fill(),T!==0&&s.stroke()}s.restore()},x=function(S,N,D){si(s,D.text,S,N+b/2,c,{strikethrough:D.hidden,textAlign:l.textAlign(D.textAlign)})},k=this.isHorizontal(),v=this._computeTitleHeight();k?h={x:Lt(a,this.left+d,this.right-r[0]),y:this.top+d+v,line:0}:h={x:this.left+d,y:Lt(a,this.top+v+d,this.bottom-n[0].height),line:0},op(this.ctx,e.textDirection);const w=b+d;this.legendItems.forEach((S,N)=>{s.strokeStyle=S.fontColor,s.fillStyle=S.fontColor;const D=s.measureText(S.text).width,T=l.textAlign(S.textAlign||(S.textAlign=o.textAlign)),E=p+f+D;let Y=h.x,L=h.y;l.setWidth(this.width),k?N>0&&Y+E+d>this.right&&(L=h.y+=w,h.line++,Y=h.x=Lt(a,this.left+d,this.right-r[h.line])):N>0&&L+w>this.bottom&&(Y=h.x=Y+n[h.line].width+d,h.line++,L=h.y=Lt(a,this.top+v+d,this.bottom-n[h.line].height));const O=l.x(Y);if(y(O,L,S),Y=gS(T,Y+p+f,k?Y+E:this.right,e.rtl),x(l.x(Y),L,S),k)h.x+=E+d;else if(typeof S.text!="string"){const C=c.lineHeight;h.y+=Xp(S,C)+d}else h.y+=w}),ip(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Mt(n.font),s=sn(n.padding);if(!n.display)return;const a=_s(e.rtl,this.left,this.width),o=this.ctx,i=n.position,l=r.size/2,c=s.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=Lt(e.align,u,this.right-f);else{const p=this.columnSizes.reduce((m,b)=>Math.max(m,b.height),0);d=c+Lt(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=Lt(i,u,u+f);o.textAlign=a.textAlign(zm(i)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,si(o,n.text,h,d,r)}_computeTitleHeight(){const e=this.options.title,n=Mt(e.font),r=sn(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,s,a;if(ya(e,this.left,this.right)&&ya(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(s=a[r],ya(e,s.left,s.left+s.width)&&ya(n,s.top,s.top+s.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!IC(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,a=PC(s,r);s&&!a&&Fe(n.onLeave,[e,s,this],this),this._hoveredItem=r,r&&!a&&Fe(n.onHover,[e,r,this],this)}else r&&Fe(n.onClick,[e,r,this],this)}}function TC(t,e,n,r,s){const a=NC(r,t,e,n),o=jC(s,r,e.lineHeight);return{itemWidth:a,itemHeight:o}}function NC(t,e,n,r){let s=t.text;return s&&typeof s!="string"&&(s=s.reduce((a,o)=>a.length>o.length?a:o)),e+n.size/2+r.measureText(s).width}function jC(t,e,n){let r=t;return typeof e.text!="string"&&(r=Xp(e,n)),r}function Xp(t,e){const n=t.text?t.text.length:0;return e*n}function IC(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var AC={id:"legend",_element:Up,start(t,e,n){const r=t.legend=new Up({ctx:t.ctx,options:n,chart:t});dr.configure(t,r,n),dr.addBox(t,r)},stop(t){dr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;dr.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,s=n.chart;s.isDatasetVisible(r)?(s.hide(r),e.hidden=!0):(s.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:s,color:a,useBorderRadius:o,borderRadius:i}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=sn(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:a,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:s||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,s=0,a=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),s+=l.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((i,l)=>i+l)/r.size,y:s/a}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,s=Number.POSITIVE_INFINITY,a,o,i;for(a=0,o=t.length;a<o;++a){const l=t[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=iS(e,c);d<s&&(s=d,i=l)}}if(i){const l=i.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function vn(t,e){return e&&(gt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Yn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
24
24
  `)>-1?t.split(`
25
- `):t}function PC(t,e){const{element:n,datasetIndex:r,index:s}=e,a=t.getDatasetMeta(r).controller,{label:o,value:i}=a.getLabelAndValue(s);return{chart:t,label:o,parsed:a.getParsed(s),raw:t.data.datasets[r].data[s],formattedValue:i,dataset:a.getDataset(),dataIndex:s,datasetIndex:r,element:n}}function Vp(t,e){const n=t.chart.ctx,{body:r,footer:s,title:a}=t,{boxWidth:o,boxHeight:i}=e,l=Mt(e.bodyFont),c=Mt(e.titleFont),d=Mt(e.footerFont),u=a.length,f=s.length,h=r.length,m=sn(e.padding);let p=m.height,b=0,v=r.reduce((w,y)=>w+y.before.length+y.lines.length+y.after.length,0);if(v+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),v){const w=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;p+=h*w+(v-h)*l.lineHeight+(v-1)*e.bodySpacing}f&&(p+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let x=0;const k=function(w){b=Math.max(b,n.measureText(w).width+x)};return n.save(),n.font=c.string,Me(t.title,k),n.font=l.string,Me(t.beforeBody.concat(t.afterBody),k),x=e.displayColors?o+2+e.boxPadding:0,Me(r,w=>{Me(w.before,k),Me(w.lines,k),Me(w.after,k)}),x=0,n.font=d.string,Me(t.footer,k),n.restore(),b+=m.width,{width:b,height:p}}function TC(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function NC(t,e,n,r){const{x:s,width:a}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&s+a+o>e.width||t==="right"&&s-a-o<0)return!0}function jC(t,e,n,r){const{x:s,width:a}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=s<=(i+l)/2?"left":"right":s<=a/2?c="left":s>=o-a/2&&(c="right"),NC(c,t,e,n)&&(c="center"),c}function Up(t,e,n){const r=n.yAlign||e.yAlign||TC(t,n);return{xAlign:n.xAlign||e.xAlign||jC(t,e,n,r),yAlign:r}}function IC(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function AC(t,e,n){let{y:r,height:s}=t;return e==="top"?r+=n:e==="bottom"?r-=s+n:r-=s/2,r}function Xp(t,e,n,r){const{caretSize:s,caretPadding:a,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=s+a,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=ya(o);let m=IC(e,i);const p=AC(e,l,c);return l==="center"?i==="left"?m+=c:i==="right"&&(m-=c):i==="left"?m-=Math.max(d,f)+s:i==="right"&&(m+=Math.max(u,h)+s),{x:Jt(m,0,r.width-e.width),y:Jt(p,0,r.height-e.height)}}function pi(t,e,n){const r=sn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function Kp(t){return wn([],Hn(t))}function RC(t,e,n){return ws(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Gp(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Qp={beforeTitle:Wn,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:Wn,beforeBody:Wn,beforeLabel:Wn,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 yt(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:Wn,afterBody:Wn,beforeFooter:Wn,footer:Wn,afterFooter:Wn};function Et(t,e,n,r){const s=t[e].call(n,r);return typeof s>"u"?Qp[e].call(n,r):s}class ud extends Ca{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()),s=r.enabled&&n.options.animation&&r.animations,a=new op(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=RC(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,s=Et(r,"beforeTitle",this,e),a=Et(r,"title",this,e),o=Et(r,"afterTitle",this,e);let i=[];return i=wn(i,Hn(s)),i=wn(i,Hn(a)),i=wn(i,Hn(o)),i}getBeforeBody(e,n){return Kp(Et(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,s=[];return Me(e,a=>{const o={before:[],lines:[],after:[]},i=Gp(r,a);wn(o.before,Hn(Et(i,"beforeLabel",this,a))),wn(o.lines,Et(i,"label",this,a)),wn(o.after,Hn(Et(i,"afterLabel",this,a))),s.push(o)}),s}getAfterBody(e,n){return Kp(Et(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,s=Et(r,"beforeFooter",this,e),a=Et(r,"footer",this,e),o=Et(r,"afterFooter",this,e);let i=[];return i=wn(i,Hn(s)),i=wn(i,Hn(a)),i=wn(i,Hn(o)),i}_createItems(e){const n=this._active,r=this.chart.data,s=[],a=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(PC(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))),Me(i,d=>{const u=Gp(e.callbacks,d);s.push(Et(u,"labelColor",this,d)),a.push(Et(u,"labelPointStyle",this,d)),o.push(Et(u,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),s=this._active;let a,o=[];if(!s.length)this.opacity!==0&&(a={opacity:0});else{const i=Pa[r.position].call(this,s,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=Vp(this,r),c=Object.assign({},i,l),d=Up(this.chart,r,c),u=Xp(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,a={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,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,s){const a=this.getCaretPosition(e,r,s);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(e,n,r){const{xAlign:s,yAlign:a}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=ya(i),{x:f,y:h}=e,{width:m,height:p}=n;let b,v,x,k,w,y;return a==="center"?(w=h+p/2,s==="left"?(b=f,v=b-o,k=w+o,y=w-o):(b=f+m,v=b+o,k=w-o,y=w+o),x=b):(s==="left"?v=f+Math.max(l,d)+o:s==="right"?v=f+m-Math.max(c,u)-o:v=this.caretX,a==="top"?(k=h,w=k-o,b=v-o,x=v+o):(k=h+p,w=k+o,b=v+o,x=v-o),y=k),{x1:b,x2:v,x3:x,y1:k,y2:w,y3:y}}drawTitle(e,n,r){const s=this.title,a=s.length;let o,i,l;if(a){const c=xs(r.rtl,this.x,this.width);for(e.x=pi(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<a;++l)n.fillText(s[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===a&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,s,a){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=a,d=Mt(a.bodyFont),u=pi(this,"left",a),f=s.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,m=n.y+h;if(a.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=s.leftForLtr(f,c)+c/2,v=m+l/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,Xm(e,p,b,v),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,Xm(e,p,b,v)}else{e.lineWidth=ye(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 p=s.leftForLtr(f,c),b=s.leftForLtr(s.xPlus(f,1),c-2),v=ya(o.borderRadius);Object.values(v).some(x=>x!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Qc(e,{x:p,y:m,w:c,h:l,radius:v}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Qc(e,{x:b,y:m+1,w:c-2,h:l-2,radius:v}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(p,m,c,l),e.strokeRect(p,m,c,l),e.fillStyle=o.backgroundColor,e.fillRect(b,m+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:s}=this,{bodySpacing:a,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=Mt(r.bodyFont);let f=u.lineHeight,h=0;const m=xs(r.rtl,this.x,this.width),p=function(D){n.fillText(D,m.x(e.x+h),e.y+f/2),e.y+=f+a},b=m.textAlign(o);let v,x,k,w,y,S,N;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=pi(this,b,r),n.fillStyle=r.bodyColor,Me(this.beforeBody,p),h=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,w=0,S=s.length;w<S;++w){for(v=s[w],x=this.labelTextColors[w],n.fillStyle=x,Me(v.before,p),k=v.lines,i&&k.length&&(this._drawColorBox(n,e,w,m,r),f=Math.max(u.lineHeight,l)),y=0,N=k.length;y<N;++y)p(k[y]),f=u.lineHeight;Me(v.after,p)}h=0,f=u.lineHeight,Me(this.afterBody,p),e.y-=a}drawFooter(e,n,r){const s=this.footer,a=s.length;let o,i;if(a){const l=xs(r.rtl,this.x,this.width);for(e.x=pi(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<a;++i)n.fillText(s[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,s){const{xAlign:a,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:m}=ya(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,s),n.lineTo(i+c-f,l),n.quadraticCurveTo(i+c,l,i+c,l+f),o==="center"&&a==="right"&&this.drawCaret(e,n,r,s),n.lineTo(i+c,l+d-m),n.quadraticCurveTo(i+c,l+d,i+c-m,l+d),o==="bottom"&&this.drawCaret(e,n,r,s),n.lineTo(i+h,l+d),n.quadraticCurveTo(i,l+d,i,l+d-h),o==="center"&&a==="left"&&this.drawCaret(e,n,r,s),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,s=r&&r.x,a=r&&r.y;if(s||a){const o=Pa[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=Vp(this,e),l=Object.assign({},o,this._size),c=Up(n,e,l),d=Xp(e,l,c,n);(s._to!==d.x||a._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 s={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=sn(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(a,e,s,n),rp(e,n.textDirection),a.y+=o.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),sp(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,s=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}}),a=!Xo(r,s),o=this._positionChanged(s,n);(a||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,a=this._active||[],o=this._getActiveElements(e,a,n,r),i=this._positionChanged(o,e),l=n||!Xo(o,a)||i;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,s){const a=this.options;if(e.type==="mouseout")return[];if(!s)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,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:s,options:a}=this,o=Pa[a.position].call(this,e,n);return o!==!1&&(r!==o.x||s!==o.y)}}$(ud,"positioners",Pa);var LC={id:"tooltip",_element:ud,positioners:Pa,afterInit(t,e,n){n&&(t.tooltip=new ud({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:Qp},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 bi={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}},Pt=Object.keys(bi);function Zp(t,e){return t-e}function Jp(t,e){if(yt(e))return null;const n=t._adapter,{parser:r,round:s,isoWeekday:a}=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:(s&&(o=s==="week"&&(Zo(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,s)),+o)}function qp(t,e,n,r){const s=Pt.length;for(let a=Pt.indexOf(t);a<s-1;++a){const o=bi[Pt[a]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return Pt[a]}return Pt[s-1]}function FC(t,e,n,r,s){for(let a=Pt.length-1;a>=Pt.indexOf(n);a--){const o=Pt[a];if(bi[o].common&&t._adapter.diff(s,r,o)>=e-1)return o}return Pt[n?Pt.indexOf(n):0]}function WC(t){for(let e=Pt.indexOf(t)+1,n=Pt.length;e<n;++e)if(bi[Pt[e]].common)return Pt[e]}function $p(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:s}=Hc(n,e),a=n[r]>=e?n[r]:n[s];t[a]=!0}}function BC(t,e,n,r){const s=t._adapter,a=+s.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=a;i<=o;i=+s.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function e0(t,e,n){const r=[],s={},a=e.length;let o,i;for(o=0;o<a;++o)i=e[o],s[i]=o,r.push({value:i,major:!1});return a===0||!n?r:BC(t,r,s,n)}class yi extends ci{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={}),s=this._adapter=new cO._date(e.adapters.date);s.init(n),ha(r.displayFormats,s.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:Jp(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:s,max:a,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!i&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=Bn(s)&&!isNaN(s)?s:+n.startOf(Date.now(),r),a=Bn(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_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,s=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const a=this.min,o=this.max,i=oS(s,a,o);return this._unit=n.unit||(r.autoSkip?qp(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):FC(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:WC(this._unit),this.initOffsets(s),e.reverse&&i.reverse(),e0(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,s,a;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-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,s=this.options,a=s.time,o=a.unit||qp(a.minUnit,n,r,this._getLabelCapacity(n)),i=De(s.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=Zo(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 m=s.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<r;f=+e.add(f,i,o),h++)$p(d,f,m);return(f===r||s.bounds==="ticks"||h===1)&&$p(d,f,m),Object.keys(d).sort(Zp).map(p=>+p)}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 s=this.options.time.displayFormats,a=this._unit,o=n||s[a];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,s){const a=this.options,o=a.ticks.callback;if(o)return Le(o,[e,n,r],this);const i=a.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,s||(h?u:d))}generateTickLabels(e){let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n],s.label=this._tickFormatFunction(s.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,s=Tr(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(s),o=Math.sin(s),i=this._resolveTickFontOptions(0).size;return{w:r*a+i*o,h:r*o+i*a}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,s=r[n.unit]||r.millisecond,a=this._tickFormatFunction(e,0,e0(this,[e],this._majorUnit),s),o=this._getLabelSize(a),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 s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,r=s.length;n<r;++n)e=e.concat(s[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 s=this.getLabels();for(n=0,r=s.length;n<r;++n)e.push(Jp(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return lS(e.sort(Zp))}}$(yi,"id","time"),$(yi,"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 wi(t,e,n){let r=0,s=t.length-1,a,o,i,l;n?(e>=t[r].pos&&e<=t[s].pos&&({lo:r,hi:s}=Yc(t,"pos",e)),{pos:a,time:i}=t[r],{pos:o,time:l}=t[s]):(e>=t[r].time&&e<=t[s].time&&({lo:r,hi:s}=Yc(t,"time",e)),{time:a,pos:i}=t[r],{time:o,pos:l}=t[s]);const c=o-a;return c?i+(l-i)*(e-a)/c:i}class t0 extends yi{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=wi(n,this.min),this._tableRange=wi(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,s=[],a=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=s.length;o<i;++o)d=s[o+1],l=s[o-1],c=s[o],Math.round((d+l)/2)!==c&&a.push({time:c,pos:o/(i-1)});return a}_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((s,a)=>s-a)}_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(wi(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return wi(this._table,r*this._tableRange+this._minPos,!0)}}$(t0,"id","timeseries"),$(t0,"defaults",yi.defaults);const n0="label";function r0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function zC(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function s0(t,e){t.labels=e}function a0(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n0;const r=[];t.datasets=e.map(s=>{const a=t.datasets.find(o=>o[n]===s[n]);return!a||!s.data||r.includes(a)?{...s}:(r.push(a),Object.assign(a,s),a)})}function HC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n0;const n={labels:[],datasets:[]};return s0(n,t.labels),a0(n,t.datasets,e),n}function YC(t,e){const{height:n=150,width:r=300,redraw:s=!1,datasetIdKey:a,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=_.useRef(null),m=_.useRef(null),p=()=>{h.current&&(m.current=new gi(h.current,{type:o,data:HC(i,a),options:l&&{...l},plugins:c}),r0(e,m.current))},b=()=>{r0(e,null),m.current&&(m.current.destroy(),m.current=null)};return _.useEffect(()=>{!s&&m.current&&l&&zC(m.current,l)},[s,l]),_.useEffect(()=>{!s&&m.current&&s0(m.current.config.data,i.labels)},[s,i.labels]),_.useEffect(()=>{!s&&m.current&&i.datasets&&a0(m.current.config.data,i.datasets,a)},[s,i.datasets]),_.useEffect(()=>{m.current&&(s?(b(),setTimeout(p)):m.current.update(u))},[s,l,i.labels,i.datasets,u]),_.useEffect(()=>{m.current&&(b(),setTimeout(p))},[o]),_.useEffect(()=>(p(),()=>b()),[]),_.createElement("canvas",{ref:h,role:"img",height:n,width:r,...f},d)}const VC=_.forwardRef(YC);function UC(t,e){return gi.register(e),_.forwardRef((n,r)=>_.createElement(VC,{...n,ref:r,type:t}))}const XC=UC("doughnut",xa);gi.register(Ea,LC,EC);const o0=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),KC=({dataProps:t})=>{const e=t,n={responsive:!0,maintainAspectRatio:!1,cutout:`${t.cutout}%`,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:o0(e.datasets[0].data.reduce((a,o)=>a+o,0)),font:{size:"15"}}]}}},r={id:"textCenter",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l,height:c}}=a,d="Total",u=o0(e.datasets[0].data[1]),f=i+c*.75;o.save(),o.font="20px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(d,l/2,f-20),o.font=`bold ${t.fontSize}px Arial`,o.fillText(u,l/2,f+10),o.restore()}},s={id:"currencyLabel",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l}}=a;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+30),o.restore()}};return g.jsx("div",{children:g.jsx(XC,{data:e,options:n,plugins:[r,s]})})},fd={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function GC(t){return We({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 QC(t){return We({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 i0=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto",closeOnOverlayClick:s,isCloseButtonVisible:a=!0},o)=>{if(!t)return null;const i=s??!a,l=()=>{i&&e()};return g.jsx("div",{className:fd.overlay,onClick:l,children:g.jsxs("div",{ref:o,className:fd.modal,style:{width:r},onClick:c=>c.stopPropagation(),children:[a&&g.jsx("button",{onClick:e,className:fd.closeButton,children:g.jsx(QC,{})}),n]})})});/*! *****************************************************************************
25
+ `):t}function RC(t,e){const{element:n,datasetIndex:r,index:s}=e,a=t.getDatasetMeta(r).controller,{label:o,value:i}=a.getLabelAndValue(s);return{chart:t,label:o,parsed:a.getParsed(s),raw:t.data.datasets[r].data[s],formattedValue:i,dataset:a.getDataset(),dataIndex:s,datasetIndex:r,element:n}}function Kp(t,e){const n=t.chart.ctx,{body:r,footer:s,title:a}=t,{boxWidth:o,boxHeight:i}=e,l=Mt(e.bodyFont),c=Mt(e.titleFont),d=Mt(e.footerFont),u=a.length,f=s.length,h=r.length,p=sn(e.padding);let m=p.height,b=0,y=r.reduce((v,w)=>v+w.before.length+w.lines.length+w.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),y){const v=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;m+=h*v+(y-h)*l.lineHeight+(y-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let x=0;const k=function(v){b=Math.max(b,n.measureText(v).width+x)};return n.save(),n.font=c.string,Me(t.title,k),n.font=l.string,Me(t.beforeBody.concat(t.afterBody),k),x=e.displayColors?o+2+e.boxPadding:0,Me(r,v=>{Me(v.before,k),Me(v.lines,k),Me(v.after,k)}),x=0,n.font=d.string,Me(t.footer,k),n.restore(),b+=p.width,{width:b,height:m}}function LC(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function FC(t,e,n,r){const{x:s,width:a}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&s+a+o>e.width||t==="right"&&s-a-o<0)return!0}function WC(t,e,n,r){const{x:s,width:a}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=s<=(i+l)/2?"left":"right":s<=a/2?c="left":s>=o-a/2&&(c="right"),FC(c,t,e,n)&&(c="center"),c}function Gp(t,e,n){const r=n.yAlign||e.yAlign||LC(t,n);return{xAlign:n.xAlign||e.xAlign||WC(t,e,n,r),yAlign:r}}function BC(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function zC(t,e,n){let{y:r,height:s}=t;return e==="top"?r+=n:e==="bottom"?r-=s+n:r-=s/2,r}function Qp(t,e,n,r){const{caretSize:s,caretPadding:a,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=s+a,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=xa(o);let p=BC(e,i);const m=zC(e,l,c);return l==="center"?i==="left"?p+=c:i==="right"&&(p-=c):i==="left"?p-=Math.max(d,f)+s:i==="right"&&(p+=Math.max(u,h)+s),{x:Jt(p,0,r.width-e.width),y:Jt(m,0,r.height-e.height)}}function vi(t,e,n){const r=sn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function Zp(t){return vn([],Yn(t))}function HC(t,e,n){return xs(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Jp(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const qp={beforeTitle:Bn,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:Bn,beforeBody:Bn,beforeLabel:Bn,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 yt(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:Bn,afterBody:Bn,beforeFooter:Bn,footer:Bn,afterFooter:Bn};function Et(t,e,n,r){const s=t[e].call(n,r);return typeof s>"u"?qp[e].call(n,r):s}class hd extends Ea{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()),s=r.enabled&&n.options.animation&&r.animations,a=new cp(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=HC(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,s=Et(r,"beforeTitle",this,e),a=Et(r,"title",this,e),o=Et(r,"afterTitle",this,e);let i=[];return i=vn(i,Yn(s)),i=vn(i,Yn(a)),i=vn(i,Yn(o)),i}getBeforeBody(e,n){return Zp(Et(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,s=[];return Me(e,a=>{const o={before:[],lines:[],after:[]},i=Jp(r,a);vn(o.before,Yn(Et(i,"beforeLabel",this,a))),vn(o.lines,Et(i,"label",this,a)),vn(o.after,Yn(Et(i,"afterLabel",this,a))),s.push(o)}),s}getAfterBody(e,n){return Zp(Et(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,s=Et(r,"beforeFooter",this,e),a=Et(r,"footer",this,e),o=Et(r,"afterFooter",this,e);let i=[];return i=vn(i,Yn(s)),i=vn(i,Yn(a)),i=vn(i,Yn(o)),i}_createItems(e){const n=this._active,r=this.chart.data,s=[],a=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(RC(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))),Me(i,d=>{const u=Jp(e.callbacks,d);s.push(Et(u,"labelColor",this,d)),a.push(Et(u,"labelPointStyle",this,d)),o.push(Et(u,"labelTextColor",this,d))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),s=this._active;let a,o=[];if(!s.length)this.opacity!==0&&(a={opacity:0});else{const i=ja[r.position].call(this,s,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=Kp(this,r),c=Object.assign({},i,l),d=Gp(this.chart,r,c),u=Qp(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,a={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,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,s){const a=this.getCaretPosition(e,r,s);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(e,n,r){const{xAlign:s,yAlign:a}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=xa(i),{x:f,y:h}=e,{width:p,height:m}=n;let b,y,x,k,v,w;return a==="center"?(v=h+m/2,s==="left"?(b=f,y=b-o,k=v+o,w=v-o):(b=f+p,y=b+o,k=v-o,w=v+o),x=b):(s==="left"?y=f+Math.max(l,d)+o:s==="right"?y=f+p-Math.max(c,u)-o:y=this.caretX,a==="top"?(k=h,v=k-o,b=y-o,x=y+o):(k=h+m,v=k+o,b=y+o,x=y-o),w=k),{x1:b,x2:y,x3:x,y1:k,y2:v,y3:w}}drawTitle(e,n,r){const s=this.title,a=s.length;let o,i,l;if(a){const c=_s(r.rtl,this.x,this.width);for(e.x=vi(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<a;++l)n.fillText(s[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===a&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,s,a){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=a,d=Mt(a.bodyFont),u=vi(this,"left",a),f=s.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,p=n.y+h;if(a.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=s.leftForLtr(f,c)+c/2,y=p+l/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,Qm(e,m,b,y),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,Qm(e,m,b,y)}else{e.lineWidth=ye(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=s.leftForLtr(f,c),b=s.leftForLtr(s.xPlus(f,1),c-2),y=xa(o.borderRadius);Object.values(y).some(x=>x!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Jc(e,{x:m,y:p,w:c,h:l,radius:y}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Jc(e,{x:b,y:p+1,w:c-2,h:l-2,radius:y}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(m,p,c,l),e.strokeRect(m,p,c,l),e.fillStyle=o.backgroundColor,e.fillRect(b,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:s}=this,{bodySpacing:a,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=Mt(r.bodyFont);let f=u.lineHeight,h=0;const p=_s(r.rtl,this.x,this.width),m=function(D){n.fillText(D,p.x(e.x+h),e.y+f/2),e.y+=f+a},b=p.textAlign(o);let y,x,k,v,w,S,N;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=vi(this,b,r),n.fillStyle=r.bodyColor,Me(this.beforeBody,m),h=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,v=0,S=s.length;v<S;++v){for(y=s[v],x=this.labelTextColors[v],n.fillStyle=x,Me(y.before,m),k=y.lines,i&&k.length&&(this._drawColorBox(n,e,v,p,r),f=Math.max(u.lineHeight,l)),w=0,N=k.length;w<N;++w)m(k[w]),f=u.lineHeight;Me(y.after,m)}h=0,f=u.lineHeight,Me(this.afterBody,m),e.y-=a}drawFooter(e,n,r){const s=this.footer,a=s.length;let o,i;if(a){const l=_s(r.rtl,this.x,this.width);for(e.x=vi(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<a;++i)n.fillText(s[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,s){const{xAlign:a,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:p}=xa(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,s),n.lineTo(i+c-f,l),n.quadraticCurveTo(i+c,l,i+c,l+f),o==="center"&&a==="right"&&this.drawCaret(e,n,r,s),n.lineTo(i+c,l+d-p),n.quadraticCurveTo(i+c,l+d,i+c-p,l+d),o==="bottom"&&this.drawCaret(e,n,r,s),n.lineTo(i+h,l+d),n.quadraticCurveTo(i,l+d,i,l+d-h),o==="center"&&a==="left"&&this.drawCaret(e,n,r,s),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,s=r&&r.x,a=r&&r.y;if(s||a){const o=ja[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=Kp(this,e),l=Object.assign({},o,this._size),c=Gp(n,e,l),d=Qp(e,l,c,n);(s._to!==d.x||a._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 s={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=sn(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(a,e,s,n),op(e,n.textDirection),a.y+=o.top,this.drawTitle(a,e,n),this.drawBody(a,e,n),this.drawFooter(a,e,n),ip(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,s=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}}),a=!Jo(r,s),o=this._positionChanged(s,n);(a||o)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,a=this._active||[],o=this._getActiveElements(e,a,n,r),i=this._positionChanged(o,e),l=n||!Jo(o,a)||i;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,s){const a=this.options;if(e.type==="mouseout")return[];if(!s)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,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:s,options:a}=this,o=ja[a.position].call(this,e,n);return o!==!1&&(r!==o.x||s!==o.y)}}$(hd,"positioners",ja);var YC={id:"tooltip",_element:hd,positioners:ja,afterInit(t,e,n){n&&(t.tooltip=new hd({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:qp},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 xi={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}},Pt=Object.keys(xi);function $p(t,e){return t-e}function e0(t,e){if(yt(e))return null;const n=t._adapter,{parser:r,round:s,isoWeekday:a}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),zn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(s&&(o=s==="week"&&(ti(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,s)),+o)}function t0(t,e,n,r){const s=Pt.length;for(let a=Pt.indexOf(t);a<s-1;++a){const o=xi[Pt[a]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return Pt[a]}return Pt[s-1]}function VC(t,e,n,r,s){for(let a=Pt.length-1;a>=Pt.indexOf(n);a--){const o=Pt[a];if(xi[o].common&&t._adapter.diff(s,r,o)>=e-1)return o}return Pt[n?Pt.indexOf(n):0]}function UC(t){for(let e=Pt.indexOf(t)+1,n=Pt.length;e<n;++e)if(xi[Pt[e]].common)return Pt[e]}function n0(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:s}=Vc(n,e),a=n[r]>=e?n[r]:n[s];t[a]=!0}}function XC(t,e,n,r){const s=t._adapter,a=+s.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=a;i<=o;i=+s.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function r0(t,e,n){const r=[],s={},a=e.length;let o,i;for(o=0;o<a;++o)i=e[o],s[i]=o,r.push({value:i,major:!1});return a===0||!n?r:XC(t,r,s,n)}class ki extends gi{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={}),s=this._adapter=new mO._date(e.adapters.date);s.init(n),pa(r.displayFormats,s.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:e0(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:s,max:a,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!i&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=zn(s)&&!isNaN(s)?s:+n.startOf(Date.now(),r),a=zn(a)&&!isNaN(a)?a:+n.endOf(Date.now(),r)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_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,s=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const a=this.min,o=this.max,i=dS(s,a,o);return this._unit=n.unit||(r.autoSkip?t0(n.minUnit,this.min,this.max,this._getLabelCapacity(a)):VC(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:UC(this._unit),this.initOffsets(s),e.reverse&&i.reverse(),r0(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,s,a;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-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,s=this.options,a=s.time,o=a.unit||t0(a.minUnit,n,r,this._getLabelCapacity(n)),i=De(s.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=ti(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 p=s.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<r;f=+e.add(f,i,o),h++)n0(d,f,p);return(f===r||s.bounds==="ticks"||h===1)&&n0(d,f,p),Object.keys(d).sort($p).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 s=this.options.time.displayFormats,a=this._unit,o=n||s[a];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,s){const a=this.options,o=a.ticks.callback;if(o)return Fe(o,[e,n,r],this);const i=a.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,s||(h?u:d))}generateTickLabels(e){let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n],s.label=this._tickFormatFunction(s.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,s=Ir(this.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(s),o=Math.sin(s),i=this._resolveTickFontOptions(0).size;return{w:r*a+i*o,h:r*o+i*a}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,s=r[n.unit]||r.millisecond,a=this._tickFormatFunction(e,0,r0(this,[e],this._majorUnit),s),o=this._getLabelSize(a),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 s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,r=s.length;n<r;++n)e=e.concat(s[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 s=this.getLabels();for(n=0,r=s.length;n<r;++n)e.push(e0(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return fS(e.sort($p))}}$(ki,"id","time"),$(ki,"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 _i(t,e,n){let r=0,s=t.length-1,a,o,i,l;n?(e>=t[r].pos&&e<=t[s].pos&&({lo:r,hi:s}=Uc(t,"pos",e)),{pos:a,time:i}=t[r],{pos:o,time:l}=t[s]):(e>=t[r].time&&e<=t[s].time&&({lo:r,hi:s}=Uc(t,"time",e)),{time:a,pos:i}=t[r],{time:o,pos:l}=t[s]);const c=o-a;return c?i+(l-i)*(e-a)/c:i}class s0 extends ki{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=_i(n,this.min),this._tableRange=_i(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,s=[],a=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=s.length;o<i;++o)d=s[o+1],l=s[o-1],c=s[o],Math.round((d+l)/2)!==c&&a.push({time:c,pos:o/(i-1)});return a}_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((s,a)=>s-a)}_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(_i(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return _i(this._table,r*this._tableRange+this._minPos,!0)}}$(s0,"id","timeseries"),$(s0,"defaults",ki.defaults);const a0="label";function o0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function KC(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function i0(t,e){t.labels=e}function l0(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a0;const r=[];t.datasets=e.map(s=>{const a=t.datasets.find(o=>o[n]===s[n]);return!a||!s.data||r.includes(a)?{...s}:(r.push(a),Object.assign(a,s),a)})}function GC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a0;const n={labels:[],datasets:[]};return i0(n,t.labels),l0(n,t.datasets,e),n}function QC(t,e){const{height:n=150,width:r=300,redraw:s=!1,datasetIdKey:a,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=_.useRef(null),p=_.useRef(null),m=()=>{h.current&&(p.current=new yi(h.current,{type:o,data:GC(i,a),options:l&&{...l},plugins:c}),o0(e,p.current))},b=()=>{o0(e,null),p.current&&(p.current.destroy(),p.current=null)};return _.useEffect(()=>{!s&&p.current&&l&&KC(p.current,l)},[s,l]),_.useEffect(()=>{!s&&p.current&&i0(p.current.config.data,i.labels)},[s,i.labels]),_.useEffect(()=>{!s&&p.current&&i.datasets&&l0(p.current.config.data,i.datasets,a)},[s,i.datasets]),_.useEffect(()=>{p.current&&(s?(b(),setTimeout(m)):p.current.update(u))},[s,l,i.labels,i.datasets,u]),_.useEffect(()=>{p.current&&(b(),setTimeout(m))},[o]),_.useEffect(()=>(m(),()=>b()),[]),_.createElement("canvas",{ref:h,role:"img",height:n,width:r,...f},d)}const ZC=_.forwardRef(QC);function JC(t,e){return yi.register(e),_.forwardRef((n,r)=>_.createElement(ZC,{...n,ref:r,type:t}))}const qC=JC("doughnut",Sa);yi.register(Na,YC,AC);const c0=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),$C=({dataProps:t})=>{const e=t,n={responsive:!0,maintainAspectRatio:!1,cutout:`${t.cutout}%`,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:c0(e.datasets[0].data.reduce((a,o)=>a+o,0)),font:{size:"15"}}]}}},r={id:"textCenter",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l,height:c}}=a,d="Total",u=c0(e.datasets[0].data[1]),f=i+c*.75;o.save(),o.font="20px Arial",o.fillStyle="black",o.textAlign="center",o.fillText(d,l/2,f-20),o.font=`bold ${t.fontSize}px Arial`,o.fillText(u,l/2,f+10),o.restore()}},s={id:"currencyLabel",beforeDraw(a){const{ctx:o,chartArea:{top:i,width:l}}=a;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+30),o.restore()}};return g.jsx("div",{children:g.jsx(qC,{data:e,options:n,plugins:[r,s]})})},gd={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function eD(t){return Ee({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 tD(t){return Ee({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 d0=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto",closeOnOverlayClick:s,isCloseButtonVisible:a=!0},o)=>{if(!t)return null;const i=s??!a,l=()=>{i&&e()};return g.jsx("div",{className:gd.overlay,onClick:l,children:g.jsxs("div",{ref:o,className:gd.modal,style:{width:r},onClick:c=>c.stopPropagation(),children:[a&&g.jsx("button",{onClick:e,className:gd.closeButton,children:g.jsx(tD,{})}),n]})})});/*! *****************************************************************************
26
26
  Copyright (c) Microsoft Corporation.
27
27
 
28
28
  Permission to use, copy, modify, and/or distribute this software for any
@@ -35,33 +35,33 @@
35
35
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
36
36
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37
37
  PERFORMANCE OF THIS SOFTWARE.
38
- ***************************************************************************** */var Ft=function(){return Ft=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ft.apply(this,arguments)};function Fr(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function wt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function hd(){return hd=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},hd.apply(this,arguments)}function vi(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var ZC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,JC=vi(function(t){return ZC.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function qC(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function $C(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var eD=function(){function t(n){var r=this;this._insertTag=function(s){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,a),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag($C(this));var s=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
39
- `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var o=qC(s);try{o.insertRule(r,o.cssRules.length)}catch(i){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',i)}}else s.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),vt="-ms-",xi="-moz-",ve="-webkit-",gd="comm",md="rule",pd="decl",tD="@import",l0="@keyframes",nD=Math.abs,ki=String.fromCharCode,rD=Object.assign;function sD(t,e){return mt(t,0)^45?(((e<<2^mt(t,0))<<2^mt(t,1))<<2^mt(t,2))<<2^mt(t,3):0}function c0(t){return t.trim()}function aD(t,e){return(t=e.exec(t))?t[0]:t}function Se(t,e,n){return t.replace(e,n)}function bd(t,e){return t.indexOf(e)}function mt(t,e){return t.charCodeAt(e)|0}function Ta(t,e,n){return t.slice(e,n)}function vn(t){return t.length}function yd(t){return t.length}function _i(t,e){return e.push(t),t}function oD(t,e){return t.map(e).join("")}var Si=1,_s=1,d0=0,Tt=0,nt=0,Ss="";function Oi(t,e,n,r,s,a,o){return{value:t,root:e,parent:n,type:r,props:s,children:a,line:Si,column:_s,length:o,return:""}}function Na(t,e){return rD(Oi("",null,null,"",null,null,0),t,{length:-t.length},e)}function iD(){return nt}function lD(){return nt=Tt>0?mt(Ss,--Tt):0,_s--,nt===10&&(_s=1,Si--),nt}function Wt(){return nt=Tt<d0?mt(Ss,Tt++):0,_s++,nt===10&&(_s=1,Si++),nt}function xn(){return mt(Ss,Tt)}function Ci(){return Tt}function ja(t,e){return Ta(Ss,t,e)}function Ia(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function u0(t){return Si=_s=1,d0=vn(Ss=t),Tt=0,[]}function f0(t){return Ss="",t}function Di(t){return c0(ja(Tt-1,wd(t===91?t+2:t===40?t+1:t)))}function cD(t){for(;(nt=xn())&&nt<33;)Wt();return Ia(t)>2||Ia(nt)>3?"":" "}function dD(t,e){for(;--e&&Wt()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return ja(t,Ci()+(e<6&&xn()==32&&Wt()==32))}function wd(t){for(;Wt();)switch(nt){case t:return Tt;case 34:case 39:t!==34&&t!==39&&wd(nt);break;case 40:t===41&&wd(t);break;case 92:Wt();break}return Tt}function uD(t,e){for(;Wt()&&t+nt!==57;)if(t+nt===84&&xn()===47)break;return"/*"+ja(e,Tt-1)+"*"+ki(t===47?t:Wt())}function fD(t){for(;!Ia(xn());)Wt();return ja(t,Tt)}function h0(t){return f0(Mi("",null,null,null,[""],t=u0(t),0,[0],t))}function Mi(t,e,n,r,s,a,o,i,l){for(var c=0,d=0,u=o,f=0,h=0,m=0,p=1,b=1,v=1,x=0,k="",w=s,y=a,S=r,N=k;b;)switch(m=x,x=Wt()){case 40:if(m!=108&&mt(N,u-1)==58){bd(N+=Se(Di(x),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:N+=Di(x);break;case 9:case 10:case 13:case 32:N+=cD(m);break;case 92:N+=dD(Ci()-1,7);continue;case 47:switch(xn()){case 42:case 47:_i(hD(uD(Wt(),Ci()),e,n),l);break;default:N+="/"}break;case 123*p:i[c++]=vn(N)*v;case 125*p:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+d:h>0&&vn(N)-u&&_i(h>32?m0(N+";",r,n,u-1):m0(Se(N," ","")+";",r,n,u-2),l);break;case 59:N+=";";default:if(_i(S=g0(N,e,n,c,d,s,i,k,w=[],y=[],u),a),x===123)if(d===0)Mi(N,e,S,S,w,a,u,i,y);else switch(f===99&&mt(N,3)===110?100:f){case 100:case 109:case 115:Mi(t,S,S,r&&_i(g0(t,S,S,0,0,s,i,k,s,w=[],u),y),s,y,u,i,r?w:y);break;default:Mi(N,S,S,S,[""],y,0,i,y)}}c=d=h=0,p=v=1,k=N="",u=o;break;case 58:u=1+vn(N),h=m;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&lD()==125)continue}switch(N+=ki(x),x*p){case 38:v=d>0?1:(N+="\f",-1);break;case 44:i[c++]=(vn(N)-1)*v,v=1;break;case 64:xn()===45&&(N+=Di(Wt())),f=xn(),d=u=vn(k=N+=fD(Ci())),x++;break;case 45:m===45&&vn(N)==2&&(p=0)}}return a}function g0(t,e,n,r,s,a,o,i,l,c,d){for(var u=s-1,f=s===0?a:[""],h=yd(f),m=0,p=0,b=0;m<r;++m)for(var v=0,x=Ta(t,u+1,u=nD(p=o[m])),k=t;v<h;++v)(k=c0(p>0?f[v]+" "+x:Se(x,/&\f/g,f[v])))&&(l[b++]=k);return Oi(t,e,n,s===0?md:i,l,c,d)}function hD(t,e,n){return Oi(t,e,n,gd,ki(iD()),Ta(t,2,-2),0)}function m0(t,e,n,r){return Oi(t,e,n,pd,Ta(t,0,r),Ta(t,r+1,-1),r)}function Wr(t,e){for(var n="",r=yd(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function p0(t,e,n,r){switch(t.type){case tD:case pd:return t.return=t.return||t.value;case gd:return"";case l0:return t.return=t.value+"{"+Wr(t.children,r)+"}";case md:t.value=t.props.join(",")}return vn(n=Wr(t.children,r))?t.return=t.value+"{"+n+"}":""}function b0(t){var e=yd(t);return function(n,r,s,a){for(var o="",i=0;i<e;i++)o+=t[i](n,r,s,a)||"";return o}}function gD(t){return function(e){e.root||(e=e.return)&&t(e)}}var mD=function(e){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var s=e(r);return n.set(r,s),s}},pD=function(e,n,r){for(var s=0,a=0;s=a,a=xn(),s===38&&a===12&&(n[r]=1),!Ia(a);)Wt();return ja(e,Tt)},bD=function(e,n){var r=-1,s=44;do switch(Ia(s)){case 0:s===38&&xn()===12&&(n[r]=1),e[r]+=pD(Tt-1,n,r);break;case 2:e[r]+=Di(s);break;case 4:if(s===44){e[++r]=xn()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=ki(s)}while(s=Wt());return e},yD=function(e,n){return f0(bD(u0(e),n))},y0=new WeakMap,wD=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!y0.get(r))&&!s){y0.set(e,!0);for(var a=[],o=yD(n,a),i=r.props,l=0,c=0;l<o.length;l++)for(var d=0;d<i.length;d++,c++)e.props[c]=a[l]?o[l].replace(/&\f/g,i[d]):i[d]+" "+o[l]}}},vD=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},xD="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",kD=function(e){return e.type==="comm"&&e.children.indexOf(xD)>-1},_D=function(e){return function(n,r,s){if(!(n.type!=="rule"||e.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=n.parent===s[0],i=o?s[0].children:s,l=i.length-1;l>=0;l--){var c=i[l];if(c.line<n.line)break;if(c.column<n.column){if(kD(c))return;break}}a.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},w0=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},SD=function(e,n){for(var r=e-1;r>=0;r--)if(!w0(n[r]))return!0;return!1},v0=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},OD=function(e,n,r){w0(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),v0(e)):SD(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),v0(e)))};function x0(t,e){switch(sD(t,e)){case 5103:return ve+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ve+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+t+xi+t+vt+t+t;case 6828:case 4268:return ve+t+vt+t+t;case 6165:return ve+t+vt+"flex-"+t+t;case 5187:return ve+t+Se(t,/(\w+).+(:[^]+)/,ve+"box-$1$2"+vt+"flex-$1$2")+t;case 5443:return ve+t+vt+"flex-item-"+Se(t,/flex-|-self/,"")+t;case 4675:return ve+t+vt+"flex-line-pack"+Se(t,/align-content|flex-|-self/,"")+t;case 5548:return ve+t+vt+Se(t,"shrink","negative")+t;case 5292:return ve+t+vt+Se(t,"basis","preferred-size")+t;case 6060:return ve+"box-"+Se(t,"-grow","")+ve+t+vt+Se(t,"grow","positive")+t;case 4554:return ve+Se(t,/([^-])(transform)/g,"$1"+ve+"$2")+t;case 6187:return Se(Se(Se(t,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),t,"")+t;case 5495:case 3959:return Se(t,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return Se(Se(t,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+t+t;case 4095:case 3583:case 4068:case 2532:return Se(t,/(.+)-inline(.+)/,ve+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(vn(t)-1-e>6)switch(mt(t,e+1)){case 109:if(mt(t,e+4)!==45)break;case 102:return Se(t,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+xi+(mt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~bd(t,"stretch")?x0(Se(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(mt(t,e+1)!==115)break;case 6444:switch(mt(t,vn(t)-3-(~bd(t,"!important")&&10))){case 107:return Se(t,":",":"+ve)+t;case 101:return Se(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(mt(t,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+vt+"$2box$3")+t}break;case 5936:switch(mt(t,e+11)){case 114:return ve+t+vt+Se(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ve+t+vt+Se(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ve+t+vt+Se(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ve+t+vt+t+t}return t}var CD=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case pd:e.return=x0(e.value,e.length);break;case l0:return Wr([Na(e,{value:Se(e.value,"@","@"+ve)})],s);case md:if(e.length)return oD(e.props,function(a){switch(aD(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wr([Na(e,{props:[Se(a,/:(read-\w+)/,":"+xi+"$1")]})],s);case"::placeholder":return Wr([Na(e,{props:[Se(a,/:(plac\w+)/,":"+ve+"input-$1")]}),Na(e,{props:[Se(a,/:(plac\w+)/,":"+xi+"$1")]}),Na(e,{props:[Se(a,/:(plac\w+)/,vt+"input-$1")]})],s)}return""})}},Ei=typeof document<"u",DD=Ei?void 0:mD(function(){return vi(function(){var t={};return function(e){return t[e]}})}),MD=[CD],k0=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
40
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(Ei&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var y=w.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var s=e.stylisPlugins||MD;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},o,i=[];Ei&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var y=w.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)a[y[S]]=!0;i.push(w)}));var l,c=[wD,vD];if(process.env.NODE_ENV!=="production"&&c.push(_D({get compat(){return k.compat}}),OD),Ei){var d,u=[p0,process.env.NODE_ENV!=="production"?function(w){w.root||(w.return?d.insert(w.return):w.value&&w.type!==gd&&d.insert(w.value+"{}"))}:gD(function(w){d.insert(w)})],f=b0(c.concat(s,u)),h=function(y){return Wr(h0(y),f)};l=function(y,S,N,D){d=N,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(d={insert:function(E){N.insert(E+S.map)}}),h(y?y+"{"+S.styles+"}":S.styles),D&&(k.inserted[S.name]=!0)}}else{var m=[p0],p=b0(c.concat(s,m)),b=function(y){return Wr(h0(y),p)},v=DD(s)(n),x=function(y,S){var N=S.name;return v[N]===void 0&&(v[N]=b(y?y+"{"+S.styles+"}":S.styles)),v[N]};l=function(y,S,N,D){var T=S.name,E=x(y,S);if(k.compat===void 0)return D&&(k.inserted[T]=!0),process.env.NODE_ENV==="development"&&S.map!==void 0?E+S.map:E;if(D)k.inserted[T]=E;else return E}}var k={key:n,sheet:new eD({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:l};return k.sheet.hydrate(i),k},vd=typeof document<"u";function ED(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var _0=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||vd===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},PD=function(e,n,r){_0(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!vd&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!vd&&a.length!==0)return a}};function TD(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var ND={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},S0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
38
+ ***************************************************************************** */var Ft=function(){return Ft=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ft.apply(this,arguments)};function Br(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function wt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function md(){return md=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},md.apply(this,arguments)}function Si(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var nD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rD=Si(function(t){return nD.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function sD(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function aD(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var oD=function(){function t(n){var r=this;this._insertTag=function(s){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,a),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(aD(this));var s=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
39
+ `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var o=sD(s);try{o.insertRule(r,o.cssRules.length)}catch(i){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',i)}}else s.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),vt="-ms-",Oi="-moz-",ve="-webkit-",pd="comm",bd="rule",yd="decl",iD="@import",u0="@keyframes",lD=Math.abs,Ci=String.fromCharCode,cD=Object.assign;function dD(t,e){return mt(t,0)^45?(((e<<2^mt(t,0))<<2^mt(t,1))<<2^mt(t,2))<<2^mt(t,3):0}function f0(t){return t.trim()}function uD(t,e){return(t=e.exec(t))?t[0]:t}function Se(t,e,n){return t.replace(e,n)}function wd(t,e){return t.indexOf(e)}function mt(t,e){return t.charCodeAt(e)|0}function Ia(t,e,n){return t.slice(e,n)}function xn(t){return t.length}function vd(t){return t.length}function Di(t,e){return e.push(t),t}function fD(t,e){return t.map(e).join("")}var Mi=1,Os=1,h0=0,Tt=0,rt=0,Cs="";function Ei(t,e,n,r,s,a,o){return{value:t,root:e,parent:n,type:r,props:s,children:a,line:Mi,column:Os,length:o,return:""}}function Aa(t,e){return cD(Ei("",null,null,"",null,null,0),t,{length:-t.length},e)}function hD(){return rt}function gD(){return rt=Tt>0?mt(Cs,--Tt):0,Os--,rt===10&&(Os=1,Mi--),rt}function Wt(){return rt=Tt<h0?mt(Cs,Tt++):0,Os++,rt===10&&(Os=1,Mi++),rt}function kn(){return mt(Cs,Tt)}function Pi(){return Tt}function Ra(t,e){return Ia(Cs,t,e)}function La(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function g0(t){return Mi=Os=1,h0=xn(Cs=t),Tt=0,[]}function m0(t){return Cs="",t}function Ti(t){return f0(Ra(Tt-1,xd(t===91?t+2:t===40?t+1:t)))}function mD(t){for(;(rt=kn())&&rt<33;)Wt();return La(t)>2||La(rt)>3?"":" "}function pD(t,e){for(;--e&&Wt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return Ra(t,Pi()+(e<6&&kn()==32&&Wt()==32))}function xd(t){for(;Wt();)switch(rt){case t:return Tt;case 34:case 39:t!==34&&t!==39&&xd(rt);break;case 40:t===41&&xd(t);break;case 92:Wt();break}return Tt}function bD(t,e){for(;Wt()&&t+rt!==57;)if(t+rt===84&&kn()===47)break;return"/*"+Ra(e,Tt-1)+"*"+Ci(t===47?t:Wt())}function yD(t){for(;!La(kn());)Wt();return Ra(t,Tt)}function p0(t){return m0(Ni("",null,null,null,[""],t=g0(t),0,[0],t))}function Ni(t,e,n,r,s,a,o,i,l){for(var c=0,d=0,u=o,f=0,h=0,p=0,m=1,b=1,y=1,x=0,k="",v=s,w=a,S=r,N=k;b;)switch(p=x,x=Wt()){case 40:if(p!=108&&mt(N,u-1)==58){wd(N+=Se(Ti(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=Ti(x);break;case 9:case 10:case 13:case 32:N+=mD(p);break;case 92:N+=pD(Pi()-1,7);continue;case 47:switch(kn()){case 42:case 47:Di(wD(bD(Wt(),Pi()),e,n),l);break;default:N+="/"}break;case 123*m:i[c++]=xn(N)*y;case 125*m:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+d:h>0&&xn(N)-u&&Di(h>32?y0(N+";",r,n,u-1):y0(Se(N," ","")+";",r,n,u-2),l);break;case 59:N+=";";default:if(Di(S=b0(N,e,n,c,d,s,i,k,v=[],w=[],u),a),x===123)if(d===0)Ni(N,e,S,S,v,a,u,i,w);else switch(f===99&&mt(N,3)===110?100:f){case 100:case 109:case 115:Ni(t,S,S,r&&Di(b0(t,S,S,0,0,s,i,k,s,v=[],u),w),s,w,u,i,r?v:w);break;default:Ni(N,S,S,S,[""],w,0,i,w)}}c=d=h=0,m=y=1,k=N="",u=o;break;case 58:u=1+xn(N),h=p;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&gD()==125)continue}switch(N+=Ci(x),x*m){case 38:y=d>0?1:(N+="\f",-1);break;case 44:i[c++]=(xn(N)-1)*y,y=1;break;case 64:kn()===45&&(N+=Ti(Wt())),f=kn(),d=u=xn(k=N+=yD(Pi())),x++;break;case 45:p===45&&xn(N)==2&&(m=0)}}return a}function b0(t,e,n,r,s,a,o,i,l,c,d){for(var u=s-1,f=s===0?a:[""],h=vd(f),p=0,m=0,b=0;p<r;++p)for(var y=0,x=Ia(t,u+1,u=lD(m=o[p])),k=t;y<h;++y)(k=f0(m>0?f[y]+" "+x:Se(x,/&\f/g,f[y])))&&(l[b++]=k);return Ei(t,e,n,s===0?bd:i,l,c,d)}function wD(t,e,n){return Ei(t,e,n,pd,Ci(hD()),Ia(t,2,-2),0)}function y0(t,e,n,r){return Ei(t,e,n,yd,Ia(t,0,r),Ia(t,r+1,-1),r)}function zr(t,e){for(var n="",r=vd(t),s=0;s<r;s++)n+=e(t[s],s,t,e)||"";return n}function w0(t,e,n,r){switch(t.type){case iD:case yd:return t.return=t.return||t.value;case pd:return"";case u0:return t.return=t.value+"{"+zr(t.children,r)+"}";case bd:t.value=t.props.join(",")}return xn(n=zr(t.children,r))?t.return=t.value+"{"+n+"}":""}function v0(t){var e=vd(t);return function(n,r,s,a){for(var o="",i=0;i<e;i++)o+=t[i](n,r,s,a)||"";return o}}function vD(t){return function(e){e.root||(e=e.return)&&t(e)}}var xD=function(e){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var s=e(r);return n.set(r,s),s}},kD=function(e,n,r){for(var s=0,a=0;s=a,a=kn(),s===38&&a===12&&(n[r]=1),!La(a);)Wt();return Ra(e,Tt)},_D=function(e,n){var r=-1,s=44;do switch(La(s)){case 0:s===38&&kn()===12&&(n[r]=1),e[r]+=kD(Tt-1,n,r);break;case 2:e[r]+=Ti(s);break;case 4:if(s===44){e[++r]=kn()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Ci(s)}while(s=Wt());return e},SD=function(e,n){return m0(_D(g0(e),n))},x0=new WeakMap,OD=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,s=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!x0.get(r))&&!s){x0.set(e,!0);for(var a=[],o=SD(n,a),i=r.props,l=0,c=0;l<o.length;l++)for(var d=0;d<i.length;d++,c++)e.props[c]=a[l]?o[l].replace(/&\f/g,i[d]):i[d]+" "+o[l]}}},CD=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},DD="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",MD=function(e){return e.type==="comm"&&e.children.indexOf(DD)>-1},ED=function(e){return function(n,r,s){if(!(n.type!=="rule"||e.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=n.parent===s[0],i=o?s[0].children:s,l=i.length-1;l>=0;l--){var c=i[l];if(c.line<n.line)break;if(c.column<n.column){if(MD(c))return;break}}a.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},k0=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},PD=function(e,n){for(var r=e-1;r>=0;r--)if(!k0(n[r]))return!0;return!1},_0=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},TD=function(e,n,r){k0(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),_0(e)):PD(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),_0(e)))};function S0(t,e){switch(dD(t,e)){case 5103:return ve+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ve+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ve+t+Oi+t+vt+t+t;case 6828:case 4268:return ve+t+vt+t+t;case 6165:return ve+t+vt+"flex-"+t+t;case 5187:return ve+t+Se(t,/(\w+).+(:[^]+)/,ve+"box-$1$2"+vt+"flex-$1$2")+t;case 5443:return ve+t+vt+"flex-item-"+Se(t,/flex-|-self/,"")+t;case 4675:return ve+t+vt+"flex-line-pack"+Se(t,/align-content|flex-|-self/,"")+t;case 5548:return ve+t+vt+Se(t,"shrink","negative")+t;case 5292:return ve+t+vt+Se(t,"basis","preferred-size")+t;case 6060:return ve+"box-"+Se(t,"-grow","")+ve+t+vt+Se(t,"grow","positive")+t;case 4554:return ve+Se(t,/([^-])(transform)/g,"$1"+ve+"$2")+t;case 6187:return Se(Se(Se(t,/(zoom-|grab)/,ve+"$1"),/(image-set)/,ve+"$1"),t,"")+t;case 5495:case 3959:return Se(t,/(image-set\([^]*)/,ve+"$1$`$1");case 4968:return Se(Se(t,/(.+:)(flex-)?(.*)/,ve+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ve+t+t;case 4095:case 3583:case 4068:case 2532:return Se(t,/(.+)-inline(.+)/,ve+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xn(t)-1-e>6)switch(mt(t,e+1)){case 109:if(mt(t,e+4)!==45)break;case 102:return Se(t,/(.+:)(.+)-([^]+)/,"$1"+ve+"$2-$3$1"+Oi+(mt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~wd(t,"stretch")?S0(Se(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(mt(t,e+1)!==115)break;case 6444:switch(mt(t,xn(t)-3-(~wd(t,"!important")&&10))){case 107:return Se(t,":",":"+ve)+t;case 101:return Se(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ve+(mt(t,14)===45?"inline-":"")+"box$3$1"+ve+"$2$3$1"+vt+"$2box$3")+t}break;case 5936:switch(mt(t,e+11)){case 114:return ve+t+vt+Se(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ve+t+vt+Se(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ve+t+vt+Se(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ve+t+vt+t+t}return t}var ND=function(e,n,r,s){if(e.length>-1&&!e.return)switch(e.type){case yd:e.return=S0(e.value,e.length);break;case u0:return zr([Aa(e,{value:Se(e.value,"@","@"+ve)})],s);case bd:if(e.length)return fD(e.props,function(a){switch(uD(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zr([Aa(e,{props:[Se(a,/:(read-\w+)/,":"+Oi+"$1")]})],s);case"::placeholder":return zr([Aa(e,{props:[Se(a,/:(plac\w+)/,":"+ve+"input-$1")]}),Aa(e,{props:[Se(a,/:(plac\w+)/,":"+Oi+"$1")]}),Aa(e,{props:[Se(a,/:(plac\w+)/,vt+"input-$1")]})],s)}return""})}},ji=typeof document<"u",jD=ji?void 0:xD(function(){return Si(function(){var t={};return function(e){return t[e]}})}),ID=[ND],O0=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
40
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(ji&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var w=v.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var s=e.stylisPlugins||ID;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},o,i=[];ji&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var w=v.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)a[w[S]]=!0;i.push(v)}));var l,c=[OD,CD];if(process.env.NODE_ENV!=="production"&&c.push(ED({get compat(){return k.compat}}),TD),ji){var d,u=[w0,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?d.insert(v.return):v.value&&v.type!==pd&&d.insert(v.value+"{}"))}:vD(function(v){d.insert(v)})],f=v0(c.concat(s,u)),h=function(w){return zr(p0(w),f)};l=function(w,S,N,D){d=N,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(d={insert:function(E){N.insert(E+S.map)}}),h(w?w+"{"+S.styles+"}":S.styles),D&&(k.inserted[S.name]=!0)}}else{var p=[w0],m=v0(c.concat(s,p)),b=function(w){return zr(p0(w),m)},y=jD(s)(n),x=function(w,S){var N=S.name;return y[N]===void 0&&(y[N]=b(w?w+"{"+S.styles+"}":S.styles)),y[N]};l=function(w,S,N,D){var T=S.name,E=x(w,S);if(k.compat===void 0)return D&&(k.inserted[T]=!0),process.env.NODE_ENV==="development"&&S.map!==void 0?E+S.map:E;if(D)k.inserted[T]=E;else return E}}var k={key:n,sheet:new oD({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:l};return k.sheet.hydrate(i),k},kd=typeof document<"u";function AD(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var C0=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||kd===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},RD=function(e,n,r){C0(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!kd&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!kd&&a.length!==0)return a}};function LD(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var FD={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},D0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
41
41
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
42
42
  You can read more about this here:
43
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,jD="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ID=/[A-Z]|^ms/g,O0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xd=function(e){return e.charCodeAt(1)===45},C0=function(e){return e!=null&&typeof e!="boolean"},kd=vi(function(t){return xd(t)?t:t.replace(ID,"-$&").toLowerCase()}),Pi=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(O0,function(r,s,a){return an={name:s,styles:a,next:an},s})}return ND[e]!==1&&!xd(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var AD=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,RD=["normal","none","initial","inherit","unset"],LD=Pi,FD=/^-ms-/,WD=/-(.)/g,D0={};Pi=function(e,n){if(e==="content"&&(typeof n!="string"||RD.indexOf(n)===-1&&!AD.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=LD(e,n);return r!==""&&!xd(e)&&e.indexOf("-")!==-1&&D0[e]===void 0&&(D0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(FD,"ms-").replace(WD,function(s,a){return a.toUpperCase()})+"?")),r}}var M0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Aa(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(M0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return an={name:n.name,styles:n.styles,next:an},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)an={name:r.name,styles:r.styles,next:an},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return BD(t,e,n)}case"function":{if(t!==void 0){var a=an,o=n(t);return an=a,Aa(t,e,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var i=[],l=n.replace(O0,function(c,d,u){var f="animation"+i.length;return i.push("const "+f+" = keyframes`"+u.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
43
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,WD="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",BD=/[A-Z]|^ms/g,M0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_d=function(e){return e.charCodeAt(1)===45},E0=function(e){return e!=null&&typeof e!="boolean"},Sd=Si(function(t){return _d(t)?t:t.replace(BD,"-$&").toLowerCase()}),Ii=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(M0,function(r,s,a){return an={name:s,styles:a,next:an},s})}return FD[e]!==1&&!_d(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var zD=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,HD=["normal","none","initial","inherit","unset"],YD=Ii,VD=/^-ms-/,UD=/-(.)/g,P0={};Ii=function(e,n){if(e==="content"&&(typeof n!="string"||HD.indexOf(n)===-1&&!zD.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=YD(e,n);return r!==""&&!_d(e)&&e.indexOf("-")!==-1&&P0[e]===void 0&&(P0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(VD,"ms-").replace(UD,function(s,a){return a.toUpperCase()})+"?")),r}}var T0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Fa(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(T0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return an={name:n.name,styles:n.styles,next:an},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)an={name:r.name,styles:r.styles,next:an},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return XD(t,e,n)}case"function":{if(t!==void 0){var a=an,o=n(t);return an=a,Fa(t,e,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var i=[],l=n.replace(M0,function(c,d,u){var f="animation"+i.length;return i.push("const "+f+" = keyframes`"+u.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+f+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
44
44
  `)+`
45
45
 
46
46
  You should wrap it with \`css\` like this:
47
47
 
48
- `+("css`"+l+"`"))}break}return n}function BD(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Aa(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")C0(o)&&(r+=kd(a)+":"+Pi(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(M0);if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var i=0;i<o.length;i++)C0(o[i])&&(r+=kd(a)+":"+Pi(a,o[i])+";");else{var l=Aa(t,e,o);switch(a){case"animation":case"animationName":{r+=kd(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(jD),r+=a+"{"+l+"}"}}}}return r}var E0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,P0;process.env.NODE_ENV!=="production"&&(P0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var an,T0=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";an=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=Aa(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(S0),a+=o[0]);for(var i=1;i<e.length;i++)a+=Aa(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(S0),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(P0,function(f){return l=f,""})),E0.lastIndex=0;for(var c="",d;(d=E0.exec(a))!==null;)c+="-"+d[1];var u=TD(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:an,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:an}},zD=typeof document<"u",N0=function(e){return e()},HD=z.useInsertionEffect?z.useInsertionEffect:!1,j0=zD&&HD||N0,I0=typeof document<"u",YD={}.hasOwnProperty,Ra=_.createContext(typeof HTMLElement<"u"?k0({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Ra.displayName="EmotionCacheContext"),Ra.Provider;var _d=function(e){return _.forwardRef(function(n,r){var s=_.useContext(Ra);return e(n,s,r)})};I0||(_d=function(e){return function(n){var r=_.useContext(Ra);return r===null?(r=k0({key:"css"}),_.createElement(Ra.Provider,{value:r},e(n,r))):e(n,r)}});var Sd=_.createContext({});process.env.NODE_ENV!=="production"&&(Sd.displayName="EmotionThemeContext");var A0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",R0="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",VD=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;_0(n,r,s);var a=j0(function(){return PD(n,r,s)});if(!I0&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},UD=_d(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var s=t[A0],a=[r],o="";typeof t.className=="string"?o=ED(e.registered,a,t.className):t.className!=null&&(o=t.className+" ");var i=T0(a,void 0,_.useContext(Sd));if(process.env.NODE_ENV!=="production"&&i.name.indexOf("-")===-1){var l=t[R0];l&&(i=T0([i,"label:"+l+";"]))}o+=e.key+"-"+i.name;var c={};for(var d in t)YD.call(t,d)&&d!=="css"&&d!==A0&&(process.env.NODE_ENV==="production"||d!==R0)&&(c[d]=t[d]);return c.ref=n,c.className=o,_.createElement(_.Fragment,null,_.createElement(VD,{cache:e,serialized:i,isStringTag:typeof s=="string"}),_.createElement(s,c))});process.env.NODE_ENV!=="production"&&(UD.displayName="EmotionCssPropInternal");var Od=typeof document<"u";function XD(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var L0=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||Od===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},KD=function(e,n,r){L0(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!Od&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!Od&&a.length!==0)return a}};function GD(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var QD={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},F0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
48
+ `+("css`"+l+"`"))}break}return n}function XD(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Fa(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")E0(o)&&(r+=Sd(a)+":"+Ii(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(T0);if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var i=0;i<o.length;i++)E0(o[i])&&(r+=Sd(a)+":"+Ii(a,o[i])+";");else{var l=Fa(t,e,o);switch(a){case"animation":case"animationName":{r+=Sd(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(WD),r+=a+"{"+l+"}"}}}}return r}var N0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,j0;process.env.NODE_ENV!=="production"&&(j0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var an,I0=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";an=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=Fa(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(D0),a+=o[0]);for(var i=1;i<e.length;i++)a+=Fa(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(D0),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(j0,function(f){return l=f,""})),N0.lastIndex=0;for(var c="",d;(d=N0.exec(a))!==null;)c+="-"+d[1];var u=LD(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:an,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:an}},KD=typeof document<"u",A0=function(e){return e()},GD=z.useInsertionEffect?z.useInsertionEffect:!1,R0=KD&&GD||A0,L0=typeof document<"u",QD={}.hasOwnProperty,Wa=_.createContext(typeof HTMLElement<"u"?O0({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Wa.displayName="EmotionCacheContext"),Wa.Provider;var Od=function(e){return _.forwardRef(function(n,r){var s=_.useContext(Wa);return e(n,s,r)})};L0||(Od=function(e){return function(n){var r=_.useContext(Wa);return r===null?(r=O0({key:"css"}),_.createElement(Wa.Provider,{value:r},e(n,r))):e(n,r)}});var Cd=_.createContext({});process.env.NODE_ENV!=="production"&&(Cd.displayName="EmotionThemeContext");var F0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",W0="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ZD=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;C0(n,r,s);var a=R0(function(){return RD(n,r,s)});if(!L0&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},JD=Od(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var s=t[F0],a=[r],o="";typeof t.className=="string"?o=AD(e.registered,a,t.className):t.className!=null&&(o=t.className+" ");var i=I0(a,void 0,_.useContext(Cd));if(process.env.NODE_ENV!=="production"&&i.name.indexOf("-")===-1){var l=t[W0];l&&(i=I0([i,"label:"+l+";"]))}o+=e.key+"-"+i.name;var c={};for(var d in t)QD.call(t,d)&&d!=="css"&&d!==F0&&(process.env.NODE_ENV==="production"||d!==W0)&&(c[d]=t[d]);return c.ref=n,c.className=o,_.createElement(_.Fragment,null,_.createElement(ZD,{cache:e,serialized:i,isStringTag:typeof s=="string"}),_.createElement(s,c))});process.env.NODE_ENV!=="production"&&(JD.displayName="EmotionCssPropInternal");var Dd=typeof document<"u";function qD(t,e,n){var r="";return n.split(" ").forEach(function(s){t[s]!==void 0?e.push(t[s]+";"):r+=s+" "}),r}var B0=function(e,n,r){var s=e.key+"-"+n.name;(r===!1||Dd===!1&&e.compat!==void 0)&&e.registered[s]===void 0&&(e.registered[s]=n.styles)},$D=function(e,n,r){B0(e,n,r);var s=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var a="",o=n;do{var i=e.insert(n===o?"."+s:"",o,e.sheet,!0);!Dd&&i!==void 0&&(a+=i),o=o.next}while(o!==void 0);if(!Dd&&a.length!==0)return a}};function eM(t){for(var e=0,n,r=0,s=t.length;s>=4;++r,s-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(s){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var tM={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},z0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
49
49
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
50
50
  You can read more about this here:
51
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,ZD="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",JD=/[A-Z]|^ms/g,W0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cd=function(e){return e.charCodeAt(1)===45},B0=function(e){return e!=null&&typeof e!="boolean"},Dd=vi(function(t){return Cd(t)?t:t.replace(JD,"-$&").toLowerCase()}),Ti=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(W0,function(r,s,a){return on={name:s,styles:a,next:on},s})}return QD[e]!==1&&!Cd(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var qD=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,$D=["normal","none","initial","inherit","unset"],eM=Ti,tM=/^-ms-/,nM=/-(.)/g,z0={};Ti=function(e,n){if(e==="content"&&(typeof n!="string"||$D.indexOf(n)===-1&&!qD.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=eM(e,n);return r!==""&&!Cd(e)&&e.indexOf("-")!==-1&&z0[e]===void 0&&(z0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(tM,"ms-").replace(nM,function(s,a){return a.toUpperCase()})+"?")),r}}var H0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function La(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(H0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return on={name:n.name,styles:n.styles,next:on},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)on={name:r.name,styles:r.styles,next:on},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return rM(t,e,n)}case"function":{if(t!==void 0){var a=on,o=n(t);return on=a,La(t,e,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var i=[],l=n.replace(W0,function(d,u,f){var h="animation"+i.length;return i.push("const "+h+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
51
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,nM="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",rM=/[A-Z]|^ms/g,H0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Md=function(e){return e.charCodeAt(1)===45},Y0=function(e){return e!=null&&typeof e!="boolean"},Ed=Si(function(t){return Md(t)?t:t.replace(rM,"-$&").toLowerCase()}),Ai=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(H0,function(r,s,a){return on={name:s,styles:a,next:on},s})}return tM[e]!==1&&!Md(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var sM=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,aM=["normal","none","initial","inherit","unset"],oM=Ai,iM=/^-ms-/,lM=/-(.)/g,V0={};Ai=function(e,n){if(e==="content"&&(typeof n!="string"||aM.indexOf(n)===-1&&!sM.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=oM(e,n);return r!==""&&!Md(e)&&e.indexOf("-")!==-1&&V0[e]===void 0&&(V0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(iM,"ms-").replace(lM,function(s,a){return a.toUpperCase()})+"?")),r}}var U0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ba(t,e,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(U0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return on={name:n.name,styles:n.styles,next:on},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)on={name:r.name,styles:r.styles,next:on},r=r.next;var s=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(s+=n.map),s}return cM(t,e,n)}case"function":{if(t!==void 0){var a=on,o=n(t);return on=a,Ba(t,e,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var i=[],l=n.replace(H0,function(d,u,f){var h="animation"+i.length;return i.push("const "+h+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});i.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(i,["`"+l+"`"]).join(`
52
52
  `)+`
53
53
 
54
54
  You should wrap it with \`css\` like this:
55
55
 
56
- `+("css`"+l+"`"))}break}if(e==null)return n;var c=e[n];return c!==void 0?c:n}function rM(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=La(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=a+"{"+e[o]+"}":B0(o)&&(r+=Dd(a)+":"+Ti(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(H0);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var i=0;i<o.length;i++)B0(o[i])&&(r+=Dd(a)+":"+Ti(a,o[i])+";");else{var l=La(t,e,o);switch(a){case"animation":case"animationName":{r+=Dd(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(ZD),r+=a+"{"+l+"}"}}}}return r}var Y0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,V0;process.env.NODE_ENV!=="production"&&(V0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var on,sM=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";on=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=La(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(F0),a+=o[0]);for(var i=1;i<e.length;i++)a+=La(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(F0),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(V0,function(f){return l=f,""})),Y0.lastIndex=0;for(var c="",d;(d=Y0.exec(a))!==null;)c+="-"+d[1];var u=GD(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:on,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:on}},aM=JC,oM=function(e){return e!=="theme"},U0=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?aM:oM},X0=function(e,n,r){var s;if(n){var a=n.shouldForwardProp;s=e.__emotion_forwardProp&&a?function(o){return e.__emotion_forwardProp(o)&&a(o)}:a}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},K0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
56
+ `+("css`"+l+"`"))}break}if(e==null)return n;var c=e[n];return c!==void 0?c:n}function cM(t,e,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Ba(t,e,n[s])+";";else for(var a in n){var o=n[a];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=a+"{"+e[o]+"}":Y0(o)&&(r+=Ed(a)+":"+Ai(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(U0);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var i=0;i<o.length;i++)Y0(o[i])&&(r+=Ed(a)+":"+Ai(a,o[i])+";");else{var l=Ba(t,e,o);switch(a){case"animation":case"animationName":{r+=Ed(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(nM),r+=a+"{"+l+"}"}}}}return r}var X0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,K0;process.env.NODE_ENV!=="production"&&(K0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var on,dM=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var s=!0,a="";on=void 0;var o=e[0];o==null||o.raw===void 0?(s=!1,a+=Ba(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(z0),a+=o[0]);for(var i=1;i<e.length;i++)a+=Ba(r,n,e[i]),s&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(z0),a+=o[i]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(K0,function(f){return l=f,""})),X0.lastIndex=0;for(var c="",d;(d=X0.exec(a))!==null;)c+="-"+d[1];var u=eM(a)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:a,map:l,next:on,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:on}},uM=rD,fM=function(e){return e!=="theme"},G0=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?uM:fM},Q0=function(e,n,r){var s;if(n){var a=n.shouldForwardProp;s=e.__emotion_forwardProp&&a?function(o){return e.__emotion_forwardProp(o)&&a(o)}:a}return typeof s!="function"&&r&&(s=e.__emotion_forwardProp),s},Z0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
57
57
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
58
58
  You can read more about this here:
59
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,iM=typeof document<"u",lM=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;L0(n,r,s);var a=j0(function(){return KD(n,r,s)});if(!iM&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},cM=function t(e,n){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
60
- You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,a,o;n!==void 0&&(a=n.label,o=n.target);var i=X0(e,n,r),l=i||U0(s),c=!l("as");return function(){var d=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(K0),u.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)process.env.NODE_ENV!=="production"&&d[0][h]===void 0&&console.error(K0),u.push(d[h],d[0][h])}var m=_d(function(p,b,v){var x=c&&p.as||s,k="",w=[],y=p;if(p.theme==null){y={};for(var S in p)y[S]=p[S];y.theme=_.useContext(Sd)}typeof p.className=="string"?k=XD(b.registered,w,p.className):p.className!=null&&(k=p.className+" ");var N=sM(u.concat(w),b.registered,y);k+=b.key+"-"+N.name,o!==void 0&&(k+=" "+o);var D=c&&i===void 0?U0(x):l,T={};for(var E in p)c&&E==="as"||D(E)&&(T[E]=p[E]);return T.className=k,T.ref=v,_.createElement(_.Fragment,null,_.createElement(lM,{cache:b,serialized:N,isStringTag:typeof x=="string"}),_.createElement(x,T))});return m.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",m.defaultProps=e.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=u,m.__emotion_forwardProp=i,Object.defineProperty(m,"toString",{value:function(){return o===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(p,b){return t(p,hd({},n,b,{shouldForwardProp:X0(m,b,!0)})).apply(void 0,u)},m}},dM=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ct=cM.bind();dM.forEach(function(t){ct[t]=ct(t)});var G0={exports:{}};/*!
59
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,hM=typeof document<"u",gM=function(e){var n=e.cache,r=e.serialized,s=e.isStringTag;B0(n,r,s);var a=R0(function(){return $D(n,r,s)});if(!hM&&a!==void 0){for(var o,i=r.name,l=r.next;l!==void 0;)i+=" "+l.name,l=l.next;return _.createElement("style",(o={},o["data-emotion"]=n.key+" "+i,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},mM=function t(e,n){if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
60
+ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emotion_base||e,a,o;n!==void 0&&(a=n.label,o=n.target);var i=Q0(e,n,r),l=i||G0(s),c=!l("as");return function(){var d=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(a!==void 0&&u.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(Z0),u.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)process.env.NODE_ENV!=="production"&&d[0][h]===void 0&&console.error(Z0),u.push(d[h],d[0][h])}var p=Od(function(m,b,y){var x=c&&m.as||s,k="",v=[],w=m;if(m.theme==null){w={};for(var S in m)w[S]=m[S];w.theme=_.useContext(Cd)}typeof m.className=="string"?k=qD(b.registered,v,m.className):m.className!=null&&(k=m.className+" ");var N=dM(u.concat(v),b.registered,w);k+=b.key+"-"+N.name,o!==void 0&&(k+=" "+o);var D=c&&i===void 0?G0(x):l,T={};for(var E in m)c&&E==="as"||D(E)&&(T[E]=m[E]);return T.className=k,T.ref=y,_.createElement(_.Fragment,null,_.createElement(gM,{cache:b,serialized:N,isStringTag:typeof x=="string"}),_.createElement(x,T))});return p.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",p.defaultProps=e.defaultProps,p.__emotion_real=p,p.__emotion_base=s,p.__emotion_styles=u,p.__emotion_forwardProp=i,Object.defineProperty(p,"toString",{value:function(){return o===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+o}}),p.withComponent=function(m,b){return t(m,md({},n,b,{shouldForwardProp:Q0(p,b,!0)})).apply(void 0,u)},p}},pM=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ct=mM.bind();pM.forEach(function(t){ct[t]=ct(t)});var J0={exports:{}};/*!
61
61
  Copyright (c) 2018 Jed Watson.
62
62
  Licensed under the MIT License (MIT), see
63
63
  http://jedwatson.github.io/classnames
64
- */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],s=0;s<arguments.length;s++){var a=arguments[s];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&r.push(i)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)e.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(G0);var it=G0.exports,uM=_.createContext(void 0),fM=function(){var t=_.useContext(uM);return t},hM=function(t){var e=_.useState(!!t&&typeof window<"u"&&window.matchMedia(t).matches),n=e[0],r=e[1];return _.useEffect(function(){if(t){var s=window.matchMedia(t),a=function(){s.matches!==n&&r(s.matches)};return a(),s.addEventListener("change",a),function(){return s.removeEventListener("change",a)}}},[n,t]),n},Ve={root:"ps-sidebar-root",container:"ps-sidebar-container",image:"ps-sidebar-image",backdrop:"ps-sidebar-backdrop",collapsed:"ps-collapsed",toggled:"ps-toggled",rtl:"ps-rtl",broken:"ps-broken"},xe={root:"ps-menu-root",menuItemRoot:"ps-menuitem-root",subMenuRoot:"ps-submenu-root",button:"ps-menu-button",prefix:"ps-menu-prefix",suffix:"ps-menu-suffix",label:"ps-menu-label",icon:"ps-menu-icon",subMenuContent:"ps-submenu-content",SubMenuExpandIcon:"ps-submenu-expand-icon",disabled:"ps-disabled",active:"ps-active",open:"ps-open"},gM=ct.div(Q0||(Q0=wt([`
64
+ */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],s=0;s<arguments.length;s++){var a=arguments[s];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var i=n.apply(null,a);i&&r.push(i)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var l in a)e.call(a,l)&&a[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(J0);var lt=J0.exports,bM=_.createContext(void 0),yM=function(){var t=_.useContext(bM);return t},wM=function(t){var e=_.useState(!!t&&typeof window<"u"&&window.matchMedia(t).matches),n=e[0],r=e[1];return _.useEffect(function(){if(t){var s=window.matchMedia(t),a=function(){s.matches!==n&&r(s.matches)};return a(),s.addEventListener("change",a),function(){return s.removeEventListener("change",a)}}},[n,t]),n},Ue={root:"ps-sidebar-root",container:"ps-sidebar-container",image:"ps-sidebar-image",backdrop:"ps-sidebar-backdrop",collapsed:"ps-collapsed",toggled:"ps-toggled",rtl:"ps-rtl",broken:"ps-broken"},xe={root:"ps-menu-root",menuItemRoot:"ps-menuitem-root",subMenuRoot:"ps-submenu-root",button:"ps-menu-button",prefix:"ps-menu-prefix",suffix:"ps-menu-suffix",label:"ps-menu-label",icon:"ps-menu-icon",subMenuContent:"ps-submenu-content",SubMenuExpandIcon:"ps-submenu-expand-icon",disabled:"ps-disabled",active:"ps-active",open:"ps-open"},vM=ct.div(q0||(q0=wt([`
65
65
  position: fixed;
66
66
  top: 0px;
67
67
  right: 0px;
@@ -77,7 +77,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
77
77
  left: 0px;
78
78
  z-index: 1;
79
79
  background-color: rgb(0, 0, 0, 0.3);
80
- `]))),Q0,mM={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},pM=ct.aside(Z0||(Z0=wt([`
80
+ `]))),q0,xM={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},kM=ct.aside($0||($0=wt([`
81
81
  position: relative;
82
82
  border-right-width: 1px;
83
83
  border-right-style: solid;
@@ -185,7 +185,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
185
185
  }
186
186
 
187
187
  `,`
188
- `])),function(t){var e=t.transitionDuration;return"width, left, right, ".concat(e,"ms")},function(t){var e=t.width;return e},function(t){var e=t.width;return e},Ve.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},Ve.rtl,Ve.broken,function(t){var e=t.rtl,n=t.width;return e?"":"left: -".concat(n,";")},Ve.collapsed,function(t){var e=t.rtl,n=t.collapsedWidth;return e?"":"left: -".concat(n,"; ")},Ve.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},Ve.rtl,function(t){var e=t.width;return e},Ve.collapsed,function(t){var e=t.collapsedWidth;return e},Ve.toggled,function(t){var e=t.rootStyles;return e}),bM=ct.div(J0||(J0=wt([`
188
+ `])),function(t){var e=t.transitionDuration;return"width, left, right, ".concat(e,"ms")},function(t){var e=t.width;return e},function(t){var e=t.width;return e},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},Ue.rtl,Ue.broken,function(t){var e=t.rtl,n=t.width;return e?"":"left: -".concat(n,";")},Ue.collapsed,function(t){var e=t.rtl,n=t.collapsedWidth;return e?"":"left: -".concat(n,"; ")},Ue.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},Ue.rtl,function(t){var e=t.width;return e},Ue.collapsed,function(t){var e=t.collapsedWidth;return e},Ue.toggled,function(t){var e=t.rootStyles;return e}),_M=ct.div(eb||(eb=wt([`
189
189
  position: relative;
190
190
  height: 100%;
191
191
  overflow-y: auto;
@@ -201,7 +201,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
201
201
  z-index: 3;
202
202
 
203
203
  `,`
204
- `])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),yM=ct.img(q0||(q0=wt([`
204
+ `])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),SM=ct.img(tb||(tb=wt([`
205
205
  &.`,` {
206
206
  width: 100%;
207
207
  height: 100%;
@@ -223,7 +223,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
223
223
  top: 0;
224
224
  z-index: 2;
225
225
  }
226
- `])),Ve.image),Ni=_.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),wM=_.forwardRef(function(t,e){var n,r=t.collapsed,s=t.toggled,a=t.onBackdropClick,o=t.onBreakPoint,i=t.width,l=i===void 0?"250px":i,c=t.collapsedWidth,d=c===void 0?"80px":c,u=t.defaultCollapsed,f=t.className,h=t.children,m=t.breakPoint,p=t.customBreakPoint,b=t.backgroundColor,v=b===void 0?"rgb(249, 249, 249, 0.7)":b,x=t.transitionDuration,k=x===void 0?300:x,w=t.image,y=t.rtl,S=t.rootStyles,N=Fr(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),D=function(){if(p)return"(max-width: ".concat(p,")");if(m)return["xs","sm","md","lg","xl","xxl"].includes(m)?"(max-width: ".concat(mM[m],")"):m==="always"||m==="all"?(m==="always"&&console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.'),"screen"):"(max-width: ".concat(m,")")},T=_.useRef();T.current=function(Z){o==null||o(Z)};var E=hM(D()),Y=_.useState(!1),L=Y[0],O=Y[1],C=fM(),P=r??(!L&&u?!0:C==null?void 0:C.collapsed),F=s??(C==null?void 0:C.toggled),U=function(){a==null||a(),C==null||C.updateSidebarState({toggled:!1})};return _.useEffect(function(){var Z;(Z=T.current)===null||Z===void 0||Z.call(T,E)},[E]),_.useEffect(function(){C==null||C.updateSidebarState({broken:E,rtl:y,transitionDuration:k})},[E,C==null?void 0:C.updateSidebarState,y,k]),_.useEffect(function(){L||(C==null||C.updateSidebarState({collapsed:u}),O(!0))},[u,L,C==null?void 0:C.updateSidebarState]),_.createElement(Ni.Provider,{value:{collapsed:P,toggled:F,rtl:y,transitionDuration:k}},_.createElement(pM,Ft({ref:e,"data-testid":"".concat(Ve.root,"-test-id"),rtl:y,rootStyles:S,width:l,collapsedWidth:d,transitionDuration:k,className:it(Ve.root,(n={},n[Ve.collapsed]=P,n[Ve.toggled]=F,n[Ve.broken]=E,n[Ve.rtl]=y,n),f)},N),_.createElement(bM,{"data-testid":"".concat(Ve.container,"-test-id"),className:Ve.container,backgroundColor:v},h),w&&_.createElement(yM,{"data-testid":"".concat(Ve.image,"-test-id"),src:w,alt:"sidebar background",className:Ve.image}),E&&F&&_.createElement(gM,{"data-testid":"".concat(Ve.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:U,onKeyPress:U,className:Ve.backdrop})))}),Z0,J0,q0,$0=ct.ul(eb||(eb=wt([`
226
+ `])),Ue.image),Ri=_.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),OM=_.forwardRef(function(t,e){var n,r=t.collapsed,s=t.toggled,a=t.onBackdropClick,o=t.onBreakPoint,i=t.width,l=i===void 0?"250px":i,c=t.collapsedWidth,d=c===void 0?"80px":c,u=t.defaultCollapsed,f=t.className,h=t.children,p=t.breakPoint,m=t.customBreakPoint,b=t.backgroundColor,y=b===void 0?"rgb(249, 249, 249, 0.7)":b,x=t.transitionDuration,k=x===void 0?300:x,v=t.image,w=t.rtl,S=t.rootStyles,N=Br(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),D=function(){if(m)return"(max-width: ".concat(m,")");if(p)return["xs","sm","md","lg","xl","xxl"].includes(p)?"(max-width: ".concat(xM[p],")"):p==="always"||p==="all"?(p==="always"&&console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.'),"screen"):"(max-width: ".concat(p,")")},T=_.useRef();T.current=function(Z){o==null||o(Z)};var E=wM(D()),Y=_.useState(!1),L=Y[0],O=Y[1],C=yM(),P=r??(!L&&u?!0:C==null?void 0:C.collapsed),F=s??(C==null?void 0:C.toggled),U=function(){a==null||a(),C==null||C.updateSidebarState({toggled:!1})};return _.useEffect(function(){var Z;(Z=T.current)===null||Z===void 0||Z.call(T,E)},[E]),_.useEffect(function(){C==null||C.updateSidebarState({broken:E,rtl:w,transitionDuration:k})},[E,C==null?void 0:C.updateSidebarState,w,k]),_.useEffect(function(){L||(C==null||C.updateSidebarState({collapsed:u}),O(!0))},[u,L,C==null?void 0:C.updateSidebarState]),_.createElement(Ri.Provider,{value:{collapsed:P,toggled:F,rtl:w,transitionDuration:k}},_.createElement(kM,Ft({ref:e,"data-testid":"".concat(Ue.root,"-test-id"),rtl:w,rootStyles:S,width:l,collapsedWidth:d,transitionDuration:k,className:lt(Ue.root,(n={},n[Ue.collapsed]=P,n[Ue.toggled]=F,n[Ue.broken]=E,n[Ue.rtl]=w,n),f)},N),_.createElement(_M,{"data-testid":"".concat(Ue.container,"-test-id"),className:Ue.container,backgroundColor:y},h),v&&_.createElement(SM,{"data-testid":"".concat(Ue.image,"-test-id"),src:v,alt:"sidebar background",className:Ue.image}),E&&F&&_.createElement(vM,{"data-testid":"".concat(Ue.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:U,onKeyPress:U,className:Ue.backdrop})))}),$0,eb,tb,nb=ct.ul(rb||(rb=wt([`
227
227
  list-style-type: none;
228
228
  padding: 0;
229
229
  margin: 0;
@@ -231,7 +231,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
231
231
  list-style-type: none;
232
232
  padding: 0;
233
233
  margin: 0;
234
- `]))),eb,vM=ct.nav(nb||(nb=wt([`
234
+ `]))),rb,CM=ct.nav(ab||(ab=wt([`
235
235
  &.`,` {
236
236
  `,`
237
237
  }
@@ -239,7 +239,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
239
239
  &.`,` {
240
240
  `,`
241
241
  }
242
- `])),xe.root,function(t){var e=t.rootStyles;return e}),tb=_.createContext(void 0),ji=_.createContext(0),xM=function(t,e){var n=t.children,r=t.className,s=t.transitionDuration,a=s===void 0?300:s,o=t.closeOnClick,i=o===void 0?!1:o,l=t.rootStyles,c=t.menuItemStyles,d=t.renderExpandIcon,u=Fr(t,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),f=_.useMemo(function(){return{transitionDuration:a,closeOnClick:i,menuItemStyles:c,renderExpandIcon:d}},[a,i,c,d]);return _.createElement(tb.Provider,{value:f},_.createElement(ji.Provider,{value:0},_.createElement(vM,Ft({ref:e,className:it(xe.root,r),rootStyles:l},u),_.createElement($0,null,n))))},kM=_.forwardRef(xM),nb,Md=function(){var t=_.useContext(tb);if(t===void 0)throw new Error("Menu Component is required!");return t},_M=ct.div(rb||(rb=wt([`
242
+ `])),xe.root,function(t){var e=t.rootStyles;return e}),sb=_.createContext(void 0),Li=_.createContext(0),DM=function(t,e){var n=t.children,r=t.className,s=t.transitionDuration,a=s===void 0?300:s,o=t.closeOnClick,i=o===void 0?!1:o,l=t.rootStyles,c=t.menuItemStyles,d=t.renderExpandIcon,u=Br(t,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),f=_.useMemo(function(){return{transitionDuration:a,closeOnClick:i,menuItemStyles:c,renderExpandIcon:d}},[a,i,c,d]);return _.createElement(sb.Provider,{value:f},_.createElement(Li.Provider,{value:0},_.createElement(CM,Ft({ref:e,className:lt(xe.root,r),rootStyles:l},u),_.createElement(nb,null,n))))},MM=_.forwardRef(DM),ab,Pd=function(){var t=_.useContext(sb);if(t===void 0)throw new Error("Menu Component is required!");return t},EM=ct.div(ob||(ob=wt([`
243
243
  height: 0px;
244
244
  overflow: hidden;
245
245
  z-index: 999;
@@ -284,7 +284,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
284
284
  `):`
285
285
  position: static!important;
286
286
  transform: none!important;
287
- `},function(t){var e=t.rootStyles;return e}),SM=function(t,e){var n=t.children,r=t.open,s=t.openWhenCollapsed,a=t.firstLevel,o=t.collapsed,i=t.defaultOpen,l=Fr(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=Md().transitionDuration,d=_.useState(i)[0];return _.createElement(_M,Ft({"data-testid":"".concat(xe.subMenuContent,"-test-id"),ref:e,firstLevel:a,collapsed:o,open:r,openWhenCollapsed:s,transitionDuration:c,defaultOpen:d},l),_.createElement($0,null,n))},OM=_.forwardRef(SM),rb,sb=ct.span(ab||(ab=wt([`
287
+ `},function(t){var e=t.rootStyles;return e}),PM=function(t,e){var n=t.children,r=t.open,s=t.openWhenCollapsed,a=t.firstLevel,o=t.collapsed,i=t.defaultOpen,l=Br(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=Pd().transitionDuration,d=_.useState(i)[0];return _.createElement(EM,Ft({"data-testid":"".concat(xe.subMenuContent,"-test-id"),ref:e,firstLevel:a,collapsed:o,open:r,openWhenCollapsed:s,transitionDuration:c,defaultOpen:d},l),_.createElement(nb,null,n))},TM=_.forwardRef(PM),ob,ib=ct.span(lb||(lb=wt([`
288
288
  flex-grow: 1;
289
289
  overflow: hidden;
290
290
  text-overflow: ellipsis;
@@ -298,7 +298,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
298
298
  white-space: nowrap;
299
299
 
300
300
  `,`;
301
- `])),function(t){var e=t.rootStyles;return e}),ab,ob=ct.span(ib||(ib=wt([`
301
+ `])),function(t){var e=t.rootStyles;return e}),lb,cb=ct.span(db||(db=wt([`
302
302
  width: 35px;
303
303
  min-width: 35px;
304
304
  height: 35px;
@@ -328,7 +328,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
328
328
  `,`
329
329
 
330
330
  `,`;
331
- `])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),ib,lb=ct.span(cb||(cb=wt([`
331
+ `])),function(t){var e=t.rtl;return e?"margin-left: 10px;":"margin-right: 10px;"},function(t){var e=t.rootStyles;return e}),db,ub=ct.span(fb||(fb=wt([`
332
332
  `,`
333
333
  opacity: `,`;
334
334
  transition: opacity `,`ms;
@@ -340,7 +340,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
340
340
  transition: opacity `,`ms;
341
341
 
342
342
  `,`;
343
- `])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),cb,db=ct.span(ub||(ub=wt([`
343
+ `])),function(t){var e=t.rtl;return e?"margin-left: 5px;":"margin-right: 5px;"},function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),fb,hb=ct.span(gb||(gb=wt([`
344
344
  margin-right: 5px;
345
345
  margin-left: 5px;
346
346
  opacity: `,`;
@@ -354,7 +354,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
354
354
  transition: opacity `,`ms;
355
355
 
356
356
  `,`;
357
- `])),function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),ub,CM=ct.span(fb||(fb=wt([`
357
+ `])),function(t){var e=t.firstLevel,n=t.collapsed;return e&&n?"0":"1"},function(t){var e=t.transitionDuration;return e},function(t){var e=t.rootStyles;return e}),gb,NM=ct.span(mb||(mb=wt([`
358
358
  `,`
359
359
 
360
360
  `,`;
@@ -368,7 +368,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
368
368
  top: 50%;
369
369
  transform: translateY(-50%);
370
370
 
371
- `)},function(t){var e=t.rootStyles;return e}),DM=ct.span(hb||(hb=wt([`
371
+ `)},function(t){var e=t.rootStyles;return e}),jM=ct.span(pb||(pb=wt([`
372
372
  display: inline-block;
373
373
  transition: transform 0.3s;
374
374
  `,`
@@ -389,7 +389,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
389
389
  border-top: 2px solid currentcolor;
390
390
  `:` border-right: 2px solid currentcolor;
391
391
  border-bottom: 2px solid currentcolor;
392
- `},function(t){var e=t.open,n=t.rtl;return e?n?"-135deg":"45deg":"-45deg"}),MM=ct.span(gb||(gb=wt([`
392
+ `},function(t){var e=t.open,n=t.rtl;return e?n?"-135deg":"45deg":"-45deg"}),IM=ct.span(bb||(bb=wt([`
393
393
  width: 5px;
394
394
  height: 5px;
395
395
  background-color: currentcolor;
@@ -401,11 +401,11 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
401
401
  background-color: currentcolor;
402
402
  border-radius: 50%;
403
403
  display: inline-block;
404
- `]))),fb,hb,gb,Nt="top",qt="bottom",$t="right",jt="left",Ii="auto",Fa=[Nt,qt,$t,jt],Os="start",Wa="end",EM="clippingParents",mb="viewport",Ba="popper",PM="reference",pb=Fa.reduce(function(t,e){return t.concat([e+"-"+Os,e+"-"+Wa])},[]),bb=[].concat(Fa,[Ii]).reduce(function(t,e){return t.concat([e,e+"-"+Os,e+"-"+Wa])},[]),TM="beforeRead",NM="read",jM="afterRead",IM="beforeMain",AM="main",RM="afterMain",LM="beforeWrite",FM="write",WM="afterWrite",Ed=[TM,NM,jM,IM,AM,RM,LM,FM,WM];function kn(t){return t?(t.nodeName||"").toLowerCase():null}function en(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Br(t){var e=en(t).Element;return t instanceof e||t instanceof Element}function Bt(t){var e=en(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Pd(t){if(typeof ShadowRoot>"u")return!1;var e=en(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function BM(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},a=e.elements[n];!Bt(a)||!kn(a)||(Object.assign(a.style,r),Object.keys(s).forEach(function(o){var i=s[o];i===!1?a.removeAttribute(o):a.setAttribute(o,i===!0?"":i)}))})}function zM(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],a=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),i=o.reduce(function(l,c){return l[c]="",l},{});!Bt(s)||!kn(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){s.removeAttribute(l)}))})}}var HM={name:"applyStyles",enabled:!0,phase:"write",fn:BM,effect:zM,requires:["computeStyles"]};function ln(t){return t.split("-")[0]}var zr=Math.max,Ai=Math.min,Cs=Math.round;function Td(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function yb(){return!/^((?!chrome|android).)*safari/i.test(Td())}function Ds(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,a=1;e&&Bt(t)&&(s=t.offsetWidth>0&&Cs(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Cs(r.height)/t.offsetHeight||1);var o=Br(t)?en(t):window,i=o.visualViewport,l=!yb()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/s,d=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/s,f=r.height/a;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function Nd(t){var e=Ds(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function wb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Pd(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cn(t){return en(t).getComputedStyle(t)}function YM(t){return["table","td","th"].indexOf(kn(t))>=0}function cr(t){return((Br(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ri(t){return kn(t)==="html"?t:t.assignedSlot||t.parentNode||(Pd(t)?t.host:null)||cr(t)}function vb(t){return!Bt(t)||cn(t).position==="fixed"?null:t.offsetParent}function VM(t){var e=/firefox/i.test(Td()),n=/Trident/i.test(Td());if(n&&Bt(t)){var r=cn(t);if(r.position==="fixed")return null}var s=Ri(t);for(Pd(s)&&(s=s.host);Bt(s)&&["html","body"].indexOf(kn(s))<0;){var a=cn(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function za(t){for(var e=en(t),n=vb(t);n&&YM(n)&&cn(n).position==="static";)n=vb(n);return n&&(kn(n)==="html"||kn(n)==="body"&&cn(n).position==="static")?e:n||VM(t)||e}function jd(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ha(t,e,n){return zr(t,Ai(e,n))}function UM(t,e,n){var r=Ha(t,e,n);return r>n?n:r}function xb(){return{top:0,right:0,bottom:0,left:0}}function kb(t){return Object.assign({},xb(),t)}function _b(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var XM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,kb(typeof e!="number"?e:_b(e,Fa))};function KM(t){var e,n=t.state,r=t.name,s=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,i=ln(n.placement),l=jd(i),c=[jt,$t].indexOf(i)>=0,d=c?"height":"width";if(!(!a||!o)){var u=XM(s.padding,n),f=Nd(a),h=l==="y"?Nt:jt,m=l==="y"?qt:$t,p=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],b=o[l]-n.rects.reference[l],v=za(a),x=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,k=p/2-b/2,w=u[h],y=x-f[d]-u[m],S=x/2-f[d]/2+k,N=Ha(w,S,y),D=l;n.modifiersData[r]=(e={},e[D]=N,e.centerOffset=N-S,e)}}function GM(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;if(s!=null&&!(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s))){if(process.env.NODE_ENV!=="production"&&(Bt(s)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!wb(e.elements.popper,s)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=s}}var QM={name:"arrow",enabled:!0,phase:"main",fn:KM,effect:GM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ms(t){return t.split("-")[1]}var ZM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JM(t){var e=t.x,n=t.y,r=window,s=r.devicePixelRatio||1;return{x:Cs(e*s)/s||0,y:Cs(n*s)/s||0}}function Sb(t){var e,n=t.popper,r=t.popperRect,s=t.placement,a=t.variation,o=t.offsets,i=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,f=o.x,h=f===void 0?0:f,m=o.y,p=m===void 0?0:m,b=typeof d=="function"?d({x:h,y:p}):{x:h,y:p};h=b.x,p=b.y;var v=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),k=jt,w=Nt,y=window;if(c){var S=za(n),N="clientHeight",D="clientWidth";if(S===en(n)&&(S=cr(n),cn(S).position!=="static"&&i==="absolute"&&(N="scrollHeight",D="scrollWidth")),S=S,s===Nt||(s===jt||s===$t)&&a===Wa){w=qt;var T=u&&S===y&&y.visualViewport?y.visualViewport.height:S[N];p-=T-r.height,p*=l?1:-1}if(s===jt||(s===Nt||s===qt)&&a===Wa){k=$t;var E=u&&S===y&&y.visualViewport?y.visualViewport.width:S[D];h-=E-r.width,h*=l?1:-1}}var Y=Object.assign({position:i},c&&ZM),L=d===!0?JM({x:h,y:p}):{x:h,y:p};if(h=L.x,p=L.y,l){var O;return Object.assign({},Y,(O={},O[w]=x?"0":"",O[k]=v?"0":"",O.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",O))}return Object.assign({},Y,(e={},e[w]=x?p+"px":"",e[k]=v?h+"px":"",e.transform="",e))}function qM(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i;if(process.env.NODE_ENV!=="production"){var c=cn(e.elements.popper).transitionProperty||"";o&&["transform","top","right","bottom","left"].some(function(u){return c.indexOf(u)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
404
+ `]))),mb,pb,bb,Nt="top",qt="bottom",$t="right",jt="left",Fi="auto",za=[Nt,qt,$t,jt],Ds="start",Ha="end",AM="clippingParents",yb="viewport",Ya="popper",RM="reference",wb=za.reduce(function(t,e){return t.concat([e+"-"+Ds,e+"-"+Ha])},[]),vb=[].concat(za,[Fi]).reduce(function(t,e){return t.concat([e,e+"-"+Ds,e+"-"+Ha])},[]),LM="beforeRead",FM="read",WM="afterRead",BM="beforeMain",zM="main",HM="afterMain",YM="beforeWrite",VM="write",UM="afterWrite",Td=[LM,FM,WM,BM,zM,HM,YM,VM,UM];function _n(t){return t?(t.nodeName||"").toLowerCase():null}function en(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Hr(t){var e=en(t).Element;return t instanceof e||t instanceof Element}function Bt(t){var e=en(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Nd(t){if(typeof ShadowRoot>"u")return!1;var e=en(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function XM(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},s=e.attributes[n]||{},a=e.elements[n];!Bt(a)||!_n(a)||(Object.assign(a.style,r),Object.keys(s).forEach(function(o){var i=s[o];i===!1?a.removeAttribute(o):a.setAttribute(o,i===!0?"":i)}))})}function KM(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var s=e.elements[r],a=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),i=o.reduce(function(l,c){return l[c]="",l},{});!Bt(s)||!_n(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){s.removeAttribute(l)}))})}}var GM={name:"applyStyles",enabled:!0,phase:"write",fn:XM,effect:KM,requires:["computeStyles"]};function ln(t){return t.split("-")[0]}var Yr=Math.max,Wi=Math.min,Ms=Math.round;function jd(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function xb(){return!/^((?!chrome|android).)*safari/i.test(jd())}function Es(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),s=1,a=1;e&&Bt(t)&&(s=t.offsetWidth>0&&Ms(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Ms(r.height)/t.offsetHeight||1);var o=Hr(t)?en(t):window,i=o.visualViewport,l=!xb()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/s,d=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/s,f=r.height/a;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function Id(t){var e=Es(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function kb(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Nd(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cn(t){return en(t).getComputedStyle(t)}function QM(t){return["table","td","th"].indexOf(_n(t))>=0}function ur(t){return((Hr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Bi(t){return _n(t)==="html"?t:t.assignedSlot||t.parentNode||(Nd(t)?t.host:null)||ur(t)}function _b(t){return!Bt(t)||cn(t).position==="fixed"?null:t.offsetParent}function ZM(t){var e=/firefox/i.test(jd()),n=/Trident/i.test(jd());if(n&&Bt(t)){var r=cn(t);if(r.position==="fixed")return null}var s=Bi(t);for(Nd(s)&&(s=s.host);Bt(s)&&["html","body"].indexOf(_n(s))<0;){var a=cn(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Va(t){for(var e=en(t),n=_b(t);n&&QM(n)&&cn(n).position==="static";)n=_b(n);return n&&(_n(n)==="html"||_n(n)==="body"&&cn(n).position==="static")?e:n||ZM(t)||e}function Ad(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ua(t,e,n){return Yr(t,Wi(e,n))}function JM(t,e,n){var r=Ua(t,e,n);return r>n?n:r}function Sb(){return{top:0,right:0,bottom:0,left:0}}function Ob(t){return Object.assign({},Sb(),t)}function Cb(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var qM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Ob(typeof e!="number"?e:Cb(e,za))};function $M(t){var e,n=t.state,r=t.name,s=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,i=ln(n.placement),l=Ad(i),c=[jt,$t].indexOf(i)>=0,d=c?"height":"width";if(!(!a||!o)){var u=qM(s.padding,n),f=Id(a),h=l==="y"?Nt:jt,p=l==="y"?qt:$t,m=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],b=o[l]-n.rects.reference[l],y=Va(a),x=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,k=m/2-b/2,v=u[h],w=x-f[d]-u[p],S=x/2-f[d]/2+k,N=Ua(v,S,w),D=l;n.modifiersData[r]=(e={},e[D]=N,e.centerOffset=N-S,e)}}function eE(t){var e=t.state,n=t.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;if(s!=null&&!(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s))){if(process.env.NODE_ENV!=="production"&&(Bt(s)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!kb(e.elements.popper,s)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=s}}var tE={name:"arrow",enabled:!0,phase:"main",fn:$M,effect:eE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ps(t){return t.split("-")[1]}var nE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rE(t){var e=t.x,n=t.y,r=window,s=r.devicePixelRatio||1;return{x:Ms(e*s)/s||0,y:Ms(n*s)/s||0}}function Db(t){var e,n=t.popper,r=t.popperRect,s=t.placement,a=t.variation,o=t.offsets,i=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=t.isFixed,f=o.x,h=f===void 0?0:f,p=o.y,m=p===void 0?0:p,b=typeof d=="function"?d({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var y=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),k=jt,v=Nt,w=window;if(c){var S=Va(n),N="clientHeight",D="clientWidth";if(S===en(n)&&(S=ur(n),cn(S).position!=="static"&&i==="absolute"&&(N="scrollHeight",D="scrollWidth")),S=S,s===Nt||(s===jt||s===$t)&&a===Ha){v=qt;var T=u&&S===w&&w.visualViewport?w.visualViewport.height:S[N];m-=T-r.height,m*=l?1:-1}if(s===jt||(s===Nt||s===qt)&&a===Ha){k=$t;var E=u&&S===w&&w.visualViewport?w.visualViewport.width:S[D];h-=E-r.width,h*=l?1:-1}}var Y=Object.assign({position:i},c&&nE),L=d===!0?rE({x:h,y:m}):{x:h,y:m};if(h=L.x,m=L.y,l){var O;return Object.assign({},Y,(O={},O[v]=x?"0":"",O[k]=y?"0":"",O.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",O))}return Object.assign({},Y,(e={},e[v]=x?m+"px":"",e[k]=y?h+"px":"",e.transform="",e))}function sE(t){var e=t.state,n=t.options,r=n.gpuAcceleration,s=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,i=n.roundOffsets,l=i===void 0?!0:i;if(process.env.NODE_ENV!=="production"){var c=cn(e.elements.popper).transitionProperty||"";o&&["transform","top","right","bottom","left"].some(function(u){return c.indexOf(u)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
405
405
 
406
406
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
407
407
 
408
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:ln(e.placement),variation:Ms(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Sb(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Sb(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var $M={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qM,data:{}},Li={passive:!0};function eE(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,a=s===void 0?!0:s,o=r.resize,i=o===void 0?!0:o,l=en(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,Li)}),i&&l.addEventListener("resize",n.update,Li),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Li)}),i&&l.removeEventListener("resize",n.update,Li)}}var tE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eE,data:{}},nE={left:"right",right:"left",bottom:"top",top:"bottom"};function Fi(t){return t.replace(/left|right|bottom|top/g,function(e){return nE[e]})}var rE={start:"end",end:"start"};function Ob(t){return t.replace(/start|end/g,function(e){return rE[e]})}function Id(t){var e=en(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ad(t){return Ds(cr(t)).left+Id(t).scrollLeft}function sE(t,e){var n=en(t),r=cr(t),s=n.visualViewport,a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;var c=yb();(c||!c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i+Ad(t),y:l}}function aE(t){var e,n=cr(t),r=Id(t),s=(e=t.ownerDocument)==null?void 0:e.body,a=zr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=zr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-r.scrollLeft+Ad(t),l=-r.scrollTop;return cn(s||n).direction==="rtl"&&(i+=zr(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:o,x:i,y:l}}function Rd(t){var e=cn(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Cb(t){return["html","body","#document"].indexOf(kn(t))>=0?t.ownerDocument.body:Bt(t)&&Rd(t)?t:Cb(Ri(t))}function Ya(t,e){var n;e===void 0&&(e=[]);var r=Cb(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),a=en(r),o=s?[a].concat(a.visualViewport||[],Rd(r)?r:[]):r,i=e.concat(o);return s?i:i.concat(Ya(Ri(o)))}function Ld(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function oE(t,e){var n=Ds(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Db(t,e,n){return e===mb?Ld(sE(t,n)):Br(e)?oE(e,n):Ld(aE(cr(t)))}function iE(t){var e=Ya(Ri(t)),n=["absolute","fixed"].indexOf(cn(t).position)>=0,r=n&&Bt(t)?za(t):t;return Br(r)?e.filter(function(s){return Br(s)&&wb(s,r)&&kn(s)!=="body"}):[]}function lE(t,e,n,r){var s=e==="clippingParents"?iE(t):[].concat(e),a=[].concat(s,[n]),o=a[0],i=a.reduce(function(l,c){var d=Db(t,c,r);return l.top=zr(d.top,l.top),l.right=Ai(d.right,l.right),l.bottom=Ai(d.bottom,l.bottom),l.left=zr(d.left,l.left),l},Db(t,o,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Mb(t){var e=t.reference,n=t.element,r=t.placement,s=r?ln(r):null,a=r?Ms(r):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,l;switch(s){case Nt:l={x:o,y:e.y-n.height};break;case qt:l={x:o,y:e.y+e.height};break;case $t:l={x:e.x+e.width,y:i};break;case jt:l={x:e.x-n.width,y:i};break;default:l={x:e.x,y:e.y}}var c=s?jd(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case Os:l[c]=l[c]-(e[d]/2-n[d]/2);break;case Wa:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function Va(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,a=n.strategy,o=a===void 0?t.strategy:a,i=n.boundary,l=i===void 0?EM:i,c=n.rootBoundary,d=c===void 0?mb:c,u=n.elementContext,f=u===void 0?Ba:u,h=n.altBoundary,m=h===void 0?!1:h,p=n.padding,b=p===void 0?0:p,v=kb(typeof b!="number"?b:_b(b,Fa)),x=f===Ba?PM:Ba,k=t.rects.popper,w=t.elements[m?x:f],y=lE(Br(w)?w:w.contextElement||cr(t.elements.popper),l,d,o),S=Ds(t.elements.reference),N=Mb({reference:S,element:k,placement:s}),D=Ld(Object.assign({},k,N)),T=f===Ba?D:S,E={top:y.top-T.top+v.top,bottom:T.bottom-y.bottom+v.bottom,left:y.left-T.left+v.left,right:T.right-y.right+v.right},Y=t.modifiersData.offset;if(f===Ba&&Y){var L=Y[s];Object.keys(E).forEach(function(O){var C=[$t,qt].indexOf(O)>=0?1:-1,P=[Nt,qt].indexOf(O)>=0?"y":"x";E[O]+=L[P]*C})}return E}function cE(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,a=n.rootBoundary,o=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?bb:l,d=Ms(r),u=d?i?pb:pb.filter(function(m){return Ms(m)===d}):Fa,f=u.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=u,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=f.reduce(function(m,p){return m[p]=Va(t,{placement:p,boundary:s,rootBoundary:a,padding:o})[ln(p)],m},{});return Object.keys(h).sort(function(m,p){return h[m]-h[p]})}function dE(t){if(ln(t)===Ii)return[];var e=Fi(t);return[Ob(t),e,Ob(e)]}function uE(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,p=n.allowedAutoPlacements,b=e.options.placement,v=ln(b),x=v===b,k=l||(x||!m?[Fi(b)]:dE(b)),w=[b].concat(k).reduce(function(I,M){return I.concat(ln(M)===Ii?cE(e,{placement:M,boundary:d,rootBoundary:u,padding:c,flipVariations:m,allowedAutoPlacements:p}):M)},[]),y=e.rects.reference,S=e.rects.popper,N=new Map,D=!0,T=w[0],E=0;E<w.length;E++){var Y=w[E],L=ln(Y),O=Ms(Y)===Os,C=[Nt,qt].indexOf(L)>=0,P=C?"width":"height",F=Va(e,{placement:Y,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),U=C?O?$t:jt:O?qt:Nt;y[P]>S[P]&&(U=Fi(U));var Z=Fi(U),ee=[];if(a&&ee.push(F[L]<=0),i&&ee.push(F[U]<=0,F[Z]<=0),ee.every(function(I){return I})){T=Y,D=!1;break}N.set(Y,ee)}if(D)for(var j=m?3:1,V=function(M){var H=w.find(function(J){var K=N.get(J);if(K)return K.slice(0,M).every(function(q){return q})});if(H)return T=H,"break"},R=j;R>0;R--){var A=V(R);if(A==="break")break}e.placement!==T&&(e.modifiersData[r]._skip=!0,e.placement=T,e.reset=!0)}}var fE={name:"flip",enabled:!0,phase:"main",fn:uE,requiresIfExists:["offset"],data:{_skip:!1}};function Eb(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Pb(t){return[Nt,$t,qt,jt].some(function(e){return t[e]>=0})}function hE(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,a=e.modifiersData.preventOverflow,o=Va(e,{elementContext:"reference"}),i=Va(e,{altBoundary:!0}),l=Eb(o,r),c=Eb(i,s,a),d=Pb(l),u=Pb(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var gE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hE};function mE(t,e,n){var r=ln(t),s=[jt,Nt].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],i=a[1];return o=o||0,i=(i||0)*s,[jt,$t].indexOf(r)>=0?{x:i,y:o}:{x:o,y:i}}function pE(t){var e=t.state,n=t.options,r=t.name,s=n.offset,a=s===void 0?[0,0]:s,o=bb.reduce(function(d,u){return d[u]=mE(u,e.rects,a),d},{}),i=o[e.placement],l=i.x,c=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}var bE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pE};function yE(t){var e=t.state,n=t.name;e.modifiersData[n]=Mb({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var wE={name:"popperOffsets",enabled:!0,phase:"read",fn:yE,data:{}};function vE(t){return t==="x"?"y":"x"}function xE(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,f=n.tether,h=f===void 0?!0:f,m=n.tetherOffset,p=m===void 0?0:m,b=Va(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=ln(e.placement),x=Ms(e.placement),k=!x,w=jd(v),y=vE(w),S=e.modifiersData.popperOffsets,N=e.rects.reference,D=e.rects.popper,T=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,E=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),Y=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(S){if(a){var O,C=w==="y"?Nt:jt,P=w==="y"?qt:$t,F=w==="y"?"height":"width",U=S[w],Z=U+b[C],ee=U-b[P],j=h?-D[F]/2:0,V=x===Os?N[F]:D[F],R=x===Os?-D[F]:-N[F],A=e.elements.arrow,I=h&&A?Nd(A):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:xb(),H=M[C],J=M[P],K=Ha(0,N[F],I[F]),q=k?N[F]/2-j-K-H-E.mainAxis:V-K-H-E.mainAxis,B=k?-N[F]/2+j+K+J+E.mainAxis:R+K+J+E.mainAxis,te=e.elements.arrow&&za(e.elements.arrow),W=te?w==="y"?te.clientTop||0:te.clientLeft||0:0,ne=(O=Y==null?void 0:Y[w])!=null?O:0,se=U+q-ne-W,oe=U+B-ne,ge=Ha(h?Ai(Z,se):Z,U,h?zr(ee,oe):ee);S[w]=ge,L[w]=ge-U}if(i){var ce,ae=w==="x"?Nt:jt,Ye=w==="x"?qt:$t,pe=S[y],ze=y==="y"?"height":"width",Xe=pe+b[ae],$e=pe-b[Ye],Ut=[Nt,jt].indexOf(v)!==-1,Xt=(ce=Y==null?void 0:Y[y])!=null?ce:0,Kt=Ut?Xe:pe-N[ze]-D[ze]-Xt+E.altAxis,vr=Ut?pe+N[ze]+D[ze]-Xt-E.altAxis:$e,Gt=h&&Ut?UM(Kt,pe,vr):Ha(h?Kt:Xe,pe,h?vr:$e);S[y]=Gt,L[y]=Gt-pe}e.modifiersData[r]=L}}var kE={name:"preventOverflow",enabled:!0,phase:"main",fn:xE,requiresIfExists:["offset"]};function _E(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function SE(t){return t===en(t)||!Bt(t)?Id(t):_E(t)}function OE(t){var e=t.getBoundingClientRect(),n=Cs(e.width)/t.offsetWidth||1,r=Cs(e.height)/t.offsetHeight||1;return n!==1||r!==1}function CE(t,e,n){n===void 0&&(n=!1);var r=Bt(e),s=Bt(e)&&OE(e),a=cr(e),o=Ds(t,s,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kn(e)!=="body"||Rd(a))&&(i=SE(e)),Bt(e)?(l=Ds(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=Ad(a))),{x:o.left+i.scrollLeft-l.x,y:o.top+i.scrollTop-l.y,width:o.width,height:o.height}}function DE(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function s(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var l=e.get(i);l&&s(l)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||s(a)}),r}function ME(t){var e=DE(t);return Ed.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function EE(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function dr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(s,a){return s.replace(/%s/,a)},t)}var Hr='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',PE='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Tb=["name","enabled","phase","fn","effect","requires","options"];function TE(t){t.forEach(function(e){[].concat(Object.keys(e),Tb).filter(function(n,r,s){return s.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(dr(Hr,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(dr(Hr,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Ed.indexOf(e.phase)<0&&console.error(dr(Hr,e.name,'"phase"',"either "+Ed.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(dr(Hr,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(dr(Hr,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(dr(Hr,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(dr(Hr,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Tb.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(s){return s.name===r})==null&&console.error(dr(PE,String(e.name),r,r))})})})}function NE(t,e){var n=new Set;return t.filter(function(r){var s=e(r);if(!n.has(s))return n.add(s),!0})}function jE(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Nb="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",IE="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",jb={placement:"bottom",modifiers:[],strategy:"absolute"};function Ib(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function AE(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,s=e.defaultOptions,a=s===void 0?jb:s;return function(i,l,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},jb,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(v){var x=typeof v=="function"?v(d.options):v;p(),d.options=Object.assign({},a,d.options,x),d.scrollParents={reference:Br(i)?Ya(i):i.contextElement?Ya(i.contextElement):[],popper:Ya(l)};var k=ME(jE([].concat(r,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(Y){return Y.enabled}),process.env.NODE_ENV!=="production"){var w=NE([].concat(k,d.options.modifiers),function(Y){var L=Y.name;return L});if(TE(w),ln(d.options.placement)===Ii){var y=d.orderedModifiers.find(function(Y){var L=Y.name;return L==="flip"});y||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=cn(l),N=S.marginTop,D=S.marginRight,T=S.marginBottom,E=S.marginLeft;[N,D,T,E].some(function(Y){return parseFloat(Y)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),h.update()},forceUpdate:function(){if(!f){var v=d.elements,x=v.reference,k=v.popper;if(!Ib(x,k)){process.env.NODE_ENV!=="production"&&console.error(Nb);return}d.rects={reference:CE(x,za(k),d.options.strategy==="fixed"),popper:Nd(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(Y){return d.modifiersData[Y.name]=Object.assign({},Y.data)});for(var w=0,y=0;y<d.orderedModifiers.length;y++){if(process.env.NODE_ENV!=="production"&&(w+=1,w>100)){console.error(IE);break}if(d.reset===!0){d.reset=!1,y=-1;continue}var S=d.orderedModifiers[y],N=S.fn,D=S.options,T=D===void 0?{}:D,E=S.name;typeof N=="function"&&(d=N({state:d,options:T,name:E,instance:h})||d)}}},update:EE(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){p(),f=!0}};if(!Ib(i,l))return process.env.NODE_ENV!=="production"&&console.error(Nb),h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var v=b.name,x=b.options,k=x===void 0?{}:x,w=b.effect;if(typeof w=="function"){var y=w({state:d,name:v,instance:h,options:k}),S=function(){};u.push(y||S)}})}function p(){u.forEach(function(b){return b()}),u=[]}return h}}var RE=[tE,wE,$M,HM,bE,fE,kE,QM,gE],LE=AE({defaultModifiers:RE}),FE=function(t){var e=t.level,n=t.buttonRef,r=t.contentRef,s=_.useContext(Ni),a=s.collapsed,o=s.toggled,i=s.transitionDuration,l=_.useRef();return _.useEffect(function(){return e===0&&a&&r.current&&n.current&&(l.current=LE(n.current,r.current,{placement:"right",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]})),function(){var c;return(c=l.current)===null||c===void 0?void 0:c.destroy()}},[e,a,r,n]),_.useEffect(function(){if(r.current&&n.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(r.current),c.observe(n.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},i)},[i,o,r,n]),{popperInstance:l.current}},Ab=function(t){var e=t.rtl,n=t.level,r=t.collapsed,s=t.disabled,a=t.active;return`
408
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var d={placement:ln(e.placement),variation:Ps(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Db(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Db(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var aE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sE,data:{}},zi={passive:!0};function oE(t){var e=t.state,n=t.instance,r=t.options,s=r.scroll,a=s===void 0?!0:s,o=r.resize,i=o===void 0?!0:o,l=en(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,zi)}),i&&l.addEventListener("resize",n.update,zi),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,zi)}),i&&l.removeEventListener("resize",n.update,zi)}}var iE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oE,data:{}},lE={left:"right",right:"left",bottom:"top",top:"bottom"};function Hi(t){return t.replace(/left|right|bottom|top/g,function(e){return lE[e]})}var cE={start:"end",end:"start"};function Mb(t){return t.replace(/start|end/g,function(e){return cE[e]})}function Rd(t){var e=en(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ld(t){return Es(ur(t)).left+Rd(t).scrollLeft}function dE(t,e){var n=en(t),r=ur(t),s=n.visualViewport,a=r.clientWidth,o=r.clientHeight,i=0,l=0;if(s){a=s.width,o=s.height;var c=xb();(c||!c&&e==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:i+Ld(t),y:l}}function uE(t){var e,n=ur(t),r=Rd(t),s=(e=t.ownerDocument)==null?void 0:e.body,a=Yr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Yr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-r.scrollLeft+Ld(t),l=-r.scrollTop;return cn(s||n).direction==="rtl"&&(i+=Yr(n.clientWidth,s?s.clientWidth:0)-a),{width:a,height:o,x:i,y:l}}function Fd(t){var e=cn(t),n=e.overflow,r=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Eb(t){return["html","body","#document"].indexOf(_n(t))>=0?t.ownerDocument.body:Bt(t)&&Fd(t)?t:Eb(Bi(t))}function Xa(t,e){var n;e===void 0&&(e=[]);var r=Eb(t),s=r===((n=t.ownerDocument)==null?void 0:n.body),a=en(r),o=s?[a].concat(a.visualViewport||[],Fd(r)?r:[]):r,i=e.concat(o);return s?i:i.concat(Xa(Bi(o)))}function Wd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function fE(t,e){var n=Es(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Pb(t,e,n){return e===yb?Wd(dE(t,n)):Hr(e)?fE(e,n):Wd(uE(ur(t)))}function hE(t){var e=Xa(Bi(t)),n=["absolute","fixed"].indexOf(cn(t).position)>=0,r=n&&Bt(t)?Va(t):t;return Hr(r)?e.filter(function(s){return Hr(s)&&kb(s,r)&&_n(s)!=="body"}):[]}function gE(t,e,n,r){var s=e==="clippingParents"?hE(t):[].concat(e),a=[].concat(s,[n]),o=a[0],i=a.reduce(function(l,c){var d=Pb(t,c,r);return l.top=Yr(d.top,l.top),l.right=Wi(d.right,l.right),l.bottom=Wi(d.bottom,l.bottom),l.left=Yr(d.left,l.left),l},Pb(t,o,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Tb(t){var e=t.reference,n=t.element,r=t.placement,s=r?ln(r):null,a=r?Ps(r):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,l;switch(s){case Nt:l={x:o,y:e.y-n.height};break;case qt:l={x:o,y:e.y+e.height};break;case $t:l={x:e.x+e.width,y:i};break;case jt:l={x:e.x-n.width,y:i};break;default:l={x:e.x,y:e.y}}var c=s?Ad(s):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case Ds:l[c]=l[c]-(e[d]/2-n[d]/2);break;case Ha:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function Ka(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=r===void 0?t.placement:r,a=n.strategy,o=a===void 0?t.strategy:a,i=n.boundary,l=i===void 0?AM:i,c=n.rootBoundary,d=c===void 0?yb:c,u=n.elementContext,f=u===void 0?Ya:u,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,b=m===void 0?0:m,y=Ob(typeof b!="number"?b:Cb(b,za)),x=f===Ya?RM:Ya,k=t.rects.popper,v=t.elements[p?x:f],w=gE(Hr(v)?v:v.contextElement||ur(t.elements.popper),l,d,o),S=Es(t.elements.reference),N=Tb({reference:S,element:k,placement:s}),D=Wd(Object.assign({},k,N)),T=f===Ya?D:S,E={top:w.top-T.top+y.top,bottom:T.bottom-w.bottom+y.bottom,left:w.left-T.left+y.left,right:T.right-w.right+y.right},Y=t.modifiersData.offset;if(f===Ya&&Y){var L=Y[s];Object.keys(E).forEach(function(O){var C=[$t,qt].indexOf(O)>=0?1:-1,P=[Nt,qt].indexOf(O)>=0?"y":"x";E[O]+=L[P]*C})}return E}function mE(t,e){e===void 0&&(e={});var n=e,r=n.placement,s=n.boundary,a=n.rootBoundary,o=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?vb:l,d=Ps(r),u=d?i?wb:wb.filter(function(p){return Ps(p)===d}):za,f=u.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=u,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var h=f.reduce(function(p,m){return p[m]=Ka(t,{placement:m,boundary:s,rootBoundary:a,padding:o})[ln(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function pE(t){if(ln(t)===Fi)return[];var e=Hi(t);return[Mb(t),e,Mb(e)]}function bE(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,b=e.options.placement,y=ln(b),x=y===b,k=l||(x||!p?[Hi(b)]:pE(b)),v=[b].concat(k).reduce(function(I,M){return I.concat(ln(M)===Fi?mE(e,{placement:M,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):M)},[]),w=e.rects.reference,S=e.rects.popper,N=new Map,D=!0,T=v[0],E=0;E<v.length;E++){var Y=v[E],L=ln(Y),O=Ps(Y)===Ds,C=[Nt,qt].indexOf(L)>=0,P=C?"width":"height",F=Ka(e,{placement:Y,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),U=C?O?$t:jt:O?qt:Nt;w[P]>S[P]&&(U=Hi(U));var Z=Hi(U),ee=[];if(a&&ee.push(F[L]<=0),i&&ee.push(F[U]<=0,F[Z]<=0),ee.every(function(I){return I})){T=Y,D=!1;break}N.set(Y,ee)}if(D)for(var j=p?3:1,V=function(M){var H=v.find(function(J){var K=N.get(J);if(K)return K.slice(0,M).every(function(q){return q})});if(H)return T=H,"break"},R=j;R>0;R--){var A=V(R);if(A==="break")break}e.placement!==T&&(e.modifiersData[r]._skip=!0,e.placement=T,e.reset=!0)}}var yE={name:"flip",enabled:!0,phase:"main",fn:bE,requiresIfExists:["offset"],data:{_skip:!1}};function Nb(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jb(t){return[Nt,$t,qt,jt].some(function(e){return t[e]>=0})}function wE(t){var e=t.state,n=t.name,r=e.rects.reference,s=e.rects.popper,a=e.modifiersData.preventOverflow,o=Ka(e,{elementContext:"reference"}),i=Ka(e,{altBoundary:!0}),l=Nb(o,r),c=Nb(i,s,a),d=jb(l),u=jb(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var vE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wE};function xE(t,e,n){var r=ln(t),s=[jt,Nt].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],i=a[1];return o=o||0,i=(i||0)*s,[jt,$t].indexOf(r)>=0?{x:i,y:o}:{x:o,y:i}}function kE(t){var e=t.state,n=t.options,r=t.name,s=n.offset,a=s===void 0?[0,0]:s,o=vb.reduce(function(d,u){return d[u]=xE(u,e.rects,a),d},{}),i=o[e.placement],l=i.x,c=i.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=o}var _E={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kE};function SE(t){var e=t.state,n=t.name;e.modifiersData[n]=Tb({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var OE={name:"popperOffsets",enabled:!0,phase:"read",fn:SE,data:{}};function CE(t){return t==="x"?"y":"x"}function DE(t){var e=t.state,n=t.options,r=t.name,s=n.mainAxis,a=s===void 0?!0:s,o=n.altAxis,i=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,m=p===void 0?0:p,b=Ka(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),y=ln(e.placement),x=Ps(e.placement),k=!x,v=Ad(y),w=CE(v),S=e.modifiersData.popperOffsets,N=e.rects.reference,D=e.rects.popper,T=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,E=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),Y=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(S){if(a){var O,C=v==="y"?Nt:jt,P=v==="y"?qt:$t,F=v==="y"?"height":"width",U=S[v],Z=U+b[C],ee=U-b[P],j=h?-D[F]/2:0,V=x===Ds?N[F]:D[F],R=x===Ds?-D[F]:-N[F],A=e.elements.arrow,I=h&&A?Id(A):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Sb(),H=M[C],J=M[P],K=Ua(0,N[F],I[F]),q=k?N[F]/2-j-K-H-E.mainAxis:V-K-H-E.mainAxis,B=k?-N[F]/2+j+K+J+E.mainAxis:R+K+J+E.mainAxis,te=e.elements.arrow&&Va(e.elements.arrow),W=te?v==="y"?te.clientTop||0:te.clientLeft||0:0,ne=(O=Y==null?void 0:Y[v])!=null?O:0,se=U+q-ne-W,oe=U+B-ne,ge=Ua(h?Wi(Z,se):Z,U,h?Yr(ee,oe):ee);S[v]=ge,L[v]=ge-U}if(i){var ce,ae=v==="x"?Nt:jt,Ve=v==="x"?qt:$t,pe=S[w],He=w==="y"?"height":"width",Ke=pe+b[ae],et=pe-b[Ve],Ut=[Nt,jt].indexOf(y)!==-1,Xt=(ce=Y==null?void 0:Y[w])!=null?ce:0,Kt=Ut?Ke:pe-N[He]-D[He]-Xt+E.altAxis,kr=Ut?pe+N[He]+D[He]-Xt-E.altAxis:et,Gt=h&&Ut?JM(Kt,pe,kr):Ua(h?Kt:Ke,pe,h?kr:et);S[w]=Gt,L[w]=Gt-pe}e.modifiersData[r]=L}}var ME={name:"preventOverflow",enabled:!0,phase:"main",fn:DE,requiresIfExists:["offset"]};function EE(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function PE(t){return t===en(t)||!Bt(t)?Rd(t):EE(t)}function TE(t){var e=t.getBoundingClientRect(),n=Ms(e.width)/t.offsetWidth||1,r=Ms(e.height)/t.offsetHeight||1;return n!==1||r!==1}function NE(t,e,n){n===void 0&&(n=!1);var r=Bt(e),s=Bt(e)&&TE(e),a=ur(e),o=Es(t,s,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((_n(e)!=="body"||Fd(a))&&(i=PE(e)),Bt(e)?(l=Es(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=Ld(a))),{x:o.left+i.scrollLeft-l.x,y:o.top+i.scrollTop-l.y,width:o.width,height:o.height}}function jE(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function s(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var l=e.get(i);l&&s(l)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||s(a)}),r}function IE(t){var e=jE(t);return Td.reduce(function(n,r){return n.concat(e.filter(function(s){return s.phase===r}))},[])}function AE(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function fr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(s,a){return s.replace(/%s/,a)},t)}var Vr='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',RE='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Ib=["name","enabled","phase","fn","effect","requires","options"];function LE(t){t.forEach(function(e){[].concat(Object.keys(e),Ib).filter(function(n,r,s){return s.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(fr(Vr,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(fr(Vr,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Td.indexOf(e.phase)<0&&console.error(fr(Vr,e.name,'"phase"',"either "+Td.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(fr(Vr,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(fr(Vr,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(fr(Vr,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(fr(Vr,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Ib.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(s){return s.name===r})==null&&console.error(fr(RE,String(e.name),r,r))})})})}function FE(t,e){var n=new Set;return t.filter(function(r){var s=e(r);if(!n.has(s))return n.add(s),!0})}function WE(t){var e=t.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ab="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",BE="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Rb={placement:"bottom",modifiers:[],strategy:"absolute"};function Lb(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function zE(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,s=e.defaultOptions,a=s===void 0?Rb:s;return function(i,l,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rb,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(y){var x=typeof y=="function"?y(d.options):y;m(),d.options=Object.assign({},a,d.options,x),d.scrollParents={reference:Hr(i)?Xa(i):i.contextElement?Xa(i.contextElement):[],popper:Xa(l)};var k=IE(WE([].concat(r,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(Y){return Y.enabled}),process.env.NODE_ENV!=="production"){var v=FE([].concat(k,d.options.modifiers),function(Y){var L=Y.name;return L});if(LE(v),ln(d.options.placement)===Fi){var w=d.orderedModifiers.find(function(Y){var L=Y.name;return L==="flip"});w||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=cn(l),N=S.marginTop,D=S.marginRight,T=S.marginBottom,E=S.marginLeft;[N,D,T,E].some(function(Y){return parseFloat(Y)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return p(),h.update()},forceUpdate:function(){if(!f){var y=d.elements,x=y.reference,k=y.popper;if(!Lb(x,k)){process.env.NODE_ENV!=="production"&&console.error(Ab);return}d.rects={reference:NE(x,Va(k),d.options.strategy==="fixed"),popper:Id(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(Y){return d.modifiersData[Y.name]=Object.assign({},Y.data)});for(var v=0,w=0;w<d.orderedModifiers.length;w++){if(process.env.NODE_ENV!=="production"&&(v+=1,v>100)){console.error(BE);break}if(d.reset===!0){d.reset=!1,w=-1;continue}var S=d.orderedModifiers[w],N=S.fn,D=S.options,T=D===void 0?{}:D,E=S.name;typeof N=="function"&&(d=N({state:d,options:T,name:E,instance:h})||d)}}},update:AE(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){m(),f=!0}};if(!Lb(i,l))return process.env.NODE_ENV!=="production"&&console.error(Ab),h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function p(){d.orderedModifiers.forEach(function(b){var y=b.name,x=b.options,k=x===void 0?{}:x,v=b.effect;if(typeof v=="function"){var w=v({state:d,name:y,instance:h,options:k}),S=function(){};u.push(w||S)}})}function m(){u.forEach(function(b){return b()}),u=[]}return h}}var HE=[iE,OE,aE,GM,_E,yE,ME,tE,vE],YE=zE({defaultModifiers:HE}),VE=function(t){var e=t.level,n=t.buttonRef,r=t.contentRef,s=_.useContext(Ri),a=s.collapsed,o=s.toggled,i=s.transitionDuration,l=_.useRef();return _.useEffect(function(){return e===0&&a&&r.current&&n.current&&(l.current=YE(n.current,r.current,{placement:"right",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]})),function(){var c;return(c=l.current)===null||c===void 0?void 0:c.destroy()}},[e,a,r,n]),_.useEffect(function(){if(r.current&&n.current){var c=new ResizeObserver(function(){var d;(d=l.current)===null||d===void 0||d.update()});c.observe(r.current),c.observe(n.current)}setTimeout(function(){var d;(d=l.current)===null||d===void 0||d.update()},i)},[i,o,r,n]),{popperInstance:l.current}},Fb=function(t){var e=t.rtl,n=t.level,r=t.collapsed,s=t.disabled,a=t.active;return`
409
409
  display: flex;
410
410
  align-items: center;
411
411
  height: 50px;
@@ -432,7 +432,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
432
432
 
433
433
  `).concat(a&&"background-color: #e2eef9;",`
434
434
 
435
- `)},WE=function(t,e){var n=t.className,r=t.component,s=t.children,a=Fr(t,["className","component","children"]);if(r){if(typeof r=="string")return _.createElement(r,Ft(Ft({className:it(n)},a),{ref:e}),s);var o=r.props,i=o.className,l=Fr(o,["className"]);return _.cloneElement(r,Ft(Ft(Ft({className:it(n,i)},a),l),{ref:e}),s)}else return _.createElement("a",Ft({ref:e,className:it(n)},a),s)},Rb=_.forwardRef(WE),BE=ct.li(Lb||(Lb=wt([`
435
+ `)},UE=function(t,e){var n=t.className,r=t.component,s=t.children,a=Br(t,["className","component","children"]);if(r){if(typeof r=="string")return _.createElement(r,Ft(Ft({className:lt(n)},a),{ref:e}),s);var o=r.props,i=o.className,l=Br(o,["className"]);return _.cloneElement(r,Ft(Ft(Ft({className:lt(n,i)},a),l),{ref:e}),s)}else return _.createElement("a",Ft({ref:e,className:lt(n)},a),s)},Wb=_.forwardRef(UE),XE=ct.li(Bb||(Bb=wt([`
436
436
  position: relative;
437
437
  width: 100%;
438
438
 
@@ -458,7 +458,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
458
458
 
459
459
  `,`;
460
460
  }
461
- `])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},xe.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Ab({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),zE=function(t,e){var n,r=t.children,s=t.className,a=t.label,o=t.icon,i=t.title,l=t.prefix,c=t.suffix,d=t.open,u=t.defaultOpen,f=t.active,h=f===void 0?!1:f,m=t.disabled,p=m===void 0?!1:m,b=t.rootStyles,v=t.component,x=t.onOpenChange,k=t.onClick,w=t.onKeyUp,y=Fr(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=_.useContext(ji),N=_.useContext(Ni),D=N.collapsed,T=N.rtl,E=N.transitionDuration,Y=Md(),L=Y.renderExpandIcon,O=Y.closeOnClick,C=Y.menuItemStyles,P=Y.transitionDuration,F=_.useState(!!u),U=F[0],Z=F[1],ee=_.useState(!1),j=ee[0],V=ee[1],R=_.useState(!1),A=R[0],I=R[1],M=_.useRef(null),H=_.useRef(null),J=_.useRef(),K=FE({level:S,buttonRef:M,contentRef:H}).popperInstance,q=_.useCallback(function(){var ge,ce=H.current;if(ce){var ae=(ge=ce==null?void 0:ce.querySelector(".".concat(xe.subMenuContent," > ul")))===null||ge===void 0?void 0:ge.clientHeight;ce.style.overflow="hidden",ce.style.height="".concat(ae,"px"),J.current=setTimeout(function(){ce.style.overflow="auto",ce.style.height="auto"},P)}},[P]),B=function(){var ge,ce=H.current;if(ce){var ae=(ge=ce==null?void 0:ce.querySelector(".".concat(xe.subMenuContent," > ul")))===null||ge===void 0?void 0:ge.clientHeight;ce.style.overflow="hidden",ce.style.height="".concat(ae,"px"),ce.offsetHeight,ce.style.height="0px"}},te=function(){S===0&&D||(typeof d>"u"?(clearTimeout(Number(J.current)),U?B():q(),x==null||x(!U),Z(!U)):x==null||x(!d))};_.useEffect(function(){!(S===0&&D)&&typeof d<"u"&&A&&(clearTimeout(Number(J.current)),d?q():B())},[D,q,a,S,x,d]);var W=function(ge){k==null||k(ge),te()},ne=function(ge){w==null||w(ge),ge.key==="Enter"&&te()},se=function(ge){if(C){var ce={level:S,disabled:p,active:h,isSubmenu:!0,open:d??U},ae=C.root,Ye=C.button,pe=C.label,ze=C.icon,Xe=C.prefix,$e=C.suffix,Ut=C.subMenuContent,Xt=C.SubMenuExpandIcon;switch(ge){case"root":return typeof ae=="function"?ae(ce):ae;case"button":return typeof Ye=="function"?Ye(ce):Ye;case"label":return typeof pe=="function"?pe(ce):pe;case"icon":return typeof ze=="function"?ze(ce):ze;case"prefix":return typeof Xe=="function"?Xe(ce):Xe;case"suffix":return typeof $e=="function"?$e(ce):$e;case"SubMenuExpandIcon":return typeof Xt=="function"?Xt(ce):Xt;case"subMenuContent":return typeof Ut=="function"?Ut(ce):Ut;default:return}}};_.useEffect(function(){setTimeout(function(){return K==null?void 0:K.update()},E),D&&S===0&&V(!1)},[D,S,T,E,K]),_.useEffect(function(){var ge=function(pe){var ze,Xe,$e;!j&&(!((ze=M.current)===null||ze===void 0)&&ze.contains(pe))?V(!0):(O&&!(!((Xe=pe.closest(".".concat(xe.menuItemRoot)))===null||Xe===void 0)&&Xe.classList.contains(xe.subMenuRoot))||!(!(($e=H.current)===null||$e===void 0)&&$e.contains(pe))&&j)&&V(!1)},ce=function(pe){ge(pe.target)},ae=function(pe){pe.key==="Enter"?ge(pe.target):pe.key==="Escape"&&V(!1)},Ye=function(){document.removeEventListener("click",ce),document.removeEventListener("keyup",ae)};return Ye(),D&&S===0&&(document.addEventListener("click",ce,!1),document.addEventListener("keyup",ae,!1)),function(){Ye()}},[D,S,O,j]),_.useEffect(function(){I(!0)},[]);var oe=(n={},n[xe.active]=h,n[xe.disabled]=p,n[xe.open]=d??U,n);return _.createElement(BE,{ref:e,className:it(xe.menuItemRoot,xe.subMenuRoot,oe,s),menuItemStyles:se("root"),level:S,collapsed:D,rtl:T,disabled:p,active:h,buttonStyles:se("button"),rootStyles:b},_.createElement(Rb,Ft({"data-testid":"".concat(xe.button,"-test-id"),ref:M,title:i,className:it(xe.button,oe),onClick:W,onKeyUp:ne,component:v,tabIndex:0},y),o&&_.createElement(ob,{rtl:T,className:it(xe.icon,oe),rootStyles:se("icon")},o),l&&_.createElement(lb,{collapsed:D,transitionDuration:E,firstLevel:S===0,className:it(xe.prefix,oe),rtl:T,rootStyles:se("prefix")},l),_.createElement(sb,{className:it(xe.label,oe),rootStyles:se("label")},a),c&&_.createElement(db,{collapsed:D,transitionDuration:E,firstLevel:S===0,className:it(xe.suffix,oe),rootStyles:se("suffix")},c),_.createElement(CM,{rtl:T,className:it(xe.SubMenuExpandIcon,oe),collapsed:D,level:S,rootStyles:se("SubMenuExpandIcon")},L?L({level:S,disabled:p,active:h,open:d??U}):D&&S===0?_.createElement(MM,null):_.createElement(DM,{rtl:T,open:d??U}))),_.createElement(OM,{ref:H,openWhenCollapsed:j,open:d??U,firstLevel:S===0,collapsed:D,defaultOpen:d&&!A||u,className:it(xe.subMenuContent,oe),rootStyles:se("subMenuContent")},_.createElement(ji.Provider,{value:S+1},r)))};_.forwardRef(zE);var Lb,HE=ct.li(Fb||(Fb=wt([`
461
+ `])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},xe.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Fb({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),KE=function(t,e){var n,r=t.children,s=t.className,a=t.label,o=t.icon,i=t.title,l=t.prefix,c=t.suffix,d=t.open,u=t.defaultOpen,f=t.active,h=f===void 0?!1:f,p=t.disabled,m=p===void 0?!1:p,b=t.rootStyles,y=t.component,x=t.onOpenChange,k=t.onClick,v=t.onKeyUp,w=Br(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=_.useContext(Li),N=_.useContext(Ri),D=N.collapsed,T=N.rtl,E=N.transitionDuration,Y=Pd(),L=Y.renderExpandIcon,O=Y.closeOnClick,C=Y.menuItemStyles,P=Y.transitionDuration,F=_.useState(!!u),U=F[0],Z=F[1],ee=_.useState(!1),j=ee[0],V=ee[1],R=_.useState(!1),A=R[0],I=R[1],M=_.useRef(null),H=_.useRef(null),J=_.useRef(),K=VE({level:S,buttonRef:M,contentRef:H}).popperInstance,q=_.useCallback(function(){var ge,ce=H.current;if(ce){var ae=(ge=ce==null?void 0:ce.querySelector(".".concat(xe.subMenuContent," > ul")))===null||ge===void 0?void 0:ge.clientHeight;ce.style.overflow="hidden",ce.style.height="".concat(ae,"px"),J.current=setTimeout(function(){ce.style.overflow="auto",ce.style.height="auto"},P)}},[P]),B=function(){var ge,ce=H.current;if(ce){var ae=(ge=ce==null?void 0:ce.querySelector(".".concat(xe.subMenuContent," > ul")))===null||ge===void 0?void 0:ge.clientHeight;ce.style.overflow="hidden",ce.style.height="".concat(ae,"px"),ce.offsetHeight,ce.style.height="0px"}},te=function(){S===0&&D||(typeof d>"u"?(clearTimeout(Number(J.current)),U?B():q(),x==null||x(!U),Z(!U)):x==null||x(!d))};_.useEffect(function(){!(S===0&&D)&&typeof d<"u"&&A&&(clearTimeout(Number(J.current)),d?q():B())},[D,q,a,S,x,d]);var W=function(ge){k==null||k(ge),te()},ne=function(ge){v==null||v(ge),ge.key==="Enter"&&te()},se=function(ge){if(C){var ce={level:S,disabled:m,active:h,isSubmenu:!0,open:d??U},ae=C.root,Ve=C.button,pe=C.label,He=C.icon,Ke=C.prefix,et=C.suffix,Ut=C.subMenuContent,Xt=C.SubMenuExpandIcon;switch(ge){case"root":return typeof ae=="function"?ae(ce):ae;case"button":return typeof Ve=="function"?Ve(ce):Ve;case"label":return typeof pe=="function"?pe(ce):pe;case"icon":return typeof He=="function"?He(ce):He;case"prefix":return typeof Ke=="function"?Ke(ce):Ke;case"suffix":return typeof et=="function"?et(ce):et;case"SubMenuExpandIcon":return typeof Xt=="function"?Xt(ce):Xt;case"subMenuContent":return typeof Ut=="function"?Ut(ce):Ut;default:return}}};_.useEffect(function(){setTimeout(function(){return K==null?void 0:K.update()},E),D&&S===0&&V(!1)},[D,S,T,E,K]),_.useEffect(function(){var ge=function(pe){var He,Ke,et;!j&&(!((He=M.current)===null||He===void 0)&&He.contains(pe))?V(!0):(O&&!(!((Ke=pe.closest(".".concat(xe.menuItemRoot)))===null||Ke===void 0)&&Ke.classList.contains(xe.subMenuRoot))||!(!((et=H.current)===null||et===void 0)&&et.contains(pe))&&j)&&V(!1)},ce=function(pe){ge(pe.target)},ae=function(pe){pe.key==="Enter"?ge(pe.target):pe.key==="Escape"&&V(!1)},Ve=function(){document.removeEventListener("click",ce),document.removeEventListener("keyup",ae)};return Ve(),D&&S===0&&(document.addEventListener("click",ce,!1),document.addEventListener("keyup",ae,!1)),function(){Ve()}},[D,S,O,j]),_.useEffect(function(){I(!0)},[]);var oe=(n={},n[xe.active]=h,n[xe.disabled]=m,n[xe.open]=d??U,n);return _.createElement(XE,{ref:e,className:lt(xe.menuItemRoot,xe.subMenuRoot,oe,s),menuItemStyles:se("root"),level:S,collapsed:D,rtl:T,disabled:m,active:h,buttonStyles:se("button"),rootStyles:b},_.createElement(Wb,Ft({"data-testid":"".concat(xe.button,"-test-id"),ref:M,title:i,className:lt(xe.button,oe),onClick:W,onKeyUp:ne,component:y,tabIndex:0},w),o&&_.createElement(cb,{rtl:T,className:lt(xe.icon,oe),rootStyles:se("icon")},o),l&&_.createElement(ub,{collapsed:D,transitionDuration:E,firstLevel:S===0,className:lt(xe.prefix,oe),rtl:T,rootStyles:se("prefix")},l),_.createElement(ib,{className:lt(xe.label,oe),rootStyles:se("label")},a),c&&_.createElement(hb,{collapsed:D,transitionDuration:E,firstLevel:S===0,className:lt(xe.suffix,oe),rootStyles:se("suffix")},c),_.createElement(NM,{rtl:T,className:lt(xe.SubMenuExpandIcon,oe),collapsed:D,level:S,rootStyles:se("SubMenuExpandIcon")},L?L({level:S,disabled:m,active:h,open:d??U}):D&&S===0?_.createElement(IM,null):_.createElement(jM,{rtl:T,open:d??U}))),_.createElement(TM,{ref:H,openWhenCollapsed:j,open:d??U,firstLevel:S===0,collapsed:D,defaultOpen:d&&!A||u,className:lt(xe.subMenuContent,oe),rootStyles:se("subMenuContent")},_.createElement(Li.Provider,{value:S+1},r)))};_.forwardRef(KE);var Bb,GE=ct.li(zb||(zb=wt([`
462
462
  width: 100%;
463
463
  position: relative;
464
464
 
@@ -484,42 +484,21 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,s=r&&e.__emoti
484
484
 
485
485
  `,`;
486
486
  }
487
- `])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},xe.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Ab({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),YE=function(t,e){var n,r=t.children,s=t.icon,a=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,m=Fr(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),p=_.useContext(ji),b=_.useContext(Ni),v=b.collapsed,x=b.rtl,k=b.transitionDuration,w=Md().menuItemStyles,y=function(N){if(w){var D={level:p,disabled:u,active:c,isSubmenu:!1},T=w.root,E=w.button,Y=w.label,L=w.icon,O=w.prefix,C=w.suffix;switch(N){case"root":return typeof T=="function"?T(D):T;case"button":return typeof E=="function"?E(D):E;case"label":return typeof Y=="function"?Y(D):Y;case"icon":return typeof L=="function"?L(D):L;case"prefix":return typeof O=="function"?O(D):O;case"suffix":return typeof C=="function"?C(D):C;default:return}}},S=(n={},n[xe.active]=c,n[xe.disabled]=u,n);return _.createElement(HE,{ref:e,className:it(xe.menuItemRoot,S,a),menuItemStyles:y("root"),level:p,collapsed:v,rtl:x,disabled:u,active:c,buttonStyles:y("button"),rootStyles:h},_.createElement(Rb,Ft({className:it(xe.button,S),"data-testid":"".concat(xe.button,"-test-id"),component:f,tabIndex:0},m),s&&_.createElement(ob,{rtl:x,className:it(xe.icon,S),rootStyles:y("icon")},s),o&&_.createElement(lb,{collapsed:v,transitionDuration:k,firstLevel:p===0,className:it(xe.prefix,S),rtl:x,rootStyles:y("prefix")},o),_.createElement(sb,{className:it(xe.label,S),rootStyles:y("label")},r),i&&_.createElement(db,{collapsed:v,transitionDuration:k,firstLevel:p===0,className:it(xe.suffix,S),rootStyles:y("suffix")},i)))},VE=_.forwardRef(YE),Fb;const Fd=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:s,description:a,width:o,height:i,iconPosition:l,imagePosition:c}=t;return g.jsx("div",{className:`${wm.Card} flex flex-col border px-3.5 py-7`,ref:e,children:g.jsxs("div",{className:"flex justify-between",children:[n?g.jsx(xr,{classIm:c||"mx-auto",src:n,alt:s,width:o,height:i}):r?g.jsx("div",{className:`flex justify-${l||"center"}`,children:g.jsx(r,{size:o||50})}):null,g.jsx("div",{className:"flex flex-col pl-8",children:g.jsxs("h3",{className:"font-bold text-end",children:[s," ",g.jsx("br",{}),a&&g.jsx("p",{className:"text-sm font-normal",children:a})]})})]})})});Fd.displayName="Card";const UE=({aHref:t,logo:e,menuItems:n,campaignCards:r=[],onLogout:s,defaultCollapsed:a=!1,background:o="linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",textColor:i="#ffffff",className:l=""})=>{const[c,d]=_.useState(a),[u,f]=_.useState(null),[h,m]=_.useState(new Set),[p,b]=_.useState(null),[v,x]=_.useState(null),k=n.filter(O=>O.position!=="bottom"),w=n.filter(O=>O.position==="bottom"),y=O=>typeof O=="string"?g.jsx("img",{src:O,style:{width:"20px",height:"20px"}}):O?_.createElement(O,{style:{width:"20px",height:"20px"}}):null,S=(O=!1,C=!1)=>({background:c?"transparent":C?"#FFFFFF55":O?"#FFFFFF22":"#FFFFFF33",color:i,borderRadius:O?"15px":"20px",button:{width:c?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:c?"0 0.25rem":"0 0.5rem",color:i,fontSize:O?"0.9rem":void 0}}),N=(O,C=!1,P)=>{const F=C?v===O.id:p===O.id;return g.jsx(VE,{icon:y(O.icon),onClick:()=>Y(O,P),className:"mx-auto mb-1 rounded-md",rootStyles:S(C,F),children:C?O.label:g.jsxs("div",{className:"flex w-full items-center justify-between",children:[g.jsx("span",{children:O.label}),O.subMenuSection&&g.jsx(GC,{className:`text-lg transition-transform duration-200 ${h.has(O.id)?"rotate-180":""}`})]})},O.id)},D=O=>O.map(C=>g.jsxs("div",{children:[N(C),C.subMenuSection&&h.has(C.id)&&g.jsx("div",{className:"ml-4 space-y-1 mb-2",children:C.subMenuSection.items.map(P=>N(P,!0,C.id))})]},C.id)),T=()=>{u||d(!1)},E=()=>{u||(d(!0),m(new Set))},Y=(O,C)=>{if(C?(b(C),x(O.id)):(b(O.id),x(null)),O.subMenuSection){const P=new Set(h);P.has(O.id)?P.delete(O.id):P.add(O.id),m(P)}else O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)},L=O=>{O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)};return g.jsx("div",{className:`fixed left-0 top-0 z-40 my-1 mx-2 ${l}`,children:g.jsxs("div",{className:"flex flex-col",onMouseEnter:T,onMouseLeave:E,children:[g.jsxs(wM,{collapsed:c,rootStyles:{[`.${Ve.container}`]:{background:o,color:i,height:"100vh",display:"flex",flexDirection:"column",width:c?"70px":"275px",transition:"all 400ms ease-in-out",borderRadius:"20px",boxShadow:"5px 0px 10px 0px #00000040;",padding:c?"0":"0.45rem"}},children:[g.jsx("div",{className:`${c?"mx-auto":""} mb-4 mt-10 `,children:g.jsx("a",{href:t||"/",children:g.jsx(xr,{classIm:`${c?"mx-auto":"mx-4"}`,src:`${c?e.src.collapsed:e.src.expanded}`,alt:e.alt,width:c?e.width.collapsed:e.width.expanded,height:c?e.height.collapsed:e.height.expanded})})}),g.jsxs("div",{className:"flex h-full flex-col",children:[g.jsxs(kM,{className:"mx-2 flex-1 relative",children:[g.jsx("div",{className:"flex flex-col",children:D(k)}),g.jsx("div",{className:` ${h.size===0?"absolute bottom-0":""} w-full`,children:D(w)})]}),s&&g.jsx("div",{className:"w-full cursor-pointer py-4 px-6 mt-auto mb-1",children:g.jsx("div",{className:"flex rounded-2xl mb-1",style:{background:c?"transparent":"#FFFFFF1A",float:c?"none":"right",width:c?"20px":"fit-content",height:c?"20px":"fit-content",padding:c?"0":"0.5rem"},onClick:s,children:g.jsx("button",{style:{color:i,width:c?"20px":"fit-content",height:c?"20px":"fit-content"},children:g.jsx("img",{src:"https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg",alt:"logout",width:c?"25px":"fit-content",height:c?"25px":"fit-content"})})})})]})]}),r.length>0&&g.jsx(i0,{width:"40%",isOpen:u==="campaigns",onClose:()=>f(null),children:g.jsxs("div",{className:"flex flex-col px-10 pb-5",children:[g.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),g.jsx("div",{className:"flex",children:r.map(O=>g.jsx("div",{className:"flex w-3/6 p-2",onClick:()=>L(O),children:g.jsx(Fd,{imageUrl:O.imageUrl,title:O.title,description:O.description})},O.id))})]})})]})})},Wd={"mth-color-primary":"pagination-module__mth-color-primary__hNTQd","mth-input-number":"pagination-module__mth-input-number__2TY-u"};function XE(t){return We({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(t)}function KE(t){return We({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(t)}const Bd=({currentPage:t,totalPages:e,onPageChange:n,value:r})=>g.jsxs("div",{className:"flex items-center justify-center gap-4",children:[g.jsxs("span",{className:"text-xs text-gray-700",children:["Ver  ",g.jsx("input",{type:"number",className:`w-8 h-8 text-xs ${Wd["mth-input-number"]}`,id:"itemsPerPage",defaultValue:r||15,maxLength:3})]}),g.jsx("button",{onClick:()=>n(t-1),disabled:t===1,className:" text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:g.jsx(XE,{className:`w-6 h-6 ${Wd["mth-color-primary"]}`})}),g.jsxs("span",{className:"text-xs text-gray-700",children:[t," DE ",e]}),g.jsx("button",{onClick:()=>n(t+1),disabled:t===e,className:"text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:g.jsx(KE,{className:`w-6 h-6 ${Wd["mth-color-primary"]}`})})]}),GE={mth_toggle:"toggle-module__mth_toggle__8NB4F"};function zd({labelIzquierda:t,labelDerecha:e,checkedLabel:n,uncheckedLabel:r,checked:s=!1,disabled:a=!1,onChange:o,colors:i={},labelPosition:l="right",boldWhenActive:c=!1}){const[d,u]=_.useState(s),h={...{offBackgroundColor:"#EEEEEE",offCircleColor:"#BBBBBB",offCircleBorderColor:"#BBBBBB",onBackgroundColor:"#DEE9FF",onCircleColor:"#191960",onCircleBorderColor:"#191960"},...i},m=D=>{if(a)return;const T=D.target.checked;u(T),o==null||o(T)},p=d?h.onBackgroundColor:h.offBackgroundColor,b=d?h.onCircleColor:h.offCircleColor,v=d?h.onCircleBorderColor:h.offCircleBorderColor,x=t||n||r||e,k=`text-sm ${a?"text-gray-500":"text-gray-700"}`,w=t&&g.jsx("span",{className:!d&&c?"font-bold "+k:k,children:t}),y=e&&g.jsx("span",{className:d&&c?"font-bold "+k:k,children:e}),S=g.jsxs("label",{className:`inline-flex items-center ${a?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[g.jsx("input",{type:"checkbox",className:"peer sr-only",checked:d,onChange:m,disabled:a}),g.jsx("div",{className:`${GE.mth_toggle} peer relative h-5 w-9 rounded-full
487
+ `])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},xe.button,function(t){var e=t.level,n=t.disabled,r=t.active,s=t.collapsed,a=t.rtl;return Fb({level:e,disabled:n,active:r,collapsed:s,rtl:a})},function(t){var e=t.buttonStyles;return e}),QE=function(t,e){var n,r=t.children,s=t.icon,a=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,p=Br(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),m=_.useContext(Li),b=_.useContext(Ri),y=b.collapsed,x=b.rtl,k=b.transitionDuration,v=Pd().menuItemStyles,w=function(N){if(v){var D={level:m,disabled:u,active:c,isSubmenu:!1},T=v.root,E=v.button,Y=v.label,L=v.icon,O=v.prefix,C=v.suffix;switch(N){case"root":return typeof T=="function"?T(D):T;case"button":return typeof E=="function"?E(D):E;case"label":return typeof Y=="function"?Y(D):Y;case"icon":return typeof L=="function"?L(D):L;case"prefix":return typeof O=="function"?O(D):O;case"suffix":return typeof C=="function"?C(D):C;default:return}}},S=(n={},n[xe.active]=c,n[xe.disabled]=u,n);return _.createElement(GE,{ref:e,className:lt(xe.menuItemRoot,S,a),menuItemStyles:w("root"),level:m,collapsed:y,rtl:x,disabled:u,active:c,buttonStyles:w("button"),rootStyles:h},_.createElement(Wb,Ft({className:lt(xe.button,S),"data-testid":"".concat(xe.button,"-test-id"),component:f,tabIndex:0},p),s&&_.createElement(cb,{rtl:x,className:lt(xe.icon,S),rootStyles:w("icon")},s),o&&_.createElement(ub,{collapsed:y,transitionDuration:k,firstLevel:m===0,className:lt(xe.prefix,S),rtl:x,rootStyles:w("prefix")},o),_.createElement(ib,{className:lt(xe.label,S),rootStyles:w("label")},r),i&&_.createElement(hb,{collapsed:y,transitionDuration:k,firstLevel:m===0,className:lt(xe.suffix,S),rootStyles:w("suffix")},i)))},ZE=_.forwardRef(QE),zb;const Bd=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:s,description:a,width:o,height:i,iconPosition:l,imagePosition:c}=t;return g.jsx("div",{className:`${km.Card} flex flex-col border px-3.5 py-7`,ref:e,children:g.jsxs("div",{className:"flex justify-between",children:[n?g.jsx(Sr,{classIm:c||"mx-auto",src:n,alt:s,width:o,height:i}):r?g.jsx("div",{className:`flex justify-${l||"center"}`,children:g.jsx(r,{size:o||50})}):null,g.jsx("div",{className:"flex flex-col pl-8",children:g.jsxs("h3",{className:"font-bold text-base md:text-lg text-end",children:[s," ",g.jsx("br",{}),a&&g.jsx("p",{className:"text-lg md:text-xl font-normal text-end",children:a})]})})]})})});Bd.displayName="Card";const JE=({aHref:t,logo:e,menuItems:n,campaignCards:r=[],onLogout:s,defaultCollapsed:a=!1,background:o="linear-gradient(180deg, rgba(25, 25, 96, 0.95) 0%, rgba(41, 41, 139, 0.95) 100%)",textColor:i="#ffffff",className:l=""})=>{const[c,d]=_.useState(a),[u,f]=_.useState(null),[h,p]=_.useState(new Set),[m,b]=_.useState(null),[y,x]=_.useState(null),k=n.filter(O=>O.position!=="bottom"),v=n.filter(O=>O.position==="bottom"),w=O=>typeof O=="string"?g.jsx("img",{src:O,style:{width:"20px",height:"20px"}}):O?_.createElement(O,{style:{width:"20px",height:"20px"}}):null,S=(O=!1,C=!1)=>({background:c?"transparent":C?"#FFFFFF55":O?"#FFFFFF22":"#FFFFFF33",color:i,borderRadius:O?"15px":"20px",button:{width:c?"calc(100% - 0.5rem)":"calc(100% - 1rem)",margin:c?"0 0.25rem":"0 0.5rem",color:i,fontSize:O?"0.9rem":void 0}}),N=(O,C=!1,P)=>{const F=C?y===O.id:m===O.id;return g.jsx(ZE,{icon:w(O.icon),onClick:()=>Y(O,P),className:"mx-auto mb-1 rounded-md",rootStyles:S(C,F),children:C?O.label:g.jsxs("div",{className:"flex w-full items-center justify-between",children:[g.jsx("span",{children:O.label}),O.subMenuSection&&g.jsx(eD,{className:`text-lg transition-transform duration-200 ${h.has(O.id)?"rotate-180":""}`})]})},O.id)},D=O=>O.map(C=>g.jsxs("div",{children:[N(C),C.subMenuSection&&h.has(C.id)&&g.jsx("div",{className:"ml-4 space-y-1 mb-2",children:C.subMenuSection.items.map(P=>N(P,!0,C.id))})]},C.id)),T=()=>{u||d(!1)},E=()=>{u||(d(!0),p(new Set))},Y=(O,C)=>{if(C?(b(C),x(O.id)):(b(O.id),x(null)),O.subMenuSection){const P=new Set(h);P.has(O.id)?P.delete(O.id):P.add(O.id),p(P)}else O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)},L=O=>{O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)};return g.jsx("div",{className:`fixed left-0 top-0 z-40 my-1 mx-2 ${l}`,children:g.jsxs("div",{className:"flex flex-col",onMouseEnter:T,onMouseLeave:E,children:[g.jsxs(OM,{collapsed:c,rootStyles:{[`.${Ue.container}`]:{background:o,color:i,height:"100vh",display:"flex",flexDirection:"column",width:c?"70px":"275px",transition:"all 400ms ease-in-out",borderRadius:"20px",boxShadow:"5px 0px 10px 0px #00000040;",padding:c?"0":"0.45rem"}},children:[g.jsx("div",{className:`${c?"mx-auto":""} mb-4 mt-10 `,children:g.jsx("a",{href:t||"/",children:g.jsx(Sr,{classIm:`${c?"mx-auto":"mx-4"}`,src:`${c?e.src.collapsed:e.src.expanded}`,alt:e.alt,width:c?e.width.collapsed:e.width.expanded,height:c?e.height.collapsed:e.height.expanded})})}),g.jsxs("div",{className:"flex h-full flex-col",children:[g.jsxs(MM,{className:"mx-2 flex-1 relative",children:[g.jsx("div",{className:"flex flex-col",children:D(k)}),g.jsx("div",{className:` ${h.size===0?"absolute bottom-0":""} w-full`,children:D(v)})]}),s&&g.jsx("div",{className:"w-full cursor-pointer py-4 px-6 mt-auto mb-1",children:g.jsx("div",{className:"flex rounded-2xl mb-1",style:{background:c?"transparent":"#FFFFFF1A",float:c?"none":"right",width:c?"20px":"fit-content",height:c?"20px":"fit-content",padding:c?"0":"0.5rem"},onClick:s,children:g.jsx("button",{style:{color:i,width:c?"20px":"fit-content",height:c?"20px":"fit-content"},children:g.jsx("img",{src:"https://ftp.mathilde-ads.com/382-1a63116bc0d0909114f6c93af9d3dd8d.svg",alt:"logout",width:c?"25px":"fit-content",height:c?"25px":"fit-content"})})})})]})]}),r.length>0&&g.jsx(d0,{width:"40%",isOpen:u==="campaigns",onClose:()=>f(null),children:g.jsxs("div",{className:"flex flex-col px-10 pb-5",children:[g.jsx("h2",{className:"mb-3 text-center font-bold",children:"Selecciona el tipo de campaña que quieres crear"}),g.jsx("div",{className:"flex",children:r.map(O=>g.jsx("div",{className:"flex w-3/6 p-2",onClick:()=>L(O),children:g.jsx(Bd,{imageUrl:O.imageUrl,title:O.title,description:O.description})},O.id))})]})})]})})},zd={"mth-color-primary":"pagination-module__mth-color-primary__hNTQd","mth-input-number":"pagination-module__mth-input-number__2TY-u"};function qE(t){return Ee({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(t)}function $E(t){return Ee({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(t)}function eP(t){return Ee({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368 144 144m224 0L144 368"},child:[]}]})(t)}const Hd=({currentPage:t,totalPages:e,onPageChange:n,value:r})=>g.jsxs("div",{className:"flex items-center justify-center gap-4",children:[g.jsxs("span",{className:"text-xs text-gray-700",children:["Ver  ",g.jsx("input",{type:"number",className:`w-8 h-8 text-xs ${zd["mth-input-number"]}`,id:"itemsPerPage",defaultValue:r||15,maxLength:3})]}),g.jsx("button",{onClick:()=>n(t-1),disabled:t===1,className:" text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:g.jsx(qE,{className:`w-6 h-6 ${zd["mth-color-primary"]}`})}),g.jsxs("span",{className:"text-xs text-gray-700",children:[t," DE ",e]}),g.jsx("button",{onClick:()=>n(t+1),disabled:t===e,className:"text-gray-500 hover:text-gray-700 disabled:cursor-not-allowed disabled:opacity-50",children:g.jsx($E,{className:`w-6 h-6 ${zd["mth-color-primary"]}`})})]}),tP={mth_toggle:"toggle-module__mth_toggle__8NB4F"};function Yd({labelIzquierda:t,labelDerecha:e,checkedLabel:n,uncheckedLabel:r,checked:s=!1,disabled:a=!1,onChange:o,colors:i={},labelPosition:l="right",boldWhenActive:c=!1}){const[d,u]=_.useState(s),h={...{offBackgroundColor:"#EEEEEE",offCircleColor:"#BBBBBB",offCircleBorderColor:"#BBBBBB",onBackgroundColor:"#DEE9FF",onCircleColor:"#191960",onCircleBorderColor:"#191960"},...i},p=D=>{if(a)return;const T=D.target.checked;u(T),o==null||o(T)},m=d?h.onBackgroundColor:h.offBackgroundColor,b=d?h.onCircleColor:h.offCircleColor,y=d?h.onCircleBorderColor:h.offCircleBorderColor,x=t||n||r||e,k=`text-sm ${a?"text-gray-500":"text-gray-700"}`,v=t&&g.jsx("span",{className:!d&&c?"font-bold "+k:k,children:t}),w=e&&g.jsx("span",{className:d&&c?"font-bold "+k:k,children:e}),S=g.jsxs("label",{className:`inline-flex items-center ${a?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[g.jsx("input",{type:"checkbox",className:"peer sr-only",checked:d,onChange:p,disabled:a}),g.jsx("div",{className:`${tP.mth_toggle} peer relative h-5 w-9 rounded-full
488
488
  after:absolute after:start-[2px]
489
489
  after:top-0.5 after:h-4
490
490
  after:w-4 after:rounded-full
491
491
  after:border after:transition-all after:content-['']
492
492
  peer-checked:after:translate-x-full
493
- dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`,style:{backgroundColor:p,borderColor:p,"--circle-color":b,"--circle-border-color":v}})]}),N=x&&g.jsx("span",{className:k,children:x});return l==="left"?g.jsxs("div",{className:"flex items-center gap-2",children:[w||N,S]}):l==="both"?g.jsxs("div",{className:"flex items-center gap-2",children:[w||N,S,y||N]}):g.jsxs("div",{className:"flex items-center gap-2",children:[S,y||N]})}const QE=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:f})=>{const[h,m]=z.useState(""),[p,b]=z.useState(1),[v,x]=z.useState(null),k=z.useMemo(()=>v?[...e].sort((O,C)=>{const P=O[v.key],F=C[v.key];return P==null||F==null?0:typeof P=="string"&&typeof F=="string"?v.direction==="asc"?P.localeCompare(F):F.localeCompare(P):v.direction==="asc"?Number(P)-Number(F):Number(F)-Number(P)}):e,[e,v]),w=z.useMemo(()=>h.trim()?k.filter(O=>t.some(C=>{const P=O[C.relation];return P!=null&&String(P).toLowerCase().includes(h.toLowerCase().trim())})):k,[k,h,t]),y=z.useMemo(()=>{const O=(p-1)*r,C=O+r;return w.slice(O,C)},[w,p,r]),S=Math.ceil(w.length/r),N=()=>{if(f){const O=y.length>0&&y.every(C=>c.has(C.id));f(!O)}},D=O=>{if(u){const C=c.has(O);u(O,!C)}},T=y.length>0&&y.every(O=>c.has(O.id)),E=c.size>0&&c.size<y.length,Y=O=>{x(C=>!C||C.key!==O?{key:O,direction:"asc"}:{key:O,direction:C.direction==="asc"?"desc":"asc"})},L=(O,C)=>{const P=C[O.relation];if(O.isToggle){const F=!!P;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(zd,{checked:F,onChange:U=>d==null?void 0:d({rowId:C.id,checked:U,row:C,columnKey:O.relation}),disabled:!1}),O.toggleText&&g.jsx("span",{className:"text-sm text-gray-600",children:F?O.toggleText.active:O.toggleText.inactive})]})}if(O.cell)return O.cell(C);if(O.component){const F=O.component;return z.createElement(F,{row:C,value:P,...O.cellProps||{}})}return P??""};return g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&g.jsx("h2",{className:"text-base font-bold",children:s})}),g.jsx("div",{className:"flex",children:n&&g.jsx("div",{className:"w-1/2",children:g.jsx(os,{rightIcon:hf,placeholder:"Buscar",value:h,onChange:O=>m(O.target.value)})})}),g.jsxs("div",{className:"mt-0",children:[g.jsx("div",{className:"overflow-x-auto",children:g.jsxs(Ke,{children:[g.jsxs(Ke.Head,{className:`mth_head_table ${a}`,children:[l&&g.jsx(Ke.HeadCell,{children:g.jsx(qs,{checked:T,ref:O=>{O&&(O.indeterminate=E)},onChange:N})},`${l}-checkbox`),t.map((O,C)=>g.jsx(Ke.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>O.sortable!==!1&&Y(O.relation),children:g.jsxs("div",{className:"flex items-center",children:[O.header,O.sortable!==!1&&g.jsx("span",{children:(v==null?void 0:v.key)===O.relation?v.direction==="desc"?g.jsx(mo,{className:"size-4"}):g.jsx(Bl,{className:"size-4"}):g.jsx(mo,{className:"size-4 opacity-50"})})]})},`column-${C}-${O.relation}`))]}),g.jsx(Ke.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:y.map(O=>g.jsxs(Ke.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[l&&g.jsx(Ke.Cell,{children:g.jsx(qs,{checked:c.has(O.id),onChange:()=>D(O.id)})},`${O.id}-checkbox`),t.map((C,P)=>g.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:L(C,O)},`${O.id}-${P}`))]},O.id))})]})}),i&&S>1&&g.jsx("div",{className:"mt-2 flex w-full justify-end",children:g.jsx(Bd,{currentPage:p,totalPages:S,onPageChange:b})})]})]})},ZE={"m-image-container":"layoutOutside-module__m-image-container__sCvFu"},JE=({content:t})=>g.jsxs("div",{className:"mt-12",children:[g.jsx("div",{style:{backgroundImage:"url('https://ftp.mathilde-ads.com/382-b4bf8bd2281b8a39dac4187eeb2e4232.png')",backgroundRepeat:"no-repeat",backgroundSize:"300px 300px",backgroundPosition:"left bottom",height:"100vh"},className:ZE["m-image-container"]}),g.jsx("div",{className:"mx-auto mb-4 flex justify-center",children:g.jsx(xr,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/382-769cbed25990320dc541cb445528e4b2.png",alt:"Logo Mathilde ads",width:300,height:250})}),t]}),qE=({onOpenModal:t,checked:e,onChange:n,label:r,...s})=>{const a=()=>{e||t(),n(!1)};return g.jsx("div",{className:"mb-5",children:g.jsxs("label",{className:fo["checkbox-container"],children:[g.jsx("input",{type:"checkbox",...s,checked:e,onChange:a,required:!0}),g.jsx("span",{className:fo.checkmark}),r&&g.jsx("span",{children:r})]})})},Wb=({validations:t})=>{const e=({isValid:r})=>g.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${r?"text-green-500 dark:text-green-400":"text-gray-500 dark:text-gray-400"} shrink-0`,"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:g.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),n=[{key:"hasMinLength",text:"Debe ser minimo de 8 caracteres"},{key:"hasNumber",text:"Debe tener minimo un numero"},{key:"hasUpperCase",text:"Debe tener minimo una letra mayuscula"},{key:"hasLowerCase",text:"Debe tener minimo una letra minuscula"},{key:"hasSpecialChar",text:"Debe tener minimo un caracter especial"}];return g.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:n.map(({key:r,text:s})=>g.jsxs("li",{className:"flex items-center",children:[g.jsx(e,{isValid:t[r]}),s]},r))})},$E=()=>{const[t,e]=_.useState(""),[n,r]=_.useState(""),[s,a]=_.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});_.useEffect(()=>{a({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const o=()=>t.trim()&&n.trim()&&t===n&&Object.values(s).every(l=>l);return{password:t,setPassword:e,confirmPassword:n,setConfirmPassword:r,showError:()=>!o()&&t.trim()&&n.trim(),validations:s}},eP=({formik:t})=>{const{password:e,setPassword:n,confirmPassword:r,setConfirmPassword:s,validations:a}=$E();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"block",children:[g.jsx(Ac,{placeholder:"Contraseña",value:e,onChange:o=>{n(o.target.value),t.setFieldValue("password",o.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),g.jsxs("div",{className:"block",children:[g.jsx(Ac,{placeholder:"Confirmar contraseña",value:r,onChange:o=>{s(o.target.value),t.setFieldValue("confirmPassword",o.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),g.jsx(Wb,{validations:a})]})},tP=({items:t})=>{const[e,n]=_.useState([]),r=a=>{n(o=>o.includes(a)?o.filter(i=>i!==a):[...o,a])},s=(a,o=0)=>g.jsx("ul",{className:"list-none space-y-2",children:a.map(i=>{const l=i.subItems&&i.subItems.length>0,c=e.includes(i.id);return g.jsxs("li",{className:`
493
+ dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`,style:{backgroundColor:m,borderColor:m,"--circle-color":b,"--circle-border-color":y}})]}),N=x&&g.jsx("span",{className:k,children:x});return l==="left"?g.jsxs("div",{className:"flex items-center gap-2",children:[v||N,S]}):l==="both"?g.jsxs("div",{className:"flex items-center gap-2",children:[v||N,S,w||N]}):g.jsxs("div",{className:"flex items-center gap-2",children:[S,w||N]})}const nP=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:f})=>{const[h,p]=z.useState(""),[m,b]=z.useState(1),[y,x]=z.useState(null),k=z.useMemo(()=>y?[...e].sort((O,C)=>{const P=O[y.key],F=C[y.key];return P==null||F==null?0:typeof P=="string"&&typeof F=="string"?y.direction==="asc"?P.localeCompare(F):F.localeCompare(P):y.direction==="asc"?Number(P)-Number(F):Number(F)-Number(P)}):e,[e,y]),v=z.useMemo(()=>h.trim()?k.filter(O=>t.some(C=>{const P=O[C.relation];return P!=null&&String(P).toLowerCase().includes(h.toLowerCase().trim())})):k,[k,h,t]),w=z.useMemo(()=>{const O=(m-1)*r,C=O+r;return v.slice(O,C)},[v,m,r]),S=Math.ceil(v.length/r),N=()=>{if(f){const O=w.length>0&&w.every(C=>c.has(C.id));f(!O)}},D=O=>{if(u){const C=c.has(O);u(O,!C)}},T=w.length>0&&w.every(O=>c.has(O.id)),E=c.size>0&&c.size<w.length,Y=O=>{x(C=>!C||C.key!==O?{key:O,direction:"asc"}:{key:O,direction:C.direction==="asc"?"desc":"asc"})},L=(O,C)=>{const P=C[O.relation];if(O.isToggle){const F=!!P;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Yd,{checked:F,onChange:U=>d==null?void 0:d({rowId:C.id,checked:U,row:C,columnKey:O.relation}),disabled:!1}),O.toggleText&&g.jsx("span",{className:"text-sm text-gray-600",children:F?O.toggleText.active:O.toggleText.inactive})]})}if(O.cell)return O.cell(C);if(O.component){const F=O.component;return z.createElement(F,{row:C,value:P,...O.cellProps||{}})}return P??""};return g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&g.jsx("h2",{className:"text-base font-bold",children:s})}),g.jsx("div",{className:"flex",children:n&&g.jsx("div",{className:"w-1/2",children:g.jsx(ls,{rightIcon:mf,placeholder:"Buscar",value:h,onChange:O=>p(O.target.value)})})}),g.jsxs("div",{className:"mt-0",children:[g.jsx("div",{className:"overflow-x-auto",children:g.jsxs(Ge,{children:[g.jsxs(Ge.Head,{className:`mth_head_table ${a}`,children:[l&&g.jsx(Ge.HeadCell,{children:g.jsx(ta,{checked:T,ref:O=>{O&&(O.indeterminate=E)},onChange:N})},`${l}-checkbox`),t.map((O,C)=>g.jsx(Ge.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>O.sortable!==!1&&Y(O.relation),children:g.jsxs("div",{className:"flex items-center",children:[O.header,O.sortable!==!1&&g.jsx("span",{children:(y==null?void 0:y.key)===O.relation?y.direction==="desc"?g.jsx(wo,{className:"size-4"}):g.jsx(Yl,{className:"size-4"}):g.jsx(wo,{className:"size-4 opacity-50"})})]})},`column-${C}-${O.relation}`))]}),g.jsx(Ge.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:w.map(O=>g.jsxs(Ge.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[l&&g.jsx(Ge.Cell,{children:g.jsx(ta,{checked:c.has(O.id),onChange:()=>D(O.id)})},`${O.id}-checkbox`),t.map((C,P)=>g.jsx(Ge.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:L(C,O)},`${O.id}-${P}`))]},O.id))})]})}),i&&S>1&&g.jsx("div",{className:"mt-2 flex w-full justify-end",children:g.jsx(Hd,{currentPage:m,totalPages:S,onPageChange:b})})]})]})},rP={"m-image-container":"layoutOutside-module__m-image-container__sCvFu"},sP=({content:t})=>g.jsxs("div",{className:"mt-12",children:[g.jsx("div",{style:{backgroundImage:"url('https://ftp.mathilde-ads.com/382-b4bf8bd2281b8a39dac4187eeb2e4232.png')",backgroundRepeat:"no-repeat",backgroundSize:"300px 300px",backgroundPosition:"left bottom",height:"100vh"},className:rP["m-image-container"]}),g.jsx("div",{className:"mx-auto mb-4 flex justify-center",children:g.jsx(Sr,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/382-769cbed25990320dc541cb445528e4b2.png",alt:"Logo Mathilde ads",width:300,height:250})}),t]}),aP=({onOpenModal:t,checked:e,onChange:n,label:r,...s})=>{const a=()=>{e||t(),n(!1)};return g.jsx("div",{className:"mb-5",children:g.jsxs("label",{className:po["checkbox-container"],children:[g.jsx("input",{type:"checkbox",...s,checked:e,onChange:a,required:!0}),g.jsx("span",{className:po.checkmark}),r&&g.jsx("span",{children:r})]})})},Hb=({validations:t})=>{const e=({isValid:r})=>g.jsx("svg",{className:`me-2 h-3.5 w-3.5 ${r?"text-green-500 dark:text-green-400":"text-gray-500 dark:text-gray-400"} shrink-0`,"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",children:g.jsx("path",{d:"M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5Zm3.707 8.207-4 4a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L9 10.586l3.293-3.293a1 1 0 0 1 1.414 1.414Z"})}),n=[{key:"hasMinLength",text:"Debe ser minimo de 8 caracteres"},{key:"hasNumber",text:"Debe tener minimo un numero"},{key:"hasUpperCase",text:"Debe tener minimo una letra mayuscula"},{key:"hasLowerCase",text:"Debe tener minimo una letra minuscula"},{key:"hasSpecialChar",text:"Debe tener minimo un caracter especial"}];return g.jsx("ul",{className:"mb-3 max-w-md list-inside space-y-1 text-sm text-gray-500 dark:text-gray-400",children:n.map(({key:r,text:s})=>g.jsxs("li",{className:"flex items-center",children:[g.jsx(e,{isValid:t[r]}),s]},r))})},oP=()=>{const[t,e]=_.useState(""),[n,r]=_.useState(""),[s,a]=_.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});_.useEffect(()=>{a({hasMinLength:t.length>=8,hasNumber:/\d/.test(t),hasUpperCase:/[A-Z]/.test(t),hasLowerCase:/[a-z]/.test(t),hasSpecialChar:/[!@#$%^&*(),.?":{}|<>]/.test(t)})},[t]);const o=()=>t.trim()&&n.trim()&&t===n&&Object.values(s).every(l=>l);return{password:t,setPassword:e,confirmPassword:n,setConfirmPassword:r,showError:()=>!o()&&t.trim()&&n.trim(),validations:s}},iP=({formik:t})=>{const{password:e,setPassword:n,confirmPassword:r,setConfirmPassword:s,validations:a}=oP();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"block",children:[g.jsx(Lc,{placeholder:"Contraseña",value:e,onChange:o=>{n(o.target.value),t.setFieldValue("password",o.target.value)},onBlur:t.handleBlur("password")}),t.errors.password&&t.touched.password&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.password)})]}),g.jsxs("div",{className:"block",children:[g.jsx(Lc,{placeholder:"Confirmar contraseña",value:r,onChange:o=>{s(o.target.value),t.setFieldValue("confirmPassword",o.target.value)},onBlur:t.handleBlur("confirmPassword")}),t.errors.confirmPassword&&t.touched.confirmPassword&&g.jsx("div",{className:"my-2 text-sm text-red-500",children:String(t.errors.confirmPassword)})]}),g.jsx(Hb,{validations:a})]})},lP=({items:t})=>{const[e,n]=_.useState([]),r=a=>{n(o=>o.includes(a)?o.filter(i=>i!==a):[...o,a])},s=(a,o=0)=>g.jsx("ul",{className:"list-none space-y-2",children:a.map(i=>{const l=i.subItems&&i.subItems.length>0,c=e.includes(i.id);return g.jsxs("li",{className:`
494
494
  ${o>0?"ml-7":""}
495
- `,children:[g.jsxs("div",{className:"flex items-center gap-2 py-1",children:[g.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&g.jsx("button",{onClick:()=>r(i.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?g.jsx(Bl,{className:"text-sm text-gray-500"}):g.jsx(mo,{className:"text-sm text-gray-500"})}),!l&&g.jsx("div",{className:"w-[28px]"})," ",i.icon&&g.jsx(i.icon,{className:`text-lg ${i.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),g.jsx("a",{href:i.href,className:`
495
+ `,children:[g.jsxs("div",{className:"flex items-center gap-2 py-1",children:[g.jsxs("div",{className:"flex min-w-[48px] items-center gap-1",children:[l&&g.jsx("button",{onClick:()=>r(i.id),className:"rounded-full p-1 transition-transform duration-200 hover:bg-gray-100",children:c?g.jsx(Yl,{className:"text-sm text-gray-500"}):g.jsx(wo,{className:"text-sm text-gray-500"})}),!l&&g.jsx("div",{className:"w-[28px]"})," ",i.icon&&g.jsx(i.icon,{className:`text-lg ${i.isActive?"text-blue-700 dark:text-blue-500":"text-gray-600"}`})]}),g.jsx("a",{href:i.href,className:`
496
496
  flex-grow transition-colors duration-200
497
497
  ${i.isActive?"font-medium text-blue-700 dark:text-blue-500":"text-gray-700 hover:text-blue-600 dark:text-gray-300"}
498
- `,children:i.title})]}),l&&c&&s(i.subItems||[],o+1)]},i.id)})});return g.jsx("nav",{id:"TableOfContents",children:s(t)})},Bb={"image/*":"Imágenes (JPG, PNG, GIF, etc.)","application/pdf":"Documentos PDF","application/msword":"Documentos Word (.doc)","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"Documentos Word (.docx)","application/vnd.ms-excel":"Hojas de cálculo Excel (.xls)","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Hojas de cálculo Excel (.xlsx)","application/vnd.ms-powerpoint":"Presentaciones PowerPoint (.ppt)","application/vnd.openxmlformats-officedocument.presentationml.presentation":"Presentaciones PowerPoint (.pptx)","text/csv":"Archivos CSV","application/json":"Archivos JSON","application/xml":"Archivos XML"},nP=({onChange:t,accept:e="application/pdf",maxSize:n=10,multiple:r=!1,helperText:s=""})=>{const[a,o]=_.useState(!1),i=Array.isArray(e)?e.join(","):e,l=()=>Array.isArray(e)?e.map(m=>Bb[m]||m).join(", "):Bb[e]||e,c=_.useCallback(m=>{m.preventDefault(),m.stopPropagation(),o(!0)},[]),d=_.useCallback(m=>{m.preventDefault(),m.stopPropagation(),o(!1)},[]),u=_.useCallback(m=>{m.preventDefault(),m.stopPropagation(),o(!1);const p=Array.from(m.dataTransfer.files);p.length>0&&h(p)},[e,n,r,t]),f=_.useCallback(m=>{const p=Array.from(m.target.files||[]);p.length>0&&h(p)},[e,n,r,t]),h=_.useCallback(m=>{if(!r&&m.length>1){alert("Solo se permite un archivo");return}const p=m.filter(v=>Array.isArray(e)?e.some(x=>x==="image/*"?v.type.startsWith("image/"):v.type===x):e==="image/*"?v.type.startsWith("image/"):v.type===e);if(p.length===0){alert(`Tipo de archivo no permitido. Tipos permitidos: ${l()}`);return}const b=p.filter(v=>v.size<=n*1024*1024);b.length!==p.length&&alert(`Algunos archivos exceden el tamaño máximo de ${n}MB`),b.length>0&&(t==null||t(b))},[e,n,r,t]);return g.jsx("div",{className:"flex w-full items-center justify-center",children:g.jsxs(Cc,{htmlFor:"dropzone-file",className:`flex w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed ${a?"border-blue-500 bg-blue-50":"border-gray-300 bg-gray-50"} hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600`,onDragOver:c,onDragLeave:d,onDrop:u,children:[g.jsx("div",{className:"flex w-full items-center justify-center py-6 px-10",children:g.jsx("div",{className:"flex flex-col",children:g.jsxs("p",{className:"mb-2 text-center text-sm font-light text-gray-400 dark:text-gray-400",children:[g.jsx("span",{className:"text-gray-500",children:"Arrastra aquí tu archivo "}),g.jsx("br",{}),g.jsxs("span",{className:" text-gray-500",children:["o ",g.jsx("span",{className:"underline",children:"búscalo en el dispositivo"})]}),s]})})}),g.jsx(og,{id:"dropzone-file",className:"hidden",onChange:f,accept:i,multiple:r})]})})},rP=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${n[e]}`},sP=({files:t,onDelete:e,isMultiple:n=!0})=>{const r=n?t:t.slice(-1);return g.jsx("div",{className:"mt-4",children:g.jsx("ul",{className:"list-none",children:r.map((s,a)=>g.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-[#191960] bg-[#F4F4F4CC] p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx(xr,{classIm:"mr-2",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:40}),g.jsx("li",{className:"text-base font-semibold text-gray-700",children:s.name})]}),g.jsxs("div",{className:"mx-4 flex flex-1 items-center",children:[g.jsx("span",{className:"flex text-sm",children:rP(s.size)}),g.jsx("div",{onClick:()=>e(s),children:g.jsx(xr,{classIm:"ml-auto cursor-pointer",src:"https://ftp.mathilde-ads.com/382-d1647780b1ee3f437104400b2f8d6555.svg",alt:"icon dropzone",width:20})})]})]},a))})})},aP=({description:t=""})=>g.jsxs("div",{className:"flex flex-col items-center justify-center",children:[g.jsx("img",{src:"https://ftp.mathilde-ads.com/151-82821df9d4f7bd2662418d3147880fba.svg",alt:t.replace(/<[^>]*>/g,"")}),t&&g.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:t}})]}),zb={mth_tabs_tab_item:"tabs-module__mth_tabs_tab_item__dk-Z7",mth_tabs_tab_item_active:"tabs-module__mth_tabs_tab_item_active__p3kAi"};function oP({tabs:t,classes:e="",classesUl:n="",tabItemClasses:r="",activeTabStyles:s,inactiveTabStyles:a,contentClasses:o="",defaultActiveTab:i,onTabChange:l}){var m,p;const[c,d]=_.useState(i||((m=t[0])==null?void 0:m.id)||""),u=b=>{d(b),l==null||l(b)},f=b=>{const v=b.target.value;d(v),l==null||l(v)},h=(p=t.find(b=>b.id===c))==null?void 0:p.content;return g.jsxs("div",{className:`${e} tabs-container`,children:[g.jsxs("div",{className:"mb-4 sm:hidden",children:[g.jsx("label",{htmlFor:"tabs-select",className:"sr-only",children:"Selecciona una pestaña"}),g.jsx("select",{id:"tabs-select",value:c,onChange:f,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",children:t.map(b=>g.jsx("option",{value:b.id,children:b.title},b.id))})]}),g.jsx("ul",{className:`${n} text-sm font-medium text-center text-gray-500 rounded-lg shadow-sm sm:flex dark:divide-gray-700 dark:text-gray-400`,children:t.map(b=>{const v=c===b.id,x=()=>v&&s?s:!v&&a?a:{},k=()=>v?s?"":zb.mth_tabs_tab_item_active:a?"":zb.mth_tabs_tab_item;return g.jsx("li",{className:"w-full focus-within:z-10",children:g.jsxs("button",{onClick:()=>u(b.id),className:`${r} ${k()} uppercase`,style:x(),"aria-current":v?"page":void 0,children:[b.icon&&g.jsx("span",{className:"mr-2",children:b.icon}),b.title]})},b.id)})}),g.jsx("div",{className:`mt-0 ${o}`,children:h})]})}var Hb={},Ua={},Hd={exports:{}},Wi={exports:{}},Oe={};/** @license React v16.13.1
499
- * react-is.production.min.js
500
- *
501
- * Copyright (c) Facebook, Inc. and its affiliates.
502
- *
503
- * This source code is licensed under the MIT license found in the
504
- * LICENSE file in the root directory of this source tree.
505
- */var Yb;function iP(){if(Yb)return Oe;Yb=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function k(y){if(typeof y=="object"&&y!==null){var S=y.$$typeof;switch(S){case e:switch(y=y.type,y){case l:case c:case r:case a:case s:case u:return y;default:switch(y=y&&y.$$typeof,y){case i:case d:case m:case h:case o:return y;default:return S}}case n:return S}}}function w(y){return k(y)===c}return Oe.AsyncMode=l,Oe.ConcurrentMode=c,Oe.ContextConsumer=i,Oe.ContextProvider=o,Oe.Element=e,Oe.ForwardRef=d,Oe.Fragment=r,Oe.Lazy=m,Oe.Memo=h,Oe.Portal=n,Oe.Profiler=a,Oe.StrictMode=s,Oe.Suspense=u,Oe.isAsyncMode=function(y){return w(y)||k(y)===l},Oe.isConcurrentMode=w,Oe.isContextConsumer=function(y){return k(y)===i},Oe.isContextProvider=function(y){return k(y)===o},Oe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Oe.isForwardRef=function(y){return k(y)===d},Oe.isFragment=function(y){return k(y)===r},Oe.isLazy=function(y){return k(y)===m},Oe.isMemo=function(y){return k(y)===h},Oe.isPortal=function(y){return k(y)===n},Oe.isProfiler=function(y){return k(y)===a},Oe.isStrictMode=function(y){return k(y)===s},Oe.isSuspense=function(y){return k(y)===u},Oe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===c||y===a||y===s||y===u||y===f||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===h||y.$$typeof===o||y.$$typeof===i||y.$$typeof===d||y.$$typeof===b||y.$$typeof===v||y.$$typeof===x||y.$$typeof===p)},Oe.typeOf=k,Oe}var Ce={};/** @license React v16.13.1
506
- * react-is.development.js
507
- *
508
- * Copyright (c) Facebook, Inc. and its affiliates.
509
- *
510
- * This source code is licensed under the MIT license found in the
511
- * LICENSE file in the root directory of this source tree.
512
- */var Vb;function lP(){return Vb||(Vb=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,p=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function k(W){return typeof W=="string"||typeof W=="function"||W===r||W===c||W===a||W===s||W===u||W===f||typeof W=="object"&&W!==null&&(W.$$typeof===m||W.$$typeof===h||W.$$typeof===o||W.$$typeof===i||W.$$typeof===d||W.$$typeof===b||W.$$typeof===v||W.$$typeof===x||W.$$typeof===p)}function w(W){if(typeof W=="object"&&W!==null){var ne=W.$$typeof;switch(ne){case e:var se=W.type;switch(se){case l:case c:case r:case a:case s:case u:return se;default:var oe=se&&se.$$typeof;switch(oe){case i:case d:case m:case h:case o:return oe;default:return ne}}case n:return ne}}}var y=l,S=c,N=i,D=o,T=e,E=d,Y=r,L=m,O=h,C=n,P=a,F=s,U=u,Z=!1;function ee(W){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(W)||w(W)===l}function j(W){return w(W)===c}function V(W){return w(W)===i}function R(W){return w(W)===o}function A(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function I(W){return w(W)===d}function M(W){return w(W)===r}function H(W){return w(W)===m}function J(W){return w(W)===h}function K(W){return w(W)===n}function q(W){return w(W)===a}function B(W){return w(W)===s}function te(W){return w(W)===u}Ce.AsyncMode=y,Ce.ConcurrentMode=S,Ce.ContextConsumer=N,Ce.ContextProvider=D,Ce.Element=T,Ce.ForwardRef=E,Ce.Fragment=Y,Ce.Lazy=L,Ce.Memo=O,Ce.Portal=C,Ce.Profiler=P,Ce.StrictMode=F,Ce.Suspense=U,Ce.isAsyncMode=ee,Ce.isConcurrentMode=j,Ce.isContextConsumer=V,Ce.isContextProvider=R,Ce.isElement=A,Ce.isForwardRef=I,Ce.isFragment=M,Ce.isLazy=H,Ce.isMemo=J,Ce.isPortal=K,Ce.isProfiler=q,Ce.isStrictMode=B,Ce.isSuspense=te,Ce.isValidElementType=k,Ce.typeOf=w}()),Ce}var Ub;function Xb(){return Ub||(Ub=1,process.env.NODE_ENV==="production"?Wi.exports=iP():Wi.exports=lP()),Wi.exports}/*
513
- object-assign
514
- (c) Sindre Sorhus
515
- @license MIT
516
- */var Yd,Kb;function cP(){if(Kb)return Yd;Kb=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},i=0;i<10;i++)o["_"+String.fromCharCode(i)]=i;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yd=s()?Object.assign:function(a,o){for(var i,l=r(a),c,d=1;d<arguments.length;d++){i=Object(arguments[d]);for(var u in i)e.call(i,u)&&(l[u]=i[u]);if(t){c=t(i);for(var f=0;f<c.length;f++)n.call(i,c[f])&&(l[c[f]]=i[c[f]])}}return l},Yd}var Vd,Gb;function Ud(){if(Gb)return Vd;Gb=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vd=t,Vd}var Xd,Qb;function Zb(){return Qb||(Qb=1,Xd=Function.call.bind(Object.prototype.hasOwnProperty)),Xd}var Kd,Jb;function dP(){if(Jb)return Kd;Jb=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=Ud(),n={},r=Zb();t=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(a,o,i,l,c){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var u;try{if(typeof a[d]!="function"){var f=Error((l||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=a[d](o,d,l,i,null,e)}catch(m){u=m}if(u&&!(u instanceof Error)&&t((l||"React class")+": type specification of "+i+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var h=c?c():"";t("Failed "+i+" type: "+u.message+(h??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Kd=s,Kd}var Gd,qb;function uP(){if(qb)return Gd;qb=1;var t=Xb(),e=cP(),n=Ud(),r=Zb(),s=dP(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Gd=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(j){var V=j&&(c&&j[c]||j[d]);if(typeof V=="function")return V}var f="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:x(),arrayOf:k,element:w(),elementType:y(),instanceOf:S,node:E(),objectOf:D,oneOf:N,oneOfType:T,shape:L,exact:O};function m(j,V){return j===V?j!==0||1/j===1/V:j!==j&&V!==V}function p(j,V){this.message=j,this.data=V&&typeof V=="object"?V:{},this.stack=""}p.prototype=Error.prototype;function b(j){if(process.env.NODE_ENV!=="production")var V={},R=0;function A(M,H,J,K,q,B,te){if(K=K||f,B=B||J,te!==n){if(l){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ne=K+":"+J;!V[ne]&&R<3&&(a("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[ne]=!0,R++)}}return H[J]==null?M?H[J]===null?new p("The "+q+" `"+B+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new p("The "+q+" `"+B+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:j(H,J,K,q,B)}var I=A.bind(null,!1);return I.isRequired=A.bind(null,!0),I}function v(j){function V(R,A,I,M,H,J){var K=R[A],q=F(K);if(q!==j){var B=U(K);return new p("Invalid "+M+" `"+H+"` of type "+("`"+B+"` supplied to `"+I+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return b(V)}function x(){return b(o)}function k(j){function V(R,A,I,M,H){if(typeof j!="function")return new p("Property `"+H+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var J=R[A];if(!Array.isArray(J)){var K=F(J);return new p("Invalid "+M+" `"+H+"` of type "+("`"+K+"` supplied to `"+I+"`, expected an array."))}for(var q=0;q<J.length;q++){var B=j(J,q,I,M,H+"["+q+"]",n);if(B instanceof Error)return B}return null}return b(V)}function w(){function j(V,R,A,I,M){var H=V[R];if(!i(H)){var J=F(H);return new p("Invalid "+I+" `"+M+"` of type "+("`"+J+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return b(j)}function y(){function j(V,R,A,I,M){var H=V[R];if(!t.isValidElementType(H)){var J=F(H);return new p("Invalid "+I+" `"+M+"` of type "+("`"+J+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return b(j)}function S(j){function V(R,A,I,M,H){if(!(R[A]instanceof j)){var J=j.name||f,K=ee(R[A]);return new p("Invalid "+M+" `"+H+"` of type "+("`"+K+"` supplied to `"+I+"`, expected ")+("instance of `"+J+"`."))}return null}return b(V)}function N(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function V(R,A,I,M,H){for(var J=R[A],K=0;K<j.length;K++)if(m(J,j[K]))return null;var q=JSON.stringify(j,function(te,W){var ne=U(W);return ne==="symbol"?String(W):W});return new p("Invalid "+M+" `"+H+"` of value `"+String(J)+"` "+("supplied to `"+I+"`, expected one of "+q+"."))}return b(V)}function D(j){function V(R,A,I,M,H){if(typeof j!="function")return new p("Property `"+H+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var J=R[A],K=F(J);if(K!=="object")return new p("Invalid "+M+" `"+H+"` of type "+("`"+K+"` supplied to `"+I+"`, expected an object."));for(var q in J)if(r(J,q)){var B=j(J,q,I,M,H+"."+q,n);if(B instanceof Error)return B}return null}return b(V)}function T(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var V=0;V<j.length;V++){var R=j[V];if(typeof R!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(R)+" at index "+V+"."),o}function A(I,M,H,J,K){for(var q=[],B=0;B<j.length;B++){var te=j[B],W=te(I,M,H,J,K,n);if(W==null)return null;W.data&&r(W.data,"expectedType")&&q.push(W.data.expectedType)}var ne=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new p("Invalid "+J+" `"+K+"` supplied to "+("`"+H+"`"+ne+"."))}return b(A)}function E(){function j(V,R,A,I,M){return C(V[R])?null:new p("Invalid "+I+" `"+M+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return b(j)}function Y(j,V,R,A,I){return new p((j||"React class")+": "+V+" type `"+R+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function L(j){function V(R,A,I,M,H){var J=R[A],K=F(J);if(K!=="object")return new p("Invalid "+M+" `"+H+"` of type `"+K+"` "+("supplied to `"+I+"`, expected `object`."));for(var q in j){var B=j[q];if(typeof B!="function")return Y(I,M,H,q,U(B));var te=B(J,q,I,M,H+"."+q,n);if(te)return te}return null}return b(V)}function O(j){function V(R,A,I,M,H){var J=R[A],K=F(J);if(K!=="object")return new p("Invalid "+M+" `"+H+"` of type `"+K+"` "+("supplied to `"+I+"`, expected `object`."));var q=e({},R[A],j);for(var B in q){var te=j[B];if(r(j,B)&&typeof te!="function")return Y(I,M,H,B,U(te));if(!te)return new p("Invalid "+M+" `"+H+"` key `"+B+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(R[A],null," ")+`
517
- Valid keys: `+JSON.stringify(Object.keys(j),null," "));var W=te(J,B,I,M,H+"."+B,n);if(W)return W}return null}return b(V)}function C(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(C);if(j===null||i(j))return!0;var V=u(j);if(V){var R=V.call(j),A;if(V!==j.entries){for(;!(A=R.next()).done;)if(!C(A.value))return!1}else for(;!(A=R.next()).done;){var I=A.value;if(I&&!C(I[1]))return!1}}else return!1;return!0;default:return!1}}function P(j,V){return j==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function F(j){var V=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":P(V,j)?"symbol":V}function U(j){if(typeof j>"u"||j===null)return""+j;var V=F(j);if(V==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return V}function Z(j){var V=U(j);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function ee(j){return!j.constructor||!j.constructor.name?f:j.constructor.name}return h.checkPropTypes=s,h.resetWarningCache=s.resetWarningCache,h.PropTypes=h,h},Gd}var Qd,$b;function fP(){if($b)return Qd;$b=1;var t=Ud();function e(){}function n(){}return n.resetWarningCache=e,Qd=function(){function r(o,i,l,c,d,u){if(u!==t){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function s(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},Qd}if(process.env.NODE_ENV!=="production"){var hP=Xb(),gP=!0;Hd.exports=uP()(hP.isElement,gP)}else Hd.exports=fP()();var Yn=Hd.exports,Xa={},Vn={};const ey=7,Bi=365.2425,Ka=6048e5,ty=864e5,Un=6e4,Yr=36e5,Zd=1e3,ny=525600,Es=43200,zi=1440,ry=60,sy=3,ay=12,oy=4,Hi=3600,Jd=60,qd=Hi*24,mP=qd*7,iy=qd*Bi,ly=iy/12,pP=ly*3,cy=Symbol.for("constructDateFrom");function ie(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&cy in t?t[cy](e):t instanceof Date?new t.constructor(e):new Date(e)}function Q(t,e){return ie(e||t,t)}function tn(t,e,n){const r=Q(t,n==null?void 0:n.in);return isNaN(e)?ie((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function Ga(t,e,n){const r=Q(t,n==null?void 0:n.in);if(isNaN(e))return ie((n==null?void 0:n.in)||t,NaN);if(!e)return r;const s=r.getDate(),a=ie((n==null?void 0:n.in)||t,r.getTime());a.setMonth(r.getMonth()+e+1,0);const o=a.getDate();return s>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),s),r)}function Ps(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Q(t,n==null?void 0:n.in),u=s||r?Ga(d,s+r*12):d,f=o||a?tn(u,o+a*7):u,h=l+i*60,p=(c+h*60)*1e3;return ie((n==null?void 0:n.in)||t,+f+p)}function dy(t,e){return Q(t,e==null?void 0:e.in).getDay()===6}function uy(t,e){return Q(t,e==null?void 0:e.in).getDay()===0}function Ts(t,e){const n=Q(t,e==null?void 0:e.in).getDay();return n===0||n===6}function fy(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Ts(r,n);if(isNaN(e))return ie(n==null?void 0:n.in,NaN);const a=r.getHours(),o=e<0?-1:1,i=Math.trunc(e/5);r.setDate(r.getDate()+i*7);let l=Math.abs(e%5);for(;l>0;)r.setDate(r.getDate()+o),Ts(r,n)||(l-=1);return s&&Ts(r,n)&&e!==0&&(dy(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),uy(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(a),r}function Yi(t,e,n){return ie((n==null?void 0:n.in)||t,+Q(t)+e)}function hy(t,e,n){return Yi(t,e*Yr,n)}let gy={};function _t(){return gy}function bP(t){gy=t}function pt(t,e){var i,l,c,d;const n=_t(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Q(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?7:0)+a-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function dn(t,e){return pt(t,{...e,weekStartsOn:1})}function ur(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=ie(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const a=dn(s),o=ie(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=dn(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function It(t){const e=Q(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Pe(t,...e){const n=ie.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Ns(t,e){const n=Q(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function _n(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e),a=Ns(r),o=Ns(s),i=+a-It(a),l=+o-It(o);return Math.round((i-l)/ty)}function fr(t,e){const n=ur(t,e),r=ie((e==null?void 0:e.in)||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),dn(r)}function my(t,e,n){let r=Q(t,n==null?void 0:n.in);const s=_n(r,fr(r,n)),a=ie((n==null?void 0:n.in)||t,0);return a.setFullYear(e,0,4),a.setHours(0,0,0,0),r=fr(a),r.setDate(r.getDate()+s),r}function py(t,e,n){return my(t,ur(t,n)+e,n)}function $d(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setTime(r.getTime()+e*Un),r}function eu(t,e,n){return Ga(t,e*3,n)}function by(t,e,n){return Yi(t,e*1e3,n)}function Vi(t,e,n){return tn(t,e*7,n)}function yy(t,e,n){return Ga(t,e*12,n)}function yP(t,e,n){const[r,s]=[+Q(t.start,n==null?void 0:n.in),+Q(t.end,n==null?void 0:n.in)].sort((i,l)=>i-l),[a,o]=[+Q(e.start,n==null?void 0:n.in),+Q(e.end,n==null?void 0:n.in)].sort((i,l)=>i-l);return n!=null&&n.inclusive?r<=o&&a<=s:r<o&&a<s}function wy(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=ie.bind(null,s));const a=Q(s,r);(!n||n<a||isNaN(+a))&&(n=a)}),ie(r,n||NaN)}function vy(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=ie.bind(null,s));const a=Q(s,r);(!n||n>a||isNaN(+a))&&(n=a)}),ie(r,n||NaN)}function wP(t,e,n){const[r,s,a]=Pe(n==null?void 0:n.in,t,e.start,e.end);return vy([wy([r,s],n),a],n)}function xy(t,e){const n=+Q(t);if(isNaN(n))return NaN;let r,s;return e.forEach((a,o)=>{const i=Q(a);if(isNaN(+i)){r=NaN,s=NaN;return}const l=Math.abs(n-+i);(r==null||l<s)&&(r=o,s=l)}),r}function vP(t,e,n){const[r,...s]=Pe(n==null?void 0:n.in,t,...e),a=xy(r,s);if(typeof a=="number"&&isNaN(a))return ie(r,NaN);if(a!==void 0)return s[a]}function Sn(t,e){const n=+Q(t)-+Q(e);return n<0?-1:n>0?1:n}function xP(t,e){const n=+Q(t)-+Q(e);return n>0?-1:n<0?1:n}function rt(t){return ie(t,Date.now())}function kP(t){const e=Math.trunc(t/ey);return e===0?0:e}function Qa(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);return+Ns(r)==+Ns(s)}function ky(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Xn(t){return!(!ky(t)&&typeof t!="number"||isNaN(+Q(t)))}function _P(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);if(!Xn(r)||!Xn(s))return NaN;const a=_n(r,s),o=a<0?-1:1,i=Math.trunc(a/7);let l=i*5,c=tn(s,i*7);for(;!Qa(r,c);)l+=Ts(c,n)?0:o,c=tn(c,o);return l===0?0:l}function _y(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);return ur(r,n)-ur(s,n)}function SP(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e),a=dn(r),o=dn(s),i=+a-It(a),l=+o-It(o);return Math.round((i-l)/Ka)}function Ui(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return a*12+o}function tu(t,e){const n=Q(t,e==null?void 0:e.in);return Math.trunc(n.getMonth()/3)+1}function Xi(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=tu(r)-tu(s);return a*4+o}function Ki(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e),a=pt(r,n),o=pt(s,n),i=+a-It(a),l=+o-It(o);return Math.round((i-l)/Ka)}function Za(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);return r.getFullYear()-s.getFullYear()}function nu(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e),a=Sy(r,s),o=Math.abs(_n(r,s));r.setDate(r.getDate()-a*o);const i=+(Sy(r,s)===-a),l=a*(o-i);return l===0?0:l}function Sy(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function hr(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Gi(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e),a=(+r-+s)/Yr;return hr(n==null?void 0:n.roundingMethod)(a)}function Oy(t,e,n){return py(t,-e,n)}function OP(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e),a=Sn(r,s),o=Math.abs(_y(r,s,n)),i=Oy(r,a*o,n),l=+(Sn(i,s)===-a),c=a*(o-l);return c===0?0:c}function ru(t,e){return+Q(t)-+Q(e)}function Qi(t,e,n){const r=ru(t,e)/Un;return hr(n==null?void 0:n.roundingMethod)(r)}function su(t,e){const n=Q(t,e==null?void 0:e.in);return n.setHours(23,59,59,999),n}function au(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Cy(t,e){const n=Q(t,e==null?void 0:e.in);return+su(n,e)==+au(n,e)}function Zi(t,e,n){const[r,s,a]=Pe(n==null?void 0:n.in,t,t,e),o=Sn(s,a),i=Math.abs(Ui(s,a));if(i<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*i);let l=Sn(s,a)===-o;Cy(r)&&i===1&&Sn(r,a)===1&&(l=!1);const c=o*(i-+l);return c===0?0:c}function CP(t,e,n){const r=Zi(t,e,n)/3;return hr(n==null?void 0:n.roundingMethod)(r)}function js(t,e,n){const r=ru(t,e)/1e3;return hr(n==null?void 0:n.roundingMethod)(r)}function DP(t,e,n){const r=nu(t,e,n)/7;return hr(n==null?void 0:n.roundingMethod)(r)}function Dy(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e),a=Sn(r,s),o=Math.abs(Za(r,s));r.setFullYear(1584),s.setFullYear(1584);const i=Sn(r,s)===-a,l=a*(o-+i);return l===0?0:l}function Kn(t,e){const[n,r]=Pe(t,e.start,e.end);return{start:n,end:r}}function My(t,e){const{start:n,end:r}=Kn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o.setDate(o.getDate()+i),o.setHours(0,0,0,0);return s?l.reverse():l}function MP(t,e){const{start:n,end:r}=Kn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setMinutes(0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o.setHours(o.getHours()+i);return s?l.reverse():l}function EP(t,e){const{start:n,end:r}=Kn(e==null?void 0:e.in,t);n.setSeconds(0,0);let s=+n>+r;const a=s?+n:+r;let o=s?r:n,i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o=$d(o,i);return s?l.reverse():l}function PP(t,e){const{start:n,end:r}=Kn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setDate(1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o.setMonth(o.getMonth()+i);return s?l.reverse():l}function Vr(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3;return n.setMonth(s,1),n.setHours(0,0,0,0),n}function TP(t,e){const{start:n,end:r}=Kn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+Vr(n):+Vr(r);let o=Vr(s?r:n),i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o=eu(o,i);return s?l.reverse():l}function NP(t,e){const{start:n,end:r}=Kn(e==null?void 0:e.in,t);let s=+n>+r;const a=pt(s?r:n,e),o=pt(s?n:r,e);a.setHours(15),o.setHours(15);const i=+o.getTime();let l=a,c=(e==null?void 0:e.step)??1;if(!c)return[];c<0&&(c=-c,s=!s);const d=[];for(;+l<=i;)l.setHours(0),d.push(ie(n,l)),l=Vi(l,c),l.setHours(15);return s?d.reverse():d}function ou(t,e){const{start:n,end:r}=Kn(e==null?void 0:e.in,t),s=My({start:n,end:r},e),a=[];let o=0;for(;o<s.length;){const i=s[o++];Ts(i)&&a.push(ie(n,i))}return a}function Ji(t,e){const n=Q(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function jP(t,e){const n=Ji(t,e),r=au(t,e);return ou({start:n,end:r},e)}function Ey(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function iu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function IP(t,e){const n=iu(t,e),r=Ey(t,e);return ou({start:n,end:r},e)}function AP(t,e){const{start:n,end:r}=Kn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o.setFullYear(o.getFullYear()+i);return s?l.reverse():l}function RP(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s,11,31),n.setHours(23,59,59,999),n}function LP(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMinutes(59,59,999),n}function Py(t,e){var i,l,c,d;const n=_t(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Q(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function FP(t,e){return Py(t,{...e,weekStartsOn:1})}function WP(t,e){const n=ur(t,e),r=ie((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=dn(r,e);return s.setMilliseconds(s.getMilliseconds()-1),s}function BP(t,e){const n=Q(t,e==null?void 0:e.in);return n.setSeconds(59,999),n}function zP(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(23,59,59,999),n}function HP(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMilliseconds(999),n}function YP(t){return su(Date.now(),t)}function VP(t){const e=rt(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=rt(t==null?void 0:t.in);return a.setFullYear(n,r,s+1),a.setHours(23,59,59,999),t!=null&&t.in?t.in(a):a}function UP(t){const e=rt(t==null?void 0:t.in),n=ie(t==null?void 0:t.in,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),n.setHours(23,59,59,999),n}const XP={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},KP=(t,e,n)=>{let r;const s=XP[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Is(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const GP={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},QP={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ZP={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JP={date:Is({formats:GP,defaultWidth:"full"}),time:Is({formats:QP,defaultWidth:"full"}),dateTime:Is({formats:ZP,defaultWidth:"full"})},qP={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$P=(t,e,n,r)=>qP[t];function On(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}const eT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},aT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},oT={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:On({values:eT,defaultWidth:"wide"}),quarter:On({values:tT,defaultWidth:"wide",argumentCallback:t=>t-1}),month:On({values:nT,defaultWidth:"wide"}),day:On({values:rT,defaultWidth:"wide"}),dayPeriod:On({values:sT,defaultWidth:"wide",formattingValues:aT,defaultFormattingWidth:"wide"})};function Cn(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?lT(i,u=>u.test(o)):iT(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function iT(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function lT(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Ty(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}const cT=/^(\d+)(th|st|nd|rd)?/i,dT=/\d+/i,uT={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fT={any:[/^b/i,/^(a|c)/i]},hT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gT={any:[/1/i,/2/i,/3/i,/4/i]},mT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},bT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},wT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},vT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xT={ordinalNumber:Ty({matchPattern:cT,parsePattern:dT,valueCallback:t=>parseInt(t,10)}),era:Cn({matchPatterns:uT,defaultMatchWidth:"wide",parsePatterns:fT,defaultParseWidth:"any"}),quarter:Cn({matchPatterns:hT,defaultMatchWidth:"wide",parsePatterns:gT,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Cn({matchPatterns:mT,defaultMatchWidth:"wide",parsePatterns:pT,defaultParseWidth:"any"}),day:Cn({matchPatterns:bT,defaultMatchWidth:"wide",parsePatterns:yT,defaultParseWidth:"any"}),dayPeriod:Cn({matchPatterns:wT,defaultMatchWidth:"any",parsePatterns:vT,defaultParseWidth:"any"})},As={code:"en-US",formatDistance:KP,formatLong:JP,formatRelative:$P,localize:oT,match:xT,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ny(t,e){const n=Q(t,e==null?void 0:e.in);return _n(n,iu(n))+1}function lu(t,e){const n=Q(t,e==null?void 0:e.in),r=+dn(n)-+fr(n);return Math.round(r/Ka)+1}function qi(t,e){var d,u,f,h;const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=_t(),a=(e==null?void 0:e.firstWeekContainsDate)??((u=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??s.firstWeekContainsDate??((h=(f=s.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=ie((e==null?void 0:e.in)||t,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const i=pt(o,e),l=ie((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=pt(l,e);return+n>=+i?r+1:+n>=+c?r:r-1}function $i(t,e){var i,l,c,d;const n=_t(),r=(e==null?void 0:e.firstWeekContainsDate)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=qi(t,e),a=ie((e==null?void 0:e.in)||t,0);return a.setFullYear(s,0,r),a.setHours(0,0,0,0),pt(a,e)}function cu(t,e){const n=Q(t,e==null?void 0:e.in),r=+pt(n,e)-+$i(n,e);return Math.round(r/Ka)+1}function le(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Dn={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return le(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):le(n+1,2)},d(t,e){return le(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return le(t.getHours()%12||12,e.length)},H(t,e){return le(t.getHours(),e.length)},m(t,e){return le(t.getMinutes(),e.length)},s(t,e){return le(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return le(s,e.length)}},Rs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},du={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Dn.y(t,e)},Y:function(t,e,n,r){const s=qi(t,r),a=s>0?s:1-s;if(e==="YY"){const o=a%100;return le(o,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):le(a,e.length)},R:function(t,e){const n=ur(t);return le(n,e.length)},u:function(t,e){const n=t.getFullYear();return le(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return le(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return le(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Dn.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return le(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const s=cu(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):le(s,e.length)},I:function(t,e,n){const r=lu(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):le(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Dn.d(t,e)},D:function(t,e,n){const r=Ny(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):le(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return le(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return le(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return le(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=Rs.noon:r===0?s=Rs.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=Rs.evening:r>=12?s=Rs.afternoon:r>=4?s=Rs.morning:s=Rs.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Dn.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Dn.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):le(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):le(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Dn.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Dn.s(t,e)},S:function(t,e){return Dn.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Iy(r);case"XXXX":case"XX":return Ur(r);case"XXXXX":case"XXX":default:return Ur(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Iy(r);case"xxxx":case"xx":return Ur(r);case"xxxxx":case"xxx":default:return Ur(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+jy(r,":");case"OOOO":default:return"GMT"+Ur(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+jy(r,":");case"zzzz":default:return"GMT"+Ur(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return le(r,e.length)},T:function(t,e,n){return le(+t,e.length)}};function jy(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),a=r%60;return a===0?n+String(s):n+String(s)+e+le(a,2)}function Iy(t,e){return t%60===0?(t>0?"-":"+")+le(Math.abs(t)/60,2):Ur(t,e)}function Ur(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=le(Math.trunc(r/60),2),a=le(r%60,2);return n+s+e+a}const Ay=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Ry=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},el={p:Ry,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return Ay(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",Ay(r,e)).replace("{{time}}",Ry(s,e))}},kT=/^D+$/,_T=/^Y+$/,ST=["D","DD","YY","YYYY"];function Ly(t){return kT.test(t)}function Fy(t){return _T.test(t)}function uu(t,e,n){const r=OT(t,e,n);if(console.warn(r),ST.includes(t))throw new RangeError(r)}function OT(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const CT=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,MT=/^'([^]*?)'?$/,ET=/''/g,PT=/[a-zA-Z]/;function tl(t,e,n){var d,u,f,h,m,p,b,v;const r=_t(),s=(n==null?void 0:n.locale)??r.locale??As,a=(n==null?void 0:n.firstWeekContainsDate)??((u=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((p=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??r.weekStartsOn??((v=(b=r.locale)==null?void 0:b.options)==null?void 0:v.weekStartsOn)??0,i=Q(t,n==null?void 0:n.in);if(!Xn(i))throw new RangeError("Invalid time value");let l=e.match(DT).map(x=>{const k=x[0];if(k==="p"||k==="P"){const w=el[k];return w(x,s.formatLong)}return x}).join("").match(CT).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const k=x[0];if(k==="'")return{isToken:!1,value:TT(x)};if(du[k])return{isToken:!0,value:x};if(k.match(PT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:x}});s.localize.preprocessor&&(l=s.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return l.map(x=>{if(!x.isToken)return x.value;const k=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Fy(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Ly(k))&&uu(k,e,String(t));const w=du[k[0]];return w(i,k,s.localize,c)}).join("")}function TT(t){const e=t.match(MT);return e?e[1].replace(ET,"'"):t}function Wy(t,e,n){const r=_t(),s=(n==null?void 0:n.locale)??r.locale??As,a=2520,o=Sn(t,e);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:o}),[l,c]=Pe(n==null?void 0:n.in,...o>0?[e,t]:[t,e]),d=js(c,l),u=(It(c)-It(l))/1e3,f=Math.round((d-u)/60);let h;if(f<2)return n!=null&&n.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,i):d<10?s.formatDistance("lessThanXSeconds",10,i):d<20?s.formatDistance("lessThanXSeconds",20,i):d<40?s.formatDistance("halfAMinute",0,i):d<60?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",1,i):f===0?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",f,i);if(f<45)return s.formatDistance("xMinutes",f,i);if(f<90)return s.formatDistance("aboutXHours",1,i);if(f<zi){const m=Math.round(f/60);return s.formatDistance("aboutXHours",m,i)}else{if(f<a)return s.formatDistance("xDays",1,i);if(f<Es){const m=Math.round(f/zi);return s.formatDistance("xDays",m,i)}else if(f<Es*2)return h=Math.round(f/Es),s.formatDistance("aboutXMonths",h,i)}if(h=Zi(c,l),h<12){const m=Math.round(f/Es);return s.formatDistance("xMonths",m,i)}else{const m=h%12,p=Math.trunc(h/12);return m<3?s.formatDistance("aboutXYears",p,i):m<9?s.formatDistance("overXYears",p,i):s.formatDistance("almostXYears",p+1,i)}}function By(t,e,n){const r=_t(),s=(n==null?void 0:n.locale)??r.locale??As,a=Sn(t,e);if(isNaN(a))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[i,l]=Pe(n==null?void 0:n.in,...a>0?[e,t]:[t,e]),c=hr((n==null?void 0:n.roundingMethod)??"round"),d=l.getTime()-i.getTime(),u=d/Un,f=It(l)-It(i),h=(d-f)/Un,m=n==null?void 0:n.unit;let p;if(m?p=m:u<1?p="second":u<60?p="minute":u<zi?p="hour":h<Es?p="day":h<ny?p="month":p="year",p==="second"){const b=c(d/1e3);return s.formatDistance("xSeconds",b,o)}else if(p==="minute"){const b=c(u);return s.formatDistance("xMinutes",b,o)}else if(p==="hour"){const b=c(u/60);return s.formatDistance("xHours",b,o)}else if(p==="day"){const b=c(h/zi);return s.formatDistance("xDays",b,o)}else if(p==="month"){const b=c(h/Es);return b===12&&m!=="month"?s.formatDistance("xYears",1,o):s.formatDistance("xMonths",b,o)}else{const b=c(h/ny);return s.formatDistance("xYears",b,o)}}function NT(t,e){return Wy(t,rt(t),e)}function jT(t,e){return By(t,rt(t),e)}const IT=["years","months","weeks","days","hours","minutes","seconds"];function AT(t,e){const n=_t(),r=(e==null?void 0:e.locale)??n.locale??As,s=(e==null?void 0:e.format)??IT,a=(e==null?void 0:e.zero)??!1,o=(e==null?void 0:e.delimiter)??" ";return r.formatDistance?s.reduce((l,c)=>{const d=`x${c.replace(/(^.)/,f=>f.toUpperCase())}`,u=t[c];return u!==void 0&&(a||t[c])?l.concat(r.formatDistance(d,u)):l},[]).join(o):""}function RT(t,e){const n=Q(t,e==null?void 0:e.in);if(isNaN(+n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="",o="";const i=r==="extended"?"-":"",l=r==="extended"?":":"";if(s!=="time"){const c=le(n.getDate(),2),d=le(n.getMonth()+1,2);a=`${le(n.getFullYear(),4)}${i}${d}${i}${c}`}if(s!=="date"){const c=n.getTimezoneOffset();if(c!==0){const p=Math.abs(c),b=le(Math.trunc(p/60),2),v=le(p%60,2);o=`${c<0?"+":"-"}${b}:${v}`}else o="Z";const d=le(n.getHours(),2),u=le(n.getMinutes(),2),f=le(n.getSeconds(),2),h=a===""?"":"T",m=[d,u,f].join(l);a=`${a}${h}${m}${o}`}return a}function LT(t,e){const n=Q(t,e==null?void 0:e.in);if(!Xn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="";const o=r==="extended"?"-":"",i=r==="extended"?":":"";if(s!=="time"){const l=le(n.getDate(),2),c=le(n.getMonth()+1,2);a=`${le(n.getFullYear(),4)}${o}${c}${o}${l}`}if(s!=="date"){const l=le(n.getHours(),2),c=le(n.getMinutes(),2),d=le(n.getSeconds(),2);a=`${a}${a===""?"":" "}${l}${i}${c}${i}${d}`}return a}function FT(t){const{years:e=0,months:n=0,days:r=0,hours:s=0,minutes:a=0,seconds:o=0}=t;return`P${e}Y${n}M${r}DT${s}H${a}M${o}S`}function WT(t,e){const n=Q(t,e==null?void 0:e.in);if(!Xn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.fractionDigits)??0,s=le(n.getDate(),2),a=le(n.getMonth()+1,2),o=n.getFullYear(),i=le(n.getHours(),2),l=le(n.getMinutes(),2),c=le(n.getSeconds(),2);let d="";if(r>0){const h=n.getMilliseconds(),m=Math.trunc(h*Math.pow(10,r-3));d="."+le(m,r)}let u="";const f=n.getTimezoneOffset();if(f!==0){const h=Math.abs(f),m=le(Math.trunc(h/60),2),p=le(h%60,2);u=`${f<0?"+":"-"}${m}:${p}`}else u="Z";return`${o}-${a}-${s}T${i}:${l}:${c}${d}${u}`}const BT=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],zT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HT(t){const e=Q(t);if(!Xn(e))throw new RangeError("Invalid time value");const n=BT[e.getUTCDay()],r=le(e.getUTCDate(),2),s=zT[e.getUTCMonth()],a=e.getUTCFullYear(),o=le(e.getUTCHours(),2),i=le(e.getUTCMinutes(),2),l=le(e.getUTCSeconds(),2);return`${n}, ${r} ${s} ${a} ${o}:${i}:${l} GMT`}function YT(t,e,n){var u,f,h,m;const[r,s]=Pe(n==null?void 0:n.in,t,e),a=_t(),o=(n==null?void 0:n.locale)??a.locale??As,i=(n==null?void 0:n.weekStartsOn)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??a.weekStartsOn??((m=(h=a.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,l=_n(r,s);if(isNaN(l))throw new RangeError("Invalid time value");let c;l<-6?c="other":l<-1?c="lastWeek":l<0?c="yesterday":l<1?c="today":l<2?c="tomorrow":l<7?c="nextWeek":c="other";const d=o.formatRelative(c,r,s,{locale:o,weekStartsOn:i});return tl(r,d,{locale:o,weekStartsOn:i})}function VT(t,e){return Q(t*1e3,e==null?void 0:e.in)}function zy(t,e){return Q(t,e==null?void 0:e.in).getDate()}function nl(t,e){return Q(t,e==null?void 0:e.in).getDay()}function Hy(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=n.getMonth(),a=ie(n,0);return a.setFullYear(r,s+1,0),a.setHours(0,0,0,0),a.getDate()}function Yy(t,e){const r=Q(t,e==null?void 0:e.in).getFullYear();return r%400===0||r%4===0&&r%100!==0}function UT(t,e){const n=Q(t,e==null?void 0:e.in);return Number.isNaN(+n)?NaN:Yy(n)?366:365}function XT(t,e){const r=Q(t,e==null?void 0:e.in).getFullYear();return Math.floor(r/10)*10}function Vy(){return Object.assign({},_t())}function KT(t,e){return Q(t,e==null?void 0:e.in).getHours()}function Uy(t,e){const n=Q(t,e==null?void 0:e.in).getDay();return n===0?7:n}function GT(t,e){const n=fr(t,e),s=+fr(Vi(n,60))-+n;return Math.round(s/Ka)}function QT(t){return Q(t).getMilliseconds()}function ZT(t,e){return Q(t,e==null?void 0:e.in).getMinutes()}function JT(t,e){return Q(t,e==null?void 0:e.in).getMonth()}function qT(t,e){const[n,r]=[+Q(t.start),+Q(t.end)].sort((u,f)=>u-f),[s,a]=[+Q(e.start),+Q(e.end)].sort((u,f)=>u-f);if(!(n<a&&s<r))return 0;const i=s<n?n:s,l=i-It(i),c=a>r?r:a,d=c-It(c);return Math.ceil((d-l)/ty)}function $T(t){return Q(t).getSeconds()}function e5(t){return+Q(t)}function t5(t){return Math.trunc(+Q(t)/1e3)}function n5(t,e){var l,c,d,u;const n=_t(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=zy(Q(t,e==null?void 0:e.in));if(isNaN(s))return NaN;const a=nl(Ji(t,e));let o=r-a;o<=0&&(o+=7);const i=s-o;return Math.ceil(i/7)+1}function Xy(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),Q(n,e==null?void 0:e.in)}function r5(t,e){const n=Q(t,e==null?void 0:e.in);return Ki(Xy(n,e),Ji(n,e),e)+1}function s5(t,e){return Q(t,e==null?void 0:e.in).getFullYear()}function a5(t){return Math.trunc(t*Yr)}function o5(t){return Math.trunc(t*ry)}function i5(t){return Math.trunc(t*Hi)}function l5(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);if(isNaN(+r))throw new TypeError("Start date is invalid");if(isNaN(+s))throw new TypeError("End date is invalid");if(n!=null&&n.assertPositive&&+r>+s)throw new TypeError("End date must be after start date");return{start:r,end:s}}function c5(t,e){const{start:n,end:r}=Kn(e==null?void 0:e.in,t),s={},a=Dy(r,n);a&&(s.years=a);const o=Ps(n,{years:s.years}),i=Zi(r,o);i&&(s.months=i);const l=Ps(o,{months:s.months}),c=nu(r,l);c&&(s.days=c);const d=Ps(l,{days:s.days}),u=Gi(r,d);u&&(s.hours=u);const f=Ps(d,{hours:s.hours}),h=Qi(r,f);h&&(s.minutes=h);const m=Ps(f,{minutes:s.minutes}),p=js(r,m);return p&&(s.seconds=p),s}function d5(t,e,n){let r;return u5(e)?r=e:n=e,new Intl.DateTimeFormat(n==null?void 0:n.locale,r).format(Q(t))}function u5(t){return t!==void 0&&!("locale"in t)}function f5(t,e,n){let r=0,s;const[a,o]=Pe(n==null?void 0:n.in,t,e);if(n!=null&&n.unit)s=n==null?void 0:n.unit,s==="second"?r=js(a,o):s==="minute"?r=Qi(a,o):s==="hour"?r=Gi(a,o):s==="day"?r=_n(a,o):s==="week"?r=Ki(a,o):s==="month"?r=Ui(a,o):s==="quarter"?r=Xi(a,o):s==="year"&&(r=Za(a,o));else{const l=js(a,o);Math.abs(l)<Jd?(r=js(a,o),s="second"):Math.abs(l)<Hi?(r=Qi(a,o),s="minute"):Math.abs(l)<qd&&Math.abs(_n(a,o))<1?(r=Gi(a,o),s="hour"):Math.abs(l)<mP&&(r=_n(a,o))&&Math.abs(r)<7?s="day":Math.abs(l)<ly?(r=Ki(a,o),s="week"):Math.abs(l)<pP?(r=Ui(a,o),s="month"):Math.abs(l)<iy&&Xi(a,o)<4?(r=Xi(a,o),s="quarter"):(r=Za(a,o),s="year")}return new Intl.RelativeTimeFormat(n==null?void 0:n.locale,{numeric:"auto",...n}).format(r,s)}function h5(t,e){return+Q(t)>+Q(e)}function g5(t,e){return+Q(t)<+Q(e)}function m5(t,e){return+Q(t)==+Q(e)}function p5(t,e,n){const r=new Date(t,e,n);return r.getFullYear()===t&&r.getMonth()===e&&r.getDate()===n}function b5(t,e){return Q(t,e==null?void 0:e.in).getDate()===1}function y5(t,e){return Q(t,e==null?void 0:e.in).getDay()===5}function w5(t){return+Q(t)>Date.now()}function Ky(t,e){const n=v5(e)?new e(0):ie(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function v5(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const x5=10;class Gy{constructor(){$(this,"subPriority",0)}validate(e,n){return!0}}class k5 extends Gy{constructor(e,n,r,s,a){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=s,a&&(this.subPriority=a)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class _5 extends Gy{constructor(n,r){super();$(this,"priority",x5);$(this,"subPriority",-1);this.context=n||(s=>ie(r,s))}set(n,r){return r.timestampIsSet?n:ie(n,Ky(n,this.context))}}class ke{run(e,n,r,s){const a=this.parse(e,n,r,s);return a?{setter:new k5(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,n,r){return!0}}class S5 extends ke{constructor(){super(...arguments);$(this,"priority",140);$(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const Qe={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Mn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ze(t,e){return t&&{value:e(t.value),rest:t.rest}}function He(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function En(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*Yr+a*Un+o*Zd),rest:e.slice(n[0].length)}}function Qy(t){return He(Qe.anyDigitsSigned,t)}function Ue(t,e){switch(t){case 1:return He(Qe.singleDigit,e);case 2:return He(Qe.twoDigits,e);case 3:return He(Qe.threeDigits,e);case 4:return He(Qe.fourDigits,e);default:return He(new RegExp("^\\d{1,"+t+"}"),e)}}function rl(t,e){switch(t){case 1:return He(Qe.singleDigitSigned,e);case 2:return He(Qe.twoDigitsSigned,e);case 3:return He(Qe.threeDigitsSigned,e);case 4:return He(Qe.fourDigitsSigned,e);default:return He(new RegExp("^-?\\d{1,"+t+"}"),e)}}function fu(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Zy(t,e){const n=e>0,r=n?e:1-e;let s;if(r<=50)s=t||100;else{const a=r+50,o=Math.trunc(a/100)*100,i=t>=a%100;s=t+o-(i?100:0)}return n?s:1-s}function Jy(t){return t%400===0||t%4===0&&t%100!==0}class O5 extends ke{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Ze(Ue(4,n),a);case"yo":return Ze(s.ordinalNumber(n,{unit:"year"}),a);default:return Ze(Ue(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const a=n.getFullYear();if(s.isTwoDigitYear){const i=Zy(s.year,a);return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class C5 extends ke{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Ze(Ue(4,n),a);case"Yo":return Ze(s.ordinalNumber(n,{unit:"year"}),a);default:return Ze(Ue(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,a){const o=qi(n,a);if(s.isTwoDigitYear){const l=Zy(s.year,o);return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),pt(n,a)}const i=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(i,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),pt(n,a)}}class D5 extends ke{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return rl(r==="R"?4:r.length,n)}set(n,r,s){const a=ie(n,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),dn(a)}}class M5 extends ke{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return rl(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class E5 extends ke{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return Ue(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class P5 extends ke{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return Ue(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class T5 extends ke{constructor(){super(...arguments);$(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);$(this,"priority",110)}parse(n,r,s){const a=o=>o-1;switch(r){case"M":return Ze(He(Qe.month,n),a);case"MM":return Ze(Ue(2,n),a);case"Mo":return Ze(s.ordinalNumber(n,{unit:"month"}),a);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class N5 extends ke{constructor(){super(...arguments);$(this,"priority",110);$(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const a=o=>o-1;switch(r){case"L":return Ze(He(Qe.month,n),a);case"LL":return Ze(Ue(2,n),a);case"Lo":return Ze(s.ordinalNumber(n,{unit:"month"}),a);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function qy(t,e,n){const r=Q(t,n==null?void 0:n.in),s=cu(r,n)-e;return r.setDate(r.getDate()-s*7),Q(r,n==null?void 0:n.in)}class j5 extends ke{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return He(Qe.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return Ue(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,a){return pt(qy(n,s,a),a)}}function $y(t,e,n){const r=Q(t,n==null?void 0:n.in),s=lu(r,n)-e;return r.setDate(r.getDate()-s*7),r}class I5 extends ke{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return He(Qe.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return Ue(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return dn($y(n,s))}}const A5=[31,28,31,30,31,30,31,31,30,31,30,31],R5=[31,29,31,30,31,30,31,31,30,31,30,31];class L5 extends ke{constructor(){super(...arguments);$(this,"priority",90);$(this,"subPriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return He(Qe.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return Ue(r.length,n)}}validate(n,r){const s=n.getFullYear(),a=Jy(s),o=n.getMonth();return a?r>=1&&r<=R5[o]:r>=1&&r<=A5[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class F5 extends ke{constructor(){super(...arguments);$(this,"priority",90);$(this,"subpriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return He(Qe.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return Ue(r.length,n)}}validate(n,r){const s=n.getFullYear();return Jy(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function sl(t,e,n){var u,f,h,m;const r=_t(),s=(n==null?void 0:n.weekStartsOn)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??r.weekStartsOn??((m=(h=r.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,a=Q(t,n==null?void 0:n.in),o=a.getDay(),l=(e%7+7)%7,c=7-s,d=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return tn(a,d,n)}class W5 extends ke{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=sl(n,s,a),n.setHours(0,0,0,0),n}}class B5 extends ke{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return Ze(Ue(r.length,n),o);case"eo":return Ze(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=sl(n,s,a),n.setHours(0,0,0,0),n}}class z5 extends ke{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return Ze(Ue(r.length,n),o);case"co":return Ze(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=sl(n,s,a),n.setHours(0,0,0,0),n}}function ew(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Uy(r,n),a=e-s;return tn(r,a,n)}class H5 extends ke{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const a=o=>o===0?7:o;switch(r){case"i":case"ii":return Ue(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return Ze(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return Ze(s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Ze(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return Ze(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=ew(n,s),n.setHours(0,0,0,0),n}}class Y5 extends ke{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(fu(s),0,0,0),n}}class V5 extends ke{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(fu(s),0,0,0),n}}class U5 extends ke{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(fu(s),0,0,0),n}}class X5 extends ke{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return He(Qe.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return Ue(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const a=n.getHours()>=12;return a&&s<12?n.setHours(s+12,0,0,0):!a&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class K5 extends ke{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return He(Qe.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return Ue(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class G5 extends ke{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return He(Qe.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return Ue(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class Q5 extends ke{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return He(Qe.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return Ue(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const a=s<=24?s%24:s;return n.setHours(a,0,0,0),n}}class Z5 extends ke{constructor(){super(...arguments);$(this,"priority",60);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return He(Qe.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return Ue(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class J5 extends ke{constructor(){super(...arguments);$(this,"priority",50);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return He(Qe.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return Ue(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class q5 extends ke{constructor(){super(...arguments);$(this,"priority",30);$(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=a=>Math.trunc(a*Math.pow(10,-r.length+3));return Ze(Ue(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class $5 extends ke{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return En(Mn.basicOptionalMinutes,n);case"XX":return En(Mn.basic,n);case"XXXX":return En(Mn.basicOptionalSeconds,n);case"XXXXX":return En(Mn.extendedOptionalSeconds,n);case"XXX":default:return En(Mn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:ie(n,n.getTime()-It(n)-s)}}class eN extends ke{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return En(Mn.basicOptionalMinutes,n);case"xx":return En(Mn.basic,n);case"xxxx":return En(Mn.basicOptionalSeconds,n);case"xxxxx":return En(Mn.extendedOptionalSeconds,n);case"xxx":default:return En(Mn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:ie(n,n.getTime()-It(n)-s)}}class tN extends ke{constructor(){super(...arguments);$(this,"priority",40);$(this,"incompatibleTokens","*")}parse(n){return Qy(n)}set(n,r,s){return[ie(n,s*1e3),{timestampIsSet:!0}]}}class nN extends ke{constructor(){super(...arguments);$(this,"priority",20);$(this,"incompatibleTokens","*")}parse(n){return Qy(n)}set(n,r,s){return[ie(n,s),{timestampIsSet:!0}]}}const tw={G:new S5,y:new O5,Y:new C5,R:new D5,u:new M5,Q:new E5,q:new P5,M:new T5,L:new N5,w:new j5,I:new I5,d:new L5,D:new F5,E:new W5,e:new B5,c:new z5,i:new H5,a:new Y5,b:new V5,B:new U5,h:new X5,H:new K5,K:new G5,k:new Q5,m:new Z5,s:new J5,S:new q5,X:new $5,x:new eN,t:new tN,T:new nN},rN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,aN=/^'([^]*?)'?$/,oN=/''/g,iN=/\S/,lN=/[a-zA-Z]/;function nw(t,e,n,r){var b,v,x,k,w,y,S,N;const s=()=>ie((r==null?void 0:r.in)||n,NaN),a=Vy(),o=(r==null?void 0:r.locale)??a.locale??As,i=(r==null?void 0:r.firstWeekContainsDate)??((v=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:v.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(x=a.locale)==null?void 0:x.options)==null?void 0:k.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((y=(w=r==null?void 0:r.locale)==null?void 0:w.options)==null?void 0:y.weekStartsOn)??a.weekStartsOn??((N=(S=a.locale)==null?void 0:S.options)==null?void 0:N.weekStartsOn)??0;if(!e)return t?s():Q(n,r==null?void 0:r.in);const c={firstWeekContainsDate:i,weekStartsOn:l,locale:o},d=[new _5(r==null?void 0:r.in,n)],u=e.match(sN).map(D=>{const T=D[0];if(T in el){const E=el[T];return E(D,o.formatLong)}return D}).join("").match(rN),f=[];for(let D of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&Fy(D)&&uu(D,e,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ly(D)&&uu(D,e,t);const T=D[0],E=tw[T];if(E){const{incompatibleTokens:Y}=E;if(Array.isArray(Y)){const O=f.find(C=>Y.includes(C.token)||C.token===T);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${D}\` at the same time`)}else if(E.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);f.push({token:T,fullToken:D});const L=E.run(t,D,o.match,c);if(!L)return s();d.push(L.setter),t=L.rest}else{if(T.match(lN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");if(D==="''"?D="'":T==="'"&&(D=cN(D)),t.indexOf(D)===0)t=t.slice(D.length);else return s()}}if(t.length>0&&iN.test(t))return s();const h=d.map(D=>D.priority).sort((D,T)=>T-D).filter((D,T,E)=>E.indexOf(D)===T).map(D=>d.filter(T=>T.priority===D).sort((T,E)=>E.subPriority-T.subPriority)).map(D=>D[0]);let m=Q(n,r==null?void 0:r.in);if(isNaN(+m))return s();const p={};for(const D of h){if(!D.validate(m,c))return s();const T=D.set(m,p,c);Array.isArray(T)?(m=T[0],Object.assign(p,T[1])):m=T}return m}function cN(t){return t.match(aN)[1].replace(oN,"'")}function dN(t,e,n){return Xn(nw(t,e,new Date,n))}function uN(t,e){return Q(t,e==null?void 0:e.in).getDay()===1}function fN(t){return+Q(t)<Date.now()}function hu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMinutes(0,0,0),n}function rw(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);return+hu(r)==+hu(s)}function gu(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);return+pt(r,n)==+pt(s,n)}function sw(t,e,n){return gu(t,e,{...n,weekStartsOn:1})}function hN(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);return+fr(r)==+fr(s)}function mu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setSeconds(0,0),n}function aw(t,e){return+mu(t)==+mu(e)}function ow(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function iw(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);return+Vr(r)==+Vr(s)}function pu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMilliseconds(0),n}function lw(t,e){return+pu(t)==+pu(e)}function cw(t,e,n){const[r,s]=Pe(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()}function gN(t,e){return rw(Q(t,e==null?void 0:e.in),rt((e==null?void 0:e.in)||t))}function mN(t,e){return sw(ie((e==null?void 0:e.in)||t,t),rt((e==null?void 0:e.in)||t))}function pN(t){return aw(t,rt(t))}function bN(t,e){return ow(ie((e==null?void 0:e.in)||t,t),rt((e==null?void 0:e.in)||t))}function yN(t,e){return iw(ie((e==null?void 0:e.in)||t,t),rt((e==null?void 0:e.in)||t))}function wN(t){return lw(t,rt(t))}function vN(t,e){return gu(ie((e==null?void 0:e.in)||t,t),rt((e==null?void 0:e.in)||t),e)}function xN(t,e){return cw(ie((e==null?void 0:e.in)||t,t),rt((e==null?void 0:e.in)||t))}function kN(t,e){return Q(t,e==null?void 0:e.in).getDay()===4}function _N(t,e){return Qa(ie((e==null?void 0:e.in)||t,t),rt((e==null?void 0:e.in)||t))}function SN(t,e){return Qa(t,tn(rt((e==null?void 0:e.in)||t),1),e)}function ON(t,e){return Q(t,e==null?void 0:e.in).getDay()===2}function CN(t,e){return Q(t,e==null?void 0:e.in).getDay()===3}function DN(t,e,n){const r=+Q(t,n==null?void 0:n.in),[s,a]=[+Q(e.start,n==null?void 0:n.in),+Q(e.end,n==null?void 0:n.in)].sort((o,i)=>o-i);return r>=s&&r<=a}function al(t,e,n){return tn(t,-e,n)}function MN(t,e){return Qa(ie((e==null?void 0:e.in)||t,t),al(rt((e==null?void 0:e.in)||t),1))}function EN(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s+1,0,0),n.setHours(0,0,0,0),Q(n,e==null?void 0:e.in)}function dw(t,e){var i,l,c,d;const n=_t(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Q(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setHours(0,0,0,0),s.setDate(s.getDate()+o),s}function PN(t,e){return dw(t,{...e,weekStartsOn:1})}function TN(t,e){const n=ur(t,e),r=ie((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=dn(r,e);return s.setDate(s.getDate()-1),s}function NN(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(0,0,0,0),n}function jN(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}const IN=/(\w)\1*|''|'(''|[^'])+('|$)|./g,AN=/^'([^]*?)'?$/,RN=/''/g,LN=/[a-zA-Z]/;function FN(t,e){const n=Q(t);if(!Xn(n))throw new RangeError("Invalid time value");const r=e.match(IN);return r?r.map(a=>{if(a==="''")return"'";const o=a[0];if(o==="'")return WN(a);const i=Dn[o];if(i)return i(n,a);if(o.match(LN))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return a}).join(""):""}function WN(t){const e=t.match(AN);return e?e[1].replace(RN,"'"):t}function BN({years:t,months:e,weeks:n,days:r,hours:s,minutes:a,seconds:o}){let i=0;t&&(i+=t*Bi),e&&(i+=e*(Bi/12)),n&&(i+=n*7),r&&(i+=r);let l=i*24*60*60;return s&&(l+=s*60*60),a&&(l+=a*60),o&&(l+=o),Math.trunc(l*1e3)}function zN(t){const e=t/Yr;return Math.trunc(e)}function HN(t){const e=t/Un;return Math.trunc(e)}function YN(t){const e=t/Zd;return Math.trunc(e)}function VN(t){const e=t/ry;return Math.trunc(e)}function UN(t){return Math.trunc(t*Un)}function XN(t){return Math.trunc(t*Jd)}function KN(t){const e=t/sy;return Math.trunc(e)}function GN(t){const e=t/ay;return Math.trunc(e)}function gr(t,e,n){let r=e-nl(t,n);return r<=0&&(r+=7),tn(t,r,n)}function QN(t,e){return gr(t,5,e)}function ZN(t,e){return gr(t,1,e)}function JN(t,e){return gr(t,6,e)}function qN(t,e){return gr(t,0,e)}function $N(t,e){return gr(t,4,e)}function ej(t,e){return gr(t,2,e)}function tj(t,e){return gr(t,3,e)}function nj(t,e){const n=()=>ie(e==null?void 0:e.in,NaN),r=(e==null?void 0:e.additionalDigits)??2,s=oj(t);let a;if(s.date){const c=ij(s.date,r);a=lj(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const o=+a;let i=0,l;if(s.time&&(i=cj(s.time),isNaN(i)))return n();if(s.timezone){if(l=dj(s.timezone),isNaN(l))return n()}else{const c=new Date(o+i),d=Q(0,e==null?void 0:e.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Q(o+i+l,e==null?void 0:e.in)}const ol={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},rj=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,sj=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,aj=/^([+-])(\d{2})(?::?(\d{2}))?$/;function oj(t){const e={},n=t.split(ol.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],ol.timeZoneDelimiter.test(e.date)&&(e.date=t.split(ol.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const s=ol.timezone.exec(r);s?(e.time=r.replace(s[1],""),e.timezone=s[1]):e.time=r}return e}function ij(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const s=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?s:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function lj(t,e){if(e===null)return new Date(NaN);const n=t.match(rj);if(!n)return new Date(NaN);const r=!!n[4],s=Ja(n[1]),a=Ja(n[2])-1,o=Ja(n[3]),i=Ja(n[4]),l=Ja(n[5])-1;if(r)return mj(e,i,l)?uj(e,i,l):new Date(NaN);{const c=new Date(0);return!hj(e,a,o)||!gj(e,s)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(s,o)),c)}}function Ja(t){return t?parseInt(t):1}function cj(t){const e=t.match(sj);if(!e)return NaN;const n=bu(e[1]),r=bu(e[2]),s=bu(e[3]);return pj(n,r,s)?n*Yr+r*Un+s*1e3:NaN}function bu(t){return t&&parseFloat(t.replace(",","."))||0}function dj(t){if(t==="Z")return 0;const e=t.match(aj);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return bj(r,s)?n*(r*Yr+s*Un):NaN}function uj(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const s=r.getUTCDay()||7,a=(e-1)*7+n+1-s;return r.setUTCDate(r.getUTCDate()+a),r}const fj=[31,null,31,30,31,30,31,31,30,31,30,31];function uw(t){return t%400===0||t%4===0&&t%100!==0}function hj(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(fj[e]||(uw(t)?29:28))}function gj(t,e){return e>=1&&e<=(uw(t)?366:365)}function mj(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function pj(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function bj(t,e){return e>=0&&e<=59}function yj(t,e){const n=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return Q(n?Date.UTC(+n[1],+n[2]-1,+n[3],+n[4]-(+n[9]||0)*(n[8]=="-"?-1:1),+n[5]-(+n[10]||0)*(n[8]=="-"?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3)):NaN,e==null?void 0:e.in)}function mr(t,e,n){let r=nl(t,n)-e;return r<=0&&(r+=7),al(t,r,n)}function wj(t,e){return mr(t,5,e)}function vj(t,e){return mr(t,1,e)}function xj(t,e){return mr(t,6,e)}function kj(t,e){return mr(t,0,e)}function _j(t,e){return mr(t,4,e)}function Sj(t,e){return mr(t,2,e)}function Oj(t,e){return mr(t,3,e)}function Cj(t){return Math.trunc(t*sy)}function Dj(t){const e=t/oy;return Math.trunc(e)}function Mj(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>12)return ie((e==null?void 0:e.in)||t,NaN);const r=Q(t,e==null?void 0:e.in),s=r.getMinutes()/60,a=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,i=r.getHours()+s+a+o,l=(e==null?void 0:e.roundingMethod)??"round",d=hr(l)(i/n)*n;return r.setHours(d,0,0,0),r}function Ej(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>30)return ie(t,NaN);const r=Q(t,e==null?void 0:e.in),s=r.getSeconds()/60,a=r.getMilliseconds()/1e3/60,o=r.getMinutes()+s+a,i=(e==null?void 0:e.roundingMethod)??"round",c=hr(i)(o/n)*n;return r.setMinutes(c,0,0),r}function Pj(t){const e=t/Hi;return Math.trunc(e)}function Tj(t){return t*Zd}function Nj(t){const e=t/Jd;return Math.trunc(e)}function yu(t,e,n){const r=Q(t,n==null?void 0:n.in),s=r.getFullYear(),a=r.getDate(),o=ie((n==null?void 0:n.in)||t,0);o.setFullYear(s,e,15),o.setHours(0,0,0,0);const i=Hy(o);return r.setMonth(e,Math.min(a,i)),r}function jj(t,e,n){let r=Q(t,n==null?void 0:n.in);return isNaN(+r)?ie((n==null?void 0:n.in)||t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=yu(r,e.month)),e.date!=null&&r.setDate(e.date),e.hours!=null&&r.setHours(e.hours),e.minutes!=null&&r.setMinutes(e.minutes),e.seconds!=null&&r.setSeconds(e.seconds),e.milliseconds!=null&&r.setMilliseconds(e.milliseconds),r)}function Ij(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setDate(e),r}function Aj(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setMonth(0),r.setDate(e),r}function Rj(t){const e={},n=_t();for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);bP(e)}function Lj(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setHours(e),r}function Fj(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setMilliseconds(e),r}function Wj(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setMinutes(e),r}function Bj(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Math.trunc(r.getMonth()/3)+1,a=e-s;return yu(r,r.getMonth()+a*3)}function zj(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setSeconds(e),r}function Hj(t,e,n){var l,c,d,u;const r=_t(),s=(n==null?void 0:n.firstWeekContainsDate)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(d=r.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,a=_n(Q(t,n==null?void 0:n.in),$i(t,n),n),o=ie((n==null?void 0:n.in)||t,0);o.setFullYear(e,0,s),o.setHours(0,0,0,0);const i=$i(o,n);return i.setDate(i.getDate()+a),i}function Yj(t,e,n){const r=Q(t,n==null?void 0:n.in);return isNaN(+r)?ie((n==null?void 0:n.in)||t,NaN):(r.setFullYear(e),r)}function Vj(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=Math.floor(r/10)*10;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}function Uj(t){return Ns(Date.now(),t)}function Xj(t){const e=rt(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=ie(t==null?void 0:t.in,0);return a.setFullYear(n,r,s+1),a.setHours(0,0,0,0),a}function Kj(t){const e=rt(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=rt(t==null?void 0:t.in);return a.setFullYear(n,r,s-1),a.setHours(0,0,0,0),a}function fw(t,e,n){return Ga(t,-e,n)}function Gj(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=fw(t,s+r*12,n),u=al(d,o+a*7,n),f=l+i*60,m=(c+f*60)*1e3;return ie((n==null?void 0:n.in)||t,+u-m)}function Qj(t,e,n){return fy(t,-e,n)}function Zj(t,e,n){return hy(t,-e,n)}function Jj(t,e,n){return Yi(t,-e,n)}function qj(t,e,n){return $d(t,-e,n)}function $j(t,e,n){return eu(t,-e,n)}function eI(t,e,n){return by(t,-e,n)}function tI(t,e,n){return Vi(t,-e,n)}function nI(t,e,n){return yy(t,-e,n)}function rI(t){return Math.trunc(t*ey)}function sI(t){return Math.trunc(t*Bi)}function aI(t){return Math.trunc(t*ay)}function oI(t){return Math.trunc(t*oy)}const Xr=Yf(Object.freeze(Object.defineProperty({__proto__:null,add:Ps,addBusinessDays:fy,addDays:tn,addHours:hy,addISOWeekYears:py,addMilliseconds:Yi,addMinutes:$d,addMonths:Ga,addQuarters:eu,addSeconds:by,addWeeks:Vi,addYears:yy,areIntervalsOverlapping:yP,clamp:wP,closestIndexTo:xy,closestTo:vP,compareAsc:Sn,compareDesc:xP,constructFrom:ie,constructNow:rt,daysToWeeks:kP,differenceInBusinessDays:_P,differenceInCalendarDays:_n,differenceInCalendarISOWeekYears:_y,differenceInCalendarISOWeeks:SP,differenceInCalendarMonths:Ui,differenceInCalendarQuarters:Xi,differenceInCalendarWeeks:Ki,differenceInCalendarYears:Za,differenceInDays:nu,differenceInHours:Gi,differenceInISOWeekYears:OP,differenceInMilliseconds:ru,differenceInMinutes:Qi,differenceInMonths:Zi,differenceInQuarters:CP,differenceInSeconds:js,differenceInWeeks:DP,differenceInYears:Dy,eachDayOfInterval:My,eachHourOfInterval:MP,eachMinuteOfInterval:EP,eachMonthOfInterval:PP,eachQuarterOfInterval:TP,eachWeekOfInterval:NP,eachWeekendOfInterval:ou,eachWeekendOfMonth:jP,eachWeekendOfYear:IP,eachYearOfInterval:AP,endOfDay:su,endOfDecade:RP,endOfHour:LP,endOfISOWeek:FP,endOfISOWeekYear:WP,endOfMinute:BP,endOfMonth:au,endOfQuarter:zP,endOfSecond:HP,endOfToday:YP,endOfTomorrow:VP,endOfWeek:Py,endOfYear:Ey,endOfYesterday:UP,format:tl,formatDate:tl,formatDistance:Wy,formatDistanceStrict:By,formatDistanceToNow:NT,formatDistanceToNowStrict:jT,formatDuration:AT,formatISO:RT,formatISO9075:LT,formatISODuration:FT,formatRFC3339:WT,formatRFC7231:HT,formatRelative:YT,formatters:du,fromUnixTime:VT,getDate:zy,getDay:nl,getDayOfYear:Ny,getDaysInMonth:Hy,getDaysInYear:UT,getDecade:XT,getDefaultOptions:Vy,getHours:KT,getISODay:Uy,getISOWeek:lu,getISOWeekYear:ur,getISOWeeksInYear:GT,getMilliseconds:QT,getMinutes:ZT,getMonth:JT,getOverlappingDaysInIntervals:qT,getQuarter:tu,getSeconds:$T,getTime:e5,getUnixTime:t5,getWeek:cu,getWeekOfMonth:n5,getWeekYear:qi,getWeeksInMonth:r5,getYear:s5,hoursToMilliseconds:a5,hoursToMinutes:o5,hoursToSeconds:i5,interval:l5,intervalToDuration:c5,intlFormat:d5,intlFormatDistance:f5,isAfter:h5,isBefore:g5,isDate:ky,isEqual:m5,isExists:p5,isFirstDayOfMonth:b5,isFriday:y5,isFuture:w5,isLastDayOfMonth:Cy,isLeapYear:Yy,isMatch:dN,isMonday:uN,isPast:fN,isSameDay:Qa,isSameHour:rw,isSameISOWeek:sw,isSameISOWeekYear:hN,isSameMinute:aw,isSameMonth:ow,isSameQuarter:iw,isSameSecond:lw,isSameWeek:gu,isSameYear:cw,isSaturday:dy,isSunday:uy,isThisHour:gN,isThisISOWeek:mN,isThisMinute:pN,isThisMonth:bN,isThisQuarter:yN,isThisSecond:wN,isThisWeek:vN,isThisYear:xN,isThursday:kN,isToday:_N,isTomorrow:SN,isTuesday:ON,isValid:Xn,isWednesday:CN,isWeekend:Ts,isWithinInterval:DN,isYesterday:MN,lastDayOfDecade:EN,lastDayOfISOWeek:PN,lastDayOfISOWeekYear:TN,lastDayOfMonth:Xy,lastDayOfQuarter:NN,lastDayOfWeek:dw,lastDayOfYear:jN,lightFormat:FN,lightFormatters:Dn,longFormatters:el,max:wy,milliseconds:BN,millisecondsToHours:zN,millisecondsToMinutes:HN,millisecondsToSeconds:YN,min:vy,minutesToHours:VN,minutesToMilliseconds:UN,minutesToSeconds:XN,monthsToQuarters:KN,monthsToYears:GN,nextDay:gr,nextFriday:QN,nextMonday:ZN,nextSaturday:JN,nextSunday:qN,nextThursday:$N,nextTuesday:ej,nextWednesday:tj,parse:nw,parseISO:nj,parseJSON:yj,parsers:tw,previousDay:mr,previousFriday:wj,previousMonday:vj,previousSaturday:xj,previousSunday:kj,previousThursday:_j,previousTuesday:Sj,previousWednesday:Oj,quartersToMonths:Cj,quartersToYears:Dj,roundToNearestHours:Mj,roundToNearestMinutes:Ej,secondsToHours:Pj,secondsToMilliseconds:Tj,secondsToMinutes:Nj,set:jj,setDate:Ij,setDay:sl,setDayOfYear:Aj,setDefaultOptions:Rj,setHours:Lj,setISODay:ew,setISOWeek:$y,setISOWeekYear:my,setMilliseconds:Fj,setMinutes:Wj,setMonth:yu,setQuarter:Bj,setSeconds:zj,setWeek:qy,setWeekYear:Hj,setYear:Yj,startOfDay:Ns,startOfDecade:Vj,startOfHour:hu,startOfISOWeek:dn,startOfISOWeekYear:fr,startOfMinute:mu,startOfMonth:Ji,startOfQuarter:Vr,startOfSecond:pu,startOfToday:Uj,startOfTomorrow:Xj,startOfWeek:pt,startOfWeekYear:$i,startOfYear:iu,startOfYesterday:Kj,sub:Gj,subBusinessDays:Qj,subDays:al,subHours:Zj,subISOWeekYears:Oy,subMilliseconds:Jj,subMinutes:qj,subMonths:fw,subQuarters:$j,subSeconds:eI,subWeeks:tI,subYears:nI,toDate:Q,transpose:Ky,weeksToDays:rI,yearsToDays:sI,yearsToMonths:aI,yearsToQuarters:oI},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.rangeShape=Vn.default=void 0;var Kr=iI(_),be=hw(Yn),wu=hw(tr),St=Xr;function hw(t){return t&&t.__esModule?t:{default:t}}function gw(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(gw=function(r){return r?n:e})(t)}function iI(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=gw(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function vu(){return vu=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},vu.apply(this,arguments)}function qa(t,e,n){return e=lI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lI(t){var e=cI(t,"string");return typeof e=="symbol"?e:String(e)}function cI(t,e){if(typeof t!="object"||!t)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)}class xu extends Kr.Component{constructor(e,n){super(e,n),qa(this,"handleKeyEvent",r=>{const{day:s,onMouseDown:a,onMouseUp:o}=this.props;[13,32].includes(r.keyCode)&&(r.type==="keydown"?a(s):o(s))}),qa(this,"handleMouseEvent",r=>{const{day:s,disabled:a,onPreviewChange:o,onMouseEnter:i,onMouseDown:l,onMouseUp:c}=this.props,d={};if(a){o();return}switch(r.type){case"mouseenter":i(s),o(s),d.hover=!0;break;case"blur":case"mouseleave":d.hover=!1;break;case"mousedown":d.active=!0,l(s);break;case"mouseup":r.stopPropagation(),d.active=!1,c(s);break;case"focus":o(s);break}Object.keys(d).length&&this.setState(d)}),qa(this,"getClassNames",()=>{const{isPassive:r,isToday:s,isWeekend:a,isStartOfWeek:o,isEndOfWeek:i,isStartOfMonth:l,isEndOfMonth:c,disabled:d,styles:u}=this.props;return(0,wu.default)(u.day,{[u.dayPassive]:r,[u.dayDisabled]:d,[u.dayToday]:s,[u.dayWeekend]:a,[u.dayStartOfWeek]:o,[u.dayEndOfWeek]:i,[u.dayStartOfMonth]:l,[u.dayEndOfMonth]:c,[u.dayHovered]:this.state.hover,[u.dayActive]:this.state.active})}),qa(this,"renderPreviewPlaceholder",()=>{const{preview:r,day:s,styles:a}=this.props;if(!r)return null;const o=r.startDate?(0,St.endOfDay)(r.startDate):null,i=r.endDate?(0,St.startOfDay)(r.endDate):null,l=(!o||(0,St.isAfter)(s,o))&&(!i||(0,St.isBefore)(s,i)),c=!l&&(0,St.isSameDay)(s,o),d=!l&&(0,St.isSameDay)(s,i);return Kr.default.createElement("span",{className:(0,wu.default)({[a.dayStartPreview]:c,[a.dayInPreview]:l,[a.dayEndPreview]:d}),style:{color:r.color}})}),qa(this,"renderSelectionPlaceholders",()=>{const{styles:r,ranges:s,day:a}=this.props;return this.props.displayMode==="date"?(0,St.isSameDay)(this.props.day,this.props.date)?Kr.default.createElement("span",{className:r.selected,style:{color:this.props.color}}):null:s.reduce((i,l)=>{let c=l.startDate,d=l.endDate;c&&d&&(0,St.isBefore)(d,c)&&([c,d]=[d,c]),c=c?(0,St.endOfDay)(c):null,d=d?(0,St.startOfDay)(d):null;const u=(!c||(0,St.isAfter)(a,c))&&(!d||(0,St.isBefore)(a,d)),f=!u&&(0,St.isSameDay)(a,c),h=!u&&(0,St.isSameDay)(a,d);return u||f||h?[...i,{isStartEdge:f,isEndEdge:h,isInRange:u,...l}]:i},[]).map((i,l)=>Kr.default.createElement("span",{key:l,className:(0,wu.default)({[r.startEdge]:i.isStartEdge,[r.endEdge]:i.isEndEdge,[r.inRange]:i.isInRange}),style:{color:i.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:e}=this.props;return Kr.default.createElement("button",vu({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),Kr.default.createElement("span",{className:this.props.styles.dayNumber},(e==null?void 0:e(this.props.day))||Kr.default.createElement("span",null,(0,St.format)(this.props.day,this.props.dayDisplayFormat))))}}xu.defaultProps={};const dI=Vn.rangeShape=be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string,key:be.default.string,autoFocus:be.default.bool,disabled:be.default.bool,showDateDisplay:be.default.bool});xu.propTypes={day:be.default.object.isRequired,dayDisplayFormat:be.default.string,date:be.default.object,ranges:be.default.arrayOf(dI),preview:be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string}),onPreviewChange:be.default.func,previewColor:be.default.string,disabled:be.default.bool,isPassive:be.default.bool,isToday:be.default.bool,isWeekend:be.default.bool,isStartOfWeek:be.default.bool,isEndOfWeek:be.default.bool,isStartOfMonth:be.default.bool,isEndOfMonth:be.default.bool,color:be.default.string,displayMode:be.default.oneOf(["dateRange","date"]),styles:be.default.object,onMouseDown:be.default.func,onMouseUp:be.default.func,onMouseEnter:be.default.func,dayContentRenderer:be.default.func},Vn.default=xu;var il={},Gn={};Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.calcFocusDate=hI,Gn.findNextRangeIndex=gI,Gn.generateStyles=pI,Gn.getMonthDisplayRange=mI;var uI=fI(tr),Qn=Xr;function fI(t){return t&&t.__esModule?t:{default:t}}function hI(t,e){const{shownDate:n,date:r,months:s,ranges:a,focusedRange:o,displayMode:i}=e;let l;if(i==="dateRange"){const d=a[o[0]]||{};l={start:d.startDate,end:d.endDate}}else l={start:r,end:r};l.start=(0,Qn.startOfMonth)(l.start||new Date),l.end=(0,Qn.endOfMonth)(l.end||l.start);const c=l.start||l.end||n||new Date;return t?(0,Qn.differenceInCalendarMonths)(l.start,l.end)>s?t:c:n||c}function gI(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const n=t.findIndex((r,s)=>s>e&&r.autoFocus!==!1&&!r.disabled);return n!==-1?n:t.findIndex(r=>r.autoFocus!==!1&&!r.disabled)}function mI(t,e,n){const r=(0,Qn.startOfMonth)(t,e),s=(0,Qn.endOfMonth)(t,e),a=(0,Qn.startOfWeek)(r,e);let o=(0,Qn.endOfWeek)(s,e);return n&&(0,Qn.differenceInCalendarDays)(o,a)<=34&&(o=(0,Qn.addDays)(o,7)),{start:a,end:o,startDateOfMonth:r,endDateOfMonth:s}}function pI(t){return t.length?t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(s=>{n[s]=(0,uI.default)(n[s],r[s])}),n),{}):{}}Object.defineProperty(il,"__esModule",{value:!0}),il.default=void 0;var Gr=bw(_),Ne=yI(Yn),mw=bw(Vn),st=Xr,bI=Gn;function yI(t){return t&&t.__esModule?t:{default:t}}function pw(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(pw=function(r){return r?n:e})(t)}function bw(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=pw(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function ku(){return ku=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},ku.apply(this,arguments)}function wI(t,e,n){const r=new Date;return Gr.default.createElement("div",{className:t.weekDays},(0,st.eachDayOfInterval)({start:(0,st.startOfWeek)(r,e),end:(0,st.endOfWeek)(r,e)}).map((s,a)=>Gr.default.createElement("span",{className:t.weekDay,key:a},(0,st.format)(s,n,e))))}class _u extends Gr.PureComponent{render(){const e=new Date,{displayMode:n,focusedRange:r,drag:s,styles:a,disabledDates:o,disabledDay:i}=this.props,l=this.props.minDate&&(0,st.startOfDay)(this.props.minDate),c=this.props.maxDate&&(0,st.endOfDay)(this.props.maxDate),d=(0,bI.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let u=this.props.ranges;if(n==="dateRange"&&s.status){let{startDate:h,endDate:m}=s.range;u=u.map((p,b)=>b!==r[0]?p:{...p,startDate:h,endDate:m})}const f=this.props.showPreview&&!s.disablePreview;return Gr.default.createElement("div",{className:a.month,style:this.props.style},this.props.showMonthName?Gr.default.createElement("div",{className:a.monthName},(0,st.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&wI(a,this.props.dateOptions,this.props.weekdayDisplayFormat),Gr.default.createElement("div",{className:a.days,onMouseLeave:this.props.onMouseLeave},(0,st.eachDayOfInterval)({start:d.start,end:d.end}).map((h,m)=>{const p=(0,st.isSameDay)(h,d.startDateOfMonth),b=(0,st.isSameDay)(h,d.endDateOfMonth),v=l&&(0,st.isBefore)(h,l)||c&&(0,st.isAfter)(h,c),x=o.some(w=>(0,st.isSameDay)(w,h)),k=i(h);return Gr.default.createElement(mw.default,ku({},this.props,{ranges:u,day:h,preview:f?this.props.preview:null,isWeekend:(0,st.isWeekend)(h,this.props.dateOptions),isToday:(0,st.isSameDay)(h,e),isStartOfWeek:(0,st.isSameDay)(h,(0,st.startOfWeek)(h,this.props.dateOptions)),isEndOfWeek:(0,st.isSameDay)(h,(0,st.endOfWeek)(h,this.props.dateOptions)),isStartOfMonth:p,isEndOfMonth:b,key:m,disabled:v||x||k,isPassive:!(0,st.isWithinInterval)(h,{start:d.startDateOfMonth,end:d.endDateOfMonth}),styles:a,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:s.range,drag:s.status}))})))}}_u.defaultProps={},_u.propTypes={style:Ne.default.object,styles:Ne.default.object,month:Ne.default.object,drag:Ne.default.object,dateOptions:Ne.default.object,disabledDates:Ne.default.array,disabledDay:Ne.default.func,preview:Ne.default.shape({startDate:Ne.default.object,endDate:Ne.default.object}),showPreview:Ne.default.bool,displayMode:Ne.default.oneOf(["dateRange","date"]),minDate:Ne.default.object,maxDate:Ne.default.object,ranges:Ne.default.arrayOf(mw.rangeShape),focusedRange:Ne.default.arrayOf(Ne.default.number),onDragSelectionStart:Ne.default.func,onDragSelectionEnd:Ne.default.func,onDragSelectionMove:Ne.default.func,onMouseLeave:Ne.default.func,monthDisplayFormat:Ne.default.string,weekdayDisplayFormat:Ne.default.string,dayDisplayFormat:Ne.default.string,showWeekDays:Ne.default.bool,showMonthName:Ne.default.bool,fixedHeight:Ne.default.bool},il.default=_u;var ll={};Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0;var cl=xI(_),Pn=yw(Yn),vI=yw(tr),$a=Xr;function yw(t){return t&&t.__esModule?t:{default:t}}function ww(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ww=function(r){return r?n:e})(t)}function xI(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ww(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Su(t,e,n){return e=kI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kI(t){var e=_I(t,"string");return typeof e=="symbol"?e:String(e)}function _I(t,e){if(typeof t!="object"||!t)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)}class Ou extends cl.PureComponent{constructor(e,n){super(e,n),Su(this,"onKeyDown",r=>{const{value:s}=this.state;r.key==="Enter"&&this.update(s)}),Su(this,"onChange",r=>{this.setState({value:r.target.value,changed:!0,invalid:!1})}),Su(this,"onBlur",()=>{const{value:r}=this.state;this.update(r)}),this.state={invalid:!1,changed:!1,value:this.formatDate(e)}}componentDidUpdate(e){const{value:n}=e;(0,$a.isEqual)(n,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(e){let{value:n,dateDisplayFormat:r,dateOptions:s}=e;return n&&(0,$a.isValid)(n)?(0,$a.format)(n,r,s):""}update(e){const{invalid:n,changed:r}=this.state;if(n||!r||!e)return;const{onChange:s,dateDisplayFormat:a,dateOptions:o}=this.props,i=(0,$a.parse)(e,a,new Date,o);(0,$a.isValid)(i)?this.setState({changed:!1},()=>s(i)):this.setState({invalid:!0})}render(){const{className:e,readOnly:n,placeholder:r,ariaLabel:s,disabled:a,onFocus:o}=this.props,{value:i,invalid:l}=this.state;return cl.default.createElement("span",{className:(0,vI.default)("rdrDateInput",e)},cl.default.createElement("input",{readOnly:n,disabled:a,value:i,placeholder:r,"aria-label":s,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:o}),l&&cl.default.createElement("span",{className:"rdrWarning"},"⚠"))}}Ou.propTypes={value:Pn.default.object,placeholder:Pn.default.string,disabled:Pn.default.bool,readOnly:Pn.default.bool,dateOptions:Pn.default.object,dateDisplayFormat:Pn.default.string,ariaLabel:Pn.default.string,className:Pn.default.string,onFocus:Pn.default.func.isRequired,onChange:Pn.default.func.isRequired},Ou.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},ll.default=Ou;var vw={};(function(t){(function(e,n){n(t,_,g)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:zk,function(e,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function s(R){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},s(R)}function a(R,A){if(!(R instanceof A))throw new TypeError("Cannot call a class as a function")}function o(R,A){for(var I=0;I<A.length;I++){var M=A[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(R,x(M.key),M)}}function i(R,A,I){return A&&o(R.prototype,A),I&&o(R,I),Object.defineProperty(R,"prototype",{writable:!1}),R}function l(R,A,I){return A=f(A),c(R,u()?Reflect.construct(A,I||[],f(R).constructor):A.apply(R,I))}function c(R,A){if(A&&(s(A)=="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(R)}function d(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function u(){try{var R=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!R})()}function f(R){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(A){return A.__proto__||Object.getPrototypeOf(A)},f(R)}function h(R,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(A&&A.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),A&&m(R,A)}function m(R,A){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,M){return I.__proto__=M,I},m(R,A)}function p(R,A){var I=Object.keys(R);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(R);A&&(M=M.filter(function(H){return Object.getOwnPropertyDescriptor(R,H).enumerable})),I.push.apply(I,M)}return I}function b(R){for(var A=1;A<arguments.length;A++){var I=arguments[A]!=null?arguments[A]:{};A%2?p(Object(I),!0).forEach(function(M){v(R,M,I[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(I)):p(Object(I)).forEach(function(M){Object.defineProperty(R,M,Object.getOwnPropertyDescriptor(I,M))})}return R}function v(R,A,I){return(A=x(A))in R?Object.defineProperty(R,A,{value:I,enumerable:!0,configurable:!0,writable:!0}):R[A]=I,R}function x(R){var A=k(R,"string");return s(A)=="symbol"?A:A+""}function k(R,A){if(s(R)!="object"||!R)return R;var I=R[Symbol.toPrimitive];if(I!==void 0){var M=I.call(R,A);if(s(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(R)}var w={x:"clientWidth",y:"clientHeight"},y={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},N={x:"offsetWidth",y:"offsetHeight"},D={x:"offsetLeft",y:"offsetTop"},T={x:"overflowX",y:"overflowY"},E={x:"scrollWidth",y:"scrollHeight"},Y={x:"scrollLeft",y:"scrollTop"},L={x:"width",y:"height"},O=function(){},C=function(){if(typeof window>"u")return!1;var R=!1;try{document.createElement("div").addEventListener("test",O,{get passive(){return R=!0,!1}})}catch{}return R}()?{passive:!0}:!1,P="ReactList failed to reach a stable state.",F=40,U=function(A,I){for(var M in I)if(A[M]!==I[M])return!1;return!0},Z=function(A){for(var I=A.props.axis,M=A.getEl(),H=T[I];M=M.parentElement;)switch(window.getComputedStyle(M)[H]){case"auto":case"scroll":case"overlay":return M}return window},ee=function(A){var I=A.props.axis,M=A.scrollParent;return M===window?window[S[I]]:M[w[I]]},j=function(A,I){var M=A.length,H=A.minSize,J=A.type,K=I.from,q=I.size,B=I.itemsPerRow;q=Math.max(q,H);var te=q%B;return te&&(q+=B-te),q>M&&(q=M),K=J==="simple"||!K?0:Math.max(Math.min(K,M-q),0),(te=K%B)&&(K-=te,q+=te),K===I.from&&q===I.size?I:b(b({},I),{},{from:K,size:q})},V=e.default=function(R){function A(I){var M;return a(this,A),M=l(this,A,[I]),M.state=j(I,{itemsPerRow:1,from:I.initialIndex,size:0}),M.cache={},M.cachedScrollPosition=null,M.prevPrevState={},M.unstable=!1,M.updateCounter=0,M}return h(A,R),i(A,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(M){var H=this;if(this.props.axis!==M.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>F)return this.unstable=!0,console.error(P);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){H.updateCounter=0,delete H.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(M,H){if(U(this.state,M))return H();this.setState(M,H)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,C),this.scrollParent.removeEventListener("mousewheel",O,C)}},{key:"getOffset",value:function(M){var H=this.props.axis,J=M[y[H]]||0,K=D[H];do J+=M[K]||0;while(M=M.offsetParent);return J}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var M=this.scrollParent,H=this.props.axis,J=Y[H],K=M===window?document.body[J]||document.documentElement[J]:M[J],q=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),B=Math.max(0,Math.min(K,q)),te=this.getEl();return this.cachedScrollPosition=this.getOffset(M)+B-this.getOffset(te),this.cachedScrollPosition}},{key:"setScroll",value:function(M){var H=this.scrollParent,J=this.props.axis;if(M+=this.getOffset(this.getEl()),H===window)return window.scrollTo(0,M);M-=this.getOffset(this.scrollParent),H[Y[J]]=M}},{key:"getScrollSize",value:function(){var M=this.scrollParent,H=document,J=H.body,K=H.documentElement,q=E[this.props.axis];return M===window?Math.max(J[q],K[q]):M[q]}},{key:"hasDeterminateSize",value:function(){var M=this.props,H=M.itemSizeGetter,J=M.type;return J==="uniform"||H}},{key:"getStartAndEnd",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,H=this.getScrollPosition(),J=Math.max(0,H-M),K=H+this.props.scrollParentViewportSizeGetter(this)+M;return this.hasDeterminateSize()&&(K=Math.min(K,this.getSpaceBefore(this.props.length))),{start:J,end:K}}},{key:"getItemSizeAndItemsPerRow",value:function(){var M=this.props,H=M.axis,J=M.useStaticSize,K=this.state,q=K.itemSize,B=K.itemsPerRow;if(J&&q&&B)return{itemSize:q,itemsPerRow:B};var te=this.items.children;if(!te.length)return{};var W=te[0],ne=W[N[H]],se=Math.abs(ne-q);if((isNaN(se)||se>=1)&&(q=ne),!q)return{};var oe=D[H],ge=W[oe];B=1;for(var ce=te[B];ce&&ce[oe]===ge;ce=te[B])++B;return{itemSize:q,itemsPerRow:B}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(M){return this.clearSizeCache(),this.updateFrame(M)}},{key:"updateFrame",value:function(M){switch(this.updateScrollParent(),typeof M!="function"&&(M=O),this.props.type){case"simple":return this.updateSimpleFrame(M);case"variable":return this.updateVariableFrame(M);case"uniform":return this.updateUniformFrame(M)}}},{key:"updateScrollParent",value:function(){var M=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),M!==this.scrollParent&&(M&&(M.removeEventListener("scroll",this.updateFrameAndClearCache),M.removeEventListener("mousewheel",O)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,C),this.scrollParent.addEventListener("mousewheel",O,C))}},{key:"updateSimpleFrame",value:function(M){var H=this.getStartAndEnd(),J=H.end,K=this.items.children,q=0;if(K.length){var B=this.props.axis,te=K[0],W=K[K.length-1];q=this.getOffset(W)+W[N[B]]-this.getOffset(te)}if(q>J)return M();var ne=this.props,se=ne.pageSize,oe=ne.length,ge=Math.min(this.state.size+se,oe);this.maybeSetState({size:ge},M)}},{key:"updateVariableFrame",value:function(M){this.props.itemSizeGetter||this.cacheSizes();for(var H=this.getStartAndEnd(),J=H.start,K=H.end,q=this.props,B=q.length,te=q.pageSize,W=0,ne=0,se=0,oe=B-1;ne<oe;){var ge=this.getSizeOfItem(ne);if(ge==null||W+ge>J)break;W+=ge,++ne}for(var ce=B-ne;se<ce&&W<K;){var ae=this.getSizeOfItem(ne+se);if(ae==null){se=Math.min(se+te,ce);break}W+=ae,++se}this.maybeSetState(j(this.props,{from:ne,itemsPerRow:1,size:se}),M)}},{key:"updateUniformFrame",value:function(M){var H=this.getItemSizeAndItemsPerRow(),J=H.itemSize,K=H.itemsPerRow;if(!J||!K)return M();var q=this.getStartAndEnd(),B=q.start,te=q.end,W=j(this.props,{from:Math.floor(B/J)*K,size:(Math.ceil((te-B)/J)+1)*K,itemsPerRow:K}),ne=W.from,se=W.size;return this.maybeSetState({itemsPerRow:K,from:ne,itemSize:J,size:se},M)}},{key:"getSpaceBefore",value:function(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(H[M]!=null)return H[M];var J=this.state,K=J.itemSize,q=J.itemsPerRow;if(K)return H[M]=Math.floor(M/q)*K;for(var B=M;B>0&&H[--B]==null;);for(var te=H[B]||0,W=B;W<M;++W){H[W]=te;var ne=this.getSizeOfItem(W);if(ne==null)break;te+=ne}return H[M]=te}},{key:"cacheSizes",value:function(){for(var M=this.cache,H=this.state.from,J=this.items.children,K=N[this.props.axis],q=0,B=J.length;q<B;++q)M[H+q]=J[q][K]}},{key:"getSizeOfItem",value:function(M){var H=this.cache,J=this.items,K=this.props,q=K.axis,B=K.itemSizeGetter,te=K.itemSizeEstimator,W=K.type,ne=this.state,se=ne.from,oe=ne.itemSize,ge=ne.size;if(oe)return oe;if(B)return B(M);if(M in H)return H[M];if(W==="simple"&&M>=se&&M<se+ge&&J){var ce=J.children[M-se];if(ce)return ce[N[q]]}if(te)return te(M,H)}},{key:"scrollTo",value:function(M){M!=null&&this.setScroll(this.getSpaceBefore(M))}},{key:"scrollAround",value:function(M){var H=this.getScrollPosition(),J=this.getSpaceBefore(M),K=J-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(M),q=Math.min(K,J),B=Math.max(K,J);if(H<=q)return this.setScroll(q);if(H>B)return this.setScroll(B)}},{key:"getVisibleRange",value:function(){for(var M=this.state,H=M.from,J=M.size,K=this.getStartAndEnd(0),q=K.start,B=K.end,te={},W,ne,se=H;se<H+J;++se){var oe=this.getSpaceBefore(se,te),ge=oe+this.getSizeOfItem(se);W==null&&ge>q&&(W=se),W!=null&&oe<B&&(ne=se)}return[W,ne]}},{key:"renderItems",value:function(){for(var M=this,H=this.props,J=H.itemRenderer,K=H.itemsRenderer,q=this.state,B=q.from,te=q.size,W=[],ne=0;ne<te;++ne)W.push(J(B+ne,ne));return K(W,function(se){return M.items=se})}},{key:"render",value:function(){var M=this,H=this.props,J=H.axis,K=H.length,q=H.type,B=H.useTranslate3d,te=this.state,W=te.from,ne=te.itemsPerRow,se=this.renderItems();if(q==="simple")return se;var oe={position:"relative"},ge={},ce=Math.ceil(K/ne)*ne,ae=this.getSpaceBefore(ce,ge);ae&&(oe[L[J]]=ae,J==="x"&&(oe.overflowX="hidden"));var Ye=this.getSpaceBefore(W,ge),pe=J==="x"?Ye:0,ze=J==="y"?Ye:0,Xe=B?"translate3d(".concat(pe,"px, ").concat(ze,"px, 0)"):"translate(".concat(pe,"px, ").concat(ze,"px)"),$e={msTransform:Xe,WebkitTransform:Xe,transform:Xe};return(0,r.jsx)("div",{style:oe,ref:function(Xt){return M.el=Xt},children:(0,r.jsx)("div",{style:$e,children:se})})}}],[{key:"getDerivedStateFromProps",value:function(M,H){var J=j(M,H);return J===H?null:J}}])}(n.Component);v(V,"displayName","ReactList"),v(V,"defaultProps",{axis:"y",itemRenderer:function(A,I){return(0,r.jsx)("div",{children:A},I)},itemsRenderer:function(A,I){return(0,r.jsx)("div",{ref:I,children:A})},length:0,minSize:1,pageSize:10,scrollParentGetter:Z,scrollParentViewportSizeGetter:ee,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})})})(vw);function SI(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),s=n.length;if(r.length!==s)return!1;for(var a=0;a<s;a++){var o=n[a];if(t[o]!==e[o]||!Object.prototype.hasOwnProperty.call(e,o))return!1}return!0}function OI(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=t.length;if(e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const CI=Yf(Object.freeze(Object.defineProperty({__proto__:null,shallowEqualArrays:OI,shallowEqualObjects:SI},Symbol.toStringTag,{value:"Module"})));var Cu={},Du={};Du.formatDistance=void 0;const DI={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},MI=(t,e,n)=>{let r;const s=DI[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};Du.formatDistance=MI;var Mu={},xw={};xw.buildFormatLongFn=EI;function EI(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}Mu.formatLong=void 0;var Eu=xw;const PI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},TI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},NI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};Mu.formatLong={date:(0,Eu.buildFormatLongFn)({formats:PI,defaultWidth:"full"}),time:(0,Eu.buildFormatLongFn)({formats:TI,defaultWidth:"full"}),dateTime:(0,Eu.buildFormatLongFn)({formats:NI,defaultWidth:"full"})};var Pu={};Pu.formatRelative=void 0;const jI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},II=(t,e,n,r)=>jI[t];Pu.formatRelative=II;var Tu={},kw={};kw.buildLocalizeFn=AI;function AI(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}Tu.localize=void 0;var eo=kw;const RI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},LI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},FI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},WI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},BI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},zI={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},HI=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"};Tu.localize={ordinalNumber:HI,era:(0,eo.buildLocalizeFn)({values:RI,defaultWidth:"wide"}),quarter:(0,eo.buildLocalizeFn)({values:LI,defaultWidth:"wide",argumentCallback:t=>t-1}),month:(0,eo.buildLocalizeFn)({values:FI,defaultWidth:"wide"}),day:(0,eo.buildLocalizeFn)({values:WI,defaultWidth:"wide"}),dayPeriod:(0,eo.buildLocalizeFn)({values:BI,defaultWidth:"wide",formattingValues:zI,defaultFormattingWidth:"wide"})};var Nu={},_w={};_w.buildMatchFn=YI;function YI(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?UI(i,u=>u.test(o)):VI(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function VI(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function UI(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}var Sw={};Sw.buildMatchPatternFn=XI;function XI(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}Nu.match=void 0;var to=_w,KI=Sw;const GI=/^(\d+)(th|st|nd|rd)?/i,QI=/\d+/i,ZI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},JI={any:[/^b/i,/^(a|c)/i]},qI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$I={any:[/1/i,/2/i,/3/i,/4/i]},eA={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tA={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nA={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rA={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sA={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},aA={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};Nu.match={ordinalNumber:(0,KI.buildMatchPatternFn)({matchPattern:GI,parsePattern:QI,valueCallback:t=>parseInt(t,10)}),era:(0,to.buildMatchFn)({matchPatterns:ZI,defaultMatchWidth:"wide",parsePatterns:JI,defaultParseWidth:"any"}),quarter:(0,to.buildMatchFn)({matchPatterns:qI,defaultMatchWidth:"wide",parsePatterns:$I,defaultParseWidth:"any",valueCallback:t=>t+1}),month:(0,to.buildMatchFn)({matchPatterns:eA,defaultMatchWidth:"wide",parsePatterns:tA,defaultParseWidth:"any"}),day:(0,to.buildMatchFn)({matchPatterns:nA,defaultMatchWidth:"wide",parsePatterns:rA,defaultParseWidth:"any"}),dayPeriod:(0,to.buildMatchFn)({matchPatterns:sA,defaultMatchWidth:"any",parsePatterns:aA,defaultParseWidth:"any"})},Cu.enUS=void 0;var oA=Du,iA=Mu,lA=Pu,cA=Tu,dA=Nu;Cu.enUS={code:"en-US",formatDistance:oA.formatDistance,formatLong:iA.formatLong,formatRelative:lA.formatRelative,localize:cA.localize,match:dA.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.default=void 0,Qr.default={dateRangeWrapper:"rdrDateRangeWrapper",calendarWrapper:"rdrCalendarWrapper",dateDisplay:"rdrDateDisplay",dateDisplayItem:"rdrDateDisplayItem",dateDisplayItemActive:"rdrDateDisplayItemActive",monthAndYearWrapper:"rdrMonthAndYearWrapper",monthAndYearPickers:"rdrMonthAndYearPickers",nextPrevButton:"rdrNextPrevButton",month:"rdrMonth",weekDays:"rdrWeekDays",weekDay:"rdrWeekDay",days:"rdrDays",day:"rdrDay",dayNumber:"rdrDayNumber",dayPassive:"rdrDayPassive",dayToday:"rdrDayToday",dayStartOfWeek:"rdrDayStartOfWeek",dayEndOfWeek:"rdrDayEndOfWeek",daySelected:"rdrDaySelected",dayDisabled:"rdrDayDisabled",dayStartOfMonth:"rdrDayStartOfMonth",dayEndOfMonth:"rdrDayEndOfMonth",dayWeekend:"rdrDayWeekend",dayStartPreview:"rdrDayStartPreview",dayInPreview:"rdrDayInPreview",dayEndPreview:"rdrDayEndPreview",dayHovered:"rdrDayHovered",dayActive:"rdrDayActive",inRange:"rdrInRange",endEdge:"rdrEndEdge",startEdge:"rdrStartEdge",prevButton:"rdrPprevButton",nextButton:"rdrNextButton",selected:"rdrSelected",months:"rdrMonths",monthPicker:"rdrMonthPicker",yearPicker:"rdrYearPicker",dateDisplayWrapper:"rdrDateDisplayWrapper",definedRangesWrapper:"rdrDefinedRangesWrapper",staticRanges:"rdrStaticRanges",staticRange:"rdrStaticRange",inputRanges:"rdrInputRanges",inputRange:"rdrInputRange",inputRangeInput:"rdrInputRangeInput",dateRangePickerWrapper:"rdrDateRangePickerWrapper",staticRangeLabel:"rdrStaticRangeLabel",staticRangeSelected:"rdrStaticRangeSelected",monthName:"rdrMonthName",infiniteMonths:"rdrInfiniteMonths",monthsVertical:"rdrMonthsVertical",monthsHorizontal:"rdrMonthsHorizontal"};var dl={};Object.defineProperty(dl,"__esModule",{value:!0}),dl.ariaLabelsShape=void 0;var Zn=uA(Yn);function uA(t){return t&&t.__esModule?t:{default:t}}dl.ariaLabelsShape=Zn.default.shape({dateInput:Zn.default.objectOf(Zn.default.shape({startDate:Zn.default.string,endDate:Zn.default.string})),monthPicker:Zn.default.string,yearPicker:Zn.default.string,prevButton:Zn.default.string,nextButton:Zn.default.string}),Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.default=void 0;var Te=yA(_),ue=Ls(Yn),fA=Vn,Ow=Ls(il),Cw=Ls(ll),ul=Gn,Zr=Ls(tr),hA=Ls(vw),gA=CI,Fe=Xr,mA=Cu,pA=Ls(Qr),bA=dl;function Ls(t){return t&&t.__esModule?t:{default:t}}function Dw(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Dw=function(r){return r?n:e})(t)}function yA(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Dw(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function fl(){return fl=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},fl.apply(this,arguments)}function nn(t,e,n){return e=wA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wA(t){var e=vA(t,"string");return typeof e=="symbol"?e:String(e)}function vA(t,e){if(typeof t!="object"||!t)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)}class Fs extends Te.PureComponent{constructor(e,n){var r;super(e,n),r=this,nn(this,"focusToDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.props,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!a.scroll.enabled){if(o&&a.preventSnapRefocus){const c=(0,Fe.differenceInCalendarMonths)(s,r.state.focusedDate),d=a.calendarFocus==="forwards"&&c>=0,u=a.calendarFocus==="backwards"&&c<=0;if((d||u)&&Math.abs(c)<a.months)return}r.setState({focusedDate:s});return}const i=(0,Fe.differenceInCalendarMonths)(s,a.minDate,r.dateOptions),l=r.list.getVisibleRange();o&&l.includes(i)||(r.isFirstRender=!0,r.list.scrollTo(i),r.setState({focusedDate:s}))}),nn(this,"updateShownDate",function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.props;const a=s.scroll.enabled?{...s,months:r.list.getVisibleRange().length}:s,o=(0,ul.calcFocusDate)(r.state.focusedDate,a);r.focusToDate(o,a)}),nn(this,"updatePreview",s=>{if(!s){this.setState({preview:null});return}const a={startDate:s,endDate:s,color:this.props.color};this.setState({preview:a})}),nn(this,"changeShownDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:o}=r.state,{onShownDateChange:i,minDate:l,maxDate:c}=r.props,d={monthOffset:()=>(0,Fe.addMonths)(o,s),setMonth:()=>(0,Fe.setMonth)(o,s),setYear:()=>(0,Fe.setYear)(o,s),set:()=>s},u=(0,Fe.min)([(0,Fe.max)([d[a](),l]),c]);r.focusToDate(u,r.props,!1),i&&i(u)}),nn(this,"handleRangeFocusChange",(s,a)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([s,a])}),nn(this,"handleScroll",()=>{const{onShownDateChange:s,minDate:a}=this.props,{focusedDate:o}=this.state,{isFirstRender:i}=this,l=this.list.getVisibleRange();if(l[0]===void 0)return;const c=(0,Fe.addMonths)(a,l[0]||0);!(0,Fe.isSameMonth)(c,o)&&!i&&(this.setState({focusedDate:c}),s&&s(c)),this.isFirstRender=!1}),nn(this,"renderMonthAndYear",(s,a,o)=>{const{showMonthArrow:i,minDate:l,maxDate:c,showMonthAndYearPickers:d,ariaLabels:u}=o,f=(c||Fs.defaultProps.maxDate).getFullYear(),h=(l||Fs.defaultProps.minDate).getFullYear(),m=this.styles;return Te.default.createElement("div",{onMouseUp:p=>p.stopPropagation(),className:m.monthAndYearWrapper},i?Te.default.createElement("button",{type:"button",className:(0,Zr.default)(m.nextPrevButton,m.prevButton),onClick:()=>a(-1,"monthOffset"),"aria-label":u.prevButton},Te.default.createElement("i",null)):null,d?Te.default.createElement("span",{className:m.monthAndYearPickers},Te.default.createElement("span",{className:m.monthPicker},Te.default.createElement("select",{value:s.getMonth(),onChange:p=>a(p.target.value,"setMonth"),"aria-label":u.monthPicker},this.state.monthNames.map((p,b)=>Te.default.createElement("option",{key:b,value:b},p)))),Te.default.createElement("span",{className:m.monthAndYearDivider}),Te.default.createElement("span",{className:m.yearPicker},Te.default.createElement("select",{value:s.getFullYear(),onChange:p=>a(p.target.value,"setYear"),"aria-label":u.yearPicker},new Array(f-h+1).fill(f).map((p,b)=>{const v=p-b;return Te.default.createElement("option",{key:v,value:v},v)})))):Te.default.createElement("span",{className:m.monthAndYearPickers},this.state.monthNames[s.getMonth()]," ",s.getFullYear()),i?Te.default.createElement("button",{type:"button",className:(0,Zr.default)(m.nextPrevButton,m.nextButton),onClick:()=>a(1,"monthOffset"),"aria-label":u.nextButton},Te.default.createElement("i",null)):null)}),nn(this,"renderDateDisplay",()=>{const{focusedRange:s,color:a,ranges:o,rangeColors:i,dateDisplayFormat:l,editableDateInputs:c,startDatePlaceholder:d,endDatePlaceholder:u,ariaLabels:f}=this.props,h=i[s[0]]||a,m=this.styles;return Te.default.createElement("div",{className:m.dateDisplayWrapper},o.map((p,b)=>p.showDateDisplay===!1||p.disabled&&!p.showDateDisplay?null:Te.default.createElement("div",{className:m.dateDisplay,key:b,style:{color:p.color||h}},Te.default.createElement(Cw.default,{className:(0,Zr.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:s[0]===b&&s[1]===0}),readOnly:!c,disabled:p.disabled,value:p.startDate,placeholder:d,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:f.dateInput&&f.dateInput[p.key]&&f.dateInput[p.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,0)}),Te.default.createElement(Cw.default,{className:(0,Zr.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:s[0]===b&&s[1]===1}),readOnly:!c,disabled:p.disabled,value:p.endDate,placeholder:u,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:f.dateInput&&f.dateInput[p.key]&&f.dateInput[p.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,1)}))))}),nn(this,"onDragSelectionStart",s=>{const{onChange:a,dragSelectionEnabled:o}=this.props;o?this.setState({drag:{status:!0,range:{startDate:s,endDate:s},disablePreview:!0}}):a&&a(s)}),nn(this,"onDragSelectionEnd",s=>{const{updateRange:a,displayMode:o,onChange:i,dragSelectionEnabled:l}=this.props;if(!l)return;if(o==="date"||!this.state.drag.status){i&&i(s);return}const c={startDate:this.state.drag.range.startDate,endDate:s};o!=="dateRange"||(0,Fe.isSameDay)(c.startDate,s)?this.setState({drag:{status:!1,range:{}}},()=>i&&i(s)):this.setState({drag:{status:!1,range:{}}},()=>{a&&a(c)})}),nn(this,"onDragSelectionMove",s=>{const{drag:a}=this.state;!a.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:a.status,range:{startDate:a.range.startDate,endDate:s},disablePreview:!0}})}),nn(this,"estimateMonthSize",(s,a)=>{const{direction:o,minDate:i}=this.props,{scrollArea:l}=this.state;if(a&&(this.listSizeCache=a,a[s]))return a[s];if(o==="horizontal")return l.monthWidth;const c=(0,Fe.addMonths)(i,s),{start:d,end:u}=(0,ul.getMonthDisplayRange)(c,this.dateOptions);return(0,Fe.differenceInDays)(u,d,this.dateOptions)+1>7*5?l.longMonthHeight:l.monthHeight}),this.dateOptions={locale:e.locale},e.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=e.weekStartsOn),this.styles=(0,ul.generateStyles)([pA.default,e.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,ul.calcFocusDate)(null,e),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(e)}}getMonthNames(){return[...Array(12).keys()].map(e=>this.props.locale.localize.month(e))}calcScrollArea(e){const{direction:n,months:r,scroll:s}=e;if(!s.enabled)return{enabled:!1};const a=s.longMonthHeight||s.monthHeight;return n==="vertical"?{enabled:!0,monthHeight:s.monthHeight||220,longMonthHeight:a||260,calendarWidth:"auto",calendarHeight:(s.calendarHeight||a||240)*r}:{enabled:!0,monthWidth:s.monthWidth||332,calendarWidth:(s.calendarWidth||s.monthWidth||332)*r,monthHeight:a||300,calendarHeight:a||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(e){const r={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[r]!==e[r]&&this.updateShownDate(this.props),(e.locale!==this.props.locale||e.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,gA.shallowEqualObjects)(e.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const e=new Date;return Te.default.createElement("div",{className:this.styles.weekDays},(0,Fe.eachDayOfInterval)({start:(0,Fe.startOfWeek)(e,this.dateOptions),end:(0,Fe.endOfWeek)(e,this.dateOptions)}).map((n,r)=>Te.default.createElement("span",{className:this.styles.weekDay,key:r},(0,Fe.format)(n,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:e,onPreviewChange:n,scroll:r,direction:s,disabledDates:a,disabledDay:o,maxDate:i,minDate:l,rangeColors:c,color:d,navigatorRenderer:u,className:f,preview:h}=this.props,{scrollArea:m,focusedDate:p}=this.state,b=s==="vertical",v=u||this.renderMonthAndYear,x=this.props.ranges.map((k,w)=>({...k,color:k.color||c[w]||d}));return Te.default.createElement("div",{className:(0,Zr.default)(this.styles.calendarWrapper,f),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},e&&this.renderDateDisplay(),v(p,this.changeShownDate,this.props),r.enabled?Te.default.createElement("div",null,b&&this.renderWeekdays(this.dateOptions),Te.default.createElement("div",{className:(0,Zr.default)(this.styles.infiniteMonths,b?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>n&&n(),style:{width:m.calendarWidth+11,height:m.calendarHeight+11},onScroll:this.handleScroll},Te.default.createElement(hA.default,{length:(0,Fe.differenceInCalendarMonths)((0,Fe.endOfMonth)(i),(0,Fe.addDays)((0,Fe.startOfMonth)(l),-1),this.dateOptions),treshold:500,type:"variable",ref:k=>this.list=k,itemSizeEstimator:this.estimateMonthSize,axis:b?"y":"x",itemRenderer:(k,w)=>{const y=(0,Fe.addMonths)(l,k);return Te.default.createElement(Ow.default,fl({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:x,key:w,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:y,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,style:b?{height:this.estimateMonthSize(k)}:{height:m.monthHeight,width:this.estimateMonthSize(k)},showMonthName:!0,showWeekDays:!b}))}}))):Te.default.createElement("div",{className:(0,Zr.default)(this.styles.months,b?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((k,w)=>{let y=(0,Fe.addMonths)(this.state.focusedDate,w);return this.props.calendarFocus==="backwards"&&(y=(0,Fe.subMonths)(this.state.focusedDate,this.props.months-1-w)),Te.default.createElement(Ow.default,fl({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:x,key:w,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:y,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,showWeekDays:!b||w===0,showMonthName:!b||w>0}))})))}}Fs.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:mA.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,Fe.addYears)(new Date,20),minDate:(0,Fe.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},Fs.propTypes={showMonthArrow:ue.default.bool,showMonthAndYearPickers:ue.default.bool,disabledDates:ue.default.array,disabledDay:ue.default.func,minDate:ue.default.object,maxDate:ue.default.object,date:ue.default.object,onChange:ue.default.func,onPreviewChange:ue.default.func,onRangeFocusChange:ue.default.func,classNames:ue.default.object,locale:ue.default.object,shownDate:ue.default.object,onShownDateChange:ue.default.func,ranges:ue.default.arrayOf(fA.rangeShape),preview:ue.default.shape({startDate:ue.default.object,endDate:ue.default.object,color:ue.default.string}),dateDisplayFormat:ue.default.string,monthDisplayFormat:ue.default.string,weekdayDisplayFormat:ue.default.string,weekStartsOn:ue.default.number,dayDisplayFormat:ue.default.string,focusedRange:ue.default.arrayOf(ue.default.number),initialFocusedRange:ue.default.arrayOf(ue.default.number),months:ue.default.number,className:ue.default.string,showDateDisplay:ue.default.bool,showPreview:ue.default.bool,displayMode:ue.default.oneOf(["dateRange","date"]),color:ue.default.string,updateRange:ue.default.func,scroll:ue.default.shape({enabled:ue.default.bool,monthHeight:ue.default.number,longMonthHeight:ue.default.number,monthWidth:ue.default.number,calendarWidth:ue.default.number,calendarHeight:ue.default.number}),direction:ue.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:ue.default.string,endDatePlaceholder:ue.default.string,navigatorRenderer:ue.default.func,rangeColors:ue.default.arrayOf(ue.default.string),editableDateInputs:ue.default.bool,dragSelectionEnabled:ue.default.bool,fixedHeight:ue.default.bool,calendarFocus:ue.default.string,preventSnapRefocus:ue.default.bool,ariaLabels:bA.ariaLabelsShape},Xa.default=Fs,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=void 0;var Mw=SA(_),Ws=hl(Yn),Ew=hl(Xa),xA=Vn,ju=Gn,Tn=Xr,kA=hl(tr),_A=hl(Qr);function hl(t){return t&&t.__esModule?t:{default:t}}function Pw(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Pw=function(r){return r?n:e})(t)}function SA(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Pw(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Iu(){return Iu=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},Iu.apply(this,arguments)}function gl(t,e,n){return e=OA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function OA(t){var e=CA(t,"string");return typeof e=="symbol"?e:String(e)}function CA(t,e){if(typeof t!="object"||!t)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)}class Au extends Mw.Component{constructor(e,n){var r;super(e,n),r=this,gl(this,"calcNewSelection",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const o=r.props.focusedRange||r.state.focusedRange,{ranges:i,onChange:l,maxDate:c,moveRangeOnFirstSelection:d,retainEndDateOnFirstSelection:u,disabledDates:f}=r.props,h=o[0],m=i[h];if(!m||!l)return{};let{startDate:p,endDate:b}=m;const v=new Date;let x;if(!a)p=s.startDate,b=s.endDate;else if(o[1]===0){const y=(0,Tn.differenceInCalendarDays)(b||v,p),S=()=>d?(0,Tn.addDays)(s,y):u?!b||(0,Tn.isBefore)(s,b)?b:s:s||v;p=s,b=S(),c&&(b=(0,Tn.min)([b,c])),x=[o[0],1]}else b=s;let k=o[1]===0;(0,Tn.isBefore)(b,p)&&(k=!k,[p,b]=[b,p]);const w=f.filter(y=>(0,Tn.isWithinInterval)(y,{start:p,end:b}));return w.length>0&&(k?p=(0,Tn.addDays)((0,Tn.max)(w),1):b=(0,Tn.addDays)((0,Tn.min)(w),-1)),x||(x=[(0,ju.findNextRangeIndex)(r.props.ranges,o[0]),0]),{wasValid:!(w.length>0),range:{startDate:p,endDate:b},nextFocusRange:x}}),gl(this,"setSelection",(s,a)=>{const{onChange:o,ranges:i,onRangeFocusChange:l}=this.props,d=(this.props.focusedRange||this.state.focusedRange)[0],u=i[d];if(!u)return;const f=this.calcNewSelection(s,a);o({[u.key||`range${d+1}`]:{...u,...f.range}}),this.setState({focusedRange:f.nextFocusRange,preview:null}),l&&l(f.nextFocusRange)}),gl(this,"handleRangeFocusChange",s=>{this.setState({focusedRange:s}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(s)}),gl(this,"updatePreview",s=>{var c;if(!s){this.setState({preview:null});return}const{rangeColors:a,ranges:o}=this.props,i=this.props.focusedRange||this.state.focusedRange,l=((c=o[i[0]])==null?void 0:c.color)||a[i[0]]||l;this.setState({preview:{...s.range,color:l}})}),this.state={focusedRange:e.initialFocusedRange||[(0,ju.findNextRangeIndex)(e.ranges),0],preview:null},this.styles=(0,ju.generateStyles)([_A.default,e.classNames])}render(){return Mw.default.createElement(Ew.default,Iu({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:e=>{this.updatePreview(e?this.calcNewSelection(e):null)}},this.props,{displayMode:"dateRange",className:(0,kA.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:e=>this.setSelection(e,!1),ref:e=>{this.calendar=e}}))}}Au.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},Au.propTypes={...Ew.default.propTypes,onChange:Ws.default.func,onRangeFocusChange:Ws.default.func,className:Ws.default.string,ranges:Ws.default.arrayOf(xA.rangeShape),moveRangeOnFirstSelection:Ws.default.bool,retainEndDateOnFirstSelection:Ws.default.bool},Ua.default=Au;var ml={},no={},pr={};Object.defineProperty(pr,"__esModule",{value:!0}),pr.createStaticRanges=Tw,pr.defaultStaticRanges=pr.defaultInputRanges=void 0;var Ie=Xr;const dt={startOfWeek:(0,Ie.startOfWeek)(new Date),endOfWeek:(0,Ie.endOfWeek)(new Date),startOfLastWeek:(0,Ie.startOfWeek)((0,Ie.addDays)(new Date,-7)),endOfLastWeek:(0,Ie.endOfWeek)((0,Ie.addDays)(new Date,-7)),startOfToday:(0,Ie.startOfDay)(new Date),endOfToday:(0,Ie.endOfDay)(new Date),startOfYesterday:(0,Ie.startOfDay)((0,Ie.addDays)(new Date,-1)),endOfYesterday:(0,Ie.endOfDay)((0,Ie.addDays)(new Date,-1)),startOfMonth:(0,Ie.startOfMonth)(new Date),endOfMonth:(0,Ie.endOfMonth)(new Date),startOfLastMonth:(0,Ie.startOfMonth)((0,Ie.addMonths)(new Date,-1)),endOfLastMonth:(0,Ie.endOfMonth)((0,Ie.addMonths)(new Date,-1))},DA={range:{},isSelected(t){const e=this.range();return(0,Ie.isSameDay)(t.startDate,e.startDate)&&(0,Ie.isSameDay)(t.endDate,e.endDate)}};function Tw(t){return t.map(e=>({...DA,...e}))}pr.defaultStaticRanges=Tw([{label:"Today",range:()=>({startDate:dt.startOfToday,endDate:dt.endOfToday})},{label:"Yesterday",range:()=>({startDate:dt.startOfYesterday,endDate:dt.endOfYesterday})},{label:"This Week",range:()=>({startDate:dt.startOfWeek,endDate:dt.endOfWeek})},{label:"Last Week",range:()=>({startDate:dt.startOfLastWeek,endDate:dt.endOfLastWeek})},{label:"This Month",range:()=>({startDate:dt.startOfMonth,endDate:dt.endOfMonth})},{label:"Last Month",range:()=>({startDate:dt.startOfLastMonth,endDate:dt.endOfLastMonth})}]),pr.defaultInputRanges=[{label:"days up to today",range(t){return{startDate:(0,Ie.addDays)(dt.startOfToday,(Math.max(Number(t),1)-1)*-1),endDate:dt.endOfToday}},getCurrentValue(t){return(0,Ie.isSameDay)(t.endDate,dt.endOfToday)?t.startDate?(0,Ie.differenceInCalendarDays)(dt.endOfToday,t.startDate)+1:"∞":"-"}},{label:"days starting today",range(t){const e=new Date;return{startDate:e,endDate:(0,Ie.addDays)(e,Math.max(Number(t),1)-1)}},getCurrentValue(t){return(0,Ie.isSameDay)(t.startDate,dt.startOfToday)?t.endDate?(0,Ie.differenceInCalendarDays)(t.endDate,dt.startOfToday)+1:"∞":"-"}}];var pl={};Object.defineProperty(pl,"__esModule",{value:!0}),pl.default=void 0;var bl=EA(_),At=MA(Yn);function MA(t){return t&&t.__esModule?t:{default:t}}function Nw(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Nw=function(r){return r?n:e})(t)}function EA(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Nw(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function PA(t,e,n){return e=TA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TA(t){var e=NA(t,"string");return typeof e=="symbol"?e:String(e)}function NA(t,e){if(typeof t!="object"||!t)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)}const jw=0,Iw=99999;class Ru extends bl.Component{constructor(e,n){super(e,n),PA(this,"onChange",r=>{const{onChange:s}=this.props;let a=parseInt(r.target.value,10);a=isNaN(a)?0:Math.max(Math.min(Iw,a),jw),s(a)})}shouldComponentUpdate(e){const{value:n,label:r,placeholder:s}=this.props;return n!==e.value||r!==e.label||s!==e.placeholder}render(){const{label:e,placeholder:n,value:r,styles:s,onBlur:a,onFocus:o}=this.props;return bl.default.createElement("div",{className:s.inputRange},bl.default.createElement("input",{className:s.inputRangeInput,placeholder:n,value:r,min:jw,max:Iw,onChange:this.onChange,onFocus:o,onBlur:a}),bl.default.createElement("span",{className:s.inputRangeLabel},e))}}Ru.propTypes={value:At.default.oneOfType([At.default.string,At.default.number]),label:At.default.oneOfType([At.default.element,At.default.node]).isRequired,placeholder:At.default.string,styles:At.default.shape({inputRange:At.default.string,inputRangeInput:At.default.string,inputRangeLabel:At.default.string}).isRequired,onBlur:At.default.func.isRequired,onFocus:At.default.func.isRequired,onChange:At.default.func.isRequired},Ru.defaultProps={value:"",placeholder:"-"},pl.default=Ru,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var Jr=AA(_),zt=yl(Yn),qr=yl(Qr),Aw=pr,jA=Vn,IA=yl(pl),Rw=yl(tr);function yl(t){return t&&t.__esModule?t:{default:t}}function Lw(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Lw=function(r){return r?n:e})(t)}function AA(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Lw(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function RA(t,e,n){return e=LA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function LA(t){var e=FA(t,"string");return typeof e=="symbol"?e:String(e)}function FA(t,e){if(typeof t!="object"||!t)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)}class Lu extends Jr.Component{constructor(e){super(e),RA(this,"handleRangeChange",n=>{const{onChange:r,ranges:s,focusedRange:a}=this.props,o=s[a[0]];!r||!o||r({[o.key||`range${a[0]+1}`]:{...o,...n}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(e){const{ranges:n=[],focusedRange:r=[]}=this.props;if(typeof e.getCurrentValue!="function")return"";const s=n[r[0]]||{};return e.getCurrentValue(s)||""}getSelectedRange(e,n){const r=e.findIndex(a=>!a.startDate||!a.endDate||a.disabled?!1:n.isSelected(a));return{selectedRange:e[r],focusedRangeIndex:r}}render(){const{headerContent:e,footerContent:n,onPreviewChange:r,inputRanges:s,staticRanges:a,ranges:o,renderStaticRangeLabel:i,rangeColors:l,className:c}=this.props;return Jr.default.createElement("div",{className:(0,Rw.default)(qr.default.definedRangesWrapper,c)},e,Jr.default.createElement("div",{className:qr.default.staticRanges},a.map((d,u)=>{const{selectedRange:f,focusedRangeIndex:h}=this.getSelectedRange(o,d);let m;return d.hasCustomRendering?m=i(d):m=d.label,Jr.default.createElement("button",{type:"button",className:(0,Rw.default)(qr.default.staticRange,{[qr.default.staticRangeSelected]:!!f}),style:{color:f?f.color||l[h]:null},key:u,onClick:()=>this.handleRangeChange(d.range(this.props)),onFocus:()=>r&&r(d.range(this.props)),onMouseOver:()=>r&&r(d.range(this.props)),onMouseLeave:()=>{r&&r()}},Jr.default.createElement("span",{tabIndex:-1,className:qr.default.staticRangeLabel},m))})),Jr.default.createElement("div",{className:qr.default.inputRanges},s.map((d,u)=>Jr.default.createElement(IA.default,{key:u,styles:qr.default,label:d.label,onFocus:()=>this.setState({focusedInput:u,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:f=>this.handleRangeChange(d.range(f,this.props)),value:this.getRangeOptionValue(d)}))),n)}}Lu.propTypes={inputRanges:zt.default.array,staticRanges:zt.default.array,ranges:zt.default.arrayOf(jA.rangeShape),focusedRange:zt.default.arrayOf(zt.default.number),onPreviewChange:zt.default.func,onChange:zt.default.func,footerContent:zt.default.any,headerContent:zt.default.any,rangeColors:zt.default.arrayOf(zt.default.string),className:zt.default.string,renderStaticRangeLabel:zt.default.func},Lu.defaultProps={inputRanges:Aw.defaultInputRanges,staticRanges:Aw.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},no.default=Lu,Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=void 0;var wl=HA(_),WA=ro(Yn),Fw=ro(Ua),Ww=ro(no),Bw=Gn,BA=ro(tr),zA=ro(Qr);function ro(t){return t&&t.__esModule?t:{default:t}}function zw(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(zw=function(r){return r?n:e})(t)}function HA(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=zw(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function vl(){return vl=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},vl.apply(this,arguments)}let Fu=class extends wl.Component{constructor(e){super(e),this.state={focusedRange:[(0,Bw.findNextRangeIndex)(e.ranges),0]},this.styles=(0,Bw.generateStyles)([zA.default,e.classNames])}render(){const{focusedRange:e}=this.state;return wl.default.createElement("div",{className:(0,BA.default)(this.styles.dateRangePickerWrapper,this.props.className)},wl.default.createElement(Ww.default,vl({focusedRange:e,onPreviewChange:n=>this.dateRange.updatePreview(n?this.dateRange.calcNewSelection(n,typeof n=="string"):null)},this.props,{range:this.props.ranges[e[0]],className:void 0})),wl.default.createElement(Fw.default,vl({onRangeFocusChange:n=>this.setState({focusedRange:n}),focusedRange:e},this.props,{ref:n=>this.dateRange=n,className:void 0})))}};Fu.defaultProps={},Fu.propTypes={...Fw.default.propTypes,...Ww.default.propTypes,className:WA.default.string},ml.default=Fu,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"DateRange",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DefinedRange",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"createStaticRanges",{enumerable:!0,get:function(){return a.createStaticRanges}}),Object.defineProperty(t,"defaultInputRanges",{enumerable:!0,get:function(){return a.defaultInputRanges}}),Object.defineProperty(t,"defaultStaticRanges",{enumerable:!0,get:function(){return a.defaultStaticRanges}});var e=o(Ua),n=o(Xa),r=o(ml),s=o(no),a=pr;function o(i){return i&&i.__esModule?i:{default:i}}}(Hb);const YA={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},VA=(t,e,n)=>{let r;const s=YA[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},UA={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},XA={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},KA={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},GA={date:Is({formats:UA,defaultWidth:"full"}),time:Is({formats:XA,defaultWidth:"full"}),dateTime:Is({formats:KA,defaultWidth:"full"})},QA={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},ZA={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},JA=(t,e,n,r)=>e.getHours()!==1?ZA[t]:QA[t],qA={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},$A={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},e4={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},t4={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},n4={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},r4={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},s4={ordinalNumber:(t,e)=>Number(t)+"º",era:On({values:qA,defaultWidth:"wide"}),quarter:On({values:$A,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:On({values:e4,defaultWidth:"wide"}),day:On({values:t4,defaultWidth:"wide"}),dayPeriod:On({values:n4,defaultWidth:"wide",formattingValues:r4,defaultFormattingWidth:"wide"})},a4=/^(\d+)(º)?/i,o4=/\d+/i,i4={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},l4={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},c4={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},d4={any:[/1/i,/2/i,/3/i,/4/i]},u4={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},f4={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},h4={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},g4={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},m4={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},p4={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},b4={ordinalNumber:Ty({matchPattern:a4,parsePattern:o4,valueCallback:function(t){return parseInt(t,10)}}),era:Cn({matchPatterns:i4,defaultMatchWidth:"wide",parsePatterns:l4,defaultParseWidth:"any"}),quarter:Cn({matchPatterns:c4,defaultMatchWidth:"wide",parsePatterns:d4,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Cn({matchPatterns:u4,defaultMatchWidth:"wide",parsePatterns:f4,defaultParseWidth:"any"}),day:Cn({matchPatterns:h4,defaultMatchWidth:"wide",parsePatterns:g4,defaultParseWidth:"any"}),dayPeriod:Cn({matchPatterns:m4,defaultMatchWidth:"any",parsePatterns:p4,defaultParseWidth:"any"})},y4={code:"es",formatDistance:VA,formatLong:GA,formatRelative:JA,localize:s4,match:b4,options:{weekStartsOn:1,firstWeekContainsDate:1}},Jn={"date-container":"dateRangePicker-module__date-container__jh9s-","date-input":"dateRangePicker-module__date-input__xt4gs","date-popup":"dateRangePicker-module__date-popup__TQHMh","date-menu":"dateRangePicker-module__date-menu__Nv5nr","date-menuItem":"dateRangePicker-module__date-menuItem__AYJ32","date-menuItemReset":"dateRangePicker-module__date-menuItemReset__J9IdZ","date-calendar":"dateRangePicker-module__date-calendar__M10Iv"},w4=[{label:"Ayer",range:()=>{const t=new Date;return t.setDate(t.getDate()-1),{startDate:t,endDate:t}}},{label:"La semana pasada",range:()=>({startDate:tn(new Date,-6),endDate:new Date})},{label:"El mes pasado",range:()=>{const t=new Date,e=new Date(t.getFullYear(),t.getMonth()-1,1),n=new Date(t.getFullYear(),t.getMonth(),0);return{startDate:e,endDate:n}}}],v4=({value:t,onChange:e,minData:n,maxData:r,quickRanges:s,className:a})=>{const[o,i]=_.useState([{startDate:tn(new Date,-6),endDate:new Date,key:"selection"}]),[l,c]=_.useState(!1),[d,u]=_.useState({}),f=_.useRef(null),h=_.useRef(null),m=s??w4,p=t?[{...t,key:"selection"}]:o;_.useEffect(()=>{if(l&&h.current&&f.current){const w=h.current.getBoundingClientRect(),y=f.current.offsetWidth||700,S=window.innerWidth-w.right,N=w.left,D={right:0,left:"auto"};S<y&&N>=y&&(D.left=0,D.right="auto"),window.innerWidth<y&&(D.left=0,D.right=0,D.width="100vw",D.maxWidth="100vw"),u(D)}},[l]);const b=w=>{t||i([w.selection]),e==null||e(w.selection.startDate,w.selection.endDate)},v=w=>{const{startDate:y,endDate:S}=w();t||i([{startDate:y,endDate:S,key:"selection"}]),e==null||e(y,S),c(!1)},x=()=>{const w=new Date;t||i([{startDate:w,endDate:w,key:"selection"}]),e==null||e(w,w),c(!1)},k=w=>tl(w,"dd MMM yy");return _.useEffect(()=>{if(!l)return;const w=y=>{f.current&&!f.current.contains(y.target)&&h.current&&!h.current.contains(y.target)&&c(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[l]),g.jsxs("div",{className:Jn["date-container"],children:[g.jsx("input",{ref:h,type:"text",readOnly:!0,value:`${k(p[0].startDate)} - ${k(p[0].endDate)}`,onClick:()=>c(!l),className:`${Jn["date-input"]} ${a}`}),l&&g.jsxs("div",{ref:f,className:Jn["date-popup"],style:d,children:[g.jsxs("div",{className:Jn["date-menu"],children:[m.map((w,y)=>g.jsx("div",{className:Jn["date-menuItem"]+(y===2?" "+Jn["date-menuItemActive"]:""),onClick:()=>v(w.range),children:w.label},w.label)),g.jsx("div",{className:Jn["date-menuItem"]+" "+Jn["date-menuItemReset"],onClick:x,children:"Reset"})]}),g.jsx("div",{className:Jn["date-calendar"],children:g.jsx(Hb.DateRange,{editableDateInputs:!1,onChange:b,moveRangeOnFirstSelection:!1,ranges:p,rangeColors:["#C0D4FF99"],minDate:n,maxDate:r,locale:y4,dayContentRenderer:w=>{const y=w.getDay(),S={opacity:y===0||y===6?.5:1,color:y===0||y===6?"#999":"inherit"};return g.jsx("span",{style:S,children:w.getDate()})},navigationButtonsPosition:"center"})})]})]})},x4=({minDate:t,maxDate:e})=>g.jsx(Gf,{minDate:t,maxDate:e,className:"custom-datepicker"}),$r={"loader-wrapper":"loader-module__loader-wrapper__faxmX",container:"loader-module__container__Vj8hl","mathilde-loading":"loader-module__mathilde-loading__qdEVv","loading-1":"loader-module__loading-1__mro54",logo:"loader-module__logo__IXZKs","ball-container":"loader-module__ball-container__qDvi5",ball:"loader-module__ball__MSPUh"},k4=function(){return g.jsx("div",{className:`mth_loader ${$r["loader-wrapper"]}`,children:g.jsx("div",{className:$r.container,children:g.jsxs("div",{className:$r["mathilde-loading"],children:[g.jsx("img",{className:$r.logo,src:"https://ftp.mathilde-ads.com/345-38ea95da72fc8edd1d853f315945b449.png",alt:"Logo Mathilde"}),g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:$r["loading-1"],children:g.jsx("circle",{cx:"50",cy:"50",r:"40"})}),g.jsx("div",{className:$r["ball-container"],children:g.jsx("div",{className:$r.ball})})]})})})},_4=({label:t,dismissOnClick:e,items:n,size:r,className:s,styles:a,mode:o="simple",columns:i=2,onSelectionChange:l,selectedItems:c=[],activeChevron:d=!0,icon:u,iconSize:f=20})=>{const[h,m]=_.useState(c),p=(k,w)=>{const y=w?[...h,k]:h.filter(S=>S!==k);m(y),l==null||l(y)},b=()=>n.map(k=>g.jsx(Oc,{...k,href:k.href,children:k.label},k.value||k.label)),v=()=>{const k=i===1?"grid-cols-1":i===2?"grid-cols-2":i===3?"grid-cols-3":i===4?"grid-cols-4":"grid-cols-2";return g.jsx("div",{className:`grid min-w-[200px] gap-2 p-2 ${k}`,children:n.map(w=>{const y=w.value||w.label,S=h.includes(y);return g.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded p-2 hover:bg-gray-100",children:[g.jsx("input",{type:"checkbox",checked:S,onChange:N=>p(y,N.target.checked),disabled:w.disabled,className:"size-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-blue-500"}),g.jsx("span",{className:`text-xs ${w.disabled?"text-gray-400":"text-black"}`,children:w.label})]},y)})})},x=k=>{if(!k)return null;if(typeof k=="string")return g.jsx("img",{src:k,alt:"icon",width:f,height:f});const w=k;return g.jsx(w,{size:f})};return g.jsx(g.Fragment,{children:g.jsx(i_,{label:t,dismissOnClick:o==="simple"?e:!1,size:r,renderTrigger:()=>g.jsx("button",{className:s,style:a,type:"button",children:g.jsxs("span",{className:"flex items-center gap-2",children:[x(u),t,d&&x(zl)]})}),className:"left-0",children:o==="simple"?b():v()})})},S4=function({steps:t=[],initialStep:e=1,activeStep:n,onStepChange:r,renderControls:s,onNext:a,onBack:o,onFinish:i}){var b;const l=typeof n=="number",[c,d]=_.useState(e),u=l?n:c,f=()=>{if(u<t.length){const v=u+1;l?(r==null||r(v),a==null||a()):(d(v),a==null||a())}else i==null||i()},h=()=>{if(u>1){const v=u-1;l?(r==null||r(v),o==null||o()):(d(v),o==null||o())}},m=v=>{v!==u&&(v<1||v>t.length||(l?r==null||r(v):d(v)))},p={activeStep:u,stepsLength:t.length,isFirst:u===1,isLast:u===t.length,next:f,back:h,goToStep:m};return g.jsxs("div",{className:"mx-auto flex w-full flex-col md:flex-row",children:[g.jsx("ol",{className:"relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full self-start",children:t.map((v,x)=>{const k=x===t.length-1,w=x+1===u,y=x+1<u;return g.jsxs("li",{className:`ms-4 ${k?"":"mb-8"}`,children:[g.jsx("span",{className:`absolute -start-2 mt-0.5 size-3.5 items-center justify-center rounded-full ring-1
518
- ${y||w?"bg-[#191960] ring-[#191960]":"bg-[#C0D4FF] ring-[#C0D4FF]"}`}),g.jsx("h3",{className:`text-sm font-medium leading-tight transition-colors duration-300
519
- ${y||w?"text-black":"text-gray-600"}`,children:v.title})]},v.title)})}),g.jsx("div",{className:"w-full p-6 mt-6 mx-10 border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300",children:g.jsx("div",{children:((b=t[u-1])==null?void 0:b.content)||g.jsx("p",{children:"No hay contenido."})})}),g.jsx("div",{className:"fixed bottom-0 left-0 w-full p-6",children:g.jsx("div",{className:"flex justify-end gap-2",children:s?g.jsx("div",{className:"w-full flex justify-end",children:s(p)}):g.jsxs(g.Fragment,{children:[g.jsx(Js,{color:"gray",disabled:u===1,onClick:h,children:"Atrás"}),u<t.length?g.jsx(Js,{style:{backgroundColor:"#191960"},onClick:f,children:"Siguiente"}):g.jsx(Js,{color:"success",onClick:i,children:"Finalizar"})]})})})]})};function Hw({content:t,trigger:e,children:n}){return g.jsx("div",{className:"flex gap-2",children:g.jsx(Ho,{content:t,trigger:e,className:"z-50 bg-black text-white",children:n})})}const O4=({label:t,options:e,classNameRadio:n,classNameLabel:r,className:s,onChange:a})=>g.jsxs("div",{className:`flex max-w-md flex-col gap-2 ${s??""}`,children:[t?g.jsx("div",{className:"text-sm font-medium text-gray-900",children:t}):null,g.jsx("div",{className:"flex items-center gap-3",children:e==null?void 0:e.map(o=>g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Tg,{id:o.id,value:o.value,name:o.name,onChange:a,defaultChecked:o.checked,disabled:o.disabled,className:`ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] ${n??""}`}),g.jsx(Cc,{htmlFor:o.id,className:r??"",children:o.label}),o.tooltip?g.jsx(Hw,{content:o.tooltip,trigger:o.tooltipTrigger??"hover",children:o.tooltipChildren??g.jsx("button",{type:"button","aria-label":"Más información",className:"ml-1 inline-flex size-4 items-center justify-center rounded-full border border-gray-300 text-[10px] leading-none text-gray-600 hover:bg-gray-50",children:"i"})}):null]},o.id))})]});function Yw(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=Yw(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function xl(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=Yw(t))&&(r&&(r+=" "),r+=e);return r}const Vw=({id:t,title:e,children:n,isOpen:r,onToggle:s,variant:a="minimal",icon:o,iconPosition:i="right"})=>{const l=xl({minimal:"",bordered:"border border-gray-300 dark:border-gray-600",shadow:"shadow-md",ghost:"bg-transparent"}[a]);return g.jsxs("div",{id:t,className:xl("rounded-lg w-full",l),children:[g.jsxs("button",{onClick:s,className:"flex w-full items-center justify-between px-5 py-5 cursor-pointer text-left ",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[o&&i==="left"&&g.jsx("span",{className:xl("transition-transform text-[#191960]",r&&"rotate-90"),children:o}),g.jsx("span",{className:"font-semibold text-xs uppercase",children:e})]}),o&&i==="right"&&g.jsx("span",{className:xl("transition-transform text-[#191960]",r&&"rotate-90"),children:o})]}),r&&g.jsx("div",{className:"overflow-hidden",children:g.jsx("div",{className:"px-4 py-3 text-gray-700 dark:text-gray-300",children:n})},"content")]})},C4=({items:t,mode:e="multi",defaultOpen:n=[],className:r})=>{const[s,a]=_.useState(n),o=i=>{a(e==="multi"?l=>l.includes(i)?l.filter(c=>c!==i):[...l,i]:l=>l.includes(i)?[]:[i])};return g.jsx("div",{className:r,children:t.map(i=>g.jsx("div",{className:"mb-2 border-[1px] border-[#C4C4C4] rounded-[20px]",children:g.jsx(Vw,{id:i.id,title:i.title,isOpen:s.includes(i.id),onToggle:()=>o(i.id),variant:i.variant,icon:i.icon,iconPosition:i.iconPosition,children:i.content})},i.id))})},D4=({onSelect:t,items:e=[],placeholder:n="Buscar país, región o ciudad",fetchItems:r,minCharsToSearch:s=3,debounceMs:a=300,classIncludes:o})=>{const[i,l]=_.useState(!1),[c,d]=_.useState(""),[u,f]=_.useState(e),h=_.useRef(null);_.useEffect(()=>{f(e)},[e]),_.useEffect(()=>{if(!r)return;if(c.trim().length<s){f([]);return}const p=new AbortController,b=setTimeout(async()=>{try{const v=await r(c.trim());f(v)}catch{f([])}},a);return()=>{clearTimeout(b),p.abort()}},[c,r,a,s]);const m=p=>{t(p),d(p.label),l(!1)};return g.jsxs("div",{ref:h,className:o,children:[g.jsx(Ic,{style:{borderRadius:"10px",width:"290px"},type:"search",placeholder:n,name:"search",value:c,onChange:p=>{d(p.target.value),l(!0)},onFocus:()=>l(!0),onBlur:()=>{l(!1)},icon:!1,autoComplete:"off"}),i&&u.length>0&&g.jsx("ul",{style:{background:"#FFFFFF",border:"1px solid #e6e6e6",borderRadius:8,listStyle:"none",padding:6,width:290,maxHeight:220,position:"absolute",zIndex:9999},children:u.map(p=>g.jsx("li",{onMouseDown:b=>{b.preventDefault(),b.stopPropagation(),m(p)},style:{padding:6,cursor:"pointer",borderRadius:6},children:g.jsx("div",{className:"text-xs",children:p.label})},p.id))})]})},M4=({items:t,title:e,onRemove:n,colors:r={},className:s="",containerClassName:a="",titleClassName:o="",showTitle:i=!0})=>{const c={...{backgroundColor:"#EEEEEE",textColor:"#191960",closeButtonBackgroundColor:"#191960",closeButtonTextColor:"#FFFFFF",borderRadius:20},...r},d={borderRadius:`${c.borderRadius}px`,backgroundColor:c.backgroundColor},u={color:c.textColor},f={backgroundColor:c.closeButtonBackgroundColor,color:c.closeButtonTextColor};return g.jsxs("div",{className:`${s}`,children:[i&&e&&g.jsx("h2",{className:`${o}`,children:e}),g.jsx("div",{className:`${a}`,style:{marginTop:6},children:g.jsx("div",{children:t.map(h=>g.jsxs("div",{className:"mb-1 ml-1 inline-flex items-center gap-2 bg-[#EEEEEE] px-2 py-1",style:d,children:[g.jsx("span",{className:"text-xs text-[#191960]",style:u,children:h.name}),g.jsx("button",{className:"flex size-4 items-center justify-center rounded-full font-semibold",style:f,onClick:()=>n(h.id),"aria-label":`Eliminar ${h.name}`,type:"button",children:"×"})]},h.id))})})]})};/*!
498
+ `,children:i.title})]}),l&&c&&s(i.subItems||[],o+1)]},i.id)})});return g.jsx("nav",{id:"TableOfContents",children:s(t)})};/*!
520
499
  * sweetalert2 v11.26.4
521
500
  * Released under the MIT License.
522
- */function Uw(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function E4(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xw(t,e){return t.get(Uw(t,e))}function P4(t,e,n){E4(t,e),e.set(t,n)}function T4(t,e,n){return t.set(Uw(t,e),n),n}const N4=100,de={},j4=()=>{de.previousActiveElement instanceof HTMLElement?(de.previousActiveElement.focus(),de.previousActiveElement=null):document.body&&document.body.focus()},I4=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;de.restoreFocusTimeout=setTimeout(()=>{j4(),e()},N4),window.scrollTo(n,r)}),Kw="swal2-",X=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((t,e)=>(t[e]=Kw+e,t),{}),kl=["success","warning","info","question","error"].reduce((t,e)=>(t[e]=Kw+e,t),{}),Gw="SweetAlert2:",Wu=t=>t.charAt(0).toUpperCase()+t.slice(1),Ot=t=>{console.warn(`${Gw} ${typeof t=="object"?t.join(" "):t}`)},es=t=>{console.error(`${Gw} ${t}`)},Qw=[],A4=t=>{Qw.includes(t)||(Qw.push(t),Ot(t))},Zw=(t,e=null)=>{A4(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},_l=t=>typeof t=="function"?t():t,Bu=t=>t&&typeof t.toPromise=="function",so=t=>Bu(t)?t.toPromise():Promise.resolve(t),zu=t=>t&&Promise.resolve(t)===t,Ct=()=>document.body.querySelector(`.${X.container}`),ao=t=>{const e=Ct();return e?e.querySelector(t):null},Ht=t=>ao(`.${t}`),we=()=>Ht(X.popup),Bs=()=>Ht(X.icon),R4=()=>Ht(X["icon-content"]),Jw=()=>Ht(X.title),Hu=()=>Ht(X["html-container"]),qw=()=>Ht(X.image),Yu=()=>Ht(X["progress-steps"]),Sl=()=>Ht(X["validation-message"]),Nn=()=>ao(`.${X.actions} .${X.confirm}`),zs=()=>ao(`.${X.actions} .${X.cancel}`),ts=()=>ao(`.${X.actions} .${X.deny}`),L4=()=>Ht(X["input-label"]),Hs=()=>ao(`.${X.loader}`),oo=()=>Ht(X.actions),$w=()=>Ht(X.footer),Ol=()=>Ht(X["timer-progress-bar"]),Vu=()=>Ht(X.close),F4=`
501
+ */function Yb(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function cP(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Vb(t,e){return t.get(Yb(t,e))}function dP(t,e,n){cP(t,e),e.set(t,n)}function uP(t,e,n){return t.set(Yb(t,e),n),n}const fP=100,de={},hP=()=>{de.previousActiveElement instanceof HTMLElement?(de.previousActiveElement.focus(),de.previousActiveElement=null):document.body&&document.body.focus()},gP=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;de.restoreFocusTimeout=setTimeout(()=>{hP(),e()},fP),window.scrollTo(n,r)}),Ub="swal2-",X=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((t,e)=>(t[e]=Ub+e,t),{}),Yi=["success","warning","info","question","error"].reduce((t,e)=>(t[e]=Ub+e,t),{}),Xb="SweetAlert2:",Vd=t=>t.charAt(0).toUpperCase()+t.slice(1),_t=t=>{console.warn(`${Xb} ${typeof t=="object"?t.join(" "):t}`)},Ur=t=>{console.error(`${Xb} ${t}`)},Kb=[],mP=t=>{Kb.includes(t)||(Kb.push(t),_t(t))},Gb=(t,e=null)=>{mP(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},Vi=t=>typeof t=="function"?t():t,Ud=t=>t&&typeof t.toPromise=="function",Ga=t=>Ud(t)?t.toPromise():Promise.resolve(t),Xd=t=>t&&Promise.resolve(t)===t,St=()=>document.body.querySelector(`.${X.container}`),Qa=t=>{const e=St();return e?e.querySelector(t):null},zt=t=>Qa(`.${t}`),we=()=>zt(X.popup),Ts=()=>zt(X.icon),pP=()=>zt(X["icon-content"]),Qb=()=>zt(X.title),Kd=()=>zt(X["html-container"]),Zb=()=>zt(X.image),Gd=()=>zt(X["progress-steps"]),Ui=()=>zt(X["validation-message"]),Sn=()=>Qa(`.${X.actions} .${X.confirm}`),Ns=()=>Qa(`.${X.actions} .${X.cancel}`),Xr=()=>Qa(`.${X.actions} .${X.deny}`),bP=()=>zt(X["input-label"]),js=()=>Qa(`.${X.loader}`),Za=()=>zt(X.actions),Jb=()=>zt(X.footer),Xi=()=>zt(X["timer-progress-bar"]),Qd=()=>zt(X.close),yP=`
523
502
  a[href],
524
503
  area[href],
525
504
  input:not([disabled]),
@@ -534,7 +513,7 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var W=te(J,B,I,M,H+"."+B
534
513
  audio[controls],
535
514
  video[controls],
536
515
  summary
537
- `,Uu=()=>{const t=we();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((a,o)=>{const i=parseInt(a.getAttribute("tabindex")||"0"),l=parseInt(o.getAttribute("tabindex")||"0");return i>l?1:i<l?-1:0}),r=t.querySelectorAll(F4),s=Array.from(r).filter(a=>a.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(s))].filter(a=>Rt(a))},Xu=()=>qn(document.body,X.shown)&&!qn(document.body,X["toast-shown"])&&!qn(document.body,X["no-backdrop"]),Cl=()=>{const t=we();return t?qn(t,X.toast):!1},W4=()=>{const t=we();return t?t.hasAttribute("data-loading"):!1},Yt=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html"),s=r.querySelector("head");s&&Array.from(s.childNodes).forEach(o=>{t.appendChild(o)});const a=r.querySelector("body");a&&Array.from(a.childNodes).forEach(o=>{o instanceof HTMLVideoElement||o instanceof HTMLAudioElement?t.appendChild(o.cloneNode(!0)):t.appendChild(o)})}},qn=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},B4=(t,e)=>{Array.from(t.classList).forEach(n=>{!Object.values(X).includes(n)&&!Object.values(kl).includes(n)&&!Object.values(e.showClass||{}).includes(n)&&t.classList.remove(n)})},Vt=(t,e,n)=>{if(B4(t,e),!e.customClass)return;const r=e.customClass[n];if(r){if(typeof r!="string"&&!r.forEach){Ot(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);return}_e(t,r)}},Dl=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${X.popup} > .${X[e]}`);case"checkbox":return t.querySelector(`.${X.popup} > .${X.checkbox} input`);case"radio":return t.querySelector(`.${X.popup} > .${X.radio} input:checked`)||t.querySelector(`.${X.popup} > .${X.radio} input:first-child`);case"range":return t.querySelector(`.${X.popup} > .${X.range} input`);default:return t.querySelector(`.${X.popup} > .${X.input}`)}},ev=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},tv=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(s=>{n?s.classList.add(r):s.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},_e=(t,e)=>{tv(t,e,!0)},rn=(t,e)=>{tv(t,e,!1)},br=(t,e)=>{const n=Array.from(t.children);for(let r=0;r<n.length;r++){const s=n[r];if(s instanceof HTMLElement&&qn(s,e))return s}},ns=(t,e,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||parseInt(`${n}`)===0?t.style.setProperty(e,typeof n=="number"?`${n}px`:n):t.style.removeProperty(e)},ut=(t,e="flex")=>{t&&(t.style.display=e)},xt=t=>{t&&(t.style.display="none")},Ku=(t,e="block")=>{t&&new MutationObserver(()=>{io(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},nv=(t,e,n,r)=>{const s=t.querySelector(e);s&&s.style.setProperty(n,r)},io=(t,e,n="flex")=>{e?ut(t,n):xt(t)},Rt=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),z4=()=>!Rt(Nn())&&!Rt(ts())&&!Rt(zs()),Gu=t=>t.scrollHeight>t.clientHeight,H4=(t,e)=>{let n=t;for(;n&&n!==e;){if(Gu(n))return!0;n=n.parentElement}return!1},rv=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},Qu=(t,e=!1)=>{const n=Ol();n&&Rt(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Y4=()=>{const t=Ol();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.width=`${r}%`},V4=()=>typeof window>"u"||typeof document>"u",U4=`
516
+ `,Zd=()=>{const t=we();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(e).sort((a,o)=>{const i=parseInt(a.getAttribute("tabindex")||"0"),l=parseInt(o.getAttribute("tabindex")||"0");return i>l?1:i<l?-1:0}),r=t.querySelectorAll(yP),s=Array.from(r).filter(a=>a.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(s))].filter(a=>It(a))},Jd=()=>Vn(document.body,X.shown)&&!Vn(document.body,X["toast-shown"])&&!Vn(document.body,X["no-backdrop"]),Ki=()=>{const t=we();return t?Vn(t,X.toast):!1},wP=()=>{const t=we();return t?t.hasAttribute("data-loading"):!1},Ht=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html"),s=r.querySelector("head");s&&Array.from(s.childNodes).forEach(o=>{t.appendChild(o)});const a=r.querySelector("body");a&&Array.from(a.childNodes).forEach(o=>{o instanceof HTMLVideoElement||o instanceof HTMLAudioElement?t.appendChild(o.cloneNode(!0)):t.appendChild(o)})}},Vn=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},vP=(t,e)=>{Array.from(t.classList).forEach(n=>{!Object.values(X).includes(n)&&!Object.values(Yi).includes(n)&&!Object.values(e.showClass||{}).includes(n)&&t.classList.remove(n)})},Yt=(t,e,n)=>{if(vP(t,e),!e.customClass)return;const r=e.customClass[n];if(r){if(typeof r!="string"&&!r.forEach){_t(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);return}ke(t,r)}},Gi=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${X.popup} > .${X[e]}`);case"checkbox":return t.querySelector(`.${X.popup} > .${X.checkbox} input`);case"radio":return t.querySelector(`.${X.popup} > .${X.radio} input:checked`)||t.querySelector(`.${X.popup} > .${X.radio} input:first-child`);case"range":return t.querySelector(`.${X.popup} > .${X.range} input`);default:return t.querySelector(`.${X.popup} > .${X.input}`)}},qb=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},$b=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(s=>{n?s.classList.add(r):s.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},ke=(t,e)=>{$b(t,e,!0)},tn=(t,e)=>{$b(t,e,!1)},hr=(t,e)=>{const n=Array.from(t.children);for(let r=0;r<n.length;r++){const s=n[r];if(s instanceof HTMLElement&&Vn(s,e))return s}},Kr=(t,e,n)=>{n===`${parseInt(`${n}`)}`&&(n=parseInt(n)),n||parseInt(`${n}`)===0?t.style.setProperty(e,typeof n=="number"?`${n}px`:n):t.style.removeProperty(e)},dt=(t,e="flex")=>{t&&(t.style.display=e)},xt=t=>{t&&(t.style.display="none")},qd=(t,e="block")=>{t&&new MutationObserver(()=>{Ja(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},ey=(t,e,n,r)=>{const s=t.querySelector(e);s&&s.style.setProperty(n,r)},Ja=(t,e,n="flex")=>{e?dt(t,n):xt(t)},It=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),xP=()=>!It(Sn())&&!It(Xr())&&!It(Ns()),$d=t=>t.scrollHeight>t.clientHeight,kP=(t,e)=>{let n=t;for(;n&&n!==e;){if($d(n))return!0;n=n.parentElement}return!1},ty=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},eu=(t,e=!1)=>{const n=Xi();n&&It(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},_P=()=>{const t=Xi();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.width=`${r}%`},SP=()=>typeof window>"u"||typeof document>"u",OP=`
538
517
  <div aria-labelledby="${X.title}" aria-describedby="${X["html-container"]}" class="${X.popup}" tabindex="-1">
539
518
  <button type="button" class="${X.close}"></button>
540
519
  <ul class="${X["progress-steps"]}"></ul>
@@ -567,18 +546,39 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var W=te(J,B,I,M,H+"."+B
567
546
  <div class="${X["timer-progress-bar"]}"></div>
568
547
  </div>
569
548
  </div>
570
- `.replace(/(^|\n)\s*/g,""),X4=()=>{const t=Ct();return t?(t.remove(),rn([document.documentElement,document.body],[X["no-backdrop"],X["toast-shown"],X["has-column"]]),!0):!1},rs=()=>{de.currentInstance.resetValidationMessage()},K4=()=>{const t=we(),e=br(t,X.input),n=br(t,X.file),r=t.querySelector(`.${X.range} input`),s=t.querySelector(`.${X.range} output`),a=br(t,X.select),o=t.querySelector(`.${X.checkbox} input`),i=br(t,X.textarea);e.oninput=rs,n.onchange=rs,a.onchange=rs,o.onchange=rs,i.oninput=rs,r.oninput=()=>{rs(),s.value=r.value},r.onchange=()=>{rs(),s.value=r.value}},G4=t=>typeof t=="string"?document.querySelector(t):t,Q4=t=>{const e=we();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Z4=t=>{window.getComputedStyle(t).direction==="rtl"&&(_e(Ct(),X.rtl),de.isRTL=!0)},J4=t=>{const e=X4();if(V4()){es("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=X.container,e&&_e(n,X["no-transition"]),Yt(n,U4),n.dataset.swal2Theme=t.theme;const r=G4(t.target);r.appendChild(n),t.topLayer&&(n.setAttribute("popover",""),n.showPopover()),Q4(t),Z4(r),K4()},Zu=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?q4(t,e):t&&Yt(e,t)},q4=(t,e)=>{t.jquery?$4(e,t):Yt(e,t.toString())},$4=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},eR=(t,e)=>{const n=oo(),r=Hs();!n||!r||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?xt(n):ut(n),Vt(n,e,"actions"),tR(n,r,e),Yt(r,e.loaderHtml||""),Vt(r,e,"loader"))};function tR(t,e,n){const r=Nn(),s=ts(),a=zs();!r||!s||!a||(qu(r,"confirm",n),qu(s,"deny",n),qu(a,"cancel",n),nR(r,s,a,n),n.reverseButtons&&(n.toast?(t.insertBefore(a,r),t.insertBefore(s,r)):(t.insertBefore(a,e),t.insertBefore(s,e),t.insertBefore(r,e))))}function nR(t,e,n,r){if(!r.buttonsStyling){rn([t,e,n],X.styled);return}_e([t,e,n],X.styled),r.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),Ju(t),Ju(e),Ju(n)}function Ju(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function qu(t,e,n){const r=Wu(e);io(t,n[`show${r}Button`],"inline-block"),Yt(t,n[`${e}ButtonText`]||""),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]||""),t.className=X[e],Vt(t,n,`${e}Button`)}const rR=(t,e)=>{const n=Vu();n&&(Yt(n,e.closeButtonHtml||""),Vt(n,e,"closeButton"),io(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},sR=(t,e)=>{const n=Ct();n&&(aR(n,e.backdrop),oR(n,e.position),iR(n,e.grow),Vt(n,e,"container"))};function aR(t,e){typeof e=="string"?t.style.background=e:e||_e([document.documentElement,document.body],X["no-backdrop"])}function oR(t,e){e&&(e in X?_e(t,X[e]):(Ot('The "position" parameter is not valid, defaulting to "center"'),_e(t,X.center)))}function iR(t,e){e&&_e(t,X[`grow-${e}`])}var Ae={innerParams:new WeakMap,domCache:new WeakMap};const lR=["input","file","range","select","radio","checkbox","textarea"],cR=(t,e)=>{const n=we();if(!n)return;const r=Ae.innerParams.get(t),s=!r||e.input!==r.input;lR.forEach(a=>{const o=br(n,X[a]);o&&(fR(a,e.inputAttributes),o.className=X[a],s&&xt(o))}),e.input&&(s&&dR(e),hR(e))},dR=t=>{if(!t.input)return;if(!Je[t.input]){es(`Unexpected type of input! Expected ${Object.keys(Je).join(" | ")}, got "${t.input}"`);return}const e=sv(t.input);if(!e)return;const n=Je[t.input](e,t);ut(e),t.inputAutoFocus&&setTimeout(()=>{ev(n)})},uR=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},fR=(t,e)=>{const n=we();if(!n)return;const r=Dl(n,t);if(r){uR(r);for(const s in e)r.setAttribute(s,e[s])}},hR=t=>{if(!t.input)return;const e=sv(t.input);e&&Vt(e,t,"input")},$u=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},lo=(t,e,n)=>{if(n.inputLabel){const r=document.createElement("label"),s=X["input-label"];r.setAttribute("for",t.id),r.className=s,typeof n.customClass=="object"&&_e(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},sv=t=>{const e=we();if(e)return br(e,X[t]||X.input)},Ml=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:zu(e)||Ot(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},Je={};Je.text=Je.email=Je.password=Je.number=Je.tel=Je.url=Je.search=Je.date=Je["datetime-local"]=Je.time=Je.week=Je.month=(t,e)=>(Ml(t,e.inputValue),lo(t,t,e),$u(t,e),t.type=e.input,t),Je.file=(t,e)=>(lo(t,t,e),$u(t,e),t),Je.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return Ml(n,e.inputValue),n.type=e.input,Ml(r,e.inputValue),lo(n,t,e),t},Je.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");Yt(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return lo(t,t,e),t},Je.radio=t=>(t.textContent="",t),Je.checkbox=(t,e)=>{const n=Dl(we(),"checkbox");n.value="1",n.checked=!!e.inputValue;const r=t.querySelector("span");return Yt(r,e.inputPlaceholder||e.inputLabel),n},Je.textarea=(t,e)=>{Ml(t,e.inputValue),$u(t,e),lo(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(we()).width),s=()=>{if(!document.body.contains(t))return;const a=t.offsetWidth+n(t);a>r?we().style.width=`${a}px`:ns(we(),"width",e.width)};new MutationObserver(s).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const gR=(t,e)=>{const n=Hu();n&&(Ku(n),Vt(n,e,"htmlContainer"),e.html?(Zu(e.html,n),ut(n,"block")):e.text?(n.textContent=e.text,ut(n,"block")):xt(n),cR(t,e))},mR=(t,e)=>{const n=$w();n&&(Ku(n),io(n,!!e.footer,"block"),e.footer&&Zu(e.footer,n),Vt(n,e,"footer"))},pR=(t,e)=>{const n=Ae.innerParams.get(t),r=Bs();if(!r)return;if(n&&e.icon===n.icon){iv(r,e),av(r,e);return}if(!e.icon&&!e.iconHtml){xt(r);return}if(e.icon&&Object.keys(kl).indexOf(e.icon)===-1){es(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),xt(r);return}ut(r),iv(r,e),av(r,e),_e(r,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",ov)},av=(t,e)=>{for(const[n,r]of Object.entries(kl))e.icon!==n&&rn(t,r);_e(t,e.icon&&kl[e.icon]),wR(t,e),ov(),Vt(t,e,"icon")},ov=()=>{const t=we();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},bR=t=>`
549
+ `.replace(/(^|\n)\s*/g,""),CP=()=>{const t=St();return t?(t.remove(),tn([document.documentElement,document.body],[X["no-backdrop"],X["toast-shown"],X["has-column"]]),!0):!1},Gr=()=>{de.currentInstance.resetValidationMessage()},DP=()=>{const t=we(),e=hr(t,X.input),n=hr(t,X.file),r=t.querySelector(`.${X.range} input`),s=t.querySelector(`.${X.range} output`),a=hr(t,X.select),o=t.querySelector(`.${X.checkbox} input`),i=hr(t,X.textarea);e.oninput=Gr,n.onchange=Gr,a.onchange=Gr,o.onchange=Gr,i.oninput=Gr,r.oninput=()=>{Gr(),s.value=r.value},r.onchange=()=>{Gr(),s.value=r.value}},MP=t=>typeof t=="string"?document.querySelector(t):t,EP=t=>{const e=we();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},PP=t=>{window.getComputedStyle(t).direction==="rtl"&&(ke(St(),X.rtl),de.isRTL=!0)},TP=t=>{const e=CP();if(SP()){Ur("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=X.container,e&&ke(n,X["no-transition"]),Ht(n,OP),n.dataset.swal2Theme=t.theme;const r=MP(t.target);r.appendChild(n),t.topLayer&&(n.setAttribute("popover",""),n.showPopover()),EP(t),PP(r),DP()},tu=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?NP(t,e):t&&Ht(e,t)},NP=(t,e)=>{t.jquery?jP(e,t):Ht(e,t.toString())},jP=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},IP=(t,e)=>{const n=Za(),r=js();!n||!r||(!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?xt(n):dt(n),Yt(n,e,"actions"),AP(n,r,e),Ht(r,e.loaderHtml||""),Yt(r,e,"loader"))};function AP(t,e,n){const r=Sn(),s=Xr(),a=Ns();!r||!s||!a||(ru(r,"confirm",n),ru(s,"deny",n),ru(a,"cancel",n),RP(r,s,a,n),n.reverseButtons&&(n.toast?(t.insertBefore(a,r),t.insertBefore(s,r)):(t.insertBefore(a,e),t.insertBefore(s,e),t.insertBefore(r,e))))}function RP(t,e,n,r){if(!r.buttonsStyling){tn([t,e,n],X.styled);return}ke([t,e,n],X.styled),r.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),nu(t),nu(e),nu(n)}function nu(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function ru(t,e,n){const r=Vd(e);Ja(t,n[`show${r}Button`],"inline-block"),Ht(t,n[`${e}ButtonText`]||""),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]||""),t.className=X[e],Yt(t,n,`${e}Button`)}const LP=(t,e)=>{const n=Qd();n&&(Ht(n,e.closeButtonHtml||""),Yt(n,e,"closeButton"),Ja(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel||""))},FP=(t,e)=>{const n=St();n&&(WP(n,e.backdrop),BP(n,e.position),zP(n,e.grow),Yt(n,e,"container"))};function WP(t,e){typeof e=="string"?t.style.background=e:e||ke([document.documentElement,document.body],X["no-backdrop"])}function BP(t,e){e&&(e in X?ke(t,X[e]):(_t('The "position" parameter is not valid, defaulting to "center"'),ke(t,X.center)))}function zP(t,e){e&&ke(t,X[`grow-${e}`])}var Ae={innerParams:new WeakMap,domCache:new WeakMap};const HP=["input","file","range","select","radio","checkbox","textarea"],YP=(t,e)=>{const n=we();if(!n)return;const r=Ae.innerParams.get(t),s=!r||e.input!==r.input;HP.forEach(a=>{const o=hr(n,X[a]);o&&(XP(a,e.inputAttributes),o.className=X[a],s&&xt(o))}),e.input&&(s&&VP(e),KP(e))},VP=t=>{if(!t.input)return;if(!Ze[t.input]){Ur(`Unexpected type of input! Expected ${Object.keys(Ze).join(" | ")}, got "${t.input}"`);return}const e=ny(t.input);if(!e)return;const n=Ze[t.input](e,t);dt(e),t.inputAutoFocus&&setTimeout(()=>{qb(n)})},UP=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["id","type","value","style"].includes(n)||t.removeAttribute(n)}},XP=(t,e)=>{const n=we();if(!n)return;const r=Gi(n,t);if(r){UP(r);for(const s in e)r.setAttribute(s,e[s])}},KP=t=>{if(!t.input)return;const e=ny(t.input);e&&Yt(e,t,"input")},su=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},qa=(t,e,n)=>{if(n.inputLabel){const r=document.createElement("label"),s=X["input-label"];r.setAttribute("for",t.id),r.className=s,typeof n.customClass=="object"&&ke(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},ny=t=>{const e=we();if(e)return hr(e,X[t]||X.input)},Qi=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:Xd(e)||_t(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},Ze={};Ze.text=Ze.email=Ze.password=Ze.number=Ze.tel=Ze.url=Ze.search=Ze.date=Ze["datetime-local"]=Ze.time=Ze.week=Ze.month=(t,e)=>(Qi(t,e.inputValue),qa(t,t,e),su(t,e),t.type=e.input,t),Ze.file=(t,e)=>(qa(t,t,e),su(t,e),t),Ze.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return Qi(n,e.inputValue),n.type=e.input,Qi(r,e.inputValue),qa(n,t,e),t},Ze.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");Ht(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return qa(t,t,e),t},Ze.radio=t=>(t.textContent="",t),Ze.checkbox=(t,e)=>{const n=Gi(we(),"checkbox");n.value="1",n.checked=!!e.inputValue;const r=t.querySelector("span");return Ht(r,e.inputPlaceholder||e.inputLabel),n},Ze.textarea=(t,e)=>{Qi(t,e.inputValue),su(t,e),qa(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(we()).width),s=()=>{if(!document.body.contains(t))return;const a=t.offsetWidth+n(t);a>r?we().style.width=`${a}px`:Kr(we(),"width",e.width)};new MutationObserver(s).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const GP=(t,e)=>{const n=Kd();n&&(qd(n),Yt(n,e,"htmlContainer"),e.html?(tu(e.html,n),dt(n,"block")):e.text?(n.textContent=e.text,dt(n,"block")):xt(n),YP(t,e))},QP=(t,e)=>{const n=Jb();n&&(qd(n),Ja(n,!!e.footer,"block"),e.footer&&tu(e.footer,n),Yt(n,e,"footer"))},ZP=(t,e)=>{const n=Ae.innerParams.get(t),r=Ts();if(!r)return;if(n&&e.icon===n.icon){ay(r,e),ry(r,e);return}if(!e.icon&&!e.iconHtml){xt(r);return}if(e.icon&&Object.keys(Yi).indexOf(e.icon)===-1){Ur(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),xt(r);return}dt(r),ay(r,e),ry(r,e),ke(r,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",sy)},ry=(t,e)=>{for(const[n,r]of Object.entries(Yi))e.icon!==n&&tn(t,r);ke(t,e.icon&&Yi[e.icon]),$P(t,e),sy(),Yt(t,e,"icon")},sy=()=>{const t=we();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},JP=t=>`
571
550
  ${t.animation?'<div class="swal2-success-circular-line-left"></div>':""}
572
551
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
573
552
  <div class="swal2-success-ring"></div>
574
553
  ${t.animation?'<div class="swal2-success-fix"></div>':""}
575
554
  ${t.animation?'<div class="swal2-success-circular-line-right"></div>':""}
576
- `,yR=`
555
+ `,qP=`
577
556
  <span class="swal2-x-mark">
578
557
  <span class="swal2-x-mark-line-left"></span>
579
558
  <span class="swal2-x-mark-line-right"></span>
580
559
  </span>
581
- `,iv=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,r="";e.iconHtml?r=lv(e.iconHtml):e.icon==="success"?(r=bR(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?r=yR:e.icon&&(r=lv({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==r.trim()&&Yt(t,r)},wR=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])nv(t,n,"background-color",e.iconColor);nv(t,".swal2-success-ring","border-color",e.iconColor)}},lv=t=>`<div class="${X["icon-content"]}">${t}</div>`,vR=(t,e)=>{const n=qw();if(n){if(!e.imageUrl){xt(n);return}ut(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),ns(n,"width",e.imageWidth),ns(n,"height",e.imageHeight),n.className=X.image,Vt(n,e,"image")}};let ef=!1,cv=0,dv=0,uv=0,fv=0;const xR=t=>{t.addEventListener("mousedown",El),document.body.addEventListener("mousemove",Pl),t.addEventListener("mouseup",Tl),t.addEventListener("touchstart",El),document.body.addEventListener("touchmove",Pl),t.addEventListener("touchend",Tl)},kR=t=>{t.removeEventListener("mousedown",El),document.body.removeEventListener("mousemove",Pl),t.removeEventListener("mouseup",Tl),t.removeEventListener("touchstart",El),document.body.removeEventListener("touchmove",Pl),t.removeEventListener("touchend",Tl)},El=t=>{const e=we();if(t.target===e||Bs().contains(t.target)){ef=!0;const n=hv(t);cv=n.clientX,dv=n.clientY,uv=parseInt(e.style.insetInlineStart)||0,fv=parseInt(e.style.insetBlockStart)||0,_e(e,"swal2-dragging")}},Pl=t=>{const e=we();if(ef){let{clientX:n,clientY:r}=hv(t);const s=n-cv;e.style.insetInlineStart=`${uv+(de.isRTL?-s:s)}px`,e.style.insetBlockStart=`${fv+(r-dv)}px`}},Tl=()=>{const t=we();ef=!1,rn(t,"swal2-dragging")},hv=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},_R=(t,e)=>{const n=Ct(),r=we();if(!(!n||!r)){if(e.toast){ns(n,"width",e.width),r.style.width="100%";const s=Hs();s&&r.insertBefore(s,Bs())}else ns(r,"width",e.width);ns(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),xt(Sl()),SR(r,e),e.draggable&&!e.toast?(_e(r,X.draggable),xR(r)):(rn(r,X.draggable),kR(r))}},SR=(t,e)=>{const n=e.showClass||{};t.className=`${X.popup} ${Rt(t)?n.popup:""}`,e.toast?(_e([document.documentElement,document.body],X["toast-shown"]),_e(t,X.toast)):_e(t,X.modal),Vt(t,e,"popup"),typeof e.customClass=="string"&&_e(t,e.customClass),e.icon&&_e(t,X[`icon-${e.icon}`])},OR=(t,e)=>{const n=Yu();if(!n)return;const{progressSteps:r,currentProgressStep:s}=e;if(!r||r.length===0||s===void 0){xt(n);return}ut(n),n.textContent="",s>=r.length&&Ot("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((a,o)=>{const i=CR(a);if(n.appendChild(i),o===s&&_e(i,X["active-progress-step"]),o!==r.length-1){const l=DR(e);n.appendChild(l)}})},CR=t=>{const e=document.createElement("li");return _e(e,X["progress-step"]),Yt(e,t),e},DR=t=>{const e=document.createElement("li");return _e(e,X["progress-step-line"]),t.progressStepsDistance&&ns(e,"width",t.progressStepsDistance),e},MR=(t,e)=>{const n=Jw();n&&(Ku(n),io(n,!!(e.title||e.titleText),"block"),e.title&&Zu(e.title,n),e.titleText&&(n.innerText=e.titleText),Vt(n,e,"title"))},gv=(t,e)=>{_R(t,e),sR(t,e),OR(t,e),pR(t,e),vR(t,e),MR(t,e),rR(t,e),gR(t,e),eR(t,e),mR(t,e);const n=we();typeof e.didRender=="function"&&n&&e.didRender(n),de.eventEmitter.emit("didRender",n)},ER=()=>Rt(we()),mv=()=>{var t;return(t=Nn())===null||t===void 0?void 0:t.click()},PR=()=>{var t;return(t=ts())===null||t===void 0?void 0:t.click()},TR=()=>{var t;return(t=zs())===null||t===void 0?void 0:t.click()},Ys=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),pv=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},NR=(t,e,n)=>{pv(t),e.toast||(t.keydownHandler=r=>IR(e,r,n),t.keydownTarget=e.keydownListenerCapture?window:we(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},tf=(t,e)=>{var n;const r=Uu();if(r.length){t=t+e,t===-2&&(t=r.length-1),t===r.length?t=0:t===-1&&(t=r.length-1),r[t].focus();return}(n=we())===null||n===void 0||n.focus()},bv=["ArrowRight","ArrowDown"],jR=["ArrowLeft","ArrowUp"],IR=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?AR(e,t):e.key==="Tab"?RR(e):[...bv,...jR].includes(e.key)?LR(e.key):e.key==="Escape"&&FR(e,t,n)))},AR=(t,e)=>{if(!_l(e.allowEnterKey))return;const n=Dl(we(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;mv(),t.preventDefault()}},RR=t=>{const e=t.target,n=Uu();let r=-1;for(let s=0;s<n.length;s++)if(e===n[s]){r=s;break}t.shiftKey?tf(r,-1):tf(r,1),t.stopPropagation(),t.preventDefault()},LR=t=>{const e=oo(),n=Nn(),r=ts(),s=zs();if(!e||!n||!r||!s)return;const a=[n,r,s];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=bv.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let l=0;l<e.children.length;l++){if(i=i[o],!i)return;if(i instanceof HTMLButtonElement&&Rt(i))break}i instanceof HTMLButtonElement&&i.focus()}},FR=(t,e,n)=>{t.preventDefault(),_l(e.allowEscapeKey)&&n(Ys.esc)};var Vs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const WR=()=>{const t=Ct();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},yv=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},wv=typeof window<"u"&&!!window.GestureEvent,BR=()=>{if(wv&&!qn(document.body,X.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,_e(document.body,X.iosfix),zR()}},zR=()=>{const t=Ct();if(!t)return;let e;t.ontouchstart=n=>{e=HR(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},HR=t=>{const e=t.target,n=Ct(),r=Hu();return!n||!r||YR(t)||VR(t)?!1:e===n||!Gu(n)&&e instanceof HTMLElement&&!H4(e,r)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Gu(r)&&r.contains(e))},YR=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",VR=t=>t.touches&&t.touches.length>1,UR=()=>{if(qn(document.body,X.iosfix)){const t=parseInt(document.body.style.top,10);rn(document.body,X.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},XR=()=>{const t=document.createElement("div");t.className=X["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let Us=null;const KR=t=>{Us===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(Us=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Us+XR()}px`)},GR=()=>{Us!==null&&(document.body.style.paddingRight=`${Us}px`,Us=null)};function vv(t,e,n,r){Cl()?kv(t,r):(I4(n).then(()=>kv(t,r)),pv(de)),wv?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Xu()&&(GR(),UR(),yv()),QR()}function QR(){rn([document.documentElement,document.body],[X.shown,X["height-auto"],X["no-backdrop"],X["toast-shown"]])}function yr(t){t=JR(t);const e=Vs.swalPromiseResolve.get(this),n=ZR(this);this.isAwaitingPromise?t.isDismissed||(co(this),e(t)):n&&e(t)}const ZR=t=>{const e=we();if(!e)return!1;const n=Ae.innerParams.get(t);if(!n||qn(e,n.hideClass.popup))return!1;rn(e,n.showClass.popup),_e(e,n.hideClass.popup);const r=Ct();return rn(r,n.showClass.backdrop),_e(r,n.hideClass.backdrop),qR(t,e,n),!0};function xv(t){const e=Vs.swalPromiseReject.get(this);co(this),e&&e(t)}const co=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,Ae.innerParams.get(t)||t._destroy())},JR=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),qR=(t,e,n)=>{var r;const s=Ct(),a=rv(e);typeof n.willClose=="function"&&n.willClose(e),(r=de.eventEmitter)===null||r===void 0||r.emit("willClose",e),a?$R(t,e,s,n.returnFocus,n.didClose):vv(t,s,n.returnFocus,n.didClose)},$R=(t,e,n,r,s)=>{de.swalCloseEventFinishedCallback=vv.bind(null,t,n,r,s);const a=function(o){if(o.target===e){var i;(i=de.swalCloseEventFinishedCallback)===null||i===void 0||i.call(de),delete de.swalCloseEventFinishedCallback,e.removeEventListener("animationend",a),e.removeEventListener("transitionend",a)}};e.addEventListener("animationend",a),e.addEventListener("transitionend",a)},kv=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=de.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},Xs=t=>{let e=we();if(e||new Ll,e=we(),!e)return;const n=Hs();Cl()?xt(Bs()):e3(e,t),ut(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},e3=(t,e)=>{const n=oo(),r=Hs();!n||!r||(!e&&Rt(Nn())&&(e=Nn()),ut(n),e&&(xt(e),r.setAttribute("data-button-to-replace",e.className),n.insertBefore(r,e)),_e([t,n],X.loading))},t3=(t,e)=>{e.input==="select"||e.input==="radio"?o3(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(Bu(e.inputValue)||zu(e.inputValue))&&(Xs(Nn()),i3(t,e))},n3=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return r3(n);case"radio":return s3(n);case"file":return a3(n);default:return e.inputAutoTrim?n.value.trim():n.value}},r3=t=>t.checked?1:0,s3=t=>t.checked?t.value:null,a3=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,o3=(t,e)=>{const n=we();if(!n)return;const r=s=>{e.input==="select"?l3(n,Nl(s),e):e.input==="radio"&&c3(n,Nl(s),e)};Bu(e.inputOptions)||zu(e.inputOptions)?(Xs(Nn()),so(e.inputOptions).then(s=>{t.hideLoading(),r(s)})):typeof e.inputOptions=="object"?r(e.inputOptions):es(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},i3=(t,e)=>{const n=t.getInput();n&&(xt(n),so(e.inputValue).then(r=>{n.value=e.input==="number"?`${parseFloat(r)||0}`:`${r}`,ut(n),n.focus(),t.hideLoading()}).catch(r=>{es(`Error in inputValue promise: ${r}`),n.value="",ut(n),n.focus(),t.hideLoading()}))};function l3(t,e,n){const r=br(t,X.select);if(!r)return;const s=(a,o,i)=>{const l=document.createElement("option");l.value=i,Yt(l,o),l.selected=_v(i,n.inputValue),a.appendChild(l)};e.forEach(a=>{const o=a[0],i=a[1];if(Array.isArray(i)){const l=document.createElement("optgroup");l.label=o,l.disabled=!1,r.appendChild(l),i.forEach(c=>s(l,c[1],c[0]))}else s(r,i,o)}),r.focus()}function c3(t,e,n){const r=br(t,X.radio);if(!r)return;e.forEach(a=>{const o=a[0],i=a[1],l=document.createElement("input"),c=document.createElement("label");l.type="radio",l.name=X.radio,l.value=o,_v(o,n.inputValue)&&(l.checked=!0);const d=document.createElement("span");Yt(d,i),d.className=X.label,c.appendChild(l),c.appendChild(d),r.appendChild(c)});const s=r.querySelectorAll("input");s.length&&s[0].focus()}const Nl=t=>{const e=[];return t instanceof Map?t.forEach((n,r)=>{let s=n;typeof s=="object"&&(s=Nl(s)),e.push([r,s])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=Nl(r)),e.push([n,r])}),e},_v=(t,e)=>!!e&&e.toString()===t.toString(),d3=t=>{const e=Ae.innerParams.get(t);t.disableButtons(),e.input?Sv(t,"confirm"):rf(t,!0)},u3=t=>{const e=Ae.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Sv(t,"deny"):nf(t,!1)},f3=(t,e)=>{t.disableButtons(),e(Ys.cancel)},Sv=(t,e)=>{const n=Ae.innerParams.get(t);if(!n.input){es(`The "input" parameter is needed to be set when using returnInputValueOn${Wu(e)}`);return}const r=t.getInput(),s=n3(t,n);n.inputValidator?h3(t,s,e):r&&!r.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||r.validationMessage)):e==="deny"?nf(t,s):rf(t,s)},h3=(t,e,n)=>{const r=Ae.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>so(r.inputValidator(e,r.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?nf(t,e):rf(t,e)})},nf=(t,e)=>{const n=Ae.innerParams.get(t||void 0);n.showLoaderOnDeny&&Xs(ts()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>so(n.preDeny(e,n.validationMessage))).then(s=>{s===!1?(t.hideLoading(),co(t)):t.close({isDenied:!0,value:typeof s>"u"?e:s})}).catch(s=>Cv(t||void 0,s))):t.close({isDenied:!0,value:e})},Ov=(t,e)=>{t.close({isConfirmed:!0,value:e})},Cv=(t,e)=>{t.rejectPromise(e)},rf=(t,e)=>{const n=Ae.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Xs(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>so(n.preConfirm(e,n.validationMessage))).then(s=>{Rt(Sl())||s===!1?(t.hideLoading(),co(t)):Ov(t,typeof s>"u"?e:s)}).catch(s=>Cv(t||void 0,s))):Ov(t,e)};function jl(){const t=Ae.innerParams.get(this);if(!t)return;const e=Ae.domCache.get(this);xt(e.loader),Cl()?t.icon&&ut(Bs()):g3(e),rn([e.popup,e.actions],X.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const g3=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ut(e[0],"inline-block"):z4()&&xt(t.actions)};function Dv(){const t=Ae.innerParams.get(this),e=Ae.domCache.get(this);return e?Dl(e.popup,t.input):null}function Mv(t,e,n){const r=Ae.domCache.get(t);e.forEach(s=>{r[s].disabled=n})}function Ev(t,e){const n=we();if(!(!n||!t))if(t.type==="radio"){const r=n.querySelectorAll(`[name="${X.radio}"]`);for(let s=0;s<r.length;s++)r[s].disabled=e}else t.disabled=e}function Pv(){Mv(this,["confirmButton","denyButton","cancelButton"],!1)}function Tv(){Mv(this,["confirmButton","denyButton","cancelButton"],!0)}function Nv(){Ev(this.getInput(),!1)}function jv(){Ev(this.getInput(),!0)}function Iv(t){const e=Ae.domCache.get(this),n=Ae.innerParams.get(this);Yt(e.validationMessage,t),e.validationMessage.className=X["validation-message"],n.customClass&&n.customClass.validationMessage&&_e(e.validationMessage,n.customClass.validationMessage),ut(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",X["validation-message"]),ev(r),_e(r,X.inputerror))}function Av(){const t=Ae.domCache.get(this);t.validationMessage&&xt(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),rn(e,X.inputerror))}const Ks={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},m3=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],p3={allowEnterKey:void 0},b3=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Rv=t=>Object.prototype.hasOwnProperty.call(Ks,t),Lv=t=>m3.indexOf(t)!==-1,Fv=t=>p3[t],y3=t=>{Rv(t)||Ot(`Unknown parameter "${t}"`)},w3=t=>{b3.includes(t)&&Ot(`The parameter "${t}" is incompatible with toasts`)},v3=t=>{const e=Fv(t);e&&Zw(t,e)},Wv=t=>{t.backdrop===!1&&t.allowOutsideClick&&Ot('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&Ot(`Invalid theme "${t.theme}"`);for(const e in t)y3(e),t.toast&&w3(e),v3(e)};function Bv(t){const e=Ct(),n=we(),r=Ae.innerParams.get(this);if(!n||qn(n,r.hideClass.popup)){Ot("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const s=x3(t),a=Object.assign({},r,s);Wv(a),e.dataset.swal2Theme=a.theme,gv(this,a),Ae.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const x3=t=>{const e={};return Object.keys(t).forEach(n=>{Lv(n)?e[n]=t[n]:Ot(`Invalid parameter to update: ${n}`)}),e};function zv(){const t=Ae.domCache.get(this),e=Ae.innerParams.get(this);if(!e){Hv(this);return}t.popup&&de.swalCloseEventFinishedCallback&&(de.swalCloseEventFinishedCallback(),delete de.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),de.eventEmitter.emit("didDestroy"),k3(this)}const k3=t=>{Hv(t),delete t.params,delete de.keydownHandler,delete de.keydownTarget,delete de.currentInstance},Hv=t=>{t.isAwaitingPromise?(sf(Ae,t),t.isAwaitingPromise=!0):(sf(Vs,t),sf(Ae,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},sf=(t,e)=>{for(const n in t)t[n].delete(e)};var _3=Object.freeze({__proto__:null,_destroy:zv,close:yr,closeModal:yr,closePopup:yr,closeToast:yr,disableButtons:Tv,disableInput:jv,disableLoading:jl,enableButtons:Pv,enableInput:Nv,getInput:Dv,handleAwaitingPromise:co,hideLoading:jl,rejectPromise:xv,resetValidationMessage:Av,showValidationMessage:Iv,update:Bv});const S3=(t,e,n)=>{t.toast?O3(t,e,n):(D3(e),M3(e),E3(t,e,n))},O3=(t,e,n)=>{e.popup.onclick=()=>{t&&(C3(t)||t.timer||t.input)||n(Ys.close)}},C3=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let Il=!1;const D3=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(Il=!0)}}},M3=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(Il=!0)}}},E3=(t,e,n)=>{e.container.onclick=r=>{if(Il){Il=!1;return}r.target===e.container&&_l(t.allowOutsideClick)&&n(Ys.backdrop)}},P3=t=>typeof t=="object"&&t.jquery,Yv=t=>t instanceof Element||P3(t),T3=t=>{const e={};return typeof t[0]=="object"&&!Yv(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const s=t[r];typeof s=="string"||Yv(s)?e[n]=s:s!==void 0&&es(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),e};function N3(...t){return new this(...t)}function j3(t){class e extends this{_main(r,s){return super._main(r,Object.assign({},t,s))}}return e}const I3=()=>de.timeout&&de.timeout.getTimerLeft(),Vv=()=>{if(de.timeout)return Y4(),de.timeout.stop()},Uv=()=>{if(de.timeout){const t=de.timeout.start();return Qu(t),t}},A3=()=>{const t=de.timeout;return t&&(t.running?Vv():Uv())},R3=t=>{if(de.timeout){const e=de.timeout.increase(t);return Qu(e,!0),e}},L3=()=>!!(de.timeout&&de.timeout.isRunning());let Xv=!1;const af={};function F3(t="data-swal-template"){af[t]=this,Xv||(document.body.addEventListener("click",W3),Xv=!0)}const W3=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in af){const r=e.getAttribute(n);if(r){af[n].fire({template:r});return}}};class B3{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const r=this._getHandlersByEventName(e);r.includes(n)||r.push(n)}once(e,n){const r=(...s)=>{this.removeListener(e,r),n.apply(this,s)};this.on(e,r)}emit(e,...n){this._getHandlersByEventName(e).forEach(r=>{try{r.apply(this,n)}catch(s){console.error(s)}})}removeListener(e,n){const r=this._getHandlersByEventName(e),s=r.indexOf(n);s>-1&&r.splice(s,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}de.eventEmitter=new B3;var z3=Object.freeze({__proto__:null,argsToParams:T3,bindClickHandler:F3,clickCancel:TR,clickConfirm:mv,clickDeny:PR,enableLoading:Xs,fire:N3,getActions:oo,getCancelButton:zs,getCloseButton:Vu,getConfirmButton:Nn,getContainer:Ct,getDenyButton:ts,getFocusableElements:Uu,getFooter:$w,getHtmlContainer:Hu,getIcon:Bs,getIconContent:R4,getImage:qw,getInputLabel:L4,getLoader:Hs,getPopup:we,getProgressSteps:Yu,getTimerLeft:I3,getTimerProgressBar:Ol,getTitle:Jw,getValidationMessage:Sl,increaseTimer:R3,isDeprecatedParameter:Fv,isLoading:W4,isTimerRunning:L3,isUpdatableParameter:Lv,isValidParameter:Rv,isVisible:ER,mixin:j3,off:(t,e)=>{if(!t){de.eventEmitter.reset();return}e?de.eventEmitter.removeListener(t,e):de.eventEmitter.removeAllListeners(t)},on:(t,e)=>{de.eventEmitter.on(t,e)},once:(t,e)=>{de.eventEmitter.once(t,e)},resumeTimer:Uv,showLoading:Xs,stopTimer:Vv,toggleTimer:A3});class H3{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Kv=["swal-title","swal-html","swal-footer"],Y3=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return J3(n),Object.assign(V3(n),U3(n),X3(n),K3(n),G3(n),Q3(n),Z3(n,Kv))},V3=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(r=>{ss(r,["name","value"]);const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(typeof Ks[s]=="boolean"?e[s]=a!=="false":typeof Ks[s]=="object"?e[s]=JSON.parse(a):e[s]=a)}),e},U3=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(r=>{const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(e[s]=new Function(`return ${a}`)())}),e},X3=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(r=>{ss(r,["type","color","aria-label"]);const s=r.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(e[`${s}ButtonText`]=r.innerHTML,e[`show${Wu(s)}Button`]=!0,r.hasAttribute("color")&&(e[`${s}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(e[`${s}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),e},K3=t=>{const e={},n=t.querySelector("swal-image");return n&&(ss(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},G3=t=>{const e={},n=t.querySelector("swal-icon");return n&&(ss(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Q3=t=>{const e={},n=t.querySelector("swal-input");n&&(ss(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=Array.from(t.querySelectorAll("swal-input-option"));return r.length&&(e.inputOptions={},r.forEach(s=>{ss(s,["value"]);const a=s.getAttribute("value");if(!a)return;const o=s.innerHTML;e.inputOptions[a]=o})),e},Z3=(t,e)=>{const n={};for(const r in e){const s=e[r],a=t.querySelector(s);a&&(ss(a,[]),n[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},J3=t=>{const e=Kv.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.includes(r)||Ot(`Unrecognized element <${r}>`)})},ss=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&Ot([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Gv=10,q3=t=>{const e=Ct(),n=we();typeof t.willOpen=="function"&&t.willOpen(n),de.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;tL(e,n,t),setTimeout(()=>{$3(e,n)},Gv),Xu()&&(eL(e,t.scrollbarPadding,s),WR()),!Cl()&&!de.previousActiveElement&&(de.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),de.eventEmitter.emit("didOpen",n)},Al=t=>{const e=we();if(t.target!==e)return;const n=Ct();e.removeEventListener("animationend",Al),e.removeEventListener("transitionend",Al),n.style.overflowY="auto",rn(n,X["no-transition"])},$3=(t,e)=>{rv(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",Al),e.addEventListener("transitionend",Al)):t.style.overflowY="auto"},eL=(t,e,n)=>{BR(),e&&n!=="hidden"&&KR(n),setTimeout(()=>{t.scrollTop=0})},tL=(t,e,n)=>{_e(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),ut(e,"grid"),setTimeout(()=>{_e(e,n.showClass.popup),e.style.removeProperty("opacity")},Gv)):ut(e,"grid"),_e([document.documentElement,document.body],X.shown),n.heightAuto&&n.backdrop&&!n.toast&&_e([document.documentElement,document.body],X["height-auto"])};var Qv={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function nL(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=Qv.email),t.input==="url"&&(t.inputValidator=Qv.url))}function rL(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(Ot('Target parameter is not valid, defaulting to "body"'),t.target="body")}function sL(t){nL(t),t.showLoaderOnConfirm&&!t.preConfirm&&Ot(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
560
+ `,ay=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let n=t.innerHTML,r="";e.iconHtml?r=oy(e.iconHtml):e.icon==="success"?(r=JP(e),n=n.replace(/ style=".*?"/g,"")):e.icon==="error"?r=qP:e.icon&&(r=oy({question:"?",warning:"!",info:"i"}[e.icon])),n.trim()!==r.trim()&&Ht(t,r)},$P=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ey(t,n,"background-color",e.iconColor);ey(t,".swal2-success-ring","border-color",e.iconColor)}},oy=t=>`<div class="${X["icon-content"]}">${t}</div>`,eT=(t,e)=>{const n=Zb();if(n){if(!e.imageUrl){xt(n);return}dt(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt||""),Kr(n,"width",e.imageWidth),Kr(n,"height",e.imageHeight),n.className=X.image,Yt(n,e,"image")}};let au=!1,iy=0,ly=0,cy=0,dy=0;const tT=t=>{t.addEventListener("mousedown",Zi),document.body.addEventListener("mousemove",Ji),t.addEventListener("mouseup",qi),t.addEventListener("touchstart",Zi),document.body.addEventListener("touchmove",Ji),t.addEventListener("touchend",qi)},nT=t=>{t.removeEventListener("mousedown",Zi),document.body.removeEventListener("mousemove",Ji),t.removeEventListener("mouseup",qi),t.removeEventListener("touchstart",Zi),document.body.removeEventListener("touchmove",Ji),t.removeEventListener("touchend",qi)},Zi=t=>{const e=we();if(t.target===e||Ts().contains(t.target)){au=!0;const n=uy(t);iy=n.clientX,ly=n.clientY,cy=parseInt(e.style.insetInlineStart)||0,dy=parseInt(e.style.insetBlockStart)||0,ke(e,"swal2-dragging")}},Ji=t=>{const e=we();if(au){let{clientX:n,clientY:r}=uy(t);const s=n-iy;e.style.insetInlineStart=`${cy+(de.isRTL?-s:s)}px`,e.style.insetBlockStart=`${dy+(r-ly)}px`}},qi=()=>{const t=we();au=!1,tn(t,"swal2-dragging")},uy=t=>{let e=0,n=0;return t.type.startsWith("mouse")?(e=t.clientX,n=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,n=t.touches[0].clientY),{clientX:e,clientY:n}},rT=(t,e)=>{const n=St(),r=we();if(!(!n||!r)){if(e.toast){Kr(n,"width",e.width),r.style.width="100%";const s=js();s&&r.insertBefore(s,Ts())}else Kr(r,"width",e.width);Kr(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),xt(Ui()),sT(r,e),e.draggable&&!e.toast?(ke(r,X.draggable),tT(r)):(tn(r,X.draggable),nT(r))}},sT=(t,e)=>{const n=e.showClass||{};t.className=`${X.popup} ${It(t)?n.popup:""}`,e.toast?(ke([document.documentElement,document.body],X["toast-shown"]),ke(t,X.toast)):ke(t,X.modal),Yt(t,e,"popup"),typeof e.customClass=="string"&&ke(t,e.customClass),e.icon&&ke(t,X[`icon-${e.icon}`])},aT=(t,e)=>{const n=Gd();if(!n)return;const{progressSteps:r,currentProgressStep:s}=e;if(!r||r.length===0||s===void 0){xt(n);return}dt(n),n.textContent="",s>=r.length&&_t("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((a,o)=>{const i=oT(a);if(n.appendChild(i),o===s&&ke(i,X["active-progress-step"]),o!==r.length-1){const l=iT(e);n.appendChild(l)}})},oT=t=>{const e=document.createElement("li");return ke(e,X["progress-step"]),Ht(e,t),e},iT=t=>{const e=document.createElement("li");return ke(e,X["progress-step-line"]),t.progressStepsDistance&&Kr(e,"width",t.progressStepsDistance),e},lT=(t,e)=>{const n=Qb();n&&(qd(n),Ja(n,!!(e.title||e.titleText),"block"),e.title&&tu(e.title,n),e.titleText&&(n.innerText=e.titleText),Yt(n,e,"title"))},fy=(t,e)=>{rT(t,e),FP(t,e),aT(t,e),ZP(t,e),eT(t,e),lT(t,e),LP(t,e),GP(t,e),IP(t,e),QP(t,e);const n=we();typeof e.didRender=="function"&&n&&e.didRender(n),de.eventEmitter.emit("didRender",n)},cT=()=>It(we()),hy=()=>{var t;return(t=Sn())===null||t===void 0?void 0:t.click()},dT=()=>{var t;return(t=Xr())===null||t===void 0?void 0:t.click()},uT=()=>{var t;return(t=Ns())===null||t===void 0?void 0:t.click()},Is=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),gy=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},fT=(t,e,n)=>{gy(t),e.toast||(t.keydownHandler=r=>gT(e,r,n),t.keydownTarget=e.keydownListenerCapture?window:we(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},ou=(t,e)=>{var n;const r=Zd();if(r.length){t=t+e,t===-2&&(t=r.length-1),t===r.length?t=0:t===-1&&(t=r.length-1),r[t].focus();return}(n=we())===null||n===void 0||n.focus()},my=["ArrowRight","ArrowDown"],hT=["ArrowLeft","ArrowUp"],gT=(t,e,n)=>{t&&(e.isComposing||e.keyCode===229||(t.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?mT(e,t):e.key==="Tab"?pT(e):[...my,...hT].includes(e.key)?bT(e.key):e.key==="Escape"&&yT(e,t,n)))},mT=(t,e)=>{if(!Vi(e.allowEnterKey))return;const n=Gi(we(),e.input);if(t.target&&n&&t.target instanceof HTMLElement&&t.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(e.input))return;hy(),t.preventDefault()}},pT=t=>{const e=t.target,n=Zd();let r=-1;for(let s=0;s<n.length;s++)if(e===n[s]){r=s;break}t.shiftKey?ou(r,-1):ou(r,1),t.stopPropagation(),t.preventDefault()},bT=t=>{const e=Za(),n=Sn(),r=Xr(),s=Ns();if(!e||!n||!r||!s)return;const a=[n,r,s];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=my.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let l=0;l<e.children.length;l++){if(i=i[o],!i)return;if(i instanceof HTMLButtonElement&&It(i))break}i instanceof HTMLButtonElement&&i.focus()}},yT=(t,e,n)=>{t.preventDefault(),Vi(e.allowEscapeKey)&&n(Is.esc)};var As={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const wT=()=>{const t=St();Array.from(document.body.children).forEach(n=>{n.contains(t)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},py=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},by=typeof window<"u"&&!!window.GestureEvent,vT=()=>{if(by&&!Vn(document.body,X.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,ke(document.body,X.iosfix),xT()}},xT=()=>{const t=St();if(!t)return;let e;t.ontouchstart=n=>{e=kT(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},kT=t=>{const e=t.target,n=St(),r=Kd();return!n||!r||_T(t)||ST(t)?!1:e===n||!$d(n)&&e instanceof HTMLElement&&!kP(e,r)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!($d(r)&&r.contains(e))},_T=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",ST=t=>t.touches&&t.touches.length>1,OT=()=>{if(Vn(document.body,X.iosfix)){const t=parseInt(document.body.style.top,10);tn(document.body,X.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},CT=()=>{const t=document.createElement("div");t.className=X["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e};let Rs=null;const DT=t=>{Rs===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(Rs=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Rs+CT()}px`)},MT=()=>{Rs!==null&&(document.body.style.paddingRight=`${Rs}px`,Rs=null)};function yy(t,e,n,r){Ki()?vy(t,r):(gP(n).then(()=>vy(t,r)),gy(de)),by?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Jd()&&(MT(),OT(),py()),ET()}function ET(){tn([document.documentElement,document.body],[X.shown,X["height-auto"],X["no-backdrop"],X["toast-shown"]])}function gr(t){t=TT(t);const e=As.swalPromiseResolve.get(this),n=PT(this);this.isAwaitingPromise?t.isDismissed||($a(this),e(t)):n&&e(t)}const PT=t=>{const e=we();if(!e)return!1;const n=Ae.innerParams.get(t);if(!n||Vn(e,n.hideClass.popup))return!1;tn(e,n.showClass.popup),ke(e,n.hideClass.popup);const r=St();return tn(r,n.showClass.backdrop),ke(r,n.hideClass.backdrop),NT(t,e,n),!0};function wy(t){const e=As.swalPromiseReject.get(this);$a(this),e&&e(t)}const $a=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,Ae.innerParams.get(t)||t._destroy())},TT=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),NT=(t,e,n)=>{var r;const s=St(),a=ty(e);typeof n.willClose=="function"&&n.willClose(e),(r=de.eventEmitter)===null||r===void 0||r.emit("willClose",e),a?jT(t,e,s,n.returnFocus,n.didClose):yy(t,s,n.returnFocus,n.didClose)},jT=(t,e,n,r,s)=>{de.swalCloseEventFinishedCallback=yy.bind(null,t,n,r,s);const a=function(o){if(o.target===e){var i;(i=de.swalCloseEventFinishedCallback)===null||i===void 0||i.call(de),delete de.swalCloseEventFinishedCallback,e.removeEventListener("animationend",a),e.removeEventListener("transitionend",a)}};e.addEventListener("animationend",a),e.addEventListener("transitionend",a)},vy=(t,e)=>{setTimeout(()=>{var n;typeof e=="function"&&e.bind(t.params)(),(n=de.eventEmitter)===null||n===void 0||n.emit("didClose"),t._destroy&&t._destroy()})},Ls=t=>{let e=we();if(e||new Ws,e=we(),!e)return;const n=js();Ki()?xt(Ts()):IT(e,t),dt(n),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},IT=(t,e)=>{const n=Za(),r=js();!n||!r||(!e&&It(Sn())&&(e=Sn()),dt(n),e&&(xt(e),r.setAttribute("data-button-to-replace",e.className),n.insertBefore(r,e)),ke([t,n],X.loading))},AT=(t,e)=>{e.input==="select"||e.input==="radio"?BT(t,e):["text","email","number","tel","textarea"].some(n=>n===e.input)&&(Ud(e.inputValue)||Xd(e.inputValue))&&(Ls(Sn()),zT(t,e))},RT=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return LT(n);case"radio":return FT(n);case"file":return WT(n);default:return e.inputAutoTrim?n.value.trim():n.value}},LT=t=>t.checked?1:0,FT=t=>t.checked?t.value:null,WT=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,BT=(t,e)=>{const n=we();if(!n)return;const r=s=>{e.input==="select"?HT(n,$i(s),e):e.input==="radio"&&YT(n,$i(s),e)};Ud(e.inputOptions)||Xd(e.inputOptions)?(Ls(Sn()),Ga(e.inputOptions).then(s=>{t.hideLoading(),r(s)})):typeof e.inputOptions=="object"?r(e.inputOptions):Ur(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},zT=(t,e)=>{const n=t.getInput();n&&(xt(n),Ga(e.inputValue).then(r=>{n.value=e.input==="number"?`${parseFloat(r)||0}`:`${r}`,dt(n),n.focus(),t.hideLoading()}).catch(r=>{Ur(`Error in inputValue promise: ${r}`),n.value="",dt(n),n.focus(),t.hideLoading()}))};function HT(t,e,n){const r=hr(t,X.select);if(!r)return;const s=(a,o,i)=>{const l=document.createElement("option");l.value=i,Ht(l,o),l.selected=xy(i,n.inputValue),a.appendChild(l)};e.forEach(a=>{const o=a[0],i=a[1];if(Array.isArray(i)){const l=document.createElement("optgroup");l.label=o,l.disabled=!1,r.appendChild(l),i.forEach(c=>s(l,c[1],c[0]))}else s(r,i,o)}),r.focus()}function YT(t,e,n){const r=hr(t,X.radio);if(!r)return;e.forEach(a=>{const o=a[0],i=a[1],l=document.createElement("input"),c=document.createElement("label");l.type="radio",l.name=X.radio,l.value=o,xy(o,n.inputValue)&&(l.checked=!0);const d=document.createElement("span");Ht(d,i),d.className=X.label,c.appendChild(l),c.appendChild(d),r.appendChild(c)});const s=r.querySelectorAll("input");s.length&&s[0].focus()}const $i=t=>{const e=[];return t instanceof Map?t.forEach((n,r)=>{let s=n;typeof s=="object"&&(s=$i(s)),e.push([r,s])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=$i(r)),e.push([n,r])}),e},xy=(t,e)=>!!e&&e.toString()===t.toString(),VT=t=>{const e=Ae.innerParams.get(t);t.disableButtons(),e.input?ky(t,"confirm"):lu(t,!0)},UT=t=>{const e=Ae.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ky(t,"deny"):iu(t,!1)},XT=(t,e)=>{t.disableButtons(),e(Is.cancel)},ky=(t,e)=>{const n=Ae.innerParams.get(t);if(!n.input){Ur(`The "input" parameter is needed to be set when using returnInputValueOn${Vd(e)}`);return}const r=t.getInput(),s=RT(t,n);n.inputValidator?KT(t,s,e):r&&!r.checkValidity()?(t.enableButtons(),t.showValidationMessage(n.validationMessage||r.validationMessage)):e==="deny"?iu(t,s):lu(t,s)},KT=(t,e,n)=>{const r=Ae.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ga(r.inputValidator(e,r.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?iu(t,e):lu(t,e)})},iu=(t,e)=>{const n=Ae.innerParams.get(t||void 0);n.showLoaderOnDeny&&Ls(Xr()),n.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>Ga(n.preDeny(e,n.validationMessage))).then(s=>{s===!1?(t.hideLoading(),$a(t)):t.close({isDenied:!0,value:typeof s>"u"?e:s})}).catch(s=>Sy(t||void 0,s))):t.close({isDenied:!0,value:e})},_y=(t,e)=>{t.close({isConfirmed:!0,value:e})},Sy=(t,e)=>{t.rejectPromise(e)},lu=(t,e)=>{const n=Ae.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Ls(),n.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>Ga(n.preConfirm(e,n.validationMessage))).then(s=>{It(Ui())||s===!1?(t.hideLoading(),$a(t)):_y(t,typeof s>"u"?e:s)}).catch(s=>Sy(t||void 0,s))):_y(t,e)};function el(){const t=Ae.innerParams.get(this);if(!t)return;const e=Ae.domCache.get(this);xt(e.loader),Ki()?t.icon&&dt(Ts()):GT(e),tn([e.popup,e.actions],X.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const GT=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?dt(e[0],"inline-block"):xP()&&xt(t.actions)};function Oy(){const t=Ae.innerParams.get(this),e=Ae.domCache.get(this);return e?Gi(e.popup,t.input):null}function Cy(t,e,n){const r=Ae.domCache.get(t);e.forEach(s=>{r[s].disabled=n})}function Dy(t,e){const n=we();if(!(!n||!t))if(t.type==="radio"){const r=n.querySelectorAll(`[name="${X.radio}"]`);for(let s=0;s<r.length;s++)r[s].disabled=e}else t.disabled=e}function My(){Cy(this,["confirmButton","denyButton","cancelButton"],!1)}function Ey(){Cy(this,["confirmButton","denyButton","cancelButton"],!0)}function Py(){Dy(this.getInput(),!1)}function Ty(){Dy(this.getInput(),!0)}function Ny(t){const e=Ae.domCache.get(this),n=Ae.innerParams.get(this);Ht(e.validationMessage,t),e.validationMessage.className=X["validation-message"],n.customClass&&n.customClass.validationMessage&&ke(e.validationMessage,n.customClass.validationMessage),dt(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",X["validation-message"]),qb(r),ke(r,X.inputerror))}function jy(){const t=Ae.domCache.get(this);t.validationMessage&&xt(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),tn(e,X.inputerror))}const Fs={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},QT=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],ZT={allowEnterKey:void 0},JT=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Iy=t=>Object.prototype.hasOwnProperty.call(Fs,t),Ay=t=>QT.indexOf(t)!==-1,Ry=t=>ZT[t],qT=t=>{Iy(t)||_t(`Unknown parameter "${t}"`)},$T=t=>{JT.includes(t)&&_t(`The parameter "${t}" is incompatible with toasts`)},e5=t=>{const e=Ry(t);e&&Gb(t,e)},Ly=t=>{t.backdrop===!1&&t.allowOutsideClick&&_t('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&_t(`Invalid theme "${t.theme}"`);for(const e in t)qT(e),t.toast&&$T(e),e5(e)};function Fy(t){const e=St(),n=we(),r=Ae.innerParams.get(this);if(!n||Vn(n,r.hideClass.popup)){_t("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const s=t5(t),a=Object.assign({},r,s);Ly(a),e.dataset.swal2Theme=a.theme,fy(this,a),Ae.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const t5=t=>{const e={};return Object.keys(t).forEach(n=>{Ay(n)?e[n]=t[n]:_t(`Invalid parameter to update: ${n}`)}),e};function Wy(){const t=Ae.domCache.get(this),e=Ae.innerParams.get(this);if(!e){By(this);return}t.popup&&de.swalCloseEventFinishedCallback&&(de.swalCloseEventFinishedCallback(),delete de.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),de.eventEmitter.emit("didDestroy"),n5(this)}const n5=t=>{By(t),delete t.params,delete de.keydownHandler,delete de.keydownTarget,delete de.currentInstance},By=t=>{t.isAwaitingPromise?(cu(Ae,t),t.isAwaitingPromise=!0):(cu(As,t),cu(Ae,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},cu=(t,e)=>{for(const n in t)t[n].delete(e)};var r5=Object.freeze({__proto__:null,_destroy:Wy,close:gr,closeModal:gr,closePopup:gr,closeToast:gr,disableButtons:Ey,disableInput:Ty,disableLoading:el,enableButtons:My,enableInput:Py,getInput:Oy,handleAwaitingPromise:$a,hideLoading:el,rejectPromise:wy,resetValidationMessage:jy,showValidationMessage:Ny,update:Fy});const s5=(t,e,n)=>{t.toast?a5(t,e,n):(i5(e),l5(e),c5(t,e,n))},a5=(t,e,n)=>{e.popup.onclick=()=>{t&&(o5(t)||t.timer||t.input)||n(Is.close)}},o5=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let tl=!1;const i5=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(tl=!0)}}},l5=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(n){t.popup.onmouseup=()=>{},(n.target===t.popup||n.target instanceof HTMLElement&&t.popup.contains(n.target))&&(tl=!0)}}},c5=(t,e,n)=>{e.container.onclick=r=>{if(tl){tl=!1;return}r.target===e.container&&Vi(t.allowOutsideClick)&&n(Is.backdrop)}},d5=t=>typeof t=="object"&&t.jquery,zy=t=>t instanceof Element||d5(t),u5=t=>{const e={};return typeof t[0]=="object"&&!zy(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const s=t[r];typeof s=="string"||zy(s)?e[n]=s:s!==void 0&&Ur(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),e};function f5(...t){return new this(...t)}function h5(t){class e extends this{_main(r,s){return super._main(r,Object.assign({},t,s))}}return e}const g5=()=>de.timeout&&de.timeout.getTimerLeft(),Hy=()=>{if(de.timeout)return _P(),de.timeout.stop()},Yy=()=>{if(de.timeout){const t=de.timeout.start();return eu(t),t}},m5=()=>{const t=de.timeout;return t&&(t.running?Hy():Yy())},p5=t=>{if(de.timeout){const e=de.timeout.increase(t);return eu(e,!0),e}},b5=()=>!!(de.timeout&&de.timeout.isRunning());let Vy=!1;const du={};function y5(t="data-swal-template"){du[t]=this,Vy||(document.body.addEventListener("click",w5),Vy=!0)}const w5=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in du){const r=e.getAttribute(n);if(r){du[n].fire({template:r});return}}};class v5{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,n){const r=this._getHandlersByEventName(e);r.includes(n)||r.push(n)}once(e,n){const r=(...s)=>{this.removeListener(e,r),n.apply(this,s)};this.on(e,r)}emit(e,...n){this._getHandlersByEventName(e).forEach(r=>{try{r.apply(this,n)}catch(s){console.error(s)}})}removeListener(e,n){const r=this._getHandlersByEventName(e),s=r.indexOf(n);s>-1&&r.splice(s,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}de.eventEmitter=new v5;var x5=Object.freeze({__proto__:null,argsToParams:u5,bindClickHandler:y5,clickCancel:uT,clickConfirm:hy,clickDeny:dT,enableLoading:Ls,fire:f5,getActions:Za,getCancelButton:Ns,getCloseButton:Qd,getConfirmButton:Sn,getContainer:St,getDenyButton:Xr,getFocusableElements:Zd,getFooter:Jb,getHtmlContainer:Kd,getIcon:Ts,getIconContent:pP,getImage:Zb,getInputLabel:bP,getLoader:js,getPopup:we,getProgressSteps:Gd,getTimerLeft:g5,getTimerProgressBar:Xi,getTitle:Qb,getValidationMessage:Ui,increaseTimer:p5,isDeprecatedParameter:Ry,isLoading:wP,isTimerRunning:b5,isUpdatableParameter:Ay,isValidParameter:Iy,isVisible:cT,mixin:h5,off:(t,e)=>{if(!t){de.eventEmitter.reset();return}e?de.eventEmitter.removeListener(t,e):de.eventEmitter.removeAllListeners(t)},on:(t,e)=>{de.eventEmitter.on(t,e)},once:(t,e)=>{de.eventEmitter.once(t,e)},resumeTimer:Yy,showLoading:Ls,stopTimer:Hy,toggleTimer:m5});class k5{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Uy=["swal-title","swal-html","swal-footer"],_5=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return T5(n),Object.assign(S5(n),O5(n),C5(n),D5(n),M5(n),E5(n),P5(n,Uy))},S5=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(r=>{Qr(r,["name","value"]);const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(typeof Fs[s]=="boolean"?e[s]=a!=="false":typeof Fs[s]=="object"?e[s]=JSON.parse(a):e[s]=a)}),e},O5=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(r=>{const s=r.getAttribute("name"),a=r.getAttribute("value");!s||!a||(e[s]=new Function(`return ${a}`)())}),e},C5=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(r=>{Qr(r,["type","color","aria-label"]);const s=r.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(e[`${s}ButtonText`]=r.innerHTML,e[`show${Vd(s)}Button`]=!0,r.hasAttribute("color")&&(e[`${s}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(e[`${s}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),e},D5=t=>{const e={},n=t.querySelector("swal-image");return n&&(Qr(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt")||void 0)),e},M5=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Qr(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},E5=t=>{const e={},n=t.querySelector("swal-input");n&&(Qr(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=Array.from(t.querySelectorAll("swal-input-option"));return r.length&&(e.inputOptions={},r.forEach(s=>{Qr(s,["value"]);const a=s.getAttribute("value");if(!a)return;const o=s.innerHTML;e.inputOptions[a]=o})),e},P5=(t,e)=>{const n={};for(const r in e){const s=e[r],a=t.querySelector(s);a&&(Qr(a,[]),n[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},T5=t=>{const e=Uy.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.includes(r)||_t(`Unrecognized element <${r}>`)})},Qr=(t,e)=>{Array.from(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&_t([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Xy=10,N5=t=>{const e=St(),n=we();typeof t.willOpen=="function"&&t.willOpen(n),de.eventEmitter.emit("willOpen",n);const s=window.getComputedStyle(document.body).overflowY;A5(e,n,t),setTimeout(()=>{j5(e,n)},Xy),Jd()&&(I5(e,t.scrollbarPadding,s),wT()),!Ki()&&!de.previousActiveElement&&(de.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),de.eventEmitter.emit("didOpen",n)},nl=t=>{const e=we();if(t.target!==e)return;const n=St();e.removeEventListener("animationend",nl),e.removeEventListener("transitionend",nl),n.style.overflowY="auto",tn(n,X["no-transition"])},j5=(t,e)=>{ty(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",nl),e.addEventListener("transitionend",nl)):t.style.overflowY="auto"},I5=(t,e,n)=>{vT(),e&&n!=="hidden"&&DT(n),setTimeout(()=>{t.scrollTop=0})},A5=(t,e,n)=>{ke(t,n.showClass.backdrop),n.animation?(e.style.setProperty("opacity","0","important"),dt(e,"grid"),setTimeout(()=>{ke(e,n.showClass.popup),e.style.removeProperty("opacity")},Xy)):dt(e,"grid"),ke([document.documentElement,document.body],X.shown),n.heightAuto&&n.backdrop&&!n.toast&&ke([document.documentElement,document.body],X["height-auto"])};var Ky={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function R5(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=Ky.email),t.input==="url"&&(t.inputValidator=Ky.url))}function L5(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(_t('Target parameter is not valid, defaulting to "body"'),t.target="body")}function F5(t){R5(t),t.showLoaderOnConfirm&&!t.preConfirm&&_t(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
582
561
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
583
- https://sweetalert2.github.io/#ajax-request`),rL(t),typeof t.title=="string"&&(t.title=t.title.split(`
584
- `).join("<br />")),J4(t)}let jn;var Rl=new WeakMap;class qe{constructor(...e){if(P4(this,Rl,void 0),typeof window>"u")return;jn=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,T4(Rl,this,this._main(jn.params))}_main(e,n={}){if(Wv(Object.assign({},n,e)),de.currentInstance){const a=Vs.swalPromiseResolve.get(de.currentInstance),{isAwaitingPromise:o}=de.currentInstance;de.currentInstance._destroy(),o||a({isDismissed:!0}),Xu()&&yv()}de.currentInstance=jn;const r=oL(e,n);sL(r),Object.freeze(r),de.timeout&&(de.timeout.stop(),delete de.timeout),clearTimeout(de.restoreFocusTimeout);const s=iL(jn);return gv(jn,r),Ae.innerParams.set(jn,r),aL(jn,s,r)}then(e){return Xw(Rl,this).then(e)}finally(e){return Xw(Rl,this).finally(e)}}const aL=(t,e,n)=>new Promise((r,s)=>{const a=o=>{t.close({isDismissed:!0,dismiss:o,isConfirmed:!1,isDenied:!1})};Vs.swalPromiseResolve.set(t,r),Vs.swalPromiseReject.set(t,s),e.confirmButton.onclick=()=>{d3(t)},e.denyButton.onclick=()=>{u3(t)},e.cancelButton.onclick=()=>{f3(t,a)},e.closeButton.onclick=()=>{a(Ys.close)},S3(n,e,a),NR(de,n,a),t3(t,n),q3(n),lL(de,n,a),cL(e,n),setTimeout(()=>{e.container.scrollTop=0})}),oL=(t,e)=>{const n=Y3(t),r=Object.assign({},Ks,e,n,t);return r.showClass=Object.assign({},Ks.showClass,r.showClass),r.hideClass=Object.assign({},Ks.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},iL=t=>{const e={popup:we(),container:Ct(),actions:oo(),confirmButton:Nn(),denyButton:ts(),cancelButton:zs(),loader:Hs(),closeButton:Vu(),validationMessage:Sl(),progressSteps:Yu()};return Ae.domCache.set(t,e),e},lL=(t,e,n)=>{const r=Ol();xt(r),e.timer&&(t.timeout=new H3(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ut(r),Vt(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Qu(e.timer)})))},cL=(t,e)=>{if(!e.toast){if(!_l(e.allowEnterKey)){Zw("allowEnterKey"),fL();return}dL(t)||uL(t,e)||tf(-1,1)}},dL=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&Rt(n))return n.focus(),!0;return!1},uL=(t,e)=>e.focusDeny&&Rt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Rt(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Rt(t.confirmButton)?(t.confirmButton.focus(),!0):!1,fL=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};qe.prototype.disableButtons=Tv,qe.prototype.enableButtons=Pv,qe.prototype.getInput=Dv,qe.prototype.disableInput=jv,qe.prototype.enableInput=Nv,qe.prototype.hideLoading=jl,qe.prototype.disableLoading=jl,qe.prototype.showValidationMessage=Iv,qe.prototype.resetValidationMessage=Av,qe.prototype.close=yr,qe.prototype.closePopup=yr,qe.prototype.closeModal=yr,qe.prototype.closeToast=yr,qe.prototype.rejectPromise=xv,qe.prototype.update=Bv,qe.prototype._destroy=zv,Object.assign(qe,z3),Object.keys(_3).forEach(t=>{qe[t]=function(...e){return jn&&jn[t]?jn[t](...e):null}}),qe.DismissReason=Ys,qe.version="11.26.4";const Ll=qe;Ll.default=Ll,typeof document<"u"&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const hL=({isOpen:t,onConfirm:e,onCancel:n,onClose:r,...s})=>(_.useEffect(()=>{t&&Ll.fire(s).then(a=>{a.isConfirmed&&e&&e(),a.isDismissed&&n&&n(),r&&r()})},[t,n,r,e,s]),null),gL=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:f,collapsible:h=!1,collapseMode:m="multi",defaultOpenRows:p=[],onCollapseChange:b,openRowIds:v,getSubRows:x,hideIdInSubRows:k=!0,collapseToggleColumnKey:w="id",collapseButtonClassName:y,parentRowClassName:S,subRowClassName:N})=>{const[D,T]=z.useState(""),[E,Y]=z.useState(1),[L,O]=z.useState(null),[C,P]=z.useState(p),F=v??C,U=B=>{if(v)return b==null?void 0:b(B);P(B),b==null||b(B)},Z=B=>{h&&U(m==="multi"?F.includes(B)?F.filter(te=>te!==B):[...F,B]:F.includes(B)?[]:[B])},ee=z.useMemo(()=>L?[...e].sort((B,te)=>{const W=B[L.key],ne=te[L.key];return W==null||ne==null?0:typeof W=="string"&&typeof ne=="string"?L.direction==="asc"?W.localeCompare(ne):ne.localeCompare(W):L.direction==="asc"?Number(W)-Number(ne):Number(ne)-Number(W)}):e,[e,L]),j=z.useMemo(()=>{if(!D.trim())return ee;const B=D.toLowerCase().trim();return ee.filter(te=>t.some(W=>{const ne=te[W.relation];return ne!=null&&String(ne).toLowerCase().includes(B)}))},[ee,D,t]),V=z.useMemo(()=>{const B=(E-1)*r,te=B+r;return j.slice(B,te)},[j,E,r]),R=Math.ceil(j.length/r),A=()=>{if(!f)return;const B=V.length>0&&V.every(te=>c.has(te.id));f(!B)},I=B=>{if(!u)return;const te=c.has(B);u(B,!te)},M=V.length>0&&V.every(B=>c.has(B.id)),H=c.size>0&&c.size<V.length,J=B=>{O(te=>!te||te.key!==B?{key:B,direction:"asc"}:{key:B,direction:te.direction==="asc"?"desc":"asc"})},K=(B,te)=>{const W=te[B.relation];if(B.isToggle){const ne=!!W;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(zd,{checked:ne,onChange:se=>d==null?void 0:d({rowId:te.id,checked:se,row:te,columnKey:B.relation}),disabled:!1}),B.toggleText&&g.jsx("span",{className:"text-sm text-gray-600",children:ne?B.toggleText.active:B.toggleText.inactive})]})}if(B.cell)return B.cell(te);if(B.component){const ne=B.component;return z.createElement(ne,{row:te,value:W,...B.cellProps||{}})}return W??""},q=(B,te,W)=>{const ne=B[w];return g.jsxs("div",{className:"flex items-center gap-2",children:[te?g.jsx("button",{type:"button",onClick:()=>Z(B.id),className:y??"mth-collapse-btn","aria-label":W?"Colapsar fila":"Expandir fila",children:W?g.jsx(Bl,{className:"size-4"}):g.jsx(mo,{className:"size-4"})}):g.jsx("span",{className:"mth-collapse-spacer"}),g.jsx("span",{children:ne!=null?String(ne):""})]})};return g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&g.jsx("h2",{className:"text-base font-bold",children:s})}),g.jsx("div",{className:"flex",children:n&&g.jsx("div",{className:"w-1/2",children:g.jsx(os,{rightIcon:hf,placeholder:"Buscar",value:D,onChange:B=>{T(B.target.value),Y(1)}})})}),g.jsxs("div",{className:"mt-0",children:[g.jsx("div",{className:"overflow-x-auto",children:g.jsxs(Ke,{children:[g.jsxs(Ke.Head,{className:`mth_head_table ${a}`,children:[l&&g.jsx(Ke.HeadCell,{children:g.jsx(qs,{checked:M,ref:B=>{B&&(B.indeterminate=H)},onChange:A})},"checkbox-head"),t.map((B,te)=>g.jsx(Ke.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>B.sortable!==!1&&J(B.relation),children:B.header},`column-${te}-${B.relation}`))]}),g.jsx(Ke.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:V.map(B=>{const te=x?x(B):[],W=h&&te.length>0,ne=W&&F.includes(B.id);return g.jsxs(z.Fragment,{children:[g.jsxs(Ke.Row,{className:S??"mth-parent-row",children:[l&&g.jsx(Ke.Cell,{children:g.jsx(qs,{checked:c.has(B.id),onChange:()=>I(B.id)})}),t.map((se,oe)=>se.relation===w?g.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium text-gray-900",children:q(B,W,ne)},`${B.id}-${oe}`):g.jsx(Ke.Cell,{className:"whitespace-nowrap font-medium text-gray-900",children:K(se,B)},`${B.id}-${oe}`))]}),W&&ne&&te.map((se,oe)=>g.jsxs(Ke.Row,{className:N??"mth-sub-row",children:[l&&g.jsx(Ke.Cell,{className:"mth-sub-empty-cell"}),t.map((ge,ce)=>ge.relation===w?g.jsx(Ke.Cell,{className:"mth-sub-empty-cell",children:k?"":String(se[w]??"")},`${B.id}-sub-${oe}-${ce}`):g.jsx(Ke.Cell,{className:"whitespace-nowrap font-normal text-gray-900",children:K(ge,se)},`${B.id}-sub-${oe}-${ce}`))]},`${B.id}-sub-${oe}`))]},B.id)})})]})}),i&&R>1&&g.jsx("div",{className:"mt-2 flex w-full justify-end",children:g.jsx(Bd,{currentPage:E,totalPages:R,onPageChange:Y})})]})]})};fe.Accordion=Vw,fe.AccordionGroup=C4,fe.Alert=hL,fe.ButtonFormat=qv,fe.Card=Fd,fe.CardIndicator=__,fe.Checkbox=$v,fe.ChipList=M4,fe.CollapsibleTable=gL,fe.CustomPagination=Bd,fe.DatePicker=x4,fe.DateRangePicker=v4,fe.DropdownButton=_4,fe.DropdownList=D4,fe.Dropzone=nP,fe.ImageFormat=xr,fe.InputForm=Ic,fe.LayoutOutside=JE,fe.ListFile=sP,fe.Loader=k4,fe.ModalFormat=i0,fe.MyDoughnutChart=KC,fe.PasswordInput=Ac,fe.PasswordValidationList=Wb,fe.ProgressBar=bm,fe.RadioButton=O4,fe.SelectForm=ym,fe.SidebarPro=UE,fe.Spinner=aP,fe.Stepper=S4,fe.TableComponent=QE,fe.TableOfContents=tP,fe.TabsComponent=oP,fe.TermsCheckbox=qE,fe.Toggle=zd,fe.TooltipComponent=Hw,fe.ValidationPassword=eP,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
562
+ https://sweetalert2.github.io/#ajax-request`),L5(t),typeof t.title=="string"&&(t.title=t.title.split(`
563
+ `).join("<br />")),TP(t)}let On;var rl=new WeakMap;class Je{constructor(...e){if(dP(this,rl,void 0),typeof window>"u")return;On=this;const n=Object.freeze(this.constructor.argsToParams(e));this.params=n,this.isAwaitingPromise=!1,uP(rl,this,this._main(On.params))}_main(e,n={}){if(Ly(Object.assign({},n,e)),de.currentInstance){const a=As.swalPromiseResolve.get(de.currentInstance),{isAwaitingPromise:o}=de.currentInstance;de.currentInstance._destroy(),o||a({isDismissed:!0}),Jd()&&py()}de.currentInstance=On;const r=B5(e,n);F5(r),Object.freeze(r),de.timeout&&(de.timeout.stop(),delete de.timeout),clearTimeout(de.restoreFocusTimeout);const s=z5(On);return fy(On,r),Ae.innerParams.set(On,r),W5(On,s,r)}then(e){return Vb(rl,this).then(e)}finally(e){return Vb(rl,this).finally(e)}}const W5=(t,e,n)=>new Promise((r,s)=>{const a=o=>{t.close({isDismissed:!0,dismiss:o,isConfirmed:!1,isDenied:!1})};As.swalPromiseResolve.set(t,r),As.swalPromiseReject.set(t,s),e.confirmButton.onclick=()=>{VT(t)},e.denyButton.onclick=()=>{UT(t)},e.cancelButton.onclick=()=>{XT(t,a)},e.closeButton.onclick=()=>{a(Is.close)},s5(n,e,a),fT(de,n,a),AT(t,n),N5(n),H5(de,n,a),Y5(e,n),setTimeout(()=>{e.container.scrollTop=0})}),B5=(t,e)=>{const n=_5(t),r=Object.assign({},Fs,e,n,t);return r.showClass=Object.assign({},Fs.showClass,r.showClass),r.hideClass=Object.assign({},Fs.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},z5=t=>{const e={popup:we(),container:St(),actions:Za(),confirmButton:Sn(),denyButton:Xr(),cancelButton:Ns(),loader:js(),closeButton:Qd(),validationMessage:Ui(),progressSteps:Gd()};return Ae.domCache.set(t,e),e},H5=(t,e,n)=>{const r=Xi();xt(r),e.timer&&(t.timeout=new k5(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(dt(r),Yt(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&eu(e.timer)})))},Y5=(t,e)=>{if(!e.toast){if(!Vi(e.allowEnterKey)){Gb("allowEnterKey"),X5();return}V5(t)||U5(t,e)||ou(-1,1)}},V5=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const n of e)if(n instanceof HTMLElement&&It(n))return n.focus(),!0;return!1},U5=(t,e)=>e.focusDeny&&It(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&It(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&It(t.confirmButton)?(t.confirmButton.focus(),!0):!1,X5=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Je.prototype.disableButtons=Ey,Je.prototype.enableButtons=My,Je.prototype.getInput=Oy,Je.prototype.disableInput=Ty,Je.prototype.enableInput=Py,Je.prototype.hideLoading=el,Je.prototype.disableLoading=el,Je.prototype.showValidationMessage=Ny,Je.prototype.resetValidationMessage=jy,Je.prototype.close=gr,Je.prototype.closePopup=gr,Je.prototype.closeModal=gr,Je.prototype.closeToast=gr,Je.prototype.rejectPromise=wy,Je.prototype.update=Fy,Je.prototype._destroy=Wy,Object.assign(Je,x5),Object.keys(r5).forEach(t=>{Je[t]=function(...e){return On&&On[t]?On[t](...e):null}}),Je.DismissReason=Is,Je.version="11.26.4";const Ws=Je;Ws.default=Ws,typeof document<"u"&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch{n.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const Gy={"image/*":"Imágenes (JPG, PNG, GIF, etc.)","application/pdf":"Documentos PDF","application/msword":"Documentos Word (.doc)","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"Documentos Word (.docx)","application/vnd.ms-excel":"Hojas de cálculo Excel (.xls)","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Hojas de cálculo Excel (.xlsx)","application/vnd.ms-powerpoint":"Presentaciones PowerPoint (.ppt)","application/vnd.openxmlformats-officedocument.presentationml.presentation":"Presentaciones PowerPoint (.pptx)","text/csv":"Archivos CSV","application/json":"Archivos JSON","application/xml":"Archivos XML"},K5=({onChange:t,accept:e="application/pdf",maxSize:n=10,multiple:r=!1,helperText:s=""})=>{const[a,o]=_.useState(!1),i=_.useRef(null),l=Array.isArray(e)?e.join(","):e,c=()=>Array.isArray(e)?e.map(m=>Gy[m]||m).join(", "):Gy[e]||e,d=_.useCallback(m=>{m.preventDefault(),m.stopPropagation(),o(!0)},[]),u=_.useCallback(m=>{m.preventDefault(),m.stopPropagation(),o(!1)},[]),f=_.useCallback(m=>{m.preventDefault(),m.stopPropagation(),o(!1);const b=Array.from(m.dataTransfer.files);b.length>0&&p(b)},[e,n,r,t]),h=_.useCallback(m=>{const b=Array.from(m.target.files||[]);b.length>0&&p(b),i.current&&(i.current.value="")},[e,n,r,t]),p=_.useCallback(m=>{if(!r&&m.length>1){alert("Solo se permite un archivo");return}const b=m.filter(x=>Array.isArray(e)?e.some(k=>k==="image/*"?x.type.startsWith("image/"):x.type===k):e==="image/*"?x.type.startsWith("image/"):x.type===e);if(b.length===0){Ws.fire({title:"Error",text:`Tipo de archivo no permitido. Tipos permitidos: ${c()}`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"});return}const y=b.filter(x=>x.size<=n*1024*1024);y.length!==b.length&&Ws.fire({title:"Error",text:`Algunos archivos exceden el tamaño máximo de ${n}MB`,icon:"error",confirmButtonText:"Aceptar",confirmButtonColor:"#191960"}),y.length>0&&(t==null||t(y))},[e,n,r,t]);return g.jsx("div",{className:"flex w-full items-center justify-center",children:g.jsxs(Ec,{htmlFor:"dropzone-file",className:`flex w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed ${a?"border-blue-500 bg-blue-50":"border-[#C4C4C4] bg-gray-50"} hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600`,onDragOver:d,onDragLeave:u,onDrop:f,children:[g.jsx("div",{className:"flex w-full items-center justify-center py-6 px-10",children:g.jsx("div",{className:"flex flex-col",children:g.jsxs("p",{className:"mb-2 text-center text-sm font-light text-gray-400 dark:text-gray-400",children:[g.jsx("span",{className:"text-gray-500",children:"Arrastra aquí tu archivo "}),g.jsx("br",{}),g.jsxs("span",{className:" text-gray-500",children:["o ",g.jsx("span",{className:"underline",children:"búscalo en el dispositivo"})]}),s]})})}),g.jsx(cg,{id:"dropzone-file",className:"hidden",onChange:h,accept:l,multiple:r,ref:i})]})})},G5=t=>{const e=Math.floor(Math.log(t)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"];return`${(t/Math.pow(1024,e)).toFixed(2)} ${n[e]}`},Q5=({files:t,onDelete:e,isMultiple:n=!0})=>{const r=n?t:t.slice(-1);return g.jsx("div",{className:"mt-4",children:g.jsx("ul",{className:"list-none",children:r.map((s,a)=>g.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-[#191960] bg-[#F4F4F4CC] p-4 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx(Sr,{classIm:"mr-2",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:40}),g.jsx("li",{className:"text-base text-gray-700",children:s.name})]}),g.jsxs("div",{className:"mx-4 flex flex-1 justify-between",children:[g.jsxs("p",{className:"ml-auto text-sm font-semibold",children:[G5(s.size),"  "]}),g.jsx("div",{onClick:()=>e(s),children:g.jsx(Sr,{classIm:"ml-auto cursor-pointer",src:"https://ftp.mathilde-ads.com/382-d1647780b1ee3f437104400b2f8d6555.svg",alt:"icon dropzone",width:20})})]})]},a))})})},Z5=({description:t=""})=>g.jsxs("div",{className:"flex flex-col items-center justify-center",children:[g.jsx("img",{src:"https://ftp.mathilde-ads.com/151-82821df9d4f7bd2662418d3147880fba.svg",alt:t.replace(/<[^>]*>/g,"")}),t&&g.jsx("p",{className:"text-center",dangerouslySetInnerHTML:{__html:t}})]}),Qy={mth_tabs_tab_item:"tabs-module__mth_tabs_tab_item__dk-Z7",mth_tabs_tab_item_active:"tabs-module__mth_tabs_tab_item_active__p3kAi"};function J5({tabs:t,classes:e="",classesUl:n="",tabItemClasses:r="",activeTabStyles:s,inactiveTabStyles:a,contentClasses:o="",defaultActiveTab:i,onTabChange:l}){var p,m;const[c,d]=_.useState(i||((p=t[0])==null?void 0:p.id)||""),u=b=>{d(b),l==null||l(b)},f=b=>{const y=b.target.value;d(y),l==null||l(y)},h=(m=t.find(b=>b.id===c))==null?void 0:m.content;return g.jsxs("div",{className:`${e} tabs-container`,children:[g.jsxs("div",{className:"mb-4 sm:hidden",children:[g.jsx("label",{htmlFor:"tabs-select",className:"sr-only",children:"Selecciona una pestaña"}),g.jsx("select",{id:"tabs-select",value:c,onChange:f,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",children:t.map(b=>g.jsx("option",{value:b.id,children:b.title},b.id))})]}),g.jsx("ul",{className:`${n} text-sm font-medium text-center text-gray-500 rounded-lg shadow-sm sm:flex dark:divide-gray-700 dark:text-gray-400`,children:t.map(b=>{const y=c===b.id,x=()=>y&&s?s:!y&&a?a:{},k=()=>y?s?"":Qy.mth_tabs_tab_item_active:a?"":Qy.mth_tabs_tab_item;return g.jsx("li",{className:"w-full focus-within:z-10",children:g.jsxs("button",{onClick:()=>u(b.id),className:`${r} ${k()} uppercase`,style:x(),"aria-current":y?"page":void 0,children:[b.icon&&g.jsx("span",{className:"mr-2",children:b.icon}),b.title]})},b.id)})}),g.jsx("div",{className:`mt-0 ${o}`,children:h})]})}var Zy={},eo={},uu={exports:{}},sl={exports:{}},Oe={};/** @license React v16.13.1
564
+ * react-is.production.min.js
565
+ *
566
+ * Copyright (c) Facebook, Inc. and its affiliates.
567
+ *
568
+ * This source code is licensed under the MIT license found in the
569
+ * LICENSE file in the root directory of this source tree.
570
+ */var Jy;function q5(){if(Jy)return Oe;Jy=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function k(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case e:switch(w=w.type,w){case l:case c:case r:case a:case s:case u:return w;default:switch(w=w&&w.$$typeof,w){case i:case d:case p:case h:case o:return w;default:return S}}case n:return S}}}function v(w){return k(w)===c}return Oe.AsyncMode=l,Oe.ConcurrentMode=c,Oe.ContextConsumer=i,Oe.ContextProvider=o,Oe.Element=e,Oe.ForwardRef=d,Oe.Fragment=r,Oe.Lazy=p,Oe.Memo=h,Oe.Portal=n,Oe.Profiler=a,Oe.StrictMode=s,Oe.Suspense=u,Oe.isAsyncMode=function(w){return v(w)||k(w)===l},Oe.isConcurrentMode=v,Oe.isContextConsumer=function(w){return k(w)===i},Oe.isContextProvider=function(w){return k(w)===o},Oe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Oe.isForwardRef=function(w){return k(w)===d},Oe.isFragment=function(w){return k(w)===r},Oe.isLazy=function(w){return k(w)===p},Oe.isMemo=function(w){return k(w)===h},Oe.isPortal=function(w){return k(w)===n},Oe.isProfiler=function(w){return k(w)===a},Oe.isStrictMode=function(w){return k(w)===s},Oe.isSuspense=function(w){return k(w)===u},Oe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===c||w===a||w===s||w===u||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===h||w.$$typeof===o||w.$$typeof===i||w.$$typeof===d||w.$$typeof===b||w.$$typeof===y||w.$$typeof===x||w.$$typeof===m)},Oe.typeOf=k,Oe}var Ce={};/** @license React v16.13.1
571
+ * react-is.development.js
572
+ *
573
+ * Copyright (c) Facebook, Inc. and its affiliates.
574
+ *
575
+ * This source code is licensed under the MIT license found in the
576
+ * LICENSE file in the root directory of this source tree.
577
+ */var qy;function $5(){return qy||(qy=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,o=t?Symbol.for("react.provider"):60109,i=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,u=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function k(W){return typeof W=="string"||typeof W=="function"||W===r||W===c||W===a||W===s||W===u||W===f||typeof W=="object"&&W!==null&&(W.$$typeof===p||W.$$typeof===h||W.$$typeof===o||W.$$typeof===i||W.$$typeof===d||W.$$typeof===b||W.$$typeof===y||W.$$typeof===x||W.$$typeof===m)}function v(W){if(typeof W=="object"&&W!==null){var ne=W.$$typeof;switch(ne){case e:var se=W.type;switch(se){case l:case c:case r:case a:case s:case u:return se;default:var oe=se&&se.$$typeof;switch(oe){case i:case d:case p:case h:case o:return oe;default:return ne}}case n:return ne}}}var w=l,S=c,N=i,D=o,T=e,E=d,Y=r,L=p,O=h,C=n,P=a,F=s,U=u,Z=!1;function ee(W){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(W)||v(W)===l}function j(W){return v(W)===c}function V(W){return v(W)===i}function R(W){return v(W)===o}function A(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function I(W){return v(W)===d}function M(W){return v(W)===r}function H(W){return v(W)===p}function J(W){return v(W)===h}function K(W){return v(W)===n}function q(W){return v(W)===a}function B(W){return v(W)===s}function te(W){return v(W)===u}Ce.AsyncMode=w,Ce.ConcurrentMode=S,Ce.ContextConsumer=N,Ce.ContextProvider=D,Ce.Element=T,Ce.ForwardRef=E,Ce.Fragment=Y,Ce.Lazy=L,Ce.Memo=O,Ce.Portal=C,Ce.Profiler=P,Ce.StrictMode=F,Ce.Suspense=U,Ce.isAsyncMode=ee,Ce.isConcurrentMode=j,Ce.isContextConsumer=V,Ce.isContextProvider=R,Ce.isElement=A,Ce.isForwardRef=I,Ce.isFragment=M,Ce.isLazy=H,Ce.isMemo=J,Ce.isPortal=K,Ce.isProfiler=q,Ce.isStrictMode=B,Ce.isSuspense=te,Ce.isValidElementType=k,Ce.typeOf=v}()),Ce}var $y;function ew(){return $y||($y=1,process.env.NODE_ENV==="production"?sl.exports=q5():sl.exports=$5()),sl.exports}/*
578
+ object-assign
579
+ (c) Sindre Sorhus
580
+ @license MIT
581
+ */var fu,tw;function eN(){if(tw)return fu;tw=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},i=0;i<10;i++)o["_"+String.fromCharCode(i)]=i;var l=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return fu=s()?Object.assign:function(a,o){for(var i,l=r(a),c,d=1;d<arguments.length;d++){i=Object(arguments[d]);for(var u in i)e.call(i,u)&&(l[u]=i[u]);if(t){c=t(i);for(var f=0;f<c.length;f++)n.call(i,c[f])&&(l[c[f]]=i[c[f]])}}return l},fu}var hu,nw;function gu(){if(nw)return hu;nw=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hu=t,hu}var mu,rw;function sw(){return rw||(rw=1,mu=Function.call.bind(Object.prototype.hasOwnProperty)),mu}var pu,aw;function tN(){if(aw)return pu;aw=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=gu(),n={},r=sw();t=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(a,o,i,l,c){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var u;try{if(typeof a[d]!="function"){var f=Error((l||"React class")+": "+i+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=a[d](o,d,l,i,null,e)}catch(p){u=p}if(u&&!(u instanceof Error)&&t((l||"React class")+": type specification of "+i+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var h=c?c():"";t("Failed "+i+" type: "+u.message+(h??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},pu=s,pu}var bu,ow;function nN(){if(ow)return bu;ow=1;var t=ew(),e=eN(),n=gu(),r=sw(),s=tN(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return bu=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(j){var V=j&&(c&&j[c]||j[d]);if(typeof V=="function")return V}var f="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:x(),arrayOf:k,element:v(),elementType:w(),instanceOf:S,node:E(),objectOf:D,oneOf:N,oneOfType:T,shape:L,exact:O};function p(j,V){return j===V?j!==0||1/j===1/V:j!==j&&V!==V}function m(j,V){this.message=j,this.data=V&&typeof V=="object"?V:{},this.stack=""}m.prototype=Error.prototype;function b(j){if(process.env.NODE_ENV!=="production")var V={},R=0;function A(M,H,J,K,q,B,te){if(K=K||f,B=B||J,te!==n){if(l){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ne=K+":"+J;!V[ne]&&R<3&&(a("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+K+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[ne]=!0,R++)}}return H[J]==null?M?H[J]===null?new m("The "+q+" `"+B+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new m("The "+q+" `"+B+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:j(H,J,K,q,B)}var I=A.bind(null,!1);return I.isRequired=A.bind(null,!0),I}function y(j){function V(R,A,I,M,H,J){var K=R[A],q=F(K);if(q!==j){var B=U(K);return new m("Invalid "+M+" `"+H+"` of type "+("`"+B+"` supplied to `"+I+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return b(V)}function x(){return b(o)}function k(j){function V(R,A,I,M,H){if(typeof j!="function")return new m("Property `"+H+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var J=R[A];if(!Array.isArray(J)){var K=F(J);return new m("Invalid "+M+" `"+H+"` of type "+("`"+K+"` supplied to `"+I+"`, expected an array."))}for(var q=0;q<J.length;q++){var B=j(J,q,I,M,H+"["+q+"]",n);if(B instanceof Error)return B}return null}return b(V)}function v(){function j(V,R,A,I,M){var H=V[R];if(!i(H)){var J=F(H);return new m("Invalid "+I+" `"+M+"` of type "+("`"+J+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return b(j)}function w(){function j(V,R,A,I,M){var H=V[R];if(!t.isValidElementType(H)){var J=F(H);return new m("Invalid "+I+" `"+M+"` of type "+("`"+J+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return b(j)}function S(j){function V(R,A,I,M,H){if(!(R[A]instanceof j)){var J=j.name||f,K=ee(R[A]);return new m("Invalid "+M+" `"+H+"` of type "+("`"+K+"` supplied to `"+I+"`, expected ")+("instance of `"+J+"`."))}return null}return b(V)}function N(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function V(R,A,I,M,H){for(var J=R[A],K=0;K<j.length;K++)if(p(J,j[K]))return null;var q=JSON.stringify(j,function(te,W){var ne=U(W);return ne==="symbol"?String(W):W});return new m("Invalid "+M+" `"+H+"` of value `"+String(J)+"` "+("supplied to `"+I+"`, expected one of "+q+"."))}return b(V)}function D(j){function V(R,A,I,M,H){if(typeof j!="function")return new m("Property `"+H+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var J=R[A],K=F(J);if(K!=="object")return new m("Invalid "+M+" `"+H+"` of type "+("`"+K+"` supplied to `"+I+"`, expected an object."));for(var q in J)if(r(J,q)){var B=j(J,q,I,M,H+"."+q,n);if(B instanceof Error)return B}return null}return b(V)}function T(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var V=0;V<j.length;V++){var R=j[V];if(typeof R!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(R)+" at index "+V+"."),o}function A(I,M,H,J,K){for(var q=[],B=0;B<j.length;B++){var te=j[B],W=te(I,M,H,J,K,n);if(W==null)return null;W.data&&r(W.data,"expectedType")&&q.push(W.data.expectedType)}var ne=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new m("Invalid "+J+" `"+K+"` supplied to "+("`"+H+"`"+ne+"."))}return b(A)}function E(){function j(V,R,A,I,M){return C(V[R])?null:new m("Invalid "+I+" `"+M+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return b(j)}function Y(j,V,R,A,I){return new m((j||"React class")+": "+V+" type `"+R+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function L(j){function V(R,A,I,M,H){var J=R[A],K=F(J);if(K!=="object")return new m("Invalid "+M+" `"+H+"` of type `"+K+"` "+("supplied to `"+I+"`, expected `object`."));for(var q in j){var B=j[q];if(typeof B!="function")return Y(I,M,H,q,U(B));var te=B(J,q,I,M,H+"."+q,n);if(te)return te}return null}return b(V)}function O(j){function V(R,A,I,M,H){var J=R[A],K=F(J);if(K!=="object")return new m("Invalid "+M+" `"+H+"` of type `"+K+"` "+("supplied to `"+I+"`, expected `object`."));var q=e({},R[A],j);for(var B in q){var te=j[B];if(r(j,B)&&typeof te!="function")return Y(I,M,H,B,U(te));if(!te)return new m("Invalid "+M+" `"+H+"` key `"+B+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(R[A],null," ")+`
582
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var W=te(J,B,I,M,H+"."+B,n);if(W)return W}return null}return b(V)}function C(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(C);if(j===null||i(j))return!0;var V=u(j);if(V){var R=V.call(j),A;if(V!==j.entries){for(;!(A=R.next()).done;)if(!C(A.value))return!1}else for(;!(A=R.next()).done;){var I=A.value;if(I&&!C(I[1]))return!1}}else return!1;return!0;default:return!1}}function P(j,V){return j==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function F(j){var V=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":P(V,j)?"symbol":V}function U(j){if(typeof j>"u"||j===null)return""+j;var V=F(j);if(V==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return V}function Z(j){var V=U(j);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function ee(j){return!j.constructor||!j.constructor.name?f:j.constructor.name}return h.checkPropTypes=s,h.resetWarningCache=s.resetWarningCache,h.PropTypes=h,h},bu}var yu,iw;function rN(){if(iw)return yu;iw=1;var t=gu();function e(){}function n(){}return n.resetWarningCache=e,yu=function(){function r(o,i,l,c,d,u){if(u!==t){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function s(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return a.PropTypes=a,a},yu}if(process.env.NODE_ENV!=="production"){var sN=ew(),aN=!0;uu.exports=nN()(sN.isElement,aN)}else uu.exports=rN()();var Un=uu.exports,to={},Xn={};const lw=7,al=365.2425,no=6048e5,cw=864e5,Kn=6e4,Zr=36e5,wu=1e3,dw=525600,Bs=43200,ol=1440,uw=60,fw=3,hw=12,gw=4,il=3600,vu=60,xu=il*24,oN=xu*7,mw=xu*al,pw=mw/12,iN=pw*3,bw=Symbol.for("constructDateFrom");function ie(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&bw in t?t[bw](e):t instanceof Date?new t.constructor(e):new Date(e)}function Q(t,e){return ie(e||t,t)}function nn(t,e,n){const r=Q(t,n==null?void 0:n.in);return isNaN(e)?ie((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function ro(t,e,n){const r=Q(t,n==null?void 0:n.in);if(isNaN(e))return ie((n==null?void 0:n.in)||t,NaN);if(!e)return r;const s=r.getDate(),a=ie((n==null?void 0:n.in)||t,r.getTime());a.setMonth(r.getMonth()+e+1,0);const o=a.getDate();return s>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),s),r)}function zs(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Q(t,n==null?void 0:n.in),u=s||r?ro(d,s+r*12):d,f=o||a?nn(u,o+a*7):u,h=l+i*60,m=(c+h*60)*1e3;return ie((n==null?void 0:n.in)||t,+f+m)}function yw(t,e){return Q(t,e==null?void 0:e.in).getDay()===6}function ww(t,e){return Q(t,e==null?void 0:e.in).getDay()===0}function Hs(t,e){const n=Q(t,e==null?void 0:e.in).getDay();return n===0||n===6}function vw(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Hs(r,n);if(isNaN(e))return ie(n==null?void 0:n.in,NaN);const a=r.getHours(),o=e<0?-1:1,i=Math.trunc(e/5);r.setDate(r.getDate()+i*7);let l=Math.abs(e%5);for(;l>0;)r.setDate(r.getDate()+o),Hs(r,n)||(l-=1);return s&&Hs(r,n)&&e!==0&&(yw(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),ww(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(a),r}function ll(t,e,n){return ie((n==null?void 0:n.in)||t,+Q(t)+e)}function xw(t,e,n){return ll(t,e*Zr,n)}let kw={};function Ot(){return kw}function lN(t){kw=t}function pt(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Q(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?7:0)+a-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function dn(t,e){return pt(t,{...e,weekStartsOn:1})}function mr(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=ie(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const a=dn(s),o=ie(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=dn(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function At(t){const e=Q(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Te(t,...e){const n=ie.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Ys(t,e){const n=Q(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function Cn(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Ys(r),o=Ys(s),i=+a-At(a),l=+o-At(o);return Math.round((i-l)/cw)}function pr(t,e){const n=mr(t,e),r=ie((e==null?void 0:e.in)||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),dn(r)}function _w(t,e,n){let r=Q(t,n==null?void 0:n.in);const s=Cn(r,pr(r,n)),a=ie((n==null?void 0:n.in)||t,0);return a.setFullYear(e,0,4),a.setHours(0,0,0,0),r=pr(a),r.setDate(r.getDate()+s),r}function Sw(t,e,n){return _w(t,mr(t,n)+e,n)}function ku(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setTime(r.getTime()+e*Kn),r}function _u(t,e,n){return ro(t,e*3,n)}function Ow(t,e,n){return ll(t,e*1e3,n)}function cl(t,e,n){return nn(t,e*7,n)}function Cw(t,e,n){return ro(t,e*12,n)}function cN(t,e,n){const[r,s]=[+Q(t.start,n==null?void 0:n.in),+Q(t.end,n==null?void 0:n.in)].sort((i,l)=>i-l),[a,o]=[+Q(e.start,n==null?void 0:n.in),+Q(e.end,n==null?void 0:n.in)].sort((i,l)=>i-l);return n!=null&&n.inclusive?r<=o&&a<=s:r<o&&a<s}function Dw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=ie.bind(null,s));const a=Q(s,r);(!n||n<a||isNaN(+a))&&(n=a)}),ie(r,n||NaN)}function Mw(t,e){let n,r=e==null?void 0:e.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=ie.bind(null,s));const a=Q(s,r);(!n||n>a||isNaN(+a))&&(n=a)}),ie(r,n||NaN)}function dN(t,e,n){const[r,s,a]=Te(n==null?void 0:n.in,t,e.start,e.end);return Mw([Dw([r,s],n),a],n)}function Ew(t,e){const n=+Q(t);if(isNaN(n))return NaN;let r,s;return e.forEach((a,o)=>{const i=Q(a);if(isNaN(+i)){r=NaN,s=NaN;return}const l=Math.abs(n-+i);(r==null||l<s)&&(r=o,s=l)}),r}function uN(t,e,n){const[r,...s]=Te(n==null?void 0:n.in,t,...e),a=Ew(r,s);if(typeof a=="number"&&isNaN(a))return ie(r,NaN);if(a!==void 0)return s[a]}function Dn(t,e){const n=+Q(t)-+Q(e);return n<0?-1:n>0?1:n}function fN(t,e){const n=+Q(t)-+Q(e);return n>0?-1:n<0?1:n}function st(t){return ie(t,Date.now())}function hN(t){const e=Math.trunc(t/lw);return e===0?0:e}function so(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+Ys(r)==+Ys(s)}function Pw(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Gn(t){return!(!Pw(t)&&typeof t!="number"||isNaN(+Q(t)))}function gN(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);if(!Gn(r)||!Gn(s))return NaN;const a=Cn(r,s),o=a<0?-1:1,i=Math.trunc(a/7);let l=i*5,c=nn(s,i*7);for(;!so(r,c);)l+=Hs(c,n)?0:o,c=nn(c,o);return l===0?0:l}function Tw(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return mr(r,n)-mr(s,n)}function mN(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=dn(r),o=dn(s),i=+a-At(a),l=+o-At(o);return Math.round((i-l)/no)}function dl(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return a*12+o}function Su(t,e){const n=Q(t,e==null?void 0:e.in);return Math.trunc(n.getMonth()/3)+1}function ul(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=r.getFullYear()-s.getFullYear(),o=Su(r)-Su(s);return a*4+o}function fl(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=pt(r,n),o=pt(s,n),i=+a-At(a),l=+o-At(o);return Math.round((i-l)/no)}function ao(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return r.getFullYear()-s.getFullYear()}function Ou(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Nw(r,s),o=Math.abs(Cn(r,s));r.setDate(r.getDate()-a*o);const i=+(Nw(r,s)===-a),l=a*(o-i);return l===0?0:l}function Nw(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function br(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function hl(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=(+r-+s)/Zr;return br(n==null?void 0:n.roundingMethod)(a)}function jw(t,e,n){return Sw(t,-e,n)}function pN(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Dn(r,s),o=Math.abs(Tw(r,s,n)),i=jw(r,a*o,n),l=+(Dn(i,s)===-a),c=a*(o-l);return c===0?0:c}function Cu(t,e){return+Q(t)-+Q(e)}function gl(t,e,n){const r=Cu(t,e)/Kn;return br(n==null?void 0:n.roundingMethod)(r)}function Du(t,e){const n=Q(t,e==null?void 0:e.in);return n.setHours(23,59,59,999),n}function Mu(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Iw(t,e){const n=Q(t,e==null?void 0:e.in);return+Du(n,e)==+Mu(n,e)}function ml(t,e,n){const[r,s,a]=Te(n==null?void 0:n.in,t,t,e),o=Dn(s,a),i=Math.abs(dl(s,a));if(i<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*i);let l=Dn(s,a)===-o;Iw(r)&&i===1&&Dn(r,a)===1&&(l=!1);const c=o*(i-+l);return c===0?0:c}function bN(t,e,n){const r=ml(t,e,n)/3;return br(n==null?void 0:n.roundingMethod)(r)}function Vs(t,e,n){const r=Cu(t,e)/1e3;return br(n==null?void 0:n.roundingMethod)(r)}function yN(t,e,n){const r=Ou(t,e,n)/7;return br(n==null?void 0:n.roundingMethod)(r)}function Aw(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e),a=Dn(r,s),o=Math.abs(ao(r,s));r.setFullYear(1584),s.setFullYear(1584);const i=Dn(r,s)===-a,l=a*(o-+i);return l===0?0:l}function Qn(t,e){const[n,r]=Te(t,e.start,e.end);return{start:n,end:r}}function Rw(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o.setDate(o.getDate()+i),o.setHours(0,0,0,0);return s?l.reverse():l}function wN(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setMinutes(0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o.setHours(o.getHours()+i);return s?l.reverse():l}function vN(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);n.setSeconds(0,0);let s=+n>+r;const a=s?+n:+r;let o=s?r:n,i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o=ku(o,i);return s?l.reverse():l}function xN(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setDate(1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o.setMonth(o.getMonth()+i);return s?l.reverse():l}function Jr(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3;return n.setMonth(s,1),n.setHours(0,0,0,0),n}function kN(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+Jr(n):+Jr(r);let o=Jr(s?r:n),i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o=_u(o,i);return s?l.reverse():l}function _N(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=pt(s?r:n,e),o=pt(s?n:r,e);a.setHours(15),o.setHours(15);const i=+o.getTime();let l=a,c=(e==null?void 0:e.step)??1;if(!c)return[];c<0&&(c=-c,s=!s);const d=[];for(;+l<=i;)l.setHours(0),d.push(ie(n,l)),l=cl(l,c),l.setHours(15);return s?d.reverse():d}function Eu(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t),s=Rw({start:n,end:r},e),a=[];let o=0;for(;o<s.length;){const i=s[o++];Hs(i)&&a.push(ie(n,i))}return a}function pl(t,e){const n=Q(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function SN(t,e){const n=pl(t,e),r=Mu(t,e);return Eu({start:n,end:r},e)}function Lw(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Pu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function ON(t,e){const n=Pu(t,e),r=Lw(t,e);return Eu({start:n,end:r},e)}function CN(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t);let s=+n>+r;const a=s?+n:+r,o=s?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,s=!s);const l=[];for(;+o<=a;)l.push(ie(n,o)),o.setFullYear(o.getFullYear()+i);return s?l.reverse():l}function DN(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s,11,31),n.setHours(23,59,59,999),n}function MN(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMinutes(59,59,999),n}function Fw(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Q(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function EN(t,e){return Fw(t,{...e,weekStartsOn:1})}function PN(t,e){const n=mr(t,e),r=ie((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=dn(r,e);return s.setMilliseconds(s.getMilliseconds()-1),s}function TN(t,e){const n=Q(t,e==null?void 0:e.in);return n.setSeconds(59,999),n}function NN(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(23,59,59,999),n}function jN(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMilliseconds(999),n}function IN(t){return Du(Date.now(),t)}function AN(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s+1),a.setHours(23,59,59,999),t!=null&&t.in?t.in(a):a}function RN(t){const e=st(t==null?void 0:t.in),n=ie(t==null?void 0:t.in,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),n.setHours(23,59,59,999),n}const LN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},FN=(t,e,n)=>{let r;const s=LN[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Us(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const WN={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},BN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zN={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},HN={date:Us({formats:WN,defaultWidth:"full"}),time:Us({formats:BN,defaultWidth:"full"}),dateTime:Us({formats:zN,defaultWidth:"full"})},YN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},VN=(t,e,n,r)=>YN[t];function Mn(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}const UN={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},XN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},KN={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},GN={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},QN={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ZN={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},JN={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Mn({values:UN,defaultWidth:"wide"}),quarter:Mn({values:XN,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Mn({values:KN,defaultWidth:"wide"}),day:Mn({values:GN,defaultWidth:"wide"}),dayPeriod:Mn({values:QN,defaultWidth:"wide",formattingValues:ZN,defaultFormattingWidth:"wide"})};function En(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?$N(i,u=>u.test(o)):qN(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function qN(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function $N(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Ww(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}const ej=/^(\d+)(th|st|nd|rd)?/i,tj=/\d+/i,nj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},rj={any:[/^b/i,/^(a|c)/i]},sj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},aj={any:[/1/i,/2/i,/3/i,/4/i]},oj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ij={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},cj={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},dj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},fj={ordinalNumber:Ww({matchPattern:ej,parsePattern:tj,valueCallback:t=>parseInt(t,10)}),era:En({matchPatterns:nj,defaultMatchWidth:"wide",parsePatterns:rj,defaultParseWidth:"any"}),quarter:En({matchPatterns:sj,defaultMatchWidth:"wide",parsePatterns:aj,defaultParseWidth:"any",valueCallback:t=>t+1}),month:En({matchPatterns:oj,defaultMatchWidth:"wide",parsePatterns:ij,defaultParseWidth:"any"}),day:En({matchPatterns:lj,defaultMatchWidth:"wide",parsePatterns:cj,defaultParseWidth:"any"}),dayPeriod:En({matchPatterns:dj,defaultMatchWidth:"any",parsePatterns:uj,defaultParseWidth:"any"})},Xs={code:"en-US",formatDistance:FN,formatLong:HN,formatRelative:VN,localize:JN,match:fj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Bw(t,e){const n=Q(t,e==null?void 0:e.in);return Cn(n,Pu(n))+1}function Tu(t,e){const n=Q(t,e==null?void 0:e.in),r=+dn(n)-+pr(n);return Math.round(r/no)+1}function bl(t,e){var d,u,f,h;const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=Ot(),a=(e==null?void 0:e.firstWeekContainsDate)??((u=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??s.firstWeekContainsDate??((h=(f=s.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=ie((e==null?void 0:e.in)||t,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const i=pt(o,e),l=ie((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=pt(l,e);return+n>=+i?r+1:+n>=+c?r:r-1}function yl(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.firstWeekContainsDate)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,s=bl(t,e),a=ie((e==null?void 0:e.in)||t,0);return a.setFullYear(s,0,r),a.setHours(0,0,0,0),pt(a,e)}function Nu(t,e){const n=Q(t,e==null?void 0:e.in),r=+pt(n,e)-+yl(n,e);return Math.round(r/no)+1}function le(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Pn={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return le(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):le(n+1,2)},d(t,e){return le(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return le(t.getHours()%12||12,e.length)},H(t,e){return le(t.getHours(),e.length)},m(t,e){return le(t.getMinutes(),e.length)},s(t,e){return le(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return le(s,e.length)}},Ks={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ju={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Pn.y(t,e)},Y:function(t,e,n,r){const s=bl(t,r),a=s>0?s:1-s;if(e==="YY"){const o=a%100;return le(o,2)}return e==="Yo"?n.ordinalNumber(a,{unit:"year"}):le(a,e.length)},R:function(t,e){const n=mr(t);return le(n,e.length)},u:function(t,e){const n=t.getFullYear();return le(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return le(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return le(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Pn.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return le(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const s=Nu(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):le(s,e.length)},I:function(t,e,n){const r=Tu(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):le(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Pn.d(t,e)},D:function(t,e,n){const r=Bw(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):le(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return le(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),a=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return le(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return le(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=Ks.noon:r===0?s=Ks.midnight:s=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=Ks.evening:r>=12?s=Ks.afternoon:r>=4?s=Ks.morning:s=Ks.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pn.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Pn.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):le(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):le(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Pn.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Pn.s(t,e)},S:function(t,e){return Pn.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return Hw(r);case"XXXX":case"XX":return qr(r);case"XXXXX":case"XXX":default:return qr(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return Hw(r);case"xxxx":case"xx":return qr(r);case"xxxxx":case"xxx":default:return qr(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+zw(r,":");case"OOOO":default:return"GMT"+qr(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+zw(r,":");case"zzzz":default:return"GMT"+qr(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return le(r,e.length)},T:function(t,e,n){return le(+t,e.length)}};function zw(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),a=r%60;return a===0?n+String(s):n+String(s)+e+le(a,2)}function Hw(t,e){return t%60===0?(t>0?"-":"+")+le(Math.abs(t)/60,2):qr(t,e)}function qr(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=le(Math.trunc(r/60),2),a=le(r%60,2);return n+s+e+a}const Yw=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},Vw=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},wl={p:Vw,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return Yw(t,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",Yw(r,e)).replace("{{time}}",Vw(s,e))}},hj=/^D+$/,gj=/^Y+$/,mj=["D","DD","YY","YYYY"];function Uw(t){return hj.test(t)}function Xw(t){return gj.test(t)}function Iu(t,e,n){const r=pj(t,e,n);if(console.warn(r),mj.includes(t))throw new RangeError(r)}function pj(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const bj=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wj=/^'([^]*?)'?$/,vj=/''/g,xj=/[a-zA-Z]/;function vl(t,e,n){var d,u,f,h,p,m,b,y;const r=Ot(),s=(n==null?void 0:n.locale)??r.locale??Xs,a=(n==null?void 0:n.firstWeekContainsDate)??((u=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((y=(b=r.locale)==null?void 0:b.options)==null?void 0:y.weekStartsOn)??0,i=Q(t,n==null?void 0:n.in);if(!Gn(i))throw new RangeError("Invalid time value");let l=e.match(yj).map(x=>{const k=x[0];if(k==="p"||k==="P"){const v=wl[k];return v(x,s.formatLong)}return x}).join("").match(bj).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const k=x[0];if(k==="'")return{isToken:!1,value:kj(x)};if(ju[k])return{isToken:!0,value:x};if(k.match(xj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:x}});s.localize.preprocessor&&(l=s.localize.preprocessor(i,l));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return l.map(x=>{if(!x.isToken)return x.value;const k=x.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&Xw(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&Uw(k))&&Iu(k,e,String(t));const v=ju[k[0]];return v(i,k,s.localize,c)}).join("")}function kj(t){const e=t.match(wj);return e?e[1].replace(vj,"'"):t}function Kw(t,e,n){const r=Ot(),s=(n==null?void 0:n.locale)??r.locale??Xs,a=2520,o=Dn(t,e);if(isNaN(o))throw new RangeError("Invalid time value");const i=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:o}),[l,c]=Te(n==null?void 0:n.in,...o>0?[e,t]:[t,e]),d=Vs(c,l),u=(At(c)-At(l))/1e3,f=Math.round((d-u)/60);let h;if(f<2)return n!=null&&n.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,i):d<10?s.formatDistance("lessThanXSeconds",10,i):d<20?s.formatDistance("lessThanXSeconds",20,i):d<40?s.formatDistance("halfAMinute",0,i):d<60?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",1,i):f===0?s.formatDistance("lessThanXMinutes",1,i):s.formatDistance("xMinutes",f,i);if(f<45)return s.formatDistance("xMinutes",f,i);if(f<90)return s.formatDistance("aboutXHours",1,i);if(f<ol){const p=Math.round(f/60);return s.formatDistance("aboutXHours",p,i)}else{if(f<a)return s.formatDistance("xDays",1,i);if(f<Bs){const p=Math.round(f/ol);return s.formatDistance("xDays",p,i)}else if(f<Bs*2)return h=Math.round(f/Bs),s.formatDistance("aboutXMonths",h,i)}if(h=ml(c,l),h<12){const p=Math.round(f/Bs);return s.formatDistance("xMonths",p,i)}else{const p=h%12,m=Math.trunc(h/12);return p<3?s.formatDistance("aboutXYears",m,i):p<9?s.formatDistance("overXYears",m,i):s.formatDistance("almostXYears",m+1,i)}}function Gw(t,e,n){const r=Ot(),s=(n==null?void 0:n.locale)??r.locale??Xs,a=Dn(t,e);if(isNaN(a))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[i,l]=Te(n==null?void 0:n.in,...a>0?[e,t]:[t,e]),c=br((n==null?void 0:n.roundingMethod)??"round"),d=l.getTime()-i.getTime(),u=d/Kn,f=At(l)-At(i),h=(d-f)/Kn,p=n==null?void 0:n.unit;let m;if(p?m=p:u<1?m="second":u<60?m="minute":u<ol?m="hour":h<Bs?m="day":h<dw?m="month":m="year",m==="second"){const b=c(d/1e3);return s.formatDistance("xSeconds",b,o)}else if(m==="minute"){const b=c(u);return s.formatDistance("xMinutes",b,o)}else if(m==="hour"){const b=c(u/60);return s.formatDistance("xHours",b,o)}else if(m==="day"){const b=c(h/ol);return s.formatDistance("xDays",b,o)}else if(m==="month"){const b=c(h/Bs);return b===12&&p!=="month"?s.formatDistance("xYears",1,o):s.formatDistance("xMonths",b,o)}else{const b=c(h/dw);return s.formatDistance("xYears",b,o)}}function _j(t,e){return Kw(t,st(t),e)}function Sj(t,e){return Gw(t,st(t),e)}const Oj=["years","months","weeks","days","hours","minutes","seconds"];function Cj(t,e){const n=Ot(),r=(e==null?void 0:e.locale)??n.locale??Xs,s=(e==null?void 0:e.format)??Oj,a=(e==null?void 0:e.zero)??!1,o=(e==null?void 0:e.delimiter)??" ";return r.formatDistance?s.reduce((l,c)=>{const d=`x${c.replace(/(^.)/,f=>f.toUpperCase())}`,u=t[c];return u!==void 0&&(a||t[c])?l.concat(r.formatDistance(d,u)):l},[]).join(o):""}function Dj(t,e){const n=Q(t,e==null?void 0:e.in);if(isNaN(+n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="",o="";const i=r==="extended"?"-":"",l=r==="extended"?":":"";if(s!=="time"){const c=le(n.getDate(),2),d=le(n.getMonth()+1,2);a=`${le(n.getFullYear(),4)}${i}${d}${i}${c}`}if(s!=="date"){const c=n.getTimezoneOffset();if(c!==0){const m=Math.abs(c),b=le(Math.trunc(m/60),2),y=le(m%60,2);o=`${c<0?"+":"-"}${b}:${y}`}else o="Z";const d=le(n.getHours(),2),u=le(n.getMinutes(),2),f=le(n.getSeconds(),2),h=a===""?"":"T",p=[d,u,f].join(l);a=`${a}${h}${p}${o}`}return a}function Mj(t,e){const n=Q(t,e==null?void 0:e.in);if(!Gn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",s=(e==null?void 0:e.representation)??"complete";let a="";const o=r==="extended"?"-":"",i=r==="extended"?":":"";if(s!=="time"){const l=le(n.getDate(),2),c=le(n.getMonth()+1,2);a=`${le(n.getFullYear(),4)}${o}${c}${o}${l}`}if(s!=="date"){const l=le(n.getHours(),2),c=le(n.getMinutes(),2),d=le(n.getSeconds(),2);a=`${a}${a===""?"":" "}${l}${i}${c}${i}${d}`}return a}function Ej(t){const{years:e=0,months:n=0,days:r=0,hours:s=0,minutes:a=0,seconds:o=0}=t;return`P${e}Y${n}M${r}DT${s}H${a}M${o}S`}function Pj(t,e){const n=Q(t,e==null?void 0:e.in);if(!Gn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.fractionDigits)??0,s=le(n.getDate(),2),a=le(n.getMonth()+1,2),o=n.getFullYear(),i=le(n.getHours(),2),l=le(n.getMinutes(),2),c=le(n.getSeconds(),2);let d="";if(r>0){const h=n.getMilliseconds(),p=Math.trunc(h*Math.pow(10,r-3));d="."+le(p,r)}let u="";const f=n.getTimezoneOffset();if(f!==0){const h=Math.abs(f),p=le(Math.trunc(h/60),2),m=le(h%60,2);u=`${f<0?"+":"-"}${p}:${m}`}else u="Z";return`${o}-${a}-${s}T${i}:${l}:${c}${d}${u}`}const Tj=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Nj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function jj(t){const e=Q(t);if(!Gn(e))throw new RangeError("Invalid time value");const n=Tj[e.getUTCDay()],r=le(e.getUTCDate(),2),s=Nj[e.getUTCMonth()],a=e.getUTCFullYear(),o=le(e.getUTCHours(),2),i=le(e.getUTCMinutes(),2),l=le(e.getUTCSeconds(),2);return`${n}, ${r} ${s} ${a} ${o}:${i}:${l} GMT`}function Ij(t,e,n){var u,f,h,p;const[r,s]=Te(n==null?void 0:n.in,t,e),a=Ot(),o=(n==null?void 0:n.locale)??a.locale??Xs,i=(n==null?void 0:n.weekStartsOn)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??a.weekStartsOn??((p=(h=a.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??0,l=Cn(r,s);if(isNaN(l))throw new RangeError("Invalid time value");let c;l<-6?c="other":l<-1?c="lastWeek":l<0?c="yesterday":l<1?c="today":l<2?c="tomorrow":l<7?c="nextWeek":c="other";const d=o.formatRelative(c,r,s,{locale:o,weekStartsOn:i});return vl(r,d,{locale:o,weekStartsOn:i})}function Aj(t,e){return Q(t*1e3,e==null?void 0:e.in)}function Qw(t,e){return Q(t,e==null?void 0:e.in).getDate()}function xl(t,e){return Q(t,e==null?void 0:e.in).getDay()}function Zw(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=n.getMonth(),a=ie(n,0);return a.setFullYear(r,s+1,0),a.setHours(0,0,0,0),a.getDate()}function Jw(t,e){const r=Q(t,e==null?void 0:e.in).getFullYear();return r%400===0||r%4===0&&r%100!==0}function Rj(t,e){const n=Q(t,e==null?void 0:e.in);return Number.isNaN(+n)?NaN:Jw(n)?366:365}function Lj(t,e){const r=Q(t,e==null?void 0:e.in).getFullYear();return Math.floor(r/10)*10}function qw(){return Object.assign({},Ot())}function Fj(t,e){return Q(t,e==null?void 0:e.in).getHours()}function $w(t,e){const n=Q(t,e==null?void 0:e.in).getDay();return n===0?7:n}function Wj(t,e){const n=pr(t,e),s=+pr(cl(n,60))-+n;return Math.round(s/no)}function Bj(t){return Q(t).getMilliseconds()}function zj(t,e){return Q(t,e==null?void 0:e.in).getMinutes()}function Hj(t,e){return Q(t,e==null?void 0:e.in).getMonth()}function Yj(t,e){const[n,r]=[+Q(t.start),+Q(t.end)].sort((u,f)=>u-f),[s,a]=[+Q(e.start),+Q(e.end)].sort((u,f)=>u-f);if(!(n<a&&s<r))return 0;const i=s<n?n:s,l=i-At(i),c=a>r?r:a,d=c-At(c);return Math.ceil((d-l)/cw)}function Vj(t){return Q(t).getSeconds()}function Uj(t){return+Q(t)}function Xj(t){return Math.trunc(+Q(t)/1e3)}function Kj(t,e){var l,c,d,u;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((c=(l=e==null?void 0:e.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,s=Qw(Q(t,e==null?void 0:e.in));if(isNaN(s))return NaN;const a=xl(pl(t,e));let o=r-a;o<=0&&(o+=7);const i=s-o;return Math.ceil(i/7)+1}function ev(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),Q(n,e==null?void 0:e.in)}function Gj(t,e){const n=Q(t,e==null?void 0:e.in);return fl(ev(n,e),pl(n,e),e)+1}function Qj(t,e){return Q(t,e==null?void 0:e.in).getFullYear()}function Zj(t){return Math.trunc(t*Zr)}function Jj(t){return Math.trunc(t*uw)}function qj(t){return Math.trunc(t*il)}function $j(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);if(isNaN(+r))throw new TypeError("Start date is invalid");if(isNaN(+s))throw new TypeError("End date is invalid");if(n!=null&&n.assertPositive&&+r>+s)throw new TypeError("End date must be after start date");return{start:r,end:s}}function eI(t,e){const{start:n,end:r}=Qn(e==null?void 0:e.in,t),s={},a=Aw(r,n);a&&(s.years=a);const o=zs(n,{years:s.years}),i=ml(r,o);i&&(s.months=i);const l=zs(o,{months:s.months}),c=Ou(r,l);c&&(s.days=c);const d=zs(l,{days:s.days}),u=hl(r,d);u&&(s.hours=u);const f=zs(d,{hours:s.hours}),h=gl(r,f);h&&(s.minutes=h);const p=zs(f,{minutes:s.minutes}),m=Vs(r,p);return m&&(s.seconds=m),s}function tI(t,e,n){let r;return nI(e)?r=e:n=e,new Intl.DateTimeFormat(n==null?void 0:n.locale,r).format(Q(t))}function nI(t){return t!==void 0&&!("locale"in t)}function rI(t,e,n){let r=0,s;const[a,o]=Te(n==null?void 0:n.in,t,e);if(n!=null&&n.unit)s=n==null?void 0:n.unit,s==="second"?r=Vs(a,o):s==="minute"?r=gl(a,o):s==="hour"?r=hl(a,o):s==="day"?r=Cn(a,o):s==="week"?r=fl(a,o):s==="month"?r=dl(a,o):s==="quarter"?r=ul(a,o):s==="year"&&(r=ao(a,o));else{const l=Vs(a,o);Math.abs(l)<vu?(r=Vs(a,o),s="second"):Math.abs(l)<il?(r=gl(a,o),s="minute"):Math.abs(l)<xu&&Math.abs(Cn(a,o))<1?(r=hl(a,o),s="hour"):Math.abs(l)<oN&&(r=Cn(a,o))&&Math.abs(r)<7?s="day":Math.abs(l)<pw?(r=fl(a,o),s="week"):Math.abs(l)<iN?(r=dl(a,o),s="month"):Math.abs(l)<mw&&ul(a,o)<4?(r=ul(a,o),s="quarter"):(r=ao(a,o),s="year")}return new Intl.RelativeTimeFormat(n==null?void 0:n.locale,{numeric:"auto",...n}).format(r,s)}function sI(t,e){return+Q(t)>+Q(e)}function aI(t,e){return+Q(t)<+Q(e)}function oI(t,e){return+Q(t)==+Q(e)}function iI(t,e,n){const r=new Date(t,e,n);return r.getFullYear()===t&&r.getMonth()===e&&r.getDate()===n}function lI(t,e){return Q(t,e==null?void 0:e.in).getDate()===1}function cI(t,e){return Q(t,e==null?void 0:e.in).getDay()===5}function dI(t){return+Q(t)>Date.now()}function tv(t,e){const n=uI(e)?new e(0):ie(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function uI(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const fI=10;class nv{constructor(){$(this,"subPriority",0)}validate(e,n){return!0}}class hI extends nv{constructor(e,n,r,s,a){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=s,a&&(this.subPriority=a)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class gI extends nv{constructor(n,r){super();$(this,"priority",fI);$(this,"subPriority",-1);this.context=n||(s=>ie(r,s))}set(n,r){return r.timestampIsSet?n:ie(n,tv(n,this.context))}}class _e{run(e,n,r,s){const a=this.parse(e,n,r,s);return a?{setter:new hI(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,n,r){return!0}}class mI extends _e{constructor(){super(...arguments);$(this,"priority",140);$(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const qe={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Tn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function $e(t,e){return t&&{value:e(t.value),rest:t.rest}}function Ye(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Nn(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*Zr+a*Kn+o*wu),rest:e.slice(n[0].length)}}function rv(t){return Ye(qe.anyDigitsSigned,t)}function Xe(t,e){switch(t){case 1:return Ye(qe.singleDigit,e);case 2:return Ye(qe.twoDigits,e);case 3:return Ye(qe.threeDigits,e);case 4:return Ye(qe.fourDigits,e);default:return Ye(new RegExp("^\\d{1,"+t+"}"),e)}}function kl(t,e){switch(t){case 1:return Ye(qe.singleDigitSigned,e);case 2:return Ye(qe.twoDigitsSigned,e);case 3:return Ye(qe.threeDigitsSigned,e);case 4:return Ye(qe.fourDigitsSigned,e);default:return Ye(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Au(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function sv(t,e){const n=e>0,r=n?e:1-e;let s;if(r<=50)s=t||100;else{const a=r+50,o=Math.trunc(a/100)*100,i=t>=a%100;s=t+o-(i?100:0)}return n?s:1-s}function av(t){return t%400===0||t%4===0&&t%100!==0}class pI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return $e(Xe(4,n),a);case"yo":return $e(s.ordinalNumber(n,{unit:"year"}),a);default:return $e(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const a=n.getFullYear();if(s.isTwoDigitYear){const i=sv(s.year,a);return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class bI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const a=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return $e(Xe(4,n),a);case"Yo":return $e(s.ordinalNumber(n,{unit:"year"}),a);default:return $e(Xe(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,a){const o=bl(n,a);if(s.isTwoDigitYear){const l=sv(s.year,o);return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),pt(n,a)}const i=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(i,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),pt(n,a)}}class yI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return kl(r==="R"?4:r.length,n)}set(n,r,s){const a=ie(n,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),dn(a)}}class wI extends _e{constructor(){super(...arguments);$(this,"priority",130);$(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return kl(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class vI extends _e{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return Xe(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class xI extends _e{constructor(){super(...arguments);$(this,"priority",120);$(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return Xe(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class kI extends _e{constructor(){super(...arguments);$(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);$(this,"priority",110)}parse(n,r,s){const a=o=>o-1;switch(r){case"M":return $e(Ye(qe.month,n),a);case"MM":return $e(Xe(2,n),a);case"Mo":return $e(s.ordinalNumber(n,{unit:"month"}),a);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class _I extends _e{constructor(){super(...arguments);$(this,"priority",110);$(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const a=o=>o-1;switch(r){case"L":return $e(Ye(qe.month,n),a);case"LL":return $e(Xe(2,n),a);case"Lo":return $e(s.ordinalNumber(n,{unit:"month"}),a);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function ov(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Nu(r,n)-e;return r.setDate(r.getDate()-s*7),Q(r,n==null?void 0:n.in)}class SI extends _e{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return Ye(qe.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,a){return pt(ov(n,s,a),a)}}function iv(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Tu(r,n)-e;return r.setDate(r.getDate()-s*7),r}class OI extends _e{constructor(){super(...arguments);$(this,"priority",100);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return Ye(qe.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return dn(iv(n,s))}}const CI=[31,28,31,30,31,30,31,31,30,31,30,31],DI=[31,29,31,30,31,30,31,31,30,31,30,31];class MI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"subPriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return Ye(qe.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear(),a=av(s),o=n.getMonth();return a?r>=1&&r<=DI[o]:r>=1&&r<=CI[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class EI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"subpriority",1);$(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return Ye(qe.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return Xe(r.length,n)}}validate(n,r){const s=n.getFullYear();return av(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function _l(t,e,n){var u,f,h,p;const r=Ot(),s=(n==null?void 0:n.weekStartsOn)??((f=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??r.weekStartsOn??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.weekStartsOn)??0,a=Q(t,n==null?void 0:n.in),o=a.getDay(),l=(e%7+7)%7,c=7-s,d=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return nn(a,d,n)}class PI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=_l(n,s,a),n.setHours(0,0,0,0),n}}class TI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return $e(Xe(r.length,n),o);case"eo":return $e(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=_l(n,s,a),n.setHours(0,0,0,0),n}}class NI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,a){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+a.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return $e(Xe(r.length,n),o);case"co":return $e(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,a){return n=_l(n,s,a),n.setHours(0,0,0,0),n}}function lv(t,e,n){const r=Q(t,n==null?void 0:n.in),s=$w(r,n),a=e-s;return nn(r,a,n)}class jI extends _e{constructor(){super(...arguments);$(this,"priority",90);$(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const a=o=>o===0?7:o;switch(r){case"i":case"ii":return Xe(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return $e(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return $e(s.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return $e(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return $e(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=lv(n,s),n.setHours(0,0,0,0),n}}class II extends _e{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Au(s),0,0,0),n}}class AI extends _e{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Au(s),0,0,0),n}}class RI extends _e{constructor(){super(...arguments);$(this,"priority",80);$(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Au(s),0,0,0),n}}class LI extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return Ye(qe.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const a=n.getHours()>=12;return a&&s<12?n.setHours(s+12,0,0,0):!a&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class FI extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return Ye(qe.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class WI extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return Ye(qe.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class BI extends _e{constructor(){super(...arguments);$(this,"priority",70);$(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return Ye(qe.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return Xe(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const a=s<=24?s%24:s;return n.setHours(a,0,0,0),n}}class zI extends _e{constructor(){super(...arguments);$(this,"priority",60);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return Ye(qe.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class HI extends _e{constructor(){super(...arguments);$(this,"priority",50);$(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return Ye(qe.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return Xe(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class YI extends _e{constructor(){super(...arguments);$(this,"priority",30);$(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=a=>Math.trunc(a*Math.pow(10,-r.length+3));return $e(Xe(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class VI extends _e{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Nn(Tn.basicOptionalMinutes,n);case"XX":return Nn(Tn.basic,n);case"XXXX":return Nn(Tn.basicOptionalSeconds,n);case"XXXXX":return Nn(Tn.extendedOptionalSeconds,n);case"XXX":default:return Nn(Tn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:ie(n,n.getTime()-At(n)-s)}}class UI extends _e{constructor(){super(...arguments);$(this,"priority",10);$(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Nn(Tn.basicOptionalMinutes,n);case"xx":return Nn(Tn.basic,n);case"xxxx":return Nn(Tn.basicOptionalSeconds,n);case"xxxxx":return Nn(Tn.extendedOptionalSeconds,n);case"xxx":default:return Nn(Tn.extended,n)}}set(n,r,s){return r.timestampIsSet?n:ie(n,n.getTime()-At(n)-s)}}class XI extends _e{constructor(){super(...arguments);$(this,"priority",40);$(this,"incompatibleTokens","*")}parse(n){return rv(n)}set(n,r,s){return[ie(n,s*1e3),{timestampIsSet:!0}]}}class KI extends _e{constructor(){super(...arguments);$(this,"priority",20);$(this,"incompatibleTokens","*")}parse(n){return rv(n)}set(n,r,s){return[ie(n,s),{timestampIsSet:!0}]}}const cv={G:new mI,y:new pI,Y:new bI,R:new yI,u:new wI,Q:new vI,q:new xI,M:new kI,L:new _I,w:new SI,I:new OI,d:new MI,D:new EI,E:new PI,e:new TI,c:new NI,i:new jI,a:new II,b:new AI,B:new RI,h:new LI,H:new FI,K:new WI,k:new BI,m:new zI,s:new HI,S:new YI,X:new VI,x:new UI,t:new XI,T:new KI},GI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ZI=/^'([^]*?)'?$/,JI=/''/g,qI=/\S/,$I=/[a-zA-Z]/;function dv(t,e,n,r){var b,y,x,k,v,w,S,N;const s=()=>ie((r==null?void 0:r.in)||n,NaN),a=qw(),o=(r==null?void 0:r.locale)??a.locale??Xs,i=(r==null?void 0:r.firstWeekContainsDate)??((y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)??a.firstWeekContainsDate??((k=(x=a.locale)==null?void 0:x.options)==null?void 0:k.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((w=(v=r==null?void 0:r.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??a.weekStartsOn??((N=(S=a.locale)==null?void 0:S.options)==null?void 0:N.weekStartsOn)??0;if(!e)return t?s():Q(n,r==null?void 0:r.in);const c={firstWeekContainsDate:i,weekStartsOn:l,locale:o},d=[new gI(r==null?void 0:r.in,n)],u=e.match(QI).map(D=>{const T=D[0];if(T in wl){const E=wl[T];return E(D,o.formatLong)}return D}).join("").match(GI),f=[];for(let D of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&Xw(D)&&Iu(D,e,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Uw(D)&&Iu(D,e,t);const T=D[0],E=cv[T];if(E){const{incompatibleTokens:Y}=E;if(Array.isArray(Y)){const O=f.find(C=>Y.includes(C.token)||C.token===T);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${D}\` at the same time`)}else if(E.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);f.push({token:T,fullToken:D});const L=E.run(t,D,o.match,c);if(!L)return s();d.push(L.setter),t=L.rest}else{if(T.match($I))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");if(D==="''"?D="'":T==="'"&&(D=e4(D)),t.indexOf(D)===0)t=t.slice(D.length);else return s()}}if(t.length>0&&qI.test(t))return s();const h=d.map(D=>D.priority).sort((D,T)=>T-D).filter((D,T,E)=>E.indexOf(D)===T).map(D=>d.filter(T=>T.priority===D).sort((T,E)=>E.subPriority-T.subPriority)).map(D=>D[0]);let p=Q(n,r==null?void 0:r.in);if(isNaN(+p))return s();const m={};for(const D of h){if(!D.validate(p,c))return s();const T=D.set(p,m,c);Array.isArray(T)?(p=T[0],Object.assign(m,T[1])):p=T}return p}function e4(t){return t.match(ZI)[1].replace(JI,"'")}function t4(t,e,n){return Gn(dv(t,e,new Date,n))}function n4(t,e){return Q(t,e==null?void 0:e.in).getDay()===1}function r4(t){return+Q(t)<Date.now()}function Ru(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMinutes(0,0,0),n}function uv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+Ru(r)==+Ru(s)}function Lu(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+pt(r,n)==+pt(s,n)}function fv(t,e,n){return Lu(t,e,{...n,weekStartsOn:1})}function s4(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+pr(r)==+pr(s)}function Fu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setSeconds(0,0),n}function hv(t,e){return+Fu(t)==+Fu(e)}function gv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function mv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return+Jr(r)==+Jr(s)}function Wu(t,e){const n=Q(t,e==null?void 0:e.in);return n.setMilliseconds(0),n}function pv(t,e){return+Wu(t)==+Wu(e)}function bv(t,e,n){const[r,s]=Te(n==null?void 0:n.in,t,e);return r.getFullYear()===s.getFullYear()}function a4(t,e){return uv(Q(t,e==null?void 0:e.in),st((e==null?void 0:e.in)||t))}function o4(t,e){return fv(ie((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function i4(t){return hv(t,st(t))}function l4(t,e){return gv(ie((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function c4(t,e){return mv(ie((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function d4(t){return pv(t,st(t))}function u4(t,e){return Lu(ie((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t),e)}function f4(t,e){return bv(ie((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function h4(t,e){return Q(t,e==null?void 0:e.in).getDay()===4}function g4(t,e){return so(ie((e==null?void 0:e.in)||t,t),st((e==null?void 0:e.in)||t))}function m4(t,e){return so(t,nn(st((e==null?void 0:e.in)||t),1),e)}function p4(t,e){return Q(t,e==null?void 0:e.in).getDay()===2}function b4(t,e){return Q(t,e==null?void 0:e.in).getDay()===3}function y4(t,e,n){const r=+Q(t,n==null?void 0:n.in),[s,a]=[+Q(e.start,n==null?void 0:n.in),+Q(e.end,n==null?void 0:n.in)].sort((o,i)=>o-i);return r>=s&&r<=a}function Sl(t,e,n){return nn(t,-e,n)}function w4(t,e){return so(ie((e==null?void 0:e.in)||t,t),Sl(st((e==null?void 0:e.in)||t),1))}function v4(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=9+Math.floor(r/10)*10;return n.setFullYear(s+1,0,0),n.setHours(0,0,0,0),Q(n,e==null?void 0:e.in)}function yv(t,e){var i,l,c,d;const n=Ot(),r=(e==null?void 0:e.weekStartsOn)??((l=(i=e==null?void 0:e.locale)==null?void 0:i.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((d=(c=n.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,s=Q(t,e==null?void 0:e.in),a=s.getDay(),o=(a<r?-7:0)+6-(a-r);return s.setHours(0,0,0,0),s.setDate(s.getDate()+o),s}function x4(t,e){return yv(t,{...e,weekStartsOn:1})}function k4(t,e){const n=mr(t,e),r=ie((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const s=dn(r,e);return s.setDate(s.getDate()-1),s}function _4(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getMonth(),s=r-r%3+3;return n.setMonth(s,0),n.setHours(0,0,0,0),n}function S4(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(0,0,0,0),n}const O4=/(\w)\1*|''|'(''|[^'])+('|$)|./g,C4=/^'([^]*?)'?$/,D4=/''/g,M4=/[a-zA-Z]/;function E4(t,e){const n=Q(t);if(!Gn(n))throw new RangeError("Invalid time value");const r=e.match(O4);return r?r.map(a=>{if(a==="''")return"'";const o=a[0];if(o==="'")return P4(a);const i=Pn[o];if(i)return i(n,a);if(o.match(M4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return a}).join(""):""}function P4(t){const e=t.match(C4);return e?e[1].replace(D4,"'"):t}function T4({years:t,months:e,weeks:n,days:r,hours:s,minutes:a,seconds:o}){let i=0;t&&(i+=t*al),e&&(i+=e*(al/12)),n&&(i+=n*7),r&&(i+=r);let l=i*24*60*60;return s&&(l+=s*60*60),a&&(l+=a*60),o&&(l+=o),Math.trunc(l*1e3)}function N4(t){const e=t/Zr;return Math.trunc(e)}function j4(t){const e=t/Kn;return Math.trunc(e)}function I4(t){const e=t/wu;return Math.trunc(e)}function A4(t){const e=t/uw;return Math.trunc(e)}function R4(t){return Math.trunc(t*Kn)}function L4(t){return Math.trunc(t*vu)}function F4(t){const e=t/fw;return Math.trunc(e)}function W4(t){const e=t/hw;return Math.trunc(e)}function yr(t,e,n){let r=e-xl(t,n);return r<=0&&(r+=7),nn(t,r,n)}function B4(t,e){return yr(t,5,e)}function z4(t,e){return yr(t,1,e)}function H4(t,e){return yr(t,6,e)}function Y4(t,e){return yr(t,0,e)}function V4(t,e){return yr(t,4,e)}function U4(t,e){return yr(t,2,e)}function X4(t,e){return yr(t,3,e)}function K4(t,e){const n=()=>ie(e==null?void 0:e.in,NaN),r=(e==null?void 0:e.additionalDigits)??2,s=J4(t);let a;if(s.date){const c=q4(s.date,r);a=$4(c.restDateString,c.year)}if(!a||isNaN(+a))return n();const o=+a;let i=0,l;if(s.time&&(i=eA(s.time),isNaN(i)))return n();if(s.timezone){if(l=tA(s.timezone),isNaN(l))return n()}else{const c=new Date(o+i),d=Q(0,e==null?void 0:e.in);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return Q(o+i+l,e==null?void 0:e.in)}const Ol={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},G4=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Q4=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Z4=/^([+-])(\d{2})(?::?(\d{2}))?$/;function J4(t){const e={},n=t.split(Ol.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],Ol.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Ol.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const s=Ol.timezone.exec(r);s?(e.time=r.replace(s[1],""),e.timezone=s[1]):e.time=r}return e}function q4(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const s=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?s:a*100,restDateString:t.slice((r[1]||r[2]).length)}}function $4(t,e){if(e===null)return new Date(NaN);const n=t.match(G4);if(!n)return new Date(NaN);const r=!!n[4],s=oo(n[1]),a=oo(n[2])-1,o=oo(n[3]),i=oo(n[4]),l=oo(n[5])-1;if(r)return oA(e,i,l)?nA(e,i,l):new Date(NaN);{const c=new Date(0);return!sA(e,a,o)||!aA(e,s)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(s,o)),c)}}function oo(t){return t?parseInt(t):1}function eA(t){const e=t.match(Q4);if(!e)return NaN;const n=Bu(e[1]),r=Bu(e[2]),s=Bu(e[3]);return iA(n,r,s)?n*Zr+r*Kn+s*1e3:NaN}function Bu(t){return t&&parseFloat(t.replace(",","."))||0}function tA(t){if(t==="Z")return 0;const e=t.match(Z4);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return lA(r,s)?n*(r*Zr+s*Kn):NaN}function nA(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const s=r.getUTCDay()||7,a=(e-1)*7+n+1-s;return r.setUTCDate(r.getUTCDate()+a),r}const rA=[31,null,31,30,31,30,31,31,30,31,30,31];function wv(t){return t%400===0||t%4===0&&t%100!==0}function sA(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(rA[e]||(wv(t)?29:28))}function aA(t,e){return e>=1&&e<=(wv(t)?366:365)}function oA(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function iA(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function lA(t,e){return e>=0&&e<=59}function cA(t,e){const n=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return Q(n?Date.UTC(+n[1],+n[2]-1,+n[3],+n[4]-(+n[9]||0)*(n[8]=="-"?-1:1),+n[5]-(+n[10]||0)*(n[8]=="-"?-1:1),+n[6],+((n[7]||"0")+"00").substring(0,3)):NaN,e==null?void 0:e.in)}function wr(t,e,n){let r=xl(t,n)-e;return r<=0&&(r+=7),Sl(t,r,n)}function dA(t,e){return wr(t,5,e)}function uA(t,e){return wr(t,1,e)}function fA(t,e){return wr(t,6,e)}function hA(t,e){return wr(t,0,e)}function gA(t,e){return wr(t,4,e)}function mA(t,e){return wr(t,2,e)}function pA(t,e){return wr(t,3,e)}function bA(t){return Math.trunc(t*fw)}function yA(t){const e=t/gw;return Math.trunc(e)}function wA(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>12)return ie((e==null?void 0:e.in)||t,NaN);const r=Q(t,e==null?void 0:e.in),s=r.getMinutes()/60,a=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,i=r.getHours()+s+a+o,l=(e==null?void 0:e.roundingMethod)??"round",d=br(l)(i/n)*n;return r.setHours(d,0,0,0),r}function vA(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>30)return ie(t,NaN);const r=Q(t,e==null?void 0:e.in),s=r.getSeconds()/60,a=r.getMilliseconds()/1e3/60,o=r.getMinutes()+s+a,i=(e==null?void 0:e.roundingMethod)??"round",c=br(i)(o/n)*n;return r.setMinutes(c,0,0),r}function xA(t){const e=t/il;return Math.trunc(e)}function kA(t){return t*wu}function _A(t){const e=t/vu;return Math.trunc(e)}function zu(t,e,n){const r=Q(t,n==null?void 0:n.in),s=r.getFullYear(),a=r.getDate(),o=ie((n==null?void 0:n.in)||t,0);o.setFullYear(s,e,15),o.setHours(0,0,0,0);const i=Zw(o);return r.setMonth(e,Math.min(a,i)),r}function SA(t,e,n){let r=Q(t,n==null?void 0:n.in);return isNaN(+r)?ie((n==null?void 0:n.in)||t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=zu(r,e.month)),e.date!=null&&r.setDate(e.date),e.hours!=null&&r.setHours(e.hours),e.minutes!=null&&r.setMinutes(e.minutes),e.seconds!=null&&r.setSeconds(e.seconds),e.milliseconds!=null&&r.setMilliseconds(e.milliseconds),r)}function OA(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setDate(e),r}function CA(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setMonth(0),r.setDate(e),r}function DA(t){const e={},n=Ot();for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]===void 0?delete e[r]:e[r]=t[r]);lN(e)}function MA(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setHours(e),r}function EA(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setMilliseconds(e),r}function PA(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setMinutes(e),r}function TA(t,e,n){const r=Q(t,n==null?void 0:n.in),s=Math.trunc(r.getMonth()/3)+1,a=e-s;return zu(r,r.getMonth()+a*3)}function NA(t,e,n){const r=Q(t,n==null?void 0:n.in);return r.setSeconds(e),r}function jA(t,e,n){var l,c,d,u;const r=Ot(),s=(n==null?void 0:n.firstWeekContainsDate)??((c=(l=n==null?void 0:n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((u=(d=r.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,a=Cn(Q(t,n==null?void 0:n.in),yl(t,n),n),o=ie((n==null?void 0:n.in)||t,0);o.setFullYear(e,0,s),o.setHours(0,0,0,0);const i=yl(o,n);return i.setDate(i.getDate()+a),i}function IA(t,e,n){const r=Q(t,n==null?void 0:n.in);return isNaN(+r)?ie((n==null?void 0:n.in)||t,NaN):(r.setFullYear(e),r)}function AA(t,e){const n=Q(t,e==null?void 0:e.in),r=n.getFullYear(),s=Math.floor(r/10)*10;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}function RA(t){return Ys(Date.now(),t)}function LA(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=ie(t==null?void 0:t.in,0);return a.setFullYear(n,r,s+1),a.setHours(0,0,0,0),a}function FA(t){const e=st(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),s=e.getDate(),a=st(t==null?void 0:t.in);return a.setFullYear(n,r,s-1),a.setHours(0,0,0,0),a}function vv(t,e,n){return ro(t,-e,n)}function WA(t,e,n){const{years:r=0,months:s=0,weeks:a=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=vv(t,s+r*12,n),u=Sl(d,o+a*7,n),f=l+i*60,p=(c+f*60)*1e3;return ie((n==null?void 0:n.in)||t,+u-p)}function BA(t,e,n){return vw(t,-e,n)}function zA(t,e,n){return xw(t,-e,n)}function HA(t,e,n){return ll(t,-e,n)}function YA(t,e,n){return ku(t,-e,n)}function VA(t,e,n){return _u(t,-e,n)}function UA(t,e,n){return Ow(t,-e,n)}function XA(t,e,n){return cl(t,-e,n)}function KA(t,e,n){return Cw(t,-e,n)}function GA(t){return Math.trunc(t*lw)}function QA(t){return Math.trunc(t*al)}function ZA(t){return Math.trunc(t*hw)}function JA(t){return Math.trunc(t*gw)}const $r=Xf(Object.freeze(Object.defineProperty({__proto__:null,add:zs,addBusinessDays:vw,addDays:nn,addHours:xw,addISOWeekYears:Sw,addMilliseconds:ll,addMinutes:ku,addMonths:ro,addQuarters:_u,addSeconds:Ow,addWeeks:cl,addYears:Cw,areIntervalsOverlapping:cN,clamp:dN,closestIndexTo:Ew,closestTo:uN,compareAsc:Dn,compareDesc:fN,constructFrom:ie,constructNow:st,daysToWeeks:hN,differenceInBusinessDays:gN,differenceInCalendarDays:Cn,differenceInCalendarISOWeekYears:Tw,differenceInCalendarISOWeeks:mN,differenceInCalendarMonths:dl,differenceInCalendarQuarters:ul,differenceInCalendarWeeks:fl,differenceInCalendarYears:ao,differenceInDays:Ou,differenceInHours:hl,differenceInISOWeekYears:pN,differenceInMilliseconds:Cu,differenceInMinutes:gl,differenceInMonths:ml,differenceInQuarters:bN,differenceInSeconds:Vs,differenceInWeeks:yN,differenceInYears:Aw,eachDayOfInterval:Rw,eachHourOfInterval:wN,eachMinuteOfInterval:vN,eachMonthOfInterval:xN,eachQuarterOfInterval:kN,eachWeekOfInterval:_N,eachWeekendOfInterval:Eu,eachWeekendOfMonth:SN,eachWeekendOfYear:ON,eachYearOfInterval:CN,endOfDay:Du,endOfDecade:DN,endOfHour:MN,endOfISOWeek:EN,endOfISOWeekYear:PN,endOfMinute:TN,endOfMonth:Mu,endOfQuarter:NN,endOfSecond:jN,endOfToday:IN,endOfTomorrow:AN,endOfWeek:Fw,endOfYear:Lw,endOfYesterday:RN,format:vl,formatDate:vl,formatDistance:Kw,formatDistanceStrict:Gw,formatDistanceToNow:_j,formatDistanceToNowStrict:Sj,formatDuration:Cj,formatISO:Dj,formatISO9075:Mj,formatISODuration:Ej,formatRFC3339:Pj,formatRFC7231:jj,formatRelative:Ij,formatters:ju,fromUnixTime:Aj,getDate:Qw,getDay:xl,getDayOfYear:Bw,getDaysInMonth:Zw,getDaysInYear:Rj,getDecade:Lj,getDefaultOptions:qw,getHours:Fj,getISODay:$w,getISOWeek:Tu,getISOWeekYear:mr,getISOWeeksInYear:Wj,getMilliseconds:Bj,getMinutes:zj,getMonth:Hj,getOverlappingDaysInIntervals:Yj,getQuarter:Su,getSeconds:Vj,getTime:Uj,getUnixTime:Xj,getWeek:Nu,getWeekOfMonth:Kj,getWeekYear:bl,getWeeksInMonth:Gj,getYear:Qj,hoursToMilliseconds:Zj,hoursToMinutes:Jj,hoursToSeconds:qj,interval:$j,intervalToDuration:eI,intlFormat:tI,intlFormatDistance:rI,isAfter:sI,isBefore:aI,isDate:Pw,isEqual:oI,isExists:iI,isFirstDayOfMonth:lI,isFriday:cI,isFuture:dI,isLastDayOfMonth:Iw,isLeapYear:Jw,isMatch:t4,isMonday:n4,isPast:r4,isSameDay:so,isSameHour:uv,isSameISOWeek:fv,isSameISOWeekYear:s4,isSameMinute:hv,isSameMonth:gv,isSameQuarter:mv,isSameSecond:pv,isSameWeek:Lu,isSameYear:bv,isSaturday:yw,isSunday:ww,isThisHour:a4,isThisISOWeek:o4,isThisMinute:i4,isThisMonth:l4,isThisQuarter:c4,isThisSecond:d4,isThisWeek:u4,isThisYear:f4,isThursday:h4,isToday:g4,isTomorrow:m4,isTuesday:p4,isValid:Gn,isWednesday:b4,isWeekend:Hs,isWithinInterval:y4,isYesterday:w4,lastDayOfDecade:v4,lastDayOfISOWeek:x4,lastDayOfISOWeekYear:k4,lastDayOfMonth:ev,lastDayOfQuarter:_4,lastDayOfWeek:yv,lastDayOfYear:S4,lightFormat:E4,lightFormatters:Pn,longFormatters:wl,max:Dw,milliseconds:T4,millisecondsToHours:N4,millisecondsToMinutes:j4,millisecondsToSeconds:I4,min:Mw,minutesToHours:A4,minutesToMilliseconds:R4,minutesToSeconds:L4,monthsToQuarters:F4,monthsToYears:W4,nextDay:yr,nextFriday:B4,nextMonday:z4,nextSaturday:H4,nextSunday:Y4,nextThursday:V4,nextTuesday:U4,nextWednesday:X4,parse:dv,parseISO:K4,parseJSON:cA,parsers:cv,previousDay:wr,previousFriday:dA,previousMonday:uA,previousSaturday:fA,previousSunday:hA,previousThursday:gA,previousTuesday:mA,previousWednesday:pA,quartersToMonths:bA,quartersToYears:yA,roundToNearestHours:wA,roundToNearestMinutes:vA,secondsToHours:xA,secondsToMilliseconds:kA,secondsToMinutes:_A,set:SA,setDate:OA,setDay:_l,setDayOfYear:CA,setDefaultOptions:DA,setHours:MA,setISODay:lv,setISOWeek:iv,setISOWeekYear:_w,setMilliseconds:EA,setMinutes:PA,setMonth:zu,setQuarter:TA,setSeconds:NA,setWeek:ov,setWeekYear:jA,setYear:IA,startOfDay:Ys,startOfDecade:AA,startOfHour:Ru,startOfISOWeek:dn,startOfISOWeekYear:pr,startOfMinute:Fu,startOfMonth:pl,startOfQuarter:Jr,startOfSecond:Wu,startOfToday:RA,startOfTomorrow:LA,startOfWeek:pt,startOfWeekYear:yl,startOfYear:Pu,startOfYesterday:FA,sub:WA,subBusinessDays:BA,subDays:Sl,subHours:zA,subISOWeekYears:jw,subMilliseconds:HA,subMinutes:YA,subMonths:vv,subQuarters:VA,subSeconds:UA,subWeeks:XA,subYears:KA,toDate:Q,transpose:tv,weeksToDays:GA,yearsToDays:QA,yearsToMonths:ZA,yearsToQuarters:JA},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.rangeShape=Xn.default=void 0;var es=qA(_),be=xv(Un),Hu=xv(nr),Ct=$r;function xv(t){return t&&t.__esModule?t:{default:t}}function kv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(kv=function(r){return r?n:e})(t)}function qA(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=kv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Yu(){return Yu=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},Yu.apply(this,arguments)}function io(t,e,n){return e=$A(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $A(t){var e=eR(t,"string");return typeof e=="symbol"?e:String(e)}function eR(t,e){if(typeof t!="object"||!t)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)}class Vu extends es.Component{constructor(e,n){super(e,n),io(this,"handleKeyEvent",r=>{const{day:s,onMouseDown:a,onMouseUp:o}=this.props;[13,32].includes(r.keyCode)&&(r.type==="keydown"?a(s):o(s))}),io(this,"handleMouseEvent",r=>{const{day:s,disabled:a,onPreviewChange:o,onMouseEnter:i,onMouseDown:l,onMouseUp:c}=this.props,d={};if(a){o();return}switch(r.type){case"mouseenter":i(s),o(s),d.hover=!0;break;case"blur":case"mouseleave":d.hover=!1;break;case"mousedown":d.active=!0,l(s);break;case"mouseup":r.stopPropagation(),d.active=!1,c(s);break;case"focus":o(s);break}Object.keys(d).length&&this.setState(d)}),io(this,"getClassNames",()=>{const{isPassive:r,isToday:s,isWeekend:a,isStartOfWeek:o,isEndOfWeek:i,isStartOfMonth:l,isEndOfMonth:c,disabled:d,styles:u}=this.props;return(0,Hu.default)(u.day,{[u.dayPassive]:r,[u.dayDisabled]:d,[u.dayToday]:s,[u.dayWeekend]:a,[u.dayStartOfWeek]:o,[u.dayEndOfWeek]:i,[u.dayStartOfMonth]:l,[u.dayEndOfMonth]:c,[u.dayHovered]:this.state.hover,[u.dayActive]:this.state.active})}),io(this,"renderPreviewPlaceholder",()=>{const{preview:r,day:s,styles:a}=this.props;if(!r)return null;const o=r.startDate?(0,Ct.endOfDay)(r.startDate):null,i=r.endDate?(0,Ct.startOfDay)(r.endDate):null,l=(!o||(0,Ct.isAfter)(s,o))&&(!i||(0,Ct.isBefore)(s,i)),c=!l&&(0,Ct.isSameDay)(s,o),d=!l&&(0,Ct.isSameDay)(s,i);return es.default.createElement("span",{className:(0,Hu.default)({[a.dayStartPreview]:c,[a.dayInPreview]:l,[a.dayEndPreview]:d}),style:{color:r.color}})}),io(this,"renderSelectionPlaceholders",()=>{const{styles:r,ranges:s,day:a}=this.props;return this.props.displayMode==="date"?(0,Ct.isSameDay)(this.props.day,this.props.date)?es.default.createElement("span",{className:r.selected,style:{color:this.props.color}}):null:s.reduce((i,l)=>{let c=l.startDate,d=l.endDate;c&&d&&(0,Ct.isBefore)(d,c)&&([c,d]=[d,c]),c=c?(0,Ct.endOfDay)(c):null,d=d?(0,Ct.startOfDay)(d):null;const u=(!c||(0,Ct.isAfter)(a,c))&&(!d||(0,Ct.isBefore)(a,d)),f=!u&&(0,Ct.isSameDay)(a,c),h=!u&&(0,Ct.isSameDay)(a,d);return u||f||h?[...i,{isStartEdge:f,isEndEdge:h,isInRange:u,...l}]:i},[]).map((i,l)=>es.default.createElement("span",{key:l,className:(0,Hu.default)({[r.startEdge]:i.isStartEdge,[r.endEdge]:i.isEndEdge,[r.inRange]:i.isInRange}),style:{color:i.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:e}=this.props;return es.default.createElement("button",Yu({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),es.default.createElement("span",{className:this.props.styles.dayNumber},(e==null?void 0:e(this.props.day))||es.default.createElement("span",null,(0,Ct.format)(this.props.day,this.props.dayDisplayFormat))))}}Vu.defaultProps={};const tR=Xn.rangeShape=be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string,key:be.default.string,autoFocus:be.default.bool,disabled:be.default.bool,showDateDisplay:be.default.bool});Vu.propTypes={day:be.default.object.isRequired,dayDisplayFormat:be.default.string,date:be.default.object,ranges:be.default.arrayOf(tR),preview:be.default.shape({startDate:be.default.object,endDate:be.default.object,color:be.default.string}),onPreviewChange:be.default.func,previewColor:be.default.string,disabled:be.default.bool,isPassive:be.default.bool,isToday:be.default.bool,isWeekend:be.default.bool,isStartOfWeek:be.default.bool,isEndOfWeek:be.default.bool,isStartOfMonth:be.default.bool,isEndOfMonth:be.default.bool,color:be.default.string,displayMode:be.default.oneOf(["dateRange","date"]),styles:be.default.object,onMouseDown:be.default.func,onMouseUp:be.default.func,onMouseEnter:be.default.func,dayContentRenderer:be.default.func},Xn.default=Vu;var Cl={},Zn={};Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.calcFocusDate=sR,Zn.findNextRangeIndex=aR,Zn.generateStyles=iR,Zn.getMonthDisplayRange=oR;var nR=rR(nr),Jn=$r;function rR(t){return t&&t.__esModule?t:{default:t}}function sR(t,e){const{shownDate:n,date:r,months:s,ranges:a,focusedRange:o,displayMode:i}=e;let l;if(i==="dateRange"){const d=a[o[0]]||{};l={start:d.startDate,end:d.endDate}}else l={start:r,end:r};l.start=(0,Jn.startOfMonth)(l.start||new Date),l.end=(0,Jn.endOfMonth)(l.end||l.start);const c=l.start||l.end||n||new Date;return t?(0,Jn.differenceInCalendarMonths)(l.start,l.end)>s?t:c:n||c}function aR(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const n=t.findIndex((r,s)=>s>e&&r.autoFocus!==!1&&!r.disabled);return n!==-1?n:t.findIndex(r=>r.autoFocus!==!1&&!r.disabled)}function oR(t,e,n){const r=(0,Jn.startOfMonth)(t,e),s=(0,Jn.endOfMonth)(t,e),a=(0,Jn.startOfWeek)(r,e);let o=(0,Jn.endOfWeek)(s,e);return n&&(0,Jn.differenceInCalendarDays)(o,a)<=34&&(o=(0,Jn.addDays)(o,7)),{start:a,end:o,startDateOfMonth:r,endDateOfMonth:s}}function iR(t){return t.length?t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(s=>{n[s]=(0,nR.default)(n[s],r[s])}),n),{}):{}}Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=void 0;var ts=Ov(_),je=cR(Un),_v=Ov(Xn),at=$r,lR=Zn;function cR(t){return t&&t.__esModule?t:{default:t}}function Sv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Sv=function(r){return r?n:e})(t)}function Ov(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Sv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Uu(){return Uu=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},Uu.apply(this,arguments)}function dR(t,e,n){const r=new Date;return ts.default.createElement("div",{className:t.weekDays},(0,at.eachDayOfInterval)({start:(0,at.startOfWeek)(r,e),end:(0,at.endOfWeek)(r,e)}).map((s,a)=>ts.default.createElement("span",{className:t.weekDay,key:a},(0,at.format)(s,n,e))))}class Xu extends ts.PureComponent{render(){const e=new Date,{displayMode:n,focusedRange:r,drag:s,styles:a,disabledDates:o,disabledDay:i}=this.props,l=this.props.minDate&&(0,at.startOfDay)(this.props.minDate),c=this.props.maxDate&&(0,at.endOfDay)(this.props.maxDate),d=(0,lR.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let u=this.props.ranges;if(n==="dateRange"&&s.status){let{startDate:h,endDate:p}=s.range;u=u.map((m,b)=>b!==r[0]?m:{...m,startDate:h,endDate:p})}const f=this.props.showPreview&&!s.disablePreview;return ts.default.createElement("div",{className:a.month,style:this.props.style},this.props.showMonthName?ts.default.createElement("div",{className:a.monthName},(0,at.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&dR(a,this.props.dateOptions,this.props.weekdayDisplayFormat),ts.default.createElement("div",{className:a.days,onMouseLeave:this.props.onMouseLeave},(0,at.eachDayOfInterval)({start:d.start,end:d.end}).map((h,p)=>{const m=(0,at.isSameDay)(h,d.startDateOfMonth),b=(0,at.isSameDay)(h,d.endDateOfMonth),y=l&&(0,at.isBefore)(h,l)||c&&(0,at.isAfter)(h,c),x=o.some(v=>(0,at.isSameDay)(v,h)),k=i(h);return ts.default.createElement(_v.default,Uu({},this.props,{ranges:u,day:h,preview:f?this.props.preview:null,isWeekend:(0,at.isWeekend)(h,this.props.dateOptions),isToday:(0,at.isSameDay)(h,e),isStartOfWeek:(0,at.isSameDay)(h,(0,at.startOfWeek)(h,this.props.dateOptions)),isEndOfWeek:(0,at.isSameDay)(h,(0,at.endOfWeek)(h,this.props.dateOptions)),isStartOfMonth:m,isEndOfMonth:b,key:p,disabled:y||x||k,isPassive:!(0,at.isWithinInterval)(h,{start:d.startDateOfMonth,end:d.endDateOfMonth}),styles:a,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:s.range,drag:s.status}))})))}}Xu.defaultProps={},Xu.propTypes={style:je.default.object,styles:je.default.object,month:je.default.object,drag:je.default.object,dateOptions:je.default.object,disabledDates:je.default.array,disabledDay:je.default.func,preview:je.default.shape({startDate:je.default.object,endDate:je.default.object}),showPreview:je.default.bool,displayMode:je.default.oneOf(["dateRange","date"]),minDate:je.default.object,maxDate:je.default.object,ranges:je.default.arrayOf(_v.rangeShape),focusedRange:je.default.arrayOf(je.default.number),onDragSelectionStart:je.default.func,onDragSelectionEnd:je.default.func,onDragSelectionMove:je.default.func,onMouseLeave:je.default.func,monthDisplayFormat:je.default.string,weekdayDisplayFormat:je.default.string,dayDisplayFormat:je.default.string,showWeekDays:je.default.bool,showMonthName:je.default.bool,fixedHeight:je.default.bool},Cl.default=Xu;var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.default=void 0;var Ml=fR(_),jn=Cv(Un),uR=Cv(nr),lo=$r;function Cv(t){return t&&t.__esModule?t:{default:t}}function Dv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Dv=function(r){return r?n:e})(t)}function fR(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Dv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Ku(t,e,n){return e=hR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hR(t){var e=gR(t,"string");return typeof e=="symbol"?e:String(e)}function gR(t,e){if(typeof t!="object"||!t)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)}class Gu extends Ml.PureComponent{constructor(e,n){super(e,n),Ku(this,"onKeyDown",r=>{const{value:s}=this.state;r.key==="Enter"&&this.update(s)}),Ku(this,"onChange",r=>{this.setState({value:r.target.value,changed:!0,invalid:!1})}),Ku(this,"onBlur",()=>{const{value:r}=this.state;this.update(r)}),this.state={invalid:!1,changed:!1,value:this.formatDate(e)}}componentDidUpdate(e){const{value:n}=e;(0,lo.isEqual)(n,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(e){let{value:n,dateDisplayFormat:r,dateOptions:s}=e;return n&&(0,lo.isValid)(n)?(0,lo.format)(n,r,s):""}update(e){const{invalid:n,changed:r}=this.state;if(n||!r||!e)return;const{onChange:s,dateDisplayFormat:a,dateOptions:o}=this.props,i=(0,lo.parse)(e,a,new Date,o);(0,lo.isValid)(i)?this.setState({changed:!1},()=>s(i)):this.setState({invalid:!0})}render(){const{className:e,readOnly:n,placeholder:r,ariaLabel:s,disabled:a,onFocus:o}=this.props,{value:i,invalid:l}=this.state;return Ml.default.createElement("span",{className:(0,uR.default)("rdrDateInput",e)},Ml.default.createElement("input",{readOnly:n,disabled:a,value:i,placeholder:r,"aria-label":s,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:o}),l&&Ml.default.createElement("span",{className:"rdrWarning"},"⚠"))}}Gu.propTypes={value:jn.default.object,placeholder:jn.default.string,disabled:jn.default.bool,readOnly:jn.default.bool,dateOptions:jn.default.object,dateDisplayFormat:jn.default.string,ariaLabel:jn.default.string,className:jn.default.string,onFocus:jn.default.func.isRequired,onChange:jn.default.func.isRequired},Gu.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},Dl.default=Gu;var Mv={};(function(t){(function(e,n){n(t,_,g)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:Uk,function(e,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function s(R){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},s(R)}function a(R,A){if(!(R instanceof A))throw new TypeError("Cannot call a class as a function")}function o(R,A){for(var I=0;I<A.length;I++){var M=A[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(R,x(M.key),M)}}function i(R,A,I){return A&&o(R.prototype,A),I&&o(R,I),Object.defineProperty(R,"prototype",{writable:!1}),R}function l(R,A,I){return A=f(A),c(R,u()?Reflect.construct(A,I||[],f(R).constructor):A.apply(R,I))}function c(R,A){if(A&&(s(A)=="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(R)}function d(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function u(){try{var R=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!R})()}function f(R){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(A){return A.__proto__||Object.getPrototypeOf(A)},f(R)}function h(R,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(A&&A.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),A&&p(R,A)}function p(R,A){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,M){return I.__proto__=M,I},p(R,A)}function m(R,A){var I=Object.keys(R);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(R);A&&(M=M.filter(function(H){return Object.getOwnPropertyDescriptor(R,H).enumerable})),I.push.apply(I,M)}return I}function b(R){for(var A=1;A<arguments.length;A++){var I=arguments[A]!=null?arguments[A]:{};A%2?m(Object(I),!0).forEach(function(M){y(R,M,I[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(I)):m(Object(I)).forEach(function(M){Object.defineProperty(R,M,Object.getOwnPropertyDescriptor(I,M))})}return R}function y(R,A,I){return(A=x(A))in R?Object.defineProperty(R,A,{value:I,enumerable:!0,configurable:!0,writable:!0}):R[A]=I,R}function x(R){var A=k(R,"string");return s(A)=="symbol"?A:A+""}function k(R,A){if(s(R)!="object"||!R)return R;var I=R[Symbol.toPrimitive];if(I!==void 0){var M=I.call(R,A);if(s(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(R)}var v={x:"clientWidth",y:"clientHeight"},w={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},N={x:"offsetWidth",y:"offsetHeight"},D={x:"offsetLeft",y:"offsetTop"},T={x:"overflowX",y:"overflowY"},E={x:"scrollWidth",y:"scrollHeight"},Y={x:"scrollLeft",y:"scrollTop"},L={x:"width",y:"height"},O=function(){},C=function(){if(typeof window>"u")return!1;var R=!1;try{document.createElement("div").addEventListener("test",O,{get passive(){return R=!0,!1}})}catch{}return R}()?{passive:!0}:!1,P="ReactList failed to reach a stable state.",F=40,U=function(A,I){for(var M in I)if(A[M]!==I[M])return!1;return!0},Z=function(A){for(var I=A.props.axis,M=A.getEl(),H=T[I];M=M.parentElement;)switch(window.getComputedStyle(M)[H]){case"auto":case"scroll":case"overlay":return M}return window},ee=function(A){var I=A.props.axis,M=A.scrollParent;return M===window?window[S[I]]:M[v[I]]},j=function(A,I){var M=A.length,H=A.minSize,J=A.type,K=I.from,q=I.size,B=I.itemsPerRow;q=Math.max(q,H);var te=q%B;return te&&(q+=B-te),q>M&&(q=M),K=J==="simple"||!K?0:Math.max(Math.min(K,M-q),0),(te=K%B)&&(K-=te,q+=te),K===I.from&&q===I.size?I:b(b({},I),{},{from:K,size:q})},V=e.default=function(R){function A(I){var M;return a(this,A),M=l(this,A,[I]),M.state=j(I,{itemsPerRow:1,from:I.initialIndex,size:0}),M.cache={},M.cachedScrollPosition=null,M.prevPrevState={},M.unstable=!1,M.updateCounter=0,M}return h(A,R),i(A,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(M){var H=this;if(this.props.axis!==M.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>F)return this.unstable=!0,console.error(P);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){H.updateCounter=0,delete H.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(M,H){if(U(this.state,M))return H();this.setState(M,H)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,C),this.scrollParent.removeEventListener("mousewheel",O,C)}},{key:"getOffset",value:function(M){var H=this.props.axis,J=M[w[H]]||0,K=D[H];do J+=M[K]||0;while(M=M.offsetParent);return J}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var M=this.scrollParent,H=this.props.axis,J=Y[H],K=M===window?document.body[J]||document.documentElement[J]:M[J],q=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),B=Math.max(0,Math.min(K,q)),te=this.getEl();return this.cachedScrollPosition=this.getOffset(M)+B-this.getOffset(te),this.cachedScrollPosition}},{key:"setScroll",value:function(M){var H=this.scrollParent,J=this.props.axis;if(M+=this.getOffset(this.getEl()),H===window)return window.scrollTo(0,M);M-=this.getOffset(this.scrollParent),H[Y[J]]=M}},{key:"getScrollSize",value:function(){var M=this.scrollParent,H=document,J=H.body,K=H.documentElement,q=E[this.props.axis];return M===window?Math.max(J[q],K[q]):M[q]}},{key:"hasDeterminateSize",value:function(){var M=this.props,H=M.itemSizeGetter,J=M.type;return J==="uniform"||H}},{key:"getStartAndEnd",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,H=this.getScrollPosition(),J=Math.max(0,H-M),K=H+this.props.scrollParentViewportSizeGetter(this)+M;return this.hasDeterminateSize()&&(K=Math.min(K,this.getSpaceBefore(this.props.length))),{start:J,end:K}}},{key:"getItemSizeAndItemsPerRow",value:function(){var M=this.props,H=M.axis,J=M.useStaticSize,K=this.state,q=K.itemSize,B=K.itemsPerRow;if(J&&q&&B)return{itemSize:q,itemsPerRow:B};var te=this.items.children;if(!te.length)return{};var W=te[0],ne=W[N[H]],se=Math.abs(ne-q);if((isNaN(se)||se>=1)&&(q=ne),!q)return{};var oe=D[H],ge=W[oe];B=1;for(var ce=te[B];ce&&ce[oe]===ge;ce=te[B])++B;return{itemSize:q,itemsPerRow:B}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(M){return this.clearSizeCache(),this.updateFrame(M)}},{key:"updateFrame",value:function(M){switch(this.updateScrollParent(),typeof M!="function"&&(M=O),this.props.type){case"simple":return this.updateSimpleFrame(M);case"variable":return this.updateVariableFrame(M);case"uniform":return this.updateUniformFrame(M)}}},{key:"updateScrollParent",value:function(){var M=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),M!==this.scrollParent&&(M&&(M.removeEventListener("scroll",this.updateFrameAndClearCache),M.removeEventListener("mousewheel",O)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,C),this.scrollParent.addEventListener("mousewheel",O,C))}},{key:"updateSimpleFrame",value:function(M){var H=this.getStartAndEnd(),J=H.end,K=this.items.children,q=0;if(K.length){var B=this.props.axis,te=K[0],W=K[K.length-1];q=this.getOffset(W)+W[N[B]]-this.getOffset(te)}if(q>J)return M();var ne=this.props,se=ne.pageSize,oe=ne.length,ge=Math.min(this.state.size+se,oe);this.maybeSetState({size:ge},M)}},{key:"updateVariableFrame",value:function(M){this.props.itemSizeGetter||this.cacheSizes();for(var H=this.getStartAndEnd(),J=H.start,K=H.end,q=this.props,B=q.length,te=q.pageSize,W=0,ne=0,se=0,oe=B-1;ne<oe;){var ge=this.getSizeOfItem(ne);if(ge==null||W+ge>J)break;W+=ge,++ne}for(var ce=B-ne;se<ce&&W<K;){var ae=this.getSizeOfItem(ne+se);if(ae==null){se=Math.min(se+te,ce);break}W+=ae,++se}this.maybeSetState(j(this.props,{from:ne,itemsPerRow:1,size:se}),M)}},{key:"updateUniformFrame",value:function(M){var H=this.getItemSizeAndItemsPerRow(),J=H.itemSize,K=H.itemsPerRow;if(!J||!K)return M();var q=this.getStartAndEnd(),B=q.start,te=q.end,W=j(this.props,{from:Math.floor(B/J)*K,size:(Math.ceil((te-B)/J)+1)*K,itemsPerRow:K}),ne=W.from,se=W.size;return this.maybeSetState({itemsPerRow:K,from:ne,itemSize:J,size:se},M)}},{key:"getSpaceBefore",value:function(M){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(H[M]!=null)return H[M];var J=this.state,K=J.itemSize,q=J.itemsPerRow;if(K)return H[M]=Math.floor(M/q)*K;for(var B=M;B>0&&H[--B]==null;);for(var te=H[B]||0,W=B;W<M;++W){H[W]=te;var ne=this.getSizeOfItem(W);if(ne==null)break;te+=ne}return H[M]=te}},{key:"cacheSizes",value:function(){for(var M=this.cache,H=this.state.from,J=this.items.children,K=N[this.props.axis],q=0,B=J.length;q<B;++q)M[H+q]=J[q][K]}},{key:"getSizeOfItem",value:function(M){var H=this.cache,J=this.items,K=this.props,q=K.axis,B=K.itemSizeGetter,te=K.itemSizeEstimator,W=K.type,ne=this.state,se=ne.from,oe=ne.itemSize,ge=ne.size;if(oe)return oe;if(B)return B(M);if(M in H)return H[M];if(W==="simple"&&M>=se&&M<se+ge&&J){var ce=J.children[M-se];if(ce)return ce[N[q]]}if(te)return te(M,H)}},{key:"scrollTo",value:function(M){M!=null&&this.setScroll(this.getSpaceBefore(M))}},{key:"scrollAround",value:function(M){var H=this.getScrollPosition(),J=this.getSpaceBefore(M),K=J-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(M),q=Math.min(K,J),B=Math.max(K,J);if(H<=q)return this.setScroll(q);if(H>B)return this.setScroll(B)}},{key:"getVisibleRange",value:function(){for(var M=this.state,H=M.from,J=M.size,K=this.getStartAndEnd(0),q=K.start,B=K.end,te={},W,ne,se=H;se<H+J;++se){var oe=this.getSpaceBefore(se,te),ge=oe+this.getSizeOfItem(se);W==null&&ge>q&&(W=se),W!=null&&oe<B&&(ne=se)}return[W,ne]}},{key:"renderItems",value:function(){for(var M=this,H=this.props,J=H.itemRenderer,K=H.itemsRenderer,q=this.state,B=q.from,te=q.size,W=[],ne=0;ne<te;++ne)W.push(J(B+ne,ne));return K(W,function(se){return M.items=se})}},{key:"render",value:function(){var M=this,H=this.props,J=H.axis,K=H.length,q=H.type,B=H.useTranslate3d,te=this.state,W=te.from,ne=te.itemsPerRow,se=this.renderItems();if(q==="simple")return se;var oe={position:"relative"},ge={},ce=Math.ceil(K/ne)*ne,ae=this.getSpaceBefore(ce,ge);ae&&(oe[L[J]]=ae,J==="x"&&(oe.overflowX="hidden"));var Ve=this.getSpaceBefore(W,ge),pe=J==="x"?Ve:0,He=J==="y"?Ve:0,Ke=B?"translate3d(".concat(pe,"px, ").concat(He,"px, 0)"):"translate(".concat(pe,"px, ").concat(He,"px)"),et={msTransform:Ke,WebkitTransform:Ke,transform:Ke};return(0,r.jsx)("div",{style:oe,ref:function(Xt){return M.el=Xt},children:(0,r.jsx)("div",{style:et,children:se})})}}],[{key:"getDerivedStateFromProps",value:function(M,H){var J=j(M,H);return J===H?null:J}}])}(n.Component);y(V,"displayName","ReactList"),y(V,"defaultProps",{axis:"y",itemRenderer:function(A,I){return(0,r.jsx)("div",{children:A},I)},itemsRenderer:function(A,I){return(0,r.jsx)("div",{ref:I,children:A})},length:0,minSize:1,pageSize:10,scrollParentGetter:Z,scrollParentViewportSizeGetter:ee,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})})})(Mv);function mR(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),s=n.length;if(r.length!==s)return!1;for(var a=0;a<s;a++){var o=n[a];if(t[o]!==e[o]||!Object.prototype.hasOwnProperty.call(e,o))return!1}return!0}function pR(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=t.length;if(e.length!==n)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const bR=Xf(Object.freeze(Object.defineProperty({__proto__:null,shallowEqualArrays:pR,shallowEqualObjects:mR},Symbol.toStringTag,{value:"Module"})));var Qu={},Zu={};Zu.formatDistance=void 0;const yR={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wR=(t,e,n)=>{let r;const s=yR[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};Zu.formatDistance=wR;var Ju={},Ev={};Ev.buildFormatLongFn=vR;function vR(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}Ju.formatLong=void 0;var qu=Ev;const xR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kR={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_R={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};Ju.formatLong={date:(0,qu.buildFormatLongFn)({formats:xR,defaultWidth:"full"}),time:(0,qu.buildFormatLongFn)({formats:kR,defaultWidth:"full"}),dateTime:(0,qu.buildFormatLongFn)({formats:_R,defaultWidth:"full"})};var $u={};$u.formatRelative=void 0;const SR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},OR=(t,e,n,r)=>SR[t];$u.formatRelative=OR;var ef={},Pv={};Pv.buildLocalizeFn=CR;function CR(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;s=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[i]||t.values[o]}const a=t.argumentCallback?t.argumentCallback(e):e;return s[a]}}ef.localize=void 0;var co=Pv;const DR={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},MR={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ER={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},PR={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},TR={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},NR={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jR=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"};ef.localize={ordinalNumber:jR,era:(0,co.buildLocalizeFn)({values:DR,defaultWidth:"wide"}),quarter:(0,co.buildLocalizeFn)({values:MR,defaultWidth:"wide",argumentCallback:t=>t-1}),month:(0,co.buildLocalizeFn)({values:ER,defaultWidth:"wide"}),day:(0,co.buildLocalizeFn)({values:PR,defaultWidth:"wide"}),dayPeriod:(0,co.buildLocalizeFn)({values:TR,defaultWidth:"wide",formattingValues:NR,defaultFormattingWidth:"wide"})};var tf={},Tv={};Tv.buildMatchFn=IR;function IR(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],a=e.match(s);if(!a)return null;const o=a[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?RR(i,u=>u.test(o)):AR(i,u=>u.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const d=e.slice(o.length);return{value:c,rest:d}}}function AR(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function RR(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}var Nv={};Nv.buildMatchPatternFn=LR;function LR(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],a=e.match(t.parsePattern);if(!a)return null;let o=t.valueCallback?t.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(s.length);return{value:o,rest:i}}}tf.match=void 0;var uo=Tv,FR=Nv;const WR=/^(\d+)(th|st|nd|rd)?/i,BR=/\d+/i,zR={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},HR={any:[/^b/i,/^(a|c)/i]},YR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},VR={any:[/1/i,/2/i,/3/i,/4/i]},UR={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},XR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},KR={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},GR={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},QR={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ZR={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};tf.match={ordinalNumber:(0,FR.buildMatchPatternFn)({matchPattern:WR,parsePattern:BR,valueCallback:t=>parseInt(t,10)}),era:(0,uo.buildMatchFn)({matchPatterns:zR,defaultMatchWidth:"wide",parsePatterns:HR,defaultParseWidth:"any"}),quarter:(0,uo.buildMatchFn)({matchPatterns:YR,defaultMatchWidth:"wide",parsePatterns:VR,defaultParseWidth:"any",valueCallback:t=>t+1}),month:(0,uo.buildMatchFn)({matchPatterns:UR,defaultMatchWidth:"wide",parsePatterns:XR,defaultParseWidth:"any"}),day:(0,uo.buildMatchFn)({matchPatterns:KR,defaultMatchWidth:"wide",parsePatterns:GR,defaultParseWidth:"any"}),dayPeriod:(0,uo.buildMatchFn)({matchPatterns:QR,defaultMatchWidth:"any",parsePatterns:ZR,defaultParseWidth:"any"})},Qu.enUS=void 0;var JR=Zu,qR=Ju,$R=$u,e3=ef,t3=tf;Qu.enUS={code:"en-US",formatDistance:JR.formatDistance,formatLong:qR.formatLong,formatRelative:$R.formatRelative,localize:e3.localize,match:t3.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};var ns={};Object.defineProperty(ns,"__esModule",{value:!0}),ns.default=void 0,ns.default={dateRangeWrapper:"rdrDateRangeWrapper",calendarWrapper:"rdrCalendarWrapper",dateDisplay:"rdrDateDisplay",dateDisplayItem:"rdrDateDisplayItem",dateDisplayItemActive:"rdrDateDisplayItemActive",monthAndYearWrapper:"rdrMonthAndYearWrapper",monthAndYearPickers:"rdrMonthAndYearPickers",nextPrevButton:"rdrNextPrevButton",month:"rdrMonth",weekDays:"rdrWeekDays",weekDay:"rdrWeekDay",days:"rdrDays",day:"rdrDay",dayNumber:"rdrDayNumber",dayPassive:"rdrDayPassive",dayToday:"rdrDayToday",dayStartOfWeek:"rdrDayStartOfWeek",dayEndOfWeek:"rdrDayEndOfWeek",daySelected:"rdrDaySelected",dayDisabled:"rdrDayDisabled",dayStartOfMonth:"rdrDayStartOfMonth",dayEndOfMonth:"rdrDayEndOfMonth",dayWeekend:"rdrDayWeekend",dayStartPreview:"rdrDayStartPreview",dayInPreview:"rdrDayInPreview",dayEndPreview:"rdrDayEndPreview",dayHovered:"rdrDayHovered",dayActive:"rdrDayActive",inRange:"rdrInRange",endEdge:"rdrEndEdge",startEdge:"rdrStartEdge",prevButton:"rdrPprevButton",nextButton:"rdrNextButton",selected:"rdrSelected",months:"rdrMonths",monthPicker:"rdrMonthPicker",yearPicker:"rdrYearPicker",dateDisplayWrapper:"rdrDateDisplayWrapper",definedRangesWrapper:"rdrDefinedRangesWrapper",staticRanges:"rdrStaticRanges",staticRange:"rdrStaticRange",inputRanges:"rdrInputRanges",inputRange:"rdrInputRange",inputRangeInput:"rdrInputRangeInput",dateRangePickerWrapper:"rdrDateRangePickerWrapper",staticRangeLabel:"rdrStaticRangeLabel",staticRangeSelected:"rdrStaticRangeSelected",monthName:"rdrMonthName",infiniteMonths:"rdrInfiniteMonths",monthsVertical:"rdrMonthsVertical",monthsHorizontal:"rdrMonthsHorizontal"};var El={};Object.defineProperty(El,"__esModule",{value:!0}),El.ariaLabelsShape=void 0;var qn=n3(Un);function n3(t){return t&&t.__esModule?t:{default:t}}El.ariaLabelsShape=qn.default.shape({dateInput:qn.default.objectOf(qn.default.shape({startDate:qn.default.string,endDate:qn.default.string})),monthPicker:qn.default.string,yearPicker:qn.default.string,prevButton:qn.default.string,nextButton:qn.default.string}),Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var Ne=c3(_),ue=Gs(Un),r3=Xn,jv=Gs(Cl),Iv=Gs(Dl),Pl=Zn,rs=Gs(nr),s3=Gs(Mv),a3=bR,Be=$r,o3=Qu,i3=Gs(ns),l3=El;function Gs(t){return t&&t.__esModule?t:{default:t}}function Av(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Av=function(r){return r?n:e})(t)}function c3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Av(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Tl(){return Tl=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},Tl.apply(this,arguments)}function rn(t,e,n){return e=d3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d3(t){var e=u3(t,"string");return typeof e=="symbol"?e:String(e)}function u3(t,e){if(typeof t!="object"||!t)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)}class Qs extends Ne.PureComponent{constructor(e,n){var r;super(e,n),r=this,rn(this,"focusToDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.props,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!a.scroll.enabled){if(o&&a.preventSnapRefocus){const c=(0,Be.differenceInCalendarMonths)(s,r.state.focusedDate),d=a.calendarFocus==="forwards"&&c>=0,u=a.calendarFocus==="backwards"&&c<=0;if((d||u)&&Math.abs(c)<a.months)return}r.setState({focusedDate:s});return}const i=(0,Be.differenceInCalendarMonths)(s,a.minDate,r.dateOptions),l=r.list.getVisibleRange();o&&l.includes(i)||(r.isFirstRender=!0,r.list.scrollTo(i),r.setState({focusedDate:s}))}),rn(this,"updateShownDate",function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.props;const a=s.scroll.enabled?{...s,months:r.list.getVisibleRange().length}:s,o=(0,Pl.calcFocusDate)(r.state.focusedDate,a);r.focusToDate(o,a)}),rn(this,"updatePreview",s=>{if(!s){this.setState({preview:null});return}const a={startDate:s,endDate:s,color:this.props.color};this.setState({preview:a})}),rn(this,"changeShownDate",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:o}=r.state,{onShownDateChange:i,minDate:l,maxDate:c}=r.props,d={monthOffset:()=>(0,Be.addMonths)(o,s),setMonth:()=>(0,Be.setMonth)(o,s),setYear:()=>(0,Be.setYear)(o,s),set:()=>s},u=(0,Be.min)([(0,Be.max)([d[a](),l]),c]);r.focusToDate(u,r.props,!1),i&&i(u)}),rn(this,"handleRangeFocusChange",(s,a)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([s,a])}),rn(this,"handleScroll",()=>{const{onShownDateChange:s,minDate:a}=this.props,{focusedDate:o}=this.state,{isFirstRender:i}=this,l=this.list.getVisibleRange();if(l[0]===void 0)return;const c=(0,Be.addMonths)(a,l[0]||0);!(0,Be.isSameMonth)(c,o)&&!i&&(this.setState({focusedDate:c}),s&&s(c)),this.isFirstRender=!1}),rn(this,"renderMonthAndYear",(s,a,o)=>{const{showMonthArrow:i,minDate:l,maxDate:c,showMonthAndYearPickers:d,ariaLabels:u}=o,f=(c||Qs.defaultProps.maxDate).getFullYear(),h=(l||Qs.defaultProps.minDate).getFullYear(),p=this.styles;return Ne.default.createElement("div",{onMouseUp:m=>m.stopPropagation(),className:p.monthAndYearWrapper},i?Ne.default.createElement("button",{type:"button",className:(0,rs.default)(p.nextPrevButton,p.prevButton),onClick:()=>a(-1,"monthOffset"),"aria-label":u.prevButton},Ne.default.createElement("i",null)):null,d?Ne.default.createElement("span",{className:p.monthAndYearPickers},Ne.default.createElement("span",{className:p.monthPicker},Ne.default.createElement("select",{value:s.getMonth(),onChange:m=>a(m.target.value,"setMonth"),"aria-label":u.monthPicker},this.state.monthNames.map((m,b)=>Ne.default.createElement("option",{key:b,value:b},m)))),Ne.default.createElement("span",{className:p.monthAndYearDivider}),Ne.default.createElement("span",{className:p.yearPicker},Ne.default.createElement("select",{value:s.getFullYear(),onChange:m=>a(m.target.value,"setYear"),"aria-label":u.yearPicker},new Array(f-h+1).fill(f).map((m,b)=>{const y=m-b;return Ne.default.createElement("option",{key:y,value:y},y)})))):Ne.default.createElement("span",{className:p.monthAndYearPickers},this.state.monthNames[s.getMonth()]," ",s.getFullYear()),i?Ne.default.createElement("button",{type:"button",className:(0,rs.default)(p.nextPrevButton,p.nextButton),onClick:()=>a(1,"monthOffset"),"aria-label":u.nextButton},Ne.default.createElement("i",null)):null)}),rn(this,"renderDateDisplay",()=>{const{focusedRange:s,color:a,ranges:o,rangeColors:i,dateDisplayFormat:l,editableDateInputs:c,startDatePlaceholder:d,endDatePlaceholder:u,ariaLabels:f}=this.props,h=i[s[0]]||a,p=this.styles;return Ne.default.createElement("div",{className:p.dateDisplayWrapper},o.map((m,b)=>m.showDateDisplay===!1||m.disabled&&!m.showDateDisplay?null:Ne.default.createElement("div",{className:p.dateDisplay,key:b,style:{color:m.color||h}},Ne.default.createElement(Iv.default,{className:(0,rs.default)(p.dateDisplayItem,{[p.dateDisplayItemActive]:s[0]===b&&s[1]===0}),readOnly:!c,disabled:m.disabled,value:m.startDate,placeholder:d,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:f.dateInput&&f.dateInput[m.key]&&f.dateInput[m.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,0)}),Ne.default.createElement(Iv.default,{className:(0,rs.default)(p.dateDisplayItem,{[p.dateDisplayItemActive]:s[0]===b&&s[1]===1}),readOnly:!c,disabled:m.disabled,value:m.endDate,placeholder:u,dateOptions:this.dateOptions,dateDisplayFormat:l,ariaLabel:f.dateInput&&f.dateInput[m.key]&&f.dateInput[m.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(b,1)}))))}),rn(this,"onDragSelectionStart",s=>{const{onChange:a,dragSelectionEnabled:o}=this.props;o?this.setState({drag:{status:!0,range:{startDate:s,endDate:s},disablePreview:!0}}):a&&a(s)}),rn(this,"onDragSelectionEnd",s=>{const{updateRange:a,displayMode:o,onChange:i,dragSelectionEnabled:l}=this.props;if(!l)return;if(o==="date"||!this.state.drag.status){i&&i(s);return}const c={startDate:this.state.drag.range.startDate,endDate:s};o!=="dateRange"||(0,Be.isSameDay)(c.startDate,s)?this.setState({drag:{status:!1,range:{}}},()=>i&&i(s)):this.setState({drag:{status:!1,range:{}}},()=>{a&&a(c)})}),rn(this,"onDragSelectionMove",s=>{const{drag:a}=this.state;!a.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:a.status,range:{startDate:a.range.startDate,endDate:s},disablePreview:!0}})}),rn(this,"estimateMonthSize",(s,a)=>{const{direction:o,minDate:i}=this.props,{scrollArea:l}=this.state;if(a&&(this.listSizeCache=a,a[s]))return a[s];if(o==="horizontal")return l.monthWidth;const c=(0,Be.addMonths)(i,s),{start:d,end:u}=(0,Pl.getMonthDisplayRange)(c,this.dateOptions);return(0,Be.differenceInDays)(u,d,this.dateOptions)+1>7*5?l.longMonthHeight:l.monthHeight}),this.dateOptions={locale:e.locale},e.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=e.weekStartsOn),this.styles=(0,Pl.generateStyles)([i3.default,e.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,Pl.calcFocusDate)(null,e),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(e)}}getMonthNames(){return[...Array(12).keys()].map(e=>this.props.locale.localize.month(e))}calcScrollArea(e){const{direction:n,months:r,scroll:s}=e;if(!s.enabled)return{enabled:!1};const a=s.longMonthHeight||s.monthHeight;return n==="vertical"?{enabled:!0,monthHeight:s.monthHeight||220,longMonthHeight:a||260,calendarWidth:"auto",calendarHeight:(s.calendarHeight||a||240)*r}:{enabled:!0,monthWidth:s.monthWidth||332,calendarWidth:(s.calendarWidth||s.monthWidth||332)*r,monthHeight:a||300,calendarHeight:a||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(e){const r={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[r]!==e[r]&&this.updateShownDate(this.props),(e.locale!==this.props.locale||e.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,a3.shallowEqualObjects)(e.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const e=new Date;return Ne.default.createElement("div",{className:this.styles.weekDays},(0,Be.eachDayOfInterval)({start:(0,Be.startOfWeek)(e,this.dateOptions),end:(0,Be.endOfWeek)(e,this.dateOptions)}).map((n,r)=>Ne.default.createElement("span",{className:this.styles.weekDay,key:r},(0,Be.format)(n,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:e,onPreviewChange:n,scroll:r,direction:s,disabledDates:a,disabledDay:o,maxDate:i,minDate:l,rangeColors:c,color:d,navigatorRenderer:u,className:f,preview:h}=this.props,{scrollArea:p,focusedDate:m}=this.state,b=s==="vertical",y=u||this.renderMonthAndYear,x=this.props.ranges.map((k,v)=>({...k,color:k.color||c[v]||d}));return Ne.default.createElement("div",{className:(0,rs.default)(this.styles.calendarWrapper,f),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},e&&this.renderDateDisplay(),y(m,this.changeShownDate,this.props),r.enabled?Ne.default.createElement("div",null,b&&this.renderWeekdays(this.dateOptions),Ne.default.createElement("div",{className:(0,rs.default)(this.styles.infiniteMonths,b?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>n&&n(),style:{width:p.calendarWidth+11,height:p.calendarHeight+11},onScroll:this.handleScroll},Ne.default.createElement(s3.default,{length:(0,Be.differenceInCalendarMonths)((0,Be.endOfMonth)(i),(0,Be.addDays)((0,Be.startOfMonth)(l),-1),this.dateOptions),treshold:500,type:"variable",ref:k=>this.list=k,itemSizeEstimator:this.estimateMonthSize,axis:b?"y":"x",itemRenderer:(k,v)=>{const w=(0,Be.addMonths)(l,k);return Ne.default.createElement(jv.default,Tl({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:x,key:v,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:w,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,style:b?{height:this.estimateMonthSize(k)}:{height:p.monthHeight,width:this.estimateMonthSize(k)},showMonthName:!0,showWeekDays:!b}))}}))):Ne.default.createElement("div",{className:(0,rs.default)(this.styles.months,b?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((k,v)=>{let w=(0,Be.addMonths)(this.state.focusedDate,v);return this.props.calendarFocus==="backwards"&&(w=(0,Be.subMonths)(this.state.focusedDate,this.props.months-1-v)),Ne.default.createElement(jv.default,Tl({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:x,key:v,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:a,disabledDay:o,month:w,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,showWeekDays:!b||v===0,showMonthName:!b||v>0}))})))}}Qs.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:o3.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,Be.addYears)(new Date,20),minDate:(0,Be.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},Qs.propTypes={showMonthArrow:ue.default.bool,showMonthAndYearPickers:ue.default.bool,disabledDates:ue.default.array,disabledDay:ue.default.func,minDate:ue.default.object,maxDate:ue.default.object,date:ue.default.object,onChange:ue.default.func,onPreviewChange:ue.default.func,onRangeFocusChange:ue.default.func,classNames:ue.default.object,locale:ue.default.object,shownDate:ue.default.object,onShownDateChange:ue.default.func,ranges:ue.default.arrayOf(r3.rangeShape),preview:ue.default.shape({startDate:ue.default.object,endDate:ue.default.object,color:ue.default.string}),dateDisplayFormat:ue.default.string,monthDisplayFormat:ue.default.string,weekdayDisplayFormat:ue.default.string,weekStartsOn:ue.default.number,dayDisplayFormat:ue.default.string,focusedRange:ue.default.arrayOf(ue.default.number),initialFocusedRange:ue.default.arrayOf(ue.default.number),months:ue.default.number,className:ue.default.string,showDateDisplay:ue.default.bool,showPreview:ue.default.bool,displayMode:ue.default.oneOf(["dateRange","date"]),color:ue.default.string,updateRange:ue.default.func,scroll:ue.default.shape({enabled:ue.default.bool,monthHeight:ue.default.number,longMonthHeight:ue.default.number,monthWidth:ue.default.number,calendarWidth:ue.default.number,calendarHeight:ue.default.number}),direction:ue.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:ue.default.string,endDatePlaceholder:ue.default.string,navigatorRenderer:ue.default.func,rangeColors:ue.default.arrayOf(ue.default.string),editableDateInputs:ue.default.bool,dragSelectionEnabled:ue.default.bool,fixedHeight:ue.default.bool,calendarFocus:ue.default.string,preventSnapRefocus:ue.default.bool,ariaLabels:l3.ariaLabelsShape},to.default=Qs,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var Rv=m3(_),Zs=Nl(Un),Lv=Nl(to),f3=Xn,nf=Zn,In=$r,h3=Nl(nr),g3=Nl(ns);function Nl(t){return t&&t.__esModule?t:{default:t}}function Fv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Fv=function(r){return r?n:e})(t)}function m3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Fv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function rf(){return rf=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},rf.apply(this,arguments)}function jl(t,e,n){return e=p3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p3(t){var e=b3(t,"string");return typeof e=="symbol"?e:String(e)}function b3(t,e){if(typeof t!="object"||!t)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)}class sf extends Rv.Component{constructor(e,n){var r;super(e,n),r=this,jl(this,"calcNewSelection",function(s){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const o=r.props.focusedRange||r.state.focusedRange,{ranges:i,onChange:l,maxDate:c,moveRangeOnFirstSelection:d,retainEndDateOnFirstSelection:u,disabledDates:f}=r.props,h=o[0],p=i[h];if(!p||!l)return{};let{startDate:m,endDate:b}=p;const y=new Date;let x;if(!a)m=s.startDate,b=s.endDate;else if(o[1]===0){const w=(0,In.differenceInCalendarDays)(b||y,m),S=()=>d?(0,In.addDays)(s,w):u?!b||(0,In.isBefore)(s,b)?b:s:s||y;m=s,b=S(),c&&(b=(0,In.min)([b,c])),x=[o[0],1]}else b=s;let k=o[1]===0;(0,In.isBefore)(b,m)&&(k=!k,[m,b]=[b,m]);const v=f.filter(w=>(0,In.isWithinInterval)(w,{start:m,end:b}));return v.length>0&&(k?m=(0,In.addDays)((0,In.max)(v),1):b=(0,In.addDays)((0,In.min)(v),-1)),x||(x=[(0,nf.findNextRangeIndex)(r.props.ranges,o[0]),0]),{wasValid:!(v.length>0),range:{startDate:m,endDate:b},nextFocusRange:x}}),jl(this,"setSelection",(s,a)=>{const{onChange:o,ranges:i,onRangeFocusChange:l}=this.props,d=(this.props.focusedRange||this.state.focusedRange)[0],u=i[d];if(!u)return;const f=this.calcNewSelection(s,a);o({[u.key||`range${d+1}`]:{...u,...f.range}}),this.setState({focusedRange:f.nextFocusRange,preview:null}),l&&l(f.nextFocusRange)}),jl(this,"handleRangeFocusChange",s=>{this.setState({focusedRange:s}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(s)}),jl(this,"updatePreview",s=>{var c;if(!s){this.setState({preview:null});return}const{rangeColors:a,ranges:o}=this.props,i=this.props.focusedRange||this.state.focusedRange,l=((c=o[i[0]])==null?void 0:c.color)||a[i[0]]||l;this.setState({preview:{...s.range,color:l}})}),this.state={focusedRange:e.initialFocusedRange||[(0,nf.findNextRangeIndex)(e.ranges),0],preview:null},this.styles=(0,nf.generateStyles)([g3.default,e.classNames])}render(){return Rv.default.createElement(Lv.default,rf({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:e=>{this.updatePreview(e?this.calcNewSelection(e):null)}},this.props,{displayMode:"dateRange",className:(0,h3.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:e=>this.setSelection(e,!1),ref:e=>{this.calendar=e}}))}}sf.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},sf.propTypes={...Lv.default.propTypes,onChange:Zs.default.func,onRangeFocusChange:Zs.default.func,className:Zs.default.string,ranges:Zs.default.arrayOf(f3.rangeShape),moveRangeOnFirstSelection:Zs.default.bool,retainEndDateOnFirstSelection:Zs.default.bool},eo.default=sf;var Il={},fo={},vr={};Object.defineProperty(vr,"__esModule",{value:!0}),vr.createStaticRanges=Wv,vr.defaultStaticRanges=vr.defaultInputRanges=void 0;var Re=$r;const ut={startOfWeek:(0,Re.startOfWeek)(new Date),endOfWeek:(0,Re.endOfWeek)(new Date),startOfLastWeek:(0,Re.startOfWeek)((0,Re.addDays)(new Date,-7)),endOfLastWeek:(0,Re.endOfWeek)((0,Re.addDays)(new Date,-7)),startOfToday:(0,Re.startOfDay)(new Date),endOfToday:(0,Re.endOfDay)(new Date),startOfYesterday:(0,Re.startOfDay)((0,Re.addDays)(new Date,-1)),endOfYesterday:(0,Re.endOfDay)((0,Re.addDays)(new Date,-1)),startOfMonth:(0,Re.startOfMonth)(new Date),endOfMonth:(0,Re.endOfMonth)(new Date),startOfLastMonth:(0,Re.startOfMonth)((0,Re.addMonths)(new Date,-1)),endOfLastMonth:(0,Re.endOfMonth)((0,Re.addMonths)(new Date,-1))},y3={range:{},isSelected(t){const e=this.range();return(0,Re.isSameDay)(t.startDate,e.startDate)&&(0,Re.isSameDay)(t.endDate,e.endDate)}};function Wv(t){return t.map(e=>({...y3,...e}))}vr.defaultStaticRanges=Wv([{label:"Today",range:()=>({startDate:ut.startOfToday,endDate:ut.endOfToday})},{label:"Yesterday",range:()=>({startDate:ut.startOfYesterday,endDate:ut.endOfYesterday})},{label:"This Week",range:()=>({startDate:ut.startOfWeek,endDate:ut.endOfWeek})},{label:"Last Week",range:()=>({startDate:ut.startOfLastWeek,endDate:ut.endOfLastWeek})},{label:"This Month",range:()=>({startDate:ut.startOfMonth,endDate:ut.endOfMonth})},{label:"Last Month",range:()=>({startDate:ut.startOfLastMonth,endDate:ut.endOfLastMonth})}]),vr.defaultInputRanges=[{label:"days up to today",range(t){return{startDate:(0,Re.addDays)(ut.startOfToday,(Math.max(Number(t),1)-1)*-1),endDate:ut.endOfToday}},getCurrentValue(t){return(0,Re.isSameDay)(t.endDate,ut.endOfToday)?t.startDate?(0,Re.differenceInCalendarDays)(ut.endOfToday,t.startDate)+1:"∞":"-"}},{label:"days starting today",range(t){const e=new Date;return{startDate:e,endDate:(0,Re.addDays)(e,Math.max(Number(t),1)-1)}},getCurrentValue(t){return(0,Re.isSameDay)(t.startDate,ut.startOfToday)?t.endDate?(0,Re.differenceInCalendarDays)(t.endDate,ut.startOfToday)+1:"∞":"-"}}];var Al={};Object.defineProperty(Al,"__esModule",{value:!0}),Al.default=void 0;var Rl=v3(_),Rt=w3(Un);function w3(t){return t&&t.__esModule?t:{default:t}}function Bv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Bv=function(r){return r?n:e})(t)}function v3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Bv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function x3(t,e,n){return e=k3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k3(t){var e=_3(t,"string");return typeof e=="symbol"?e:String(e)}function _3(t,e){if(typeof t!="object"||!t)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)}const zv=0,Hv=99999;class af extends Rl.Component{constructor(e,n){super(e,n),x3(this,"onChange",r=>{const{onChange:s}=this.props;let a=parseInt(r.target.value,10);a=isNaN(a)?0:Math.max(Math.min(Hv,a),zv),s(a)})}shouldComponentUpdate(e){const{value:n,label:r,placeholder:s}=this.props;return n!==e.value||r!==e.label||s!==e.placeholder}render(){const{label:e,placeholder:n,value:r,styles:s,onBlur:a,onFocus:o}=this.props;return Rl.default.createElement("div",{className:s.inputRange},Rl.default.createElement("input",{className:s.inputRangeInput,placeholder:n,value:r,min:zv,max:Hv,onChange:this.onChange,onFocus:o,onBlur:a}),Rl.default.createElement("span",{className:s.inputRangeLabel},e))}}af.propTypes={value:Rt.default.oneOfType([Rt.default.string,Rt.default.number]),label:Rt.default.oneOfType([Rt.default.element,Rt.default.node]).isRequired,placeholder:Rt.default.string,styles:Rt.default.shape({inputRange:Rt.default.string,inputRangeInput:Rt.default.string,inputRangeLabel:Rt.default.string}).isRequired,onBlur:Rt.default.func.isRequired,onFocus:Rt.default.func.isRequired,onChange:Rt.default.func.isRequired},af.defaultProps={value:"",placeholder:"-"},Al.default=af,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=void 0;var ss=C3(_),Vt=Ll(Un),as=Ll(ns),Yv=vr,S3=Xn,O3=Ll(Al),Vv=Ll(nr);function Ll(t){return t&&t.__esModule?t:{default:t}}function Uv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Uv=function(r){return r?n:e})(t)}function C3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Uv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function D3(t,e,n){return e=M3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M3(t){var e=E3(t,"string");return typeof e=="symbol"?e:String(e)}function E3(t,e){if(typeof t!="object"||!t)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)}class of extends ss.Component{constructor(e){super(e),D3(this,"handleRangeChange",n=>{const{onChange:r,ranges:s,focusedRange:a}=this.props,o=s[a[0]];!r||!o||r({[o.key||`range${a[0]+1}`]:{...o,...n}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(e){const{ranges:n=[],focusedRange:r=[]}=this.props;if(typeof e.getCurrentValue!="function")return"";const s=n[r[0]]||{};return e.getCurrentValue(s)||""}getSelectedRange(e,n){const r=e.findIndex(a=>!a.startDate||!a.endDate||a.disabled?!1:n.isSelected(a));return{selectedRange:e[r],focusedRangeIndex:r}}render(){const{headerContent:e,footerContent:n,onPreviewChange:r,inputRanges:s,staticRanges:a,ranges:o,renderStaticRangeLabel:i,rangeColors:l,className:c}=this.props;return ss.default.createElement("div",{className:(0,Vv.default)(as.default.definedRangesWrapper,c)},e,ss.default.createElement("div",{className:as.default.staticRanges},a.map((d,u)=>{const{selectedRange:f,focusedRangeIndex:h}=this.getSelectedRange(o,d);let p;return d.hasCustomRendering?p=i(d):p=d.label,ss.default.createElement("button",{type:"button",className:(0,Vv.default)(as.default.staticRange,{[as.default.staticRangeSelected]:!!f}),style:{color:f?f.color||l[h]:null},key:u,onClick:()=>this.handleRangeChange(d.range(this.props)),onFocus:()=>r&&r(d.range(this.props)),onMouseOver:()=>r&&r(d.range(this.props)),onMouseLeave:()=>{r&&r()}},ss.default.createElement("span",{tabIndex:-1,className:as.default.staticRangeLabel},p))})),ss.default.createElement("div",{className:as.default.inputRanges},s.map((d,u)=>ss.default.createElement(O3.default,{key:u,styles:as.default,label:d.label,onFocus:()=>this.setState({focusedInput:u,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:f=>this.handleRangeChange(d.range(f,this.props)),value:this.getRangeOptionValue(d)}))),n)}}of.propTypes={inputRanges:Vt.default.array,staticRanges:Vt.default.array,ranges:Vt.default.arrayOf(S3.rangeShape),focusedRange:Vt.default.arrayOf(Vt.default.number),onPreviewChange:Vt.default.func,onChange:Vt.default.func,footerContent:Vt.default.any,headerContent:Vt.default.any,rangeColors:Vt.default.arrayOf(Vt.default.string),className:Vt.default.string,renderStaticRangeLabel:Vt.default.func},of.defaultProps={inputRanges:Yv.defaultInputRanges,staticRanges:Yv.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},fo.default=of,Object.defineProperty(Il,"__esModule",{value:!0}),Il.default=void 0;var Fl=j3(_),P3=ho(Un),Xv=ho(eo),Kv=ho(fo),Gv=Zn,T3=ho(nr),N3=ho(ns);function ho(t){return t&&t.__esModule?t:{default:t}}function Qv(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Qv=function(r){return r?n:e})(t)}function j3(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Qv(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if(a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)){var o=s?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function Wl(){return Wl=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},Wl.apply(this,arguments)}let lf=class extends Fl.Component{constructor(e){super(e),this.state={focusedRange:[(0,Gv.findNextRangeIndex)(e.ranges),0]},this.styles=(0,Gv.generateStyles)([N3.default,e.classNames])}render(){const{focusedRange:e}=this.state;return Fl.default.createElement("div",{className:(0,T3.default)(this.styles.dateRangePickerWrapper,this.props.className)},Fl.default.createElement(Kv.default,Wl({focusedRange:e,onPreviewChange:n=>this.dateRange.updatePreview(n?this.dateRange.calcNewSelection(n,typeof n=="string"):null)},this.props,{range:this.props.ranges[e[0]],className:void 0})),Fl.default.createElement(Xv.default,Wl({onRangeFocusChange:n=>this.setState({focusedRange:n}),focusedRange:e},this.props,{ref:n=>this.dateRange=n,className:void 0})))}};lf.defaultProps={},lf.propTypes={...Xv.default.propTypes,...Kv.default.propTypes,className:P3.default.string},Il.default=lf,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Calendar",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"DateRange",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DefinedRange",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"createStaticRanges",{enumerable:!0,get:function(){return a.createStaticRanges}}),Object.defineProperty(t,"defaultInputRanges",{enumerable:!0,get:function(){return a.defaultInputRanges}}),Object.defineProperty(t,"defaultStaticRanges",{enumerable:!0,get:function(){return a.defaultStaticRanges}});var e=o(eo),n=o(to),r=o(Il),s=o(fo),a=vr;function o(i){return i&&i.__esModule?i:{default:i}}}(Zy);const I3={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},A3=(t,e,n)=>{let r;const s=I3[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},R3={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},L3={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},F3={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},W3={date:Us({formats:R3,defaultWidth:"full"}),time:Us({formats:L3,defaultWidth:"full"}),dateTime:Us({formats:F3,defaultWidth:"full"})},B3={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},z3={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},H3=(t,e,n,r)=>e.getHours()!==1?z3[t]:B3[t],Y3={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},V3={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},U3={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},X3={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},K3={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},G3={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},Q3={ordinalNumber:(t,e)=>Number(t)+"º",era:Mn({values:Y3,defaultWidth:"wide"}),quarter:Mn({values:V3,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:Mn({values:U3,defaultWidth:"wide"}),day:Mn({values:X3,defaultWidth:"wide"}),dayPeriod:Mn({values:K3,defaultWidth:"wide",formattingValues:G3,defaultFormattingWidth:"wide"})},Z3=/^(\d+)(º)?/i,J3=/\d+/i,q3={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},$3={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},eL={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},tL={any:[/1/i,/2/i,/3/i,/4/i]},nL={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},rL={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},sL={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},aL={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},oL={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},iL={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},lL={ordinalNumber:Ww({matchPattern:Z3,parsePattern:J3,valueCallback:function(t){return parseInt(t,10)}}),era:En({matchPatterns:q3,defaultMatchWidth:"wide",parsePatterns:$3,defaultParseWidth:"any"}),quarter:En({matchPatterns:eL,defaultMatchWidth:"wide",parsePatterns:tL,defaultParseWidth:"any",valueCallback:t=>t+1}),month:En({matchPatterns:nL,defaultMatchWidth:"wide",parsePatterns:rL,defaultParseWidth:"any"}),day:En({matchPatterns:sL,defaultMatchWidth:"wide",parsePatterns:aL,defaultParseWidth:"any"}),dayPeriod:En({matchPatterns:oL,defaultMatchWidth:"any",parsePatterns:iL,defaultParseWidth:"any"})},cL={code:"es",formatDistance:A3,formatLong:W3,formatRelative:H3,localize:Q3,match:lL,options:{weekStartsOn:1,firstWeekContainsDate:1}},$n={"date-container":"dateRangePicker-module__date-container__jh9s-","date-input":"dateRangePicker-module__date-input__xt4gs","date-popup":"dateRangePicker-module__date-popup__TQHMh","date-menu":"dateRangePicker-module__date-menu__Nv5nr","date-menuItem":"dateRangePicker-module__date-menuItem__AYJ32","date-menuItemReset":"dateRangePicker-module__date-menuItemReset__J9IdZ","date-calendar":"dateRangePicker-module__date-calendar__M10Iv"},dL=[{label:"Ayer",range:()=>{const t=new Date;return t.setDate(t.getDate()-1),{startDate:t,endDate:t}}},{label:"La semana pasada",range:()=>({startDate:nn(new Date,-6),endDate:new Date})},{label:"El mes pasado",range:()=>{const t=new Date,e=new Date(t.getFullYear(),t.getMonth()-1,1),n=new Date(t.getFullYear(),t.getMonth(),0);return{startDate:e,endDate:n}}}],uL=({value:t,onChange:e,minData:n,maxData:r,quickRanges:s,className:a})=>{const[o,i]=_.useState([{startDate:nn(new Date,-6),endDate:new Date,key:"selection"}]),[l,c]=_.useState(!1),[d,u]=_.useState({}),f=_.useRef(null),h=_.useRef(null),p=s??dL,m=t?[{...t,key:"selection"}]:o;_.useEffect(()=>{if(l&&h.current&&f.current){const v=h.current.getBoundingClientRect(),w=f.current.offsetWidth||700,S=window.innerWidth-v.right,N=v.left,D={right:0,left:"auto"};S<w&&N>=w&&(D.left=0,D.right="auto"),window.innerWidth<w&&(D.left=0,D.right=0,D.width="100vw",D.maxWidth="100vw"),u(D)}},[l]);const b=v=>{t||i([v.selection]),e==null||e(v.selection.startDate,v.selection.endDate)},y=v=>{const{startDate:w,endDate:S}=v();t||i([{startDate:w,endDate:S,key:"selection"}]),e==null||e(w,S),c(!1)},x=()=>{const v=new Date;t||i([{startDate:v,endDate:v,key:"selection"}]),e==null||e(v,v),c(!1)},k=v=>vl(v,"dd MMM yy");return _.useEffect(()=>{if(!l)return;const v=w=>{f.current&&!f.current.contains(w.target)&&h.current&&!h.current.contains(w.target)&&c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[l]),g.jsxs("div",{className:$n["date-container"],children:[g.jsx("input",{ref:h,type:"text",readOnly:!0,value:`${k(m[0].startDate)} - ${k(m[0].endDate)}`,onClick:()=>c(!l),className:`${$n["date-input"]} ${a}`}),l&&g.jsxs("div",{ref:f,className:$n["date-popup"],style:d,children:[g.jsxs("div",{className:$n["date-menu"],children:[p.map((v,w)=>g.jsx("div",{className:$n["date-menuItem"]+(w===2?" "+$n["date-menuItemActive"]:""),onClick:()=>y(v.range),children:v.label},v.label)),g.jsx("div",{className:$n["date-menuItem"]+" "+$n["date-menuItemReset"],onClick:x,children:"Reset"})]}),g.jsx("div",{className:$n["date-calendar"],children:g.jsx(Zy.DateRange,{editableDateInputs:!1,onChange:b,moveRangeOnFirstSelection:!1,ranges:m,rangeColors:["#C0D4FF99"],minDate:n,maxDate:r,locale:cL,dayContentRenderer:v=>{const w=v.getDay(),S={opacity:w===0||w===6?.5:1,color:w===0||w===6?"#999":"inherit"};return g.jsx("span",{style:S,children:v.getDate()})},navigationButtonsPosition:"center"})})]})]})},fL=({minDate:t,maxDate:e})=>g.jsx(Jf,{minDate:t,maxDate:e,className:"custom-datepicker"}),os={"loader-wrapper":"loader-module__loader-wrapper__faxmX",container:"loader-module__container__Vj8hl","mathilde-loading":"loader-module__mathilde-loading__qdEVv","loading-1":"loader-module__loading-1__mro54",logo:"loader-module__logo__IXZKs","ball-container":"loader-module__ball-container__qDvi5",ball:"loader-module__ball__MSPUh"},hL=function(){return g.jsx("div",{className:`mth_loader ${os["loader-wrapper"]}`,children:g.jsx("div",{className:os.container,children:g.jsxs("div",{className:os["mathilde-loading"],children:[g.jsx("img",{className:os.logo,src:"https://ftp.mathilde-ads.com/345-38ea95da72fc8edd1d853f315945b449.png",alt:"Logo Mathilde"}),g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:os["loading-1"],children:g.jsx("circle",{cx:"50",cy:"50",r:"40"})}),g.jsx("div",{className:os["ball-container"],children:g.jsx("div",{className:os.ball})})]})})})},gL=({label:t,dismissOnClick:e,items:n,size:r,className:s,styles:a,mode:o="simple",columns:i=2,onSelectionChange:l,selectedItems:c=[],activeChevron:d=!0,icon:u,iconSize:f=20})=>{const[h,p]=_.useState(c),m=(k,v)=>{const w=v?[...h,k]:h.filter(S=>S!==k);p(w),l==null||l(w)},b=()=>n.map(k=>g.jsx(Mc,{...k,href:k.href,children:k.label},k.value||k.label)),y=()=>{const k=i===1?"grid-cols-1":i===2?"grid-cols-2":i===3?"grid-cols-3":i===4?"grid-cols-4":"grid-cols-2";return g.jsx("div",{className:`grid min-w-[200px] gap-2 p-2 ${k}`,children:n.map(v=>{const w=v.value||v.label,S=h.includes(w);return g.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded p-2 hover:bg-gray-100",children:[g.jsx("input",{type:"checkbox",checked:S,onChange:N=>m(w,N.target.checked),disabled:v.disabled,className:"size-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-blue-500"}),g.jsx("span",{className:`text-xs ${v.disabled?"text-gray-400":"text-black"}`,children:v.label})]},w)})})},x=k=>{if(!k)return null;if(typeof k=="string")return g.jsx("img",{src:k,alt:"icon",width:f,height:f});const v=k;return g.jsx(v,{size:f})};return g.jsx(g.Fragment,{children:g.jsx(u_,{label:t,dismissOnClick:o==="simple"?e:!1,size:r,renderTrigger:()=>g.jsx("button",{className:s,style:a,type:"button",children:g.jsxs("span",{className:"flex items-center gap-2",children:[x(u),t,d&&x(Vl)]})}),className:"left-0",children:o==="simple"?b():y()})})},mL=function({steps:t=[],initialStep:e=1,activeStep:n,onStepChange:r,renderControls:s,onNext:a,onBack:o,onFinish:i}){var b;const l=typeof n=="number",[c,d]=_.useState(e),u=l?n:c,f=()=>{if(u<t.length){const y=u+1;l?(r==null||r(y),a==null||a()):(d(y),a==null||a())}else i==null||i()},h=()=>{if(u>1){const y=u-1;l?(r==null||r(y),o==null||o()):(d(y),o==null||o())}},p=y=>{y!==u&&(y<1||y>t.length||(l?r==null||r(y):d(y)))},m={activeStep:u,stepsLength:t.length,isFirst:u===1,isLast:u===t.length,next:f,back:h,goToStep:p};return g.jsxs("div",{className:"mx-auto flex w-full flex-col md:flex-row",children:[g.jsx("ol",{className:"relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full self-start",children:t.map((y,x)=>{const k=x===t.length-1,v=x+1===u,w=x+1<u;return g.jsxs("li",{className:`ms-4 ${k?"":"mb-8"}`,children:[g.jsx("span",{className:`absolute -start-2 mt-0.5 size-3.5 items-center justify-center rounded-full ring-1
583
+ ${w||v?"bg-[#191960] ring-[#191960]":"bg-[#C0D4FF] ring-[#C0D4FF]"}`}),g.jsx("h3",{className:`text-sm font-medium leading-tight transition-colors duration-300
584
+ ${w||v?"text-black":"text-gray-600"}`,children:y.title})]},y.title)})}),g.jsxs("div",{className:"w-full p-6 mt-6 mx-10 border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300",children:[g.jsx("div",{children:((b=t[u-1])==null?void 0:b.content)||g.jsx("p",{children:"No hay contenido."})}),g.jsx("div",{className:"fixed bottom-0 left-0 w-full p-6",children:g.jsx("div",{className:"flex justify-end gap-2",children:s?g.jsx("div",{className:"w-full flex justify-end",children:s(m)}):g.jsxs(g.Fragment,{children:[g.jsx(_r,{typeButton:"white",txtBtn:"Atrás",disabled:u===1,onClick:h,type:"button",full:!1}),u<t.length?g.jsx(_r,{typeButton:"blue",txtBtn:"Siguiente",onClick:f,type:"button",full:!1}):g.jsx(_r,{typeButton:"blue",txtBtn:"Finalizar",onClick:i,type:"button",full:!1})]})})})]})]})};function Zv({content:t,trigger:e,children:n}){return g.jsx("div",{className:"flex gap-2",children:g.jsx(Xo,{content:t,trigger:e,className:"z-50 bg-black text-white",children:n})})}const pL=({label:t,options:e,classNameRadio:n,classNameLabel:r,className:s,onChange:a})=>g.jsxs("div",{className:`flex max-w-md flex-col gap-2 ${s??""}`,children:[t?g.jsx("div",{className:"text-sm font-medium text-gray-900",children:t}):null,g.jsx("div",{className:"flex items-center gap-3",children:e==null?void 0:e.map(o=>g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ig,{id:o.id,value:o.value,name:o.name,onChange:a,defaultChecked:o.checked,disabled:o.disabled,className:`ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] ${n??""}`}),g.jsx(Ec,{htmlFor:o.id,className:r??"",children:o.label}),o.tooltip?g.jsx(Zv,{content:o.tooltip,trigger:o.tooltipTrigger??"hover",children:o.tooltipChildren??g.jsx("button",{type:"button","aria-label":"Más información",className:"ml-1 inline-flex size-4 items-center justify-center rounded-full border border-gray-300 text-[10px] leading-none text-gray-600 hover:bg-gray-50",children:"i"})}):null]},o.id))})]});function Jv(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=Jv(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function go(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=Jv(t))&&(r&&(r+=" "),r+=e);return r}const Bl=({id:t,title:e,children:n,isOpen:r,onToggle:s,variant:a="minimal",icon:o,iconPosition:i="right",classes:l})=>{const c=go({minimal:"",bordered:"border border-gray-300 dark:border-gray-600",shadow:"shadow-md",ghost:"bg-transparent"}[a]);return g.jsxs("div",{id:t,className:go("rounded-lg w-full",c),children:[g.jsxs("button",{onClick:s,className:go("flex w-full items-center justify-between px-5 cursor-pointer text-left ",l||"p-4"),children:[g.jsxs("div",{className:"flex items-center gap-2",children:[o&&i==="left"&&g.jsx("span",{className:go("transition-transform text-[#191960]",r&&"rotate-90"),children:o}),g.jsx("span",{className:"font-semibold text-base",children:e})]}),o&&i==="right"&&g.jsx("span",{className:go("transition-transform text-[#191960]",r&&"rotate-90"),children:o})]}),r&&g.jsx("div",{className:"overflow-hidden",children:g.jsx("div",{className:"px-4 py-3 text-gray-700 dark:text-gray-300",children:n})},"content")]})},bL=({items:t,mode:e="multi",defaultOpen:n=[],className:r})=>{const[s,a]=_.useState(n),o=i=>{a(e==="multi"?l=>l.includes(i)?l.filter(c=>c!==i):[...l,i]:l=>l.includes(i)?[]:[i])};return g.jsx("div",{className:r,children:t.map(i=>g.jsx("div",{className:"mb-2 border-[1px] border-[#C4C4C4] rounded-[10px]",children:g.jsx(Bl,{id:i.id,title:i.title,isOpen:s.includes(i.id),onToggle:()=>o(i.id),variant:i.variant,icon:i.icon,iconPosition:i.iconPosition,classes:i.classes??"p-5",children:i.content})},i.id))})},yL=({onSelect:t,items:e=[],placeholder:n="Buscar país, región o ciudad",fetchItems:r,minCharsToSearch:s=3,debounceMs:a=300,classIncludes:o})=>{const[i,l]=_.useState(!1),[c,d]=_.useState(""),[u,f]=_.useState(e),h=_.useRef(null);_.useEffect(()=>{f(e)},[e]),_.useEffect(()=>{if(!r)return;if(c.trim().length<s){f([]);return}const m=new AbortController,b=setTimeout(async()=>{try{const y=await r(c.trim());f(y)}catch{f([])}},a);return()=>{clearTimeout(b),m.abort()}},[c,r,a,s]);const p=m=>{t(m),d(m.label),l(!1)};return g.jsxs("div",{ref:h,className:o,children:[g.jsx(Ko,{style:{borderRadius:"10px",width:"290px"},type:"search",placeholder:n,name:"search",value:c,onChange:m=>{d(m.target.value),l(!0)},onFocus:()=>l(!0),onBlur:()=>{l(!1)},icon:!1,autoComplete:"off"}),i&&u.length>0&&g.jsx("ul",{style:{background:"#FFFFFF",border:"1px solid #e6e6e6",borderRadius:8,listStyle:"none",padding:6,width:290,maxHeight:220,position:"absolute",zIndex:9999},children:u.map(m=>g.jsx("li",{onMouseDown:b=>{b.preventDefault(),b.stopPropagation(),p(m)},style:{padding:6,cursor:"pointer",borderRadius:6},children:g.jsx("div",{className:"text-xs",children:m.label})},m.id))})]})},wL=({items:t,title:e,onRemove:n,colors:r={},className:s="",containerClassName:a="",titleClassName:o="",showTitle:i=!0})=>{const c={...{backgroundColor:"#EEEEEE",textColor:"#191960",closeButtonBackgroundColor:"#191960",closeButtonTextColor:"#FFFFFF",borderRadius:20},...r},d={borderRadius:`${c.borderRadius}px`,backgroundColor:c.backgroundColor},u={color:c.textColor},f={backgroundColor:c.closeButtonBackgroundColor,color:c.closeButtonTextColor};return g.jsxs("div",{className:`${s}`,children:[i&&e&&g.jsx("h2",{className:`${o}`,children:e}),g.jsx("div",{className:`${a}`,style:{marginTop:6},children:g.jsx("div",{children:t.map(h=>g.jsxs("div",{className:"mb-1 ml-1 inline-flex items-center gap-2 bg-[#EEEEEE] px-2 py-1",style:d,children:[g.jsx("span",{className:"text-xs text-[#191960]",style:u,children:h.name}),g.jsx("button",{className:"flex size-4 items-center justify-center rounded-full font-semibold",style:f,onClick:()=>n(h.id),"aria-label":`Eliminar ${h.name}`,type:"button",children:"×"})]},h.id))})})]})},vL=({isOpen:t,onConfirm:e,onCancel:n,onClose:r,...s})=>(_.useEffect(()=>{t&&Ws.fire(s).then(a=>{a.isConfirmed&&e&&e(),a.isDismissed&&n&&n(),r&&r()})},[t,n,r,e,s]),null),xL=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:s,classesHeadTable:a,classesBodyTable:o,showPagination:i=!0,showCheckboxes:l=!1,selectedRows:c=new Set,onToggleChange:d,onRowSelect:u,onSelectAll:f,collapsible:h=!1,collapseMode:p="multi",defaultOpenRows:m=[],onCollapseChange:b,openRowIds:y,getSubRows:x,hideIdInSubRows:k=!0,collapseToggleColumnKey:v="id",collapseButtonClassName:w,parentRowClassName:S,subRowClassName:N})=>{const[D,T]=z.useState(""),[E,Y]=z.useState(1),[L,O]=z.useState(null),[C,P]=z.useState(m),F=y??C,U=B=>{if(y)return b==null?void 0:b(B);P(B),b==null||b(B)},Z=B=>{h&&U(p==="multi"?F.includes(B)?F.filter(te=>te!==B):[...F,B]:F.includes(B)?[]:[B])},ee=z.useMemo(()=>L?[...e].sort((B,te)=>{const W=B[L.key],ne=te[L.key];return W==null||ne==null?0:typeof W=="string"&&typeof ne=="string"?L.direction==="asc"?W.localeCompare(ne):ne.localeCompare(W):L.direction==="asc"?Number(W)-Number(ne):Number(ne)-Number(W)}):e,[e,L]),j=z.useMemo(()=>{if(!D.trim())return ee;const B=D.toLowerCase().trim();return ee.filter(te=>t.some(W=>{const ne=te[W.relation];return ne!=null&&String(ne).toLowerCase().includes(B)}))},[ee,D,t]),V=z.useMemo(()=>{const B=(E-1)*r,te=B+r;return j.slice(B,te)},[j,E,r]),R=Math.ceil(j.length/r),A=()=>{if(!f)return;const B=V.length>0&&V.every(te=>c.has(te.id));f(!B)},I=B=>{if(!u)return;const te=c.has(B);u(B,!te)},M=V.length>0&&V.every(B=>c.has(B.id)),H=c.size>0&&c.size<V.length,J=B=>{O(te=>!te||te.key!==B?{key:B,direction:"asc"}:{key:B,direction:te.direction==="asc"?"desc":"asc"})},K=(B,te)=>{const W=te[B.relation];if(B.isToggle){const ne=!!W;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Yd,{checked:ne,onChange:se=>d==null?void 0:d({rowId:te.id,checked:se,row:te,columnKey:B.relation}),disabled:!1}),B.toggleText&&g.jsx("span",{className:"text-sm text-gray-600",children:ne?B.toggleText.active:B.toggleText.inactive})]})}if(B.cell)return B.cell(te);if(B.component){const ne=B.component;return z.createElement(ne,{row:te,value:W,...B.cellProps||{}})}return W??""},q=(B,te,W)=>{const ne=B[v];return g.jsxs("div",{className:"flex items-center gap-2",children:[te?g.jsx("button",{type:"button",onClick:()=>Z(B.id),className:w??"mth-collapse-btn","aria-label":W?"Colapsar fila":"Expandir fila",children:W?g.jsx(Yl,{className:"size-4"}):g.jsx(wo,{className:"size-4"})}):g.jsx("span",{className:"mth-collapse-spacer"}),g.jsx("span",{children:ne!=null?String(ne):""})]})};return g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-2 flex items-center justify-between",children:s&&g.jsx("h2",{className:"text-base font-bold",children:s})}),g.jsx("div",{className:"flex",children:n&&g.jsx("div",{className:"w-1/2",children:g.jsx(ls,{rightIcon:mf,placeholder:"Buscar",value:D,onChange:B=>{T(B.target.value),Y(1)}})})}),g.jsxs("div",{className:"mt-0",children:[g.jsx("div",{className:"overflow-x-auto",children:g.jsxs(Ge,{children:[g.jsxs(Ge.Head,{className:`mth_head_table ${a}`,children:[l&&g.jsx(Ge.HeadCell,{children:g.jsx(ta,{checked:M,ref:B=>{B&&(B.indeterminate=H)},onChange:A})},"checkbox-head"),t.map((B,te)=>g.jsx(Ge.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>B.sortable!==!1&&J(B.relation),children:B.header},`column-${te}-${B.relation}`))]}),g.jsx(Ge.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:V.map(B=>{const te=x?x(B):[],W=h&&te.length>0,ne=W&&F.includes(B.id);return g.jsxs(z.Fragment,{children:[g.jsxs(Ge.Row,{className:S??"mth-parent-row",children:[l&&g.jsx(Ge.Cell,{children:g.jsx(ta,{checked:c.has(B.id),onChange:()=>I(B.id)})}),t.map((se,oe)=>se.relation===v?g.jsx(Ge.Cell,{className:"whitespace-nowrap font-medium text-gray-900",children:q(B,W,ne)},`${B.id}-${oe}`):g.jsx(Ge.Cell,{className:"whitespace-nowrap font-medium text-gray-900",children:K(se,B)},`${B.id}-${oe}`))]}),W&&ne&&te.map((se,oe)=>g.jsxs(Ge.Row,{className:N??"mth-sub-row",children:[l&&g.jsx(Ge.Cell,{className:"mth-sub-empty-cell"}),t.map((ge,ce)=>ge.relation===v?g.jsx(Ge.Cell,{className:"mth-sub-empty-cell",children:k?"":String(se[v]??"")},`${B.id}-sub-${oe}-${ce}`):g.jsx(Ge.Cell,{className:"whitespace-nowrap font-normal text-gray-900",children:K(ge,se)},`${B.id}-sub-${oe}-${ce}`))]},`${B.id}-sub-${oe}`))]},B.id)})})]})}),i&&R>1&&g.jsx("div",{className:"mt-2 flex w-full justify-end",children:g.jsx(Hd,{currentPage:E,totalPages:R,onPageChange:Y})})]})]})};function qv(t){return Ee({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10zm0 5.25a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75a.75.75 0 01-.75-.75z",clipRule:"evenodd"},child:[]}]})(t)}function $v(t){return Ee({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"9 18 15 12 9 6"},child:[]}]})(t)}const Js=()=>`${Date.now()}-${Math.random().toString(36).substr(2,9)}`,kL=({item:t,categoryId:e})=>g.jsx("div",{className:"px-2 py-1 text-black rounded-[10px] text-sm cursor-move hover:bg-[#C0D4FF] border border-[#c4c4c4] flex flex-col items-center",draggable:!0,onDragStart:n=>{n.dataTransfer.effectAllowed="copy",n.dataTransfer.setData("application/json",JSON.stringify({categoryId:e,itemId:t.id,label:t.label}))},children:g.jsxs("span",{className:"select-none flex items-center gap-2 text-sm",children:[g.jsx(qv,{className:"w-4 h-4 text-[#191960]"}),t.label]})}),_L=({groupId:t,conditions:e,onDrop:n,onRemoveCondition:r})=>{const[s,a]=_.useState(!1),o=c=>{c.preventDefault(),c.dataTransfer.dropEffect="copy",a(!0)},i=()=>{a(!1)},l=c=>{c.preventDefault(),a(!1);try{const d=JSON.parse(c.dataTransfer.getData("application/json")),u={id:Js(),categoryId:d.categoryId,itemId:d.itemId,label:d.label};n(t,u)}catch(d){console.error("Error al procesar el drop:",d)}};return g.jsx("div",{className:`min-h-[40px] p-2 border-[1px] rounded-[10px] transition-colors ${s?"border-[#191960] bg-[#C0D4FF]":"border-[#C4C4C4] bg-gray-50"}`,onDragOver:o,onDragLeave:i,onDrop:l,children:e.length===0?g.jsx("div",{className:"text-gray-400 text-sm text-center",children:"Arrastra elementos aquí"}):g.jsx("div",{className:"flex flex-wrap gap-2 max-h-[200px] overflow-y-auto",children:e.map((c,d)=>g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsxs("div",{className:"px-2 py-1 border border-[#C4C4C4] rounded-[10px] text-sm inline-flex items-center gap-2",children:[g.jsx(qv,{className:"w-4 h-4 text-[#191960]"}),g.jsx("span",{children:c.label}),g.jsx(_r,{leftIcon:eP,iconSize:16,txtBtn:"",typeButton:"red",full:!1,type:"button",onClick:()=>r(t,c.id),classes:"px-1 py-0.5 rounded-[10px]"})]}),d<e.length-1&&g.jsx("span",{className:"text-xs font-semibold text-gray-500 px-1",children:"AND"})]},c.id))})})},SL=({categories:t,onQueryChange:e,maxGroups:n=3,titleCategories:r="Buscar categorías"})=>{const[s,a]=_.useState([]),[o,i]=_.useState([{id:Js(),title:"Incluir",groups:[{id:Js(),conditions:[],operator:"AND"}]},{id:Js(),title:"Excluir",groups:[{id:Js(),conditions:[],operator:"AND"}]}]),l=h=>{a(p=>p.includes(h)?p.filter(m=>m!==h):[...p,h])},c=(h,p,m)=>{const b=o.map(y=>{if(y.id===h){const x=y.groups.map(k=>k.id===p?k.conditions.some(w=>w.categoryId===m.categoryId&&w.itemId===m.itemId)?k:{...k,conditions:[...k.conditions,m]}:k);return{...y,groups:x}}return y});i(b),e==null||e(b)},d=(h,p,m)=>{const b=o.map(y=>{if(y.id===h){const x=y.groups.map(k=>k.id===p?{...k,conditions:k.conditions.filter(v=>v.id!==m)}:k);return{...y,groups:x}}return y});i(b),e==null||e(b)},u=h=>{const p=o.map(m=>m.id===h&&m.groups.length<n?{...m,groups:[...m.groups,{id:Js(),conditions:[],operator:"OR"}]}:m);i(p),e==null||e(p)},f=(h,p)=>{const m=o.map(b=>b.id===h&&b.groups.length>1?{...b,groups:b.groups.filter(y=>y.id!==p)}:b);i(m),e==null||e(m)};return g.jsxs("div",{className:"flex gap-4 w-full h-full",children:[g.jsxs("div",{className:"w-1/4 bg-white border border-gray-200 rounded-lg p-4 overflow-y-auto",children:[g.jsx("h3",{className:"text-sm font-semibold mb-2 text-gray-700",children:r||"Categorías"}),g.jsx("div",{className:"bg-white mb-2 overflow-y-auto",children:g.jsx(Ko,{type:"text",placeholder:"Buscar",classInclude:"w-full py-0 rounded-[10px]",className:"mb-2",icon:!1})}),g.jsx("div",{className:"space-y-2",children:t.map(h=>g.jsx(Bl,{id:h.id,title:h.title,isOpen:s.includes(h.id),onToggle:()=>l(h.id),variant:"bordered",icon:g.jsx($v,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-2",children:g.jsx("div",{className:"space-y-1",children:g.jsx("div",{className:"space-y-1",children:h.items.map(p=>g.jsx(kL,{item:p,categoryId:h.id},p.id))})},h.id)},h.id))})]}),g.jsx("div",{className:"flex-1 bg-white border border-gray-200 rounded-lg p-4 overflow-y-auto",children:g.jsx("div",{className:"space-y-2",children:o.map(h=>g.jsx(Bl,{id:h.id,title:h.title,isOpen:s.includes(h.id),onToggle:()=>l(h.id),variant:"bordered",icon:g.jsx($v,{className:"w-5 h-5"}),iconPosition:"right",classes:"p-4",children:g.jsxs("div",{className:"space-y-2",children:[h.groups.map((p,m)=>g.jsxs("div",{children:[m>0&&g.jsx("div",{className:"flex justify-center my-2",children:g.jsx("span",{className:"px-2 py-1 bg-[#191960] text-white text-xs font-semibold rounded",children:"OR"})}),g.jsxs("div",{className:"flex flex-row space-y-1",children:[g.jsx("div",{className:"w-11/12",children:g.jsx(_L,{groupId:p.id,conditions:p.conditions,onDrop:(b,y)=>c(h.id,b,y),onRemoveCondition:(b,y)=>d(h.id,b,y)})}),g.jsx("div",{className:"w-1/12",children:h.groups.length>1&&m>0&&g.jsx("div",{className:"flex justify-end",children:g.jsx(_r,{leftIcon:"https://ftp.mathilde-ads.com/382-6986b247c2c7729fb231da467b8e913c.svg",iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>f(h.id,p.id),classes:"px-1 rounded-[10px] text-white w-8 h-8"})})})]})]},p.id)),h.groups.length<n&&g.jsx("div",{className:"flex mt-3",children:g.jsx(_r,{leftIcon:hx,iconSize:14,txtBtn:"",typeButton:"blue",full:!1,type:"button",onClick:()=>u(h.id),classes:"px-2 py-2 rounded-[10px]"})})]})},h.id))})})]})};fe.Accordion=Bl,fe.AccordionGroup=bL,fe.Alert=vL,fe.ButtonFormat=_r,fe.Card=Bd,fe.CardIndicator=D_,fe.Checkbox=nx,fe.ChipList=wL,fe.CollapsibleTable=xL,fe.CustomPagination=Hd,fe.DatePicker=fL,fe.DateRangePicker=uL,fe.DropdownButton=gL,fe.DropdownList=yL,fe.Dropzone=K5,fe.ImageFormat=Sr,fe.InputForm=Ko,fe.LayoutOutside=sP,fe.ListFile=Q5,fe.Loader=hL,fe.ModalFormat=d0,fe.MyDoughnutChart=$C,fe.PasswordInput=Lc,fe.PasswordValidationList=Hb,fe.ProgressBar=vm,fe.QueryBuilder=SL,fe.RadioButton=pL,fe.SelectForm=xm,fe.SidebarPro=JE,fe.Spinner=Z5,fe.Stepper=mL,fe.TableComponent=nP,fe.TableOfContents=lP,fe.TabsComponent=J5,fe.TermsCheckbox=aP,fe.Toggle=Yd,fe.TooltipComponent=Zv,fe.ValidationPassword=iP,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});