ui-mathilde-web 0.6.1 → 0.6.3

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(ue,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):(ue=typeof globalThis<"u"?globalThis:ue||self,g(ue["ui-mathilde-web"]={},ue.jsxRuntime,ue.React,ue.ReactDOM))})(this,function(ue,g,_,Id){"use strict";var nI=Object.defineProperty;var rI=(ue,g,_)=>g in ue?nI(ue,g,{enumerable:!0,configurable:!0,writable:!0,value:_}):ue[g]=_;var J=(ue,g,_)=>rI(ue,typeof g!="symbol"?g+"":g,_);var ji,$n;function Rd(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=Rd(_),ky=Rd(Id),_s={"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"},_y=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:a,type:s,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?_s["mth-btn-full"]:""}`,children:g.jsxs("button",{type:s,className:`${c} ${_s["mth-btn"]} ${_s[`mth-btn-${e}`]} ${n?_s["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:a,children:[d(o),t,d(i)]})})},Ss={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},Sy=({label:t,value:e,checked:n,onChange:r})=>g.jsxs("label",{className:Ss["checkbox-container"],children:[g.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),g.jsx("span",{className:Ss.checkmark}),t&&g.jsx("span",{className:"ml-2",children:t})]}),jn=({src:t,alt:e,width:n,height:r,classIm:a})=>g.jsx("img",{className:a,src:t,alt:e,width:n,height:r});var Ad={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fd=_.createContext&&_.createContext(Ad),Oy=["attr","size","title"];function Dy(t,e){if(t==null)return{};var n=My(t,e),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)r=s[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function My(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,s;for(s=0;s<r.length;s++)a=r[s],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function Os(){return Os=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},Os.apply(this,arguments)}function Ld(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ds(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ld(Object(n),!0).forEach(function(r){Cy(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ld(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Cy(t,e,n){return e=Ey(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ey(t){var e=Ty(t,"string");return typeof e=="symbol"?e:String(e)}function Ty(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 Wd(t){return t&&t.map((e,n)=>_.createElement(e.tag,Ds({key:n},e.attr),Wd(e.child)))}function Pe(t){return e=>_.createElement(Py,Os({attr:Ds({},t.attr)},e),Wd(t.child))}function Py(t){var e=n=>{var{attr:r,size:a,title:s}=t,o=Dy(t,Oy),i=a||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",Os({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Ds(Ds({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),s&&_.createElement("title",null,s),t.children)};return Fd!==void 0?_.createElement(Fd.Consumer,null,n=>e(n)):e(Ad)}function Ny(t){return Pe({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 Ri(t){return Pe({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 zd(t){return Pe({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 jy(t){return Pe({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 Iy(t){return Pe({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 Ry(t){return Pe({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 Ay(t){return Pe({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 Fy(t){return Pe({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 Ly(t){return Pe({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 Ai(t){return Pe({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 Wy(t){return Pe({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 zy(t){return Pe({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 By(t){return Pe({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 Hy(t){return Pe({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 Yy(t){return Pe({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 Bd(t){return Pe({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 Vy(t){return Pe({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 Hd(t){return Pe({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 Uy(t){return Pe({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 Xy(t){return Pe({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 Fi="-";function Gy(t){const e=Qy(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function a(o){const i=o.split(Fi);return i[0]===""&&i.length!==1&&i.shift(),Yd(i,e)||Ky(o)}function s(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function Yd(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),a=r?Yd(t.slice(1),r):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(Fi);return(o=e.validators.find(({validator:i})=>i(s)))==null?void 0:o.classGroupId}const Vd=/^\[(.+)\]$/;function Ky(t){if(Vd.test(t)){const e=Vd.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function Qy(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Jy(Object.entries(t.classGroups),n).forEach(([s,o])=>{Li(o,r,s,e)}),r}function Li(t,e,n,r){t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:Ud(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(Zy(a)){Li(a(r),e,n,r);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,o])=>{Li(o,Ud(e,s),n,r)})})}function Ud(t,e){let n=t;return e.split(Fi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Zy(t){return t.isThemeGetter}function Jy(t,e){return e?t.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,i])=>[e+o,i])):s);return[n,a]}):t}function qy(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function a(s,o){n.set(s,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return a(s,o),o},set(s,o){n.has(s)?n.set(s,o):a(s,o)}}}const Xd="!";function $y(t){const e=t.separator,n=e.length===1,r=e[0],a=e.length;return function(o){const i=[];let l=0,c=0,d;for(let p=0;p<o.length;p++){let b=o[p];if(l===0){if(b===r&&(n||o.slice(p,p+a)===e)){i.push(o.slice(c,p)),c=p+a;continue}if(b==="/"){d=p;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),f=u.startsWith(Xd),h=f?u.substring(1):u,m=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}}}function ev(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 tv(t){return{cache:qy(t.cacheSize),splitModifiers:$y(t),...Gy(t)}}const nv=/\s+/;function rv(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:a}=e,s=new Set;return t.trim().split(nv).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=ev(i).join(":");return{isTailwindClass:!0,modifierId:l?h+Xd:h,classGroupId:u,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:i,classGroupId:l,hasPostfixModifier:c}=o,d=i+l;return s.has(d)?!1:(s.add(d),a(l,c).forEach(u=>s.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function av(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Gd(e))&&(r&&(r+=" "),r+=n);return r}function Gd(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Gd(t[r]))&&(n&&(n+=" "),n+=e);return n}function sv(t,...e){let n,r,a,s=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=tv(c),r=n.cache.get,a=n.cache.set,s=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=rv(l,n);return a(l,d),d}return function(){return s(av.apply(null,arguments))}}function Ne(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const Kd=/^\[(?:([a-z-]+):)?(.+)\]$/i,ov=/^\d+\/\d+$/,iv=new Set(["px","full","screen"]),lv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cv=/\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$/,dv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function mn(t){return tr(t)||iv.has(t)||ov.test(t)}function In(t){return jr(t,"length",xv)}function tr(t){return!!t&&!Number.isNaN(Number(t))}function Ms(t){return jr(t,"number",tr)}function ha(t){return!!t&&Number.isInteger(Number(t))}function hv(t){return t.endsWith("%")&&tr(t.slice(0,-1))}function he(t){return Kd.test(t)}function Rn(t){return lv.test(t)}const gv=new Set(["length","size","percentage"]);function mv(t){return jr(t,gv,Qd)}function pv(t){return jr(t,"position",Qd)}const bv=new Set(["image","url"]);function yv(t){return jr(t,bv,kv)}function vv(t){return jr(t,"",wv)}function ga(){return!0}function jr(t,e,n){const r=Kd.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function xv(t){return cv.test(t)&&!dv.test(t)}function Qd(){return!1}function wv(t){return uv.test(t)}function kv(t){return fv.test(t)}function _v(){const t=Ne("colors"),e=Ne("spacing"),n=Ne("blur"),r=Ne("brightness"),a=Ne("borderColor"),s=Ne("borderRadius"),o=Ne("borderSpacing"),i=Ne("borderWidth"),l=Ne("contrast"),c=Ne("grayscale"),d=Ne("hueRotate"),u=Ne("invert"),f=Ne("gap"),h=Ne("gradientColorStops"),m=Ne("gradientColorStopPositions"),p=Ne("inset"),b=Ne("margin"),x=Ne("opacity"),w=Ne("padding"),k=Ne("saturate"),v=Ne("scale"),y=Ne("sepia"),S=Ne("skew"),N=Ne("space"),C=Ne("translate"),P=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",he,e],F=()=>[he,e],O=()=>["",mn,In],D=()=>["auto",tr,he],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],K=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",he],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[tr,Ms],A=()=>[tr,he];return{cacheSize:500,separator:":",theme:{colors:[ga],spacing:[mn,In],blur:["none","",Rn,he],brightness:H(),borderColor:[t],borderRadius:["none","","full",Rn,he],borderSpacing:F(),borderWidth:O(),contrast:H(),grayscale:q(),hueRotate:A(),invert:q(),gap:F(),gradientColorStops:[t],gradientColorStopPositions:[hv,In],inset:B(),margin:B(),opacity:H(),padding:F(),saturate:H(),scale:H(),sepia:q(),skew:A(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",he]}],container:["container"],columns:[{columns:[Rn]}],"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:[...T(),he]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],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",ha,he]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",he]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",ha,he]}],"grid-cols":[{"grid-cols":[ga]}],"col-start-end":[{col:["auto",{span:["full",ha,he]},he]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[ga]}],"row-start-end":[{row:["auto",{span:[ha,he]},he]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",he]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",he]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[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",he,e]}],"min-w":[{"min-w":[he,e,"min","max","fit"]}],"max-w":[{"max-w":[he,e,"none","full","min","max","fit","prose",{screen:[Rn]},Rn]}],h:[{h:[he,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[he,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[he,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[he,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Rn,In]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ms]}],"font-family":[{font:[ga]}],"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",he]}],"line-clamp":[{"line-clamp":["none",tr,Ms]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mn,he]}],"list-image":[{"list-image":["none",he]}],"list-style-type":[{list:["none","disc","decimal",he]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mn,In]}],"underline-offset":[{"underline-offset":["auto",mn,he]}],"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:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he]}],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",he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),pv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yv]}],"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:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...L(),"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":[x]}],"divide-style":[{divide:L()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[mn,he]}],"outline-w":[{outline:[mn,In]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[mn,In]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Rn,vv]}],"shadow-color":[{shadow:[ga]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Rn,he]}],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":[x]}],"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",he]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",he]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",he]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[ha,he]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",he]}],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",he]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",he]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[mn,In,Ms]}],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 U=sv(_v);function nr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function ma(t){if(!nr(t))return t;const e={};for(const n in t)e[n]=ma(t[n]);return e}function ee(t,e){if(nr(e)&&Object.keys(e).length===0)return ma({...t,...e});const n={...t,...e};if(nr(e)&&nr(t))for(const r in e)nr(e[r])&&r in t&&nr(t[r])?n[r]=ee(t[r],e[r]):n[r]=nr(e[r])?ma(e[r]):e[r];return n}function cI(t){return t}const Sv={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"}}},Ov={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"},Dv={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"}},Mv={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"}}},Cv={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},Ev={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"}},Tv={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"}},Pv={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"}},Nv={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"}}},jv={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"}},Iv={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"}}},Rv={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"}},Av={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"}}}}},Fv={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"},Lv={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"}}}},Wv={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"}},zv={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"}},Bv={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"}}},Hv={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"}},Yv={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"}}},Vv={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"}},Uv={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"}}},Xv={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"}},Gv={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"}},Kv={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"}}},Qv={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"}},Zv={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"}},Jv={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"}},qv={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"}}}},$v={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"}}},ex={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"}},tx={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"}}}},nx={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"}},rx={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"}},ax={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"}},sx={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"},ox={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:""}},ix={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:""}}}},lx={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:""}}},cx={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"}},dx={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"}}},ux={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"},fx={theme:ma({accordion:Sv,alert:Ov,avatar:Dv,badge:Mv,blockquote:Cv,breadcrumb:Ev,button:Tv,buttonGroup:Pv,card:Nv,carousel:jv,checkbox:Iv,datepicker:Av,darkThemeToggle:Rv,dropdown:Fv,fileInput:Lv,floatingLabel:Wv,footer:zv,helperText:Bv,kbd:Hv,label:Yv,listGroup:Uv,list:Vv,modal:Xv,navbar:Gv,pagination:Kv,popover:Qv,progress:Zv,radio:Jv,rangeSlider:qv,rating:$v,ratingAdvanced:ex,select:tx,textInput:ix,textarea:ox,toggleSwitch:dx,sidebar:nx,spinner:rx,table:ax,tabs:sx,timeline:lx,toast:cx,tooltip:ux})};function de(){return ma(fx.theme)}const Zd=_.createContext(void 0);function Jd(){const t=_.useContext(Zd);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const qd=({children:t,className:e,theme:n={},...r})=>{const{isOpen:a}=Jd(),s=ee(de().accordion.content,n);return g.jsx("div",{className:U(s.base,e),"data-testid":"flowbite-accordion-content",hidden:!a,...r,children:t})},$d=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,a]=_.useState(e.isOpen),s=n?{...e,isOpen:r,setOpen:()=>a(!r)}:e;return g.jsx(Zd.Provider,{value:s,children:t})},eu=({as:t="h2",children:e,className:n,theme:r={},...a})=>{const{arrowIcon:s,flush:o,isOpen:i,setOpen:l}=Jd(),c=()=>typeof l<"u"&&l(),d=ee(de().accordion.title,r);return g.jsxs("button",{className:U(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...a,children:[g.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),s&&g.jsx(s,{"aria-hidden":!0,className:U(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},tu=({alwaysOpen:t=!1,arrowIcon:e=Ai,children:n,flush:r=!1,collapseAll:a=!1,className:s,theme:o={},...i})=>{const[l,c]=_.useState(a?-1:0),d=_.useMemo(()=>_.Children.map(n,(f,h)=>_.cloneElement(f,{alwaysOpen:t,arrowIcon:e,flush:r,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,n,r,l]),u=ee(de().accordion.root,o);return g.jsx("div",{className:U(u.base,u.flush[r?"on":"off"],s),"data-testid":"flowbite-accordion",...i,children:d})};tu.displayName="Accordion",$d.displayName="Accordion.Panel",eu.displayName="Accordion.Title",qd.displayName="Accordion.Content",Object.assign(tu,{Panel:$d,Title:eu,Content:qd});const nu=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().avatar.group,n);return g.jsx("div",{"data-testid":"avatar-group-element",className:U(a.base,e),...r,children:t})};nu.displayName="Avatar.Group";const ru=({className:t,href:e,theme:n={},total:r,...a})=>{const s=ee(de().avatar.groupCounter,n);return g.jsxs("a",{href:e,className:U(s.base,t),...a,children:["+",r]})};ru.displayName="Avatar.GroupCounter";const au=({alt:t="",bordered:e=!1,children:n,className:r,color:a="light",img:s,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const m=ee(de().avatar,f),p=U(m.root.img.base,e&&m.root.bordered,e&&m.root.color[a],i&&m.root.rounded,c&&m.root.stacked,m.root.img.on,m.root.size[l]),b={className:U(p,m.root.img.on),"data-testid":"flowbite-avatar-img"};return g.jsxs("div",{className:U(m.root.base,r),"data-testid":"flowbite-avatar",...h,children:[g.jsxs("div",{className:"relative",children:[s?typeof s=="string"?g.jsx("img",{alt:t,src:s,...b}):s({alt:t,...b}):o?g.jsx("div",{className:U(m.root.img.off,m.root.initials.base,c&&m.root.stacked,e&&m.root.bordered,e&&m.root.color[a],m.root.size[l],i&&m.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:g.jsx("span",{className:U(m.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):g.jsx("div",{className:U(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:U(m.root.status.base,m.root.status[d],m.root.statusPosition[u])})]}),n&&g.jsx("div",{children:n})]})};au.displayName="Avatar",Object.assign(au,{Group:nu,Counter:ru});const su=({children:t,color:e="info",href:n,icon:r,size:a="xs",className:s,theme:o={},...i})=>{const l=ee(de().badge,o),c=()=>g.jsxs("span",{className:U(l.root.base,l.root.color[e],l.root.size[a],l.icon[r?"on":"off"],s),"data-testid":"flowbite-badge",...i,children:[r&&g.jsx(r,{"aria-hidden":!0,className:l.icon.size[a],"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,{})};su.displayName="Badge";const ou=({className:t,color:e="info",light:n,size:r="md",theme:a={},...s})=>{const o=ee(de().spinner,a);return g.jsx("span",{role:"status",...s,children:g.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:U(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"})]})})};ou.displayName="Spinner";const Wi=_.forwardRef(({children:t,as:e,href:n,type:r="button",...a},s)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:s,href:n,type:r,...a},t)});Wi.displayName="ButtonBaseComponent";const iu=(t,e,n)=>_.Children.map(t,(r,a)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:iu(r.props.children,e,n),positionInGroup:lu(a,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:lu(a,_.Children.count(t))}):r),lu=(t,e)=>t===0?"start":t===e-1?"end":"middle",cu=({children:t,className:e,outline:n,pill:r,theme:a={},...s})=>{const o=_.useMemo(()=>iu(t,n,r),[t,n,r]),i=ee(de().buttonGroup,a);return g.jsx("div",{className:U(i.base,e),role:"group",...s,children:o})};cu.displayName="Button.Group";const du=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:a,isProcessing:s=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:m="md",theme:p={},...b},x)=>{const{buttonGroup:w,button:k}=de(),v=ee(k,p),y=b;return g.jsx(Wi,{ref:x,disabled:r,className:U(v.base,r&&v.disabled,!l&&!c&&v.color[n],l&&!c&&v.gradientDuoTone[l],!l&&c&&v.gradient[c],u&&(v.outline.color[n]??v.outline.color.default),v.pill[f?"on":"off"],a&&v.fullSized,w.position[h],e),...y,children:g.jsx("span",{className:U(v.inner.base,v.outline[u?"on":"off"],v.outline.pill[u&&f?"on":"off"],v.size[m],u&&!v.outline.color[n]&&v.inner.outline,s&&v.isProcessing,s&&v.inner.isProcessingPadding[m],v.inner.position[h]),children:g.jsxs(g.Fragment,{children:[s&&g.jsx("span",{className:U(v.spinnerSlot,v.spinnerLeftPosition[m]),children:i||g.jsx(ou,{size:m})}),typeof t<"u"?t:g.jsx("span",{"data-testid":"flowbite-button-label",className:U(v.label),children:s?o:d})]})})})});du.displayName="Button";const pa=Object.assign(du,{Group:cu}),uu=({children:t,...e})=>{const n=r=>{const s=r.target.closest('[role="banner"]');s==null||s.remove()};return g.jsx(pa,{onClick:n,...e,children:t})};uu.displayName="Banner.CollapseButton";const fu=({children:t,...e})=>g.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});fu.displayName="Banner",Object.assign(fu,{CollapseButton:uu});const hu=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:a={},...s},o)=>{const i=typeof n<"u",l=i?"a":"span",c=ee(de().breadcrumb.item,a);return g.jsxs("li",{className:U(c.base,e),...s,children:[g.jsx(Hd,{"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]})]})});hu.displayName="Breadcrumb.Item";const gu=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().breadcrumb.root,n);return g.jsx("nav",{"aria-label":"Breadcrumb",className:U(a.base,e),...r,children:g.jsx("ol",{className:a.list,children:t})})};gu.displayName="Breadcrumb",Object.assign(gu,{Item:hu});var hx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function pu(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var bu={exports:{}};/*!
1
+ (function(ue,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):(ue=typeof globalThis<"u"?globalThis:ue||self,g(ue["ui-mathilde-web"]={},ue.jsxRuntime,ue.React,ue.ReactDOM))})(this,function(ue,g,_,Id){"use strict";var nI=Object.defineProperty;var rI=(ue,g,_)=>g in ue?nI(ue,g,{enumerable:!0,configurable:!0,writable:!0,value:_}):ue[g]=_;var J=(ue,g,_)=>rI(ue,typeof g!="symbol"?g+"":g,_);var ji,qn;function Rd(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=Rd(_),wy=Rd(Id),_s={"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"},ky=({txtBtn:t,typeButton:e,full:n,onClick:r,disabled:a,type:s,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?_s["mth-btn-full"]:""}`,children:g.jsxs("button",{type:s,className:`${c} ${_s["mth-btn"]} ${_s[`mth-btn-${e}`]} ${n?_s["mth-btn-full"]:""} flex items-center justify-center gap-2`,onClick:r,disabled:a,children:[d(o),t,d(i)]})})},Ss={"checkbox-container":"checkbox-module__checkbox-container__jLidj",checkmark:"checkbox-module__checkmark__pC-qY"},_y=({label:t,value:e,checked:n,onChange:r})=>g.jsxs("label",{className:Ss["checkbox-container"],children:[g.jsx("input",{type:"checkbox",value:e,checked:n,onChange:r}),g.jsx("span",{className:Ss.checkmark}),t&&g.jsx("span",{className:"ml-2",children:t})]}),er=({src:t,alt:e,width:n,height:r,classIm:a})=>g.jsx("img",{className:a,src:t,alt:e,width:n,height:r});var Ad={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fd=_.createContext&&_.createContext(Ad),Sy=["attr","size","title"];function Oy(t,e){if(t==null)return{};var n=Dy(t,e),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)r=s[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Dy(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,s;for(s=0;s<r.length;s++)a=r[s],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function Os(){return Os=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},Os.apply(this,arguments)}function Ld(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function Ds(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ld(Object(n),!0).forEach(function(r){My(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ld(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function My(t,e,n){return e=Cy(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cy(t){var e=Ey(t,"string");return typeof e=="symbol"?e:String(e)}function Ey(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 Wd(t){return t&&t.map((e,n)=>_.createElement(e.tag,Ds({key:n},e.attr),Wd(e.child)))}function Pe(t){return e=>_.createElement(Ty,Os({attr:Ds({},t.attr)},e),Wd(t.child))}function Ty(t){var e=n=>{var{attr:r,size:a,title:s}=t,o=Oy(t,Sy),i=a||n.size||"1em",l;return n.className&&(l=n.className),t.className&&(l=(l?l+" ":"")+t.className),_.createElement("svg",Os({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:Ds(Ds({color:t.color||n.color},n.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),s&&_.createElement("title",null,s),t.children)};return Fd!==void 0?_.createElement(Fd.Consumer,null,n=>e(n)):e(Ad)}function Py(t){return Pe({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 Ri(t){return Pe({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 zd(t){return Pe({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 Ny(t){return Pe({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 jy(t){return Pe({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 Iy(t){return Pe({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 Ry(t){return Pe({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 Ay(t){return Pe({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 Fy(t){return Pe({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 Ai(t){return Pe({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 Ly(t){return Pe({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 Wy(t){return Pe({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 zy(t){return Pe({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 By(t){return Pe({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 Hy(t){return Pe({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 Bd(t){return Pe({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 Yy(t){return Pe({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 Hd(t){return Pe({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 Vy(t){return Pe({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 Uy(t){return Pe({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 Fi="-";function Xy(t){const e=Ky(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;function a(o){const i=o.split(Fi);return i[0]===""&&i.length!==1&&i.shift(),Yd(i,e)||Gy(o)}function s(o,i){const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function Yd(t,e){var o;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),a=r?Yd(t.slice(1),r):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(Fi);return(o=e.validators.find(({validator:i})=>i(s)))==null?void 0:o.classGroupId}const Vd=/^\[(.+)\]$/;function Gy(t){if(Vd.test(t)){const e=Vd.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}}function Ky(t){const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Zy(Object.entries(t.classGroups),n).forEach(([s,o])=>{Li(o,r,s,e)}),r}function Li(t,e,n,r){t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:Ud(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(Qy(a)){Li(a(r),e,n,r);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,o])=>{Li(o,Ud(e,s),n,r)})})}function Ud(t,e){let n=t;return e.split(Fi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Qy(t){return t.isThemeGetter}function Zy(t,e){return e?t.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,i])=>[e+o,i])):s);return[n,a]}):t}function Jy(t){if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;function a(s,o){n.set(s,o),e++,e>t&&(e=0,r=n,n=new Map)}return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return a(s,o),o},set(s,o){n.has(s)?n.set(s,o):a(s,o)}}}const Xd="!";function qy(t){const e=t.separator,n=e.length===1,r=e[0],a=e.length;return function(o){const i=[];let l=0,c=0,d;for(let p=0;p<o.length;p++){let b=o[p];if(l===0){if(b===r&&(n||o.slice(p,p+a)===e)){i.push(o.slice(c,p)),c=p+a;continue}if(b==="/"){d=p;continue}}b==="["?l++:b==="]"&&l--}const u=i.length===0?o:o.substring(c),f=u.startsWith(Xd),h=f?u.substring(1):u,m=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}}}function $y(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 ev(t){return{cache:Jy(t.cacheSize),splitModifiers:qy(t),...Xy(t)}}const tv=/\s+/;function nv(t,e){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:a}=e,s=new Set;return t.trim().split(tv).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=$y(i).join(":");return{isTailwindClass:!0,modifierId:l?h+Xd:h,classGroupId:u,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:i,classGroupId:l,hasPostfixModifier:c}=o,d=i+l;return s.has(d)?!1:(s.add(d),a(l,c).forEach(u=>s.add(i+u)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function rv(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Gd(e))&&(r&&(r+=" "),r+=n);return r}function Gd(t){if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Gd(t[r]))&&(n&&(n+=" "),n+=e);return n}function av(t,...e){let n,r,a,s=o;function o(l){const c=e.reduce((d,u)=>u(d),t());return n=ev(c),r=n.cache.get,a=n.cache.set,s=i,i(l)}function i(l){const c=r(l);if(c)return c;const d=nv(l,n);return a(l,d),d}return function(){return s(rv.apply(null,arguments))}}function Ne(t){const e=n=>n[t]||[];return e.isThemeGetter=!0,e}const Kd=/^\[(?:([a-z-]+):)?(.+)\]$/i,sv=/^\d+\/\d+$/,ov=new Set(["px","full","screen"]),iv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lv=/\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$/,cv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function mn(t){return tr(t)||ov.has(t)||sv.test(t)}function jn(t){return jr(t,"length",vv)}function tr(t){return!!t&&!Number.isNaN(Number(t))}function Ms(t){return jr(t,"number",tr)}function ha(t){return!!t&&Number.isInteger(Number(t))}function fv(t){return t.endsWith("%")&&tr(t.slice(0,-1))}function he(t){return Kd.test(t)}function In(t){return iv.test(t)}const hv=new Set(["length","size","percentage"]);function gv(t){return jr(t,hv,Qd)}function mv(t){return jr(t,"position",Qd)}const pv=new Set(["image","url"]);function bv(t){return jr(t,pv,wv)}function yv(t){return jr(t,"",xv)}function ga(){return!0}function jr(t,e,n){const r=Kd.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1}function vv(t){return lv.test(t)&&!cv.test(t)}function Qd(){return!1}function xv(t){return dv.test(t)}function wv(t){return uv.test(t)}function kv(){const t=Ne("colors"),e=Ne("spacing"),n=Ne("blur"),r=Ne("brightness"),a=Ne("borderColor"),s=Ne("borderRadius"),o=Ne("borderSpacing"),i=Ne("borderWidth"),l=Ne("contrast"),c=Ne("grayscale"),d=Ne("hueRotate"),u=Ne("invert"),f=Ne("gap"),h=Ne("gradientColorStops"),m=Ne("gradientColorStopPositions"),p=Ne("inset"),b=Ne("margin"),x=Ne("opacity"),w=Ne("padding"),k=Ne("saturate"),v=Ne("scale"),y=Ne("sepia"),S=Ne("skew"),N=Ne("space"),C=Ne("translate"),P=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",he,e],F=()=>[he,e],O=()=>["",mn,jn],D=()=>["auto",tr,he],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],K=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",he],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[tr,Ms],A=()=>[tr,he];return{cacheSize:500,separator:":",theme:{colors:[ga],spacing:[mn,jn],blur:["none","",In,he],brightness:H(),borderColor:[t],borderRadius:["none","","full",In,he],borderSpacing:F(),borderWidth:O(),contrast:H(),grayscale:q(),hueRotate:A(),invert:q(),gap:F(),gradientColorStops:[t],gradientColorStopPositions:[fv,jn],inset:B(),margin:B(),opacity:H(),padding:F(),saturate:H(),scale:H(),sepia:q(),skew:A(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",he]}],container:["container"],columns:[{columns:[In]}],"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:[...T(),he]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],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",ha,he]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",he]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",ha,he]}],"grid-cols":[{"grid-cols":[ga]}],"col-start-end":[{col:["auto",{span:["full",ha,he]},he]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[ga]}],"row-start-end":[{row:["auto",{span:[ha,he]},he]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",he]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",he]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[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",he,e]}],"min-w":[{"min-w":[he,e,"min","max","fit"]}],"max-w":[{"max-w":[he,e,"none","full","min","max","fit","prose",{screen:[In]},In]}],h:[{h:[he,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[he,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[he,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[he,e,"auto","min","max","fit"]}],"font-size":[{text:["base",In,jn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ms]}],"font-family":[{font:[ga]}],"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",he]}],"line-clamp":[{"line-clamp":["none",tr,Ms]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",mn,he]}],"list-image":[{"list-image":["none",he]}],"list-style-type":[{list:["none","disc","decimal",he]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",mn,jn]}],"underline-offset":[{"underline-offset":["auto",mn,he]}],"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:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he]}],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",he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),mv]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gv]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bv]}],"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:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...L(),"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":[x]}],"divide-style":[{divide:L()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[mn,he]}],"outline-w":[{outline:[mn,jn]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[mn,jn]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",In,yv]}],"shadow-color":[{shadow:[ga]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",In,he]}],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":[x]}],"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",he]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",he]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",he]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[ha,he]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",he]}],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",he]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",he]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[mn,jn,Ms]}],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 U=av(kv);function nr(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function ma(t){if(!nr(t))return t;const e={};for(const n in t)e[n]=ma(t[n]);return e}function ee(t,e){if(nr(e)&&Object.keys(e).length===0)return ma({...t,...e});const n={...t,...e};if(nr(e)&&nr(t))for(const r in e)nr(e[r])&&r in t&&nr(t[r])?n[r]=ee(t[r],e[r]):n[r]=nr(e[r])?ma(e[r]):e[r];return n}function cI(t){return t}const _v={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"}}},Sv={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"},Ov={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"}},Dv={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"}}},Mv={root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},Cv={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"}},Ev={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"}},Tv={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"}},Pv={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"}}},Nv={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"}},jv={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"}}},Iv={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"}},Rv={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"}}}}},Av={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"},Fv={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"}}}},Lv={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"}},Wv={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"}},zv={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"}}},Bv={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"}},Hv={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"}}},Yv={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"}},Vv={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"}}},Uv={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"}},Xv={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"}},Gv={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"}}},Kv={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"}},Qv={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"}},Zv={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"}},Jv={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"}}}},qv={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"}}},$v={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"}},ex={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"}}}},tx={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"}},nx={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"}},rx={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"}},ax={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"},sx={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:""}},ox={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:""}}}},ix={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:""}}},lx={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"}},cx={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"}}},dx={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"},ux={theme:ma({accordion:_v,alert:Sv,avatar:Ov,badge:Dv,blockquote:Mv,breadcrumb:Cv,button:Ev,buttonGroup:Tv,card:Pv,carousel:Nv,checkbox:jv,datepicker:Rv,darkThemeToggle:Iv,dropdown:Av,fileInput:Fv,floatingLabel:Lv,footer:Wv,helperText:zv,kbd:Bv,label:Hv,listGroup:Vv,list:Yv,modal:Uv,navbar:Xv,pagination:Gv,popover:Kv,progress:Qv,radio:Zv,rangeSlider:Jv,rating:qv,ratingAdvanced:$v,select:ex,textInput:ox,textarea:sx,toggleSwitch:cx,sidebar:tx,spinner:nx,table:rx,tabs:ax,timeline:ix,toast:lx,tooltip:dx})};function de(){return ma(ux.theme)}const Zd=_.createContext(void 0);function Jd(){const t=_.useContext(Zd);if(!t)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return t}const qd=({children:t,className:e,theme:n={},...r})=>{const{isOpen:a}=Jd(),s=ee(de().accordion.content,n);return g.jsx("div",{className:U(s.base,e),"data-testid":"flowbite-accordion-content",hidden:!a,...r,children:t})},$d=({children:t,...e})=>{const{alwaysOpen:n}=e,[r,a]=_.useState(e.isOpen),s=n?{...e,isOpen:r,setOpen:()=>a(!r)}:e;return g.jsx(Zd.Provider,{value:s,children:t})},eu=({as:t="h2",children:e,className:n,theme:r={},...a})=>{const{arrowIcon:s,flush:o,isOpen:i,setOpen:l}=Jd(),c=()=>typeof l<"u"&&l(),d=ee(de().accordion.title,r);return g.jsxs("button",{className:U(d.base,d.flush[o?"on":"off"],d.open[i?"on":"off"],n),onClick:c,type:"button",...a,children:[g.jsx(t,{className:d.heading,"data-testid":"flowbite-accordion-heading",children:e}),s&&g.jsx(s,{"aria-hidden":!0,className:U(d.arrow.base,d.arrow.open[i?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},tu=({alwaysOpen:t=!1,arrowIcon:e=Ai,children:n,flush:r=!1,collapseAll:a=!1,className:s,theme:o={},...i})=>{const[l,c]=_.useState(a?-1:0),d=_.useMemo(()=>_.Children.map(n,(f,h)=>_.cloneElement(f,{alwaysOpen:t,arrowIcon:e,flush:r,isOpen:l===h,setOpen:()=>c(l===h?-1:h)})),[t,e,n,r,l]),u=ee(de().accordion.root,o);return g.jsx("div",{className:U(u.base,u.flush[r?"on":"off"],s),"data-testid":"flowbite-accordion",...i,children:d})};tu.displayName="Accordion",$d.displayName="Accordion.Panel",eu.displayName="Accordion.Title",qd.displayName="Accordion.Content",Object.assign(tu,{Panel:$d,Title:eu,Content:qd});const nu=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().avatar.group,n);return g.jsx("div",{"data-testid":"avatar-group-element",className:U(a.base,e),...r,children:t})};nu.displayName="Avatar.Group";const ru=({className:t,href:e,theme:n={},total:r,...a})=>{const s=ee(de().avatar.groupCounter,n);return g.jsxs("a",{href:e,className:U(s.base,t),...a,children:["+",r]})};ru.displayName="Avatar.GroupCounter";const au=({alt:t="",bordered:e=!1,children:n,className:r,color:a="light",img:s,placeholderInitials:o="",rounded:i=!1,size:l="md",stacked:c=!1,status:d,statusPosition:u="top-left",theme:f={},...h})=>{const m=ee(de().avatar,f),p=U(m.root.img.base,e&&m.root.bordered,e&&m.root.color[a],i&&m.root.rounded,c&&m.root.stacked,m.root.img.on,m.root.size[l]),b={className:U(p,m.root.img.on),"data-testid":"flowbite-avatar-img"};return g.jsxs("div",{className:U(m.root.base,r),"data-testid":"flowbite-avatar",...h,children:[g.jsxs("div",{className:"relative",children:[s?typeof s=="string"?g.jsx("img",{alt:t,src:s,...b}):s({alt:t,...b}):o?g.jsx("div",{className:U(m.root.img.off,m.root.initials.base,c&&m.root.stacked,e&&m.root.bordered,e&&m.root.color[a],m.root.size[l],i&&m.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:g.jsx("span",{className:U(m.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:o})}):g.jsx("div",{className:U(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:U(m.root.status.base,m.root.status[d],m.root.statusPosition[u])})]}),n&&g.jsx("div",{children:n})]})};au.displayName="Avatar",Object.assign(au,{Group:nu,Counter:ru});const su=({children:t,color:e="info",href:n,icon:r,size:a="xs",className:s,theme:o={},...i})=>{const l=ee(de().badge,o),c=()=>g.jsxs("span",{className:U(l.root.base,l.root.color[e],l.root.size[a],l.icon[r?"on":"off"],s),"data-testid":"flowbite-badge",...i,children:[r&&g.jsx(r,{"aria-hidden":!0,className:l.icon.size[a],"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,{})};su.displayName="Badge";const ou=({className:t,color:e="info",light:n,size:r="md",theme:a={},...s})=>{const o=ee(de().spinner,a);return g.jsx("span",{role:"status",...s,children:g.jsxs("svg",{fill:"none",viewBox:"0 0 100 101",className:U(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"})]})})};ou.displayName="Spinner";const Wi=_.forwardRef(({children:t,as:e,href:n,type:r="button",...a},s)=>{const o=e||(n?"a":"button");return _.createElement(o,{ref:s,href:n,type:r,...a},t)});Wi.displayName="ButtonBaseComponent";const iu=(t,e,n)=>_.Children.map(t,(r,a)=>_.isValidElement(r)?r.props.children?_.cloneElement(r,{...r.props,children:iu(r.props.children,e,n),positionInGroup:lu(a,_.Children.count(t))}):_.cloneElement(r,{outline:e,pill:n,positionInGroup:lu(a,_.Children.count(t))}):r),lu=(t,e)=>t===0?"start":t===e-1?"end":"middle",cu=({children:t,className:e,outline:n,pill:r,theme:a={},...s})=>{const o=_.useMemo(()=>iu(t,n,r),[t,n,r]),i=ee(de().buttonGroup,a);return g.jsx("div",{className:U(i.base,e),role:"group",...s,children:o})};cu.displayName="Button.Group";const du=_.forwardRef(({children:t,className:e,color:n="info",disabled:r,fullSized:a,isProcessing:s=!1,processingLabel:o="Loading...",processingSpinner:i,gradientDuoTone:l,gradientMonochrome:c,label:d,outline:u=!1,pill:f=!1,positionInGroup:h="none",size:m="md",theme:p={},...b},x)=>{const{buttonGroup:w,button:k}=de(),v=ee(k,p),y=b;return g.jsx(Wi,{ref:x,disabled:r,className:U(v.base,r&&v.disabled,!l&&!c&&v.color[n],l&&!c&&v.gradientDuoTone[l],!l&&c&&v.gradient[c],u&&(v.outline.color[n]??v.outline.color.default),v.pill[f?"on":"off"],a&&v.fullSized,w.position[h],e),...y,children:g.jsx("span",{className:U(v.inner.base,v.outline[u?"on":"off"],v.outline.pill[u&&f?"on":"off"],v.size[m],u&&!v.outline.color[n]&&v.inner.outline,s&&v.isProcessing,s&&v.inner.isProcessingPadding[m],v.inner.position[h]),children:g.jsxs(g.Fragment,{children:[s&&g.jsx("span",{className:U(v.spinnerSlot,v.spinnerLeftPosition[m]),children:i||g.jsx(ou,{size:m})}),typeof t<"u"?t:g.jsx("span",{"data-testid":"flowbite-button-label",className:U(v.label),children:s?o:d})]})})})});du.displayName="Button";const pa=Object.assign(du,{Group:cu}),uu=({children:t,...e})=>{const n=r=>{const s=r.target.closest('[role="banner"]');s==null||s.remove()};return g.jsx(pa,{onClick:n,...e,children:t})};uu.displayName="Banner.CollapseButton";const fu=({children:t,...e})=>g.jsx("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...e,children:t});fu.displayName="Banner",Object.assign(fu,{CollapseButton:uu});const hu=_.forwardRef(({children:t,className:e,href:n,icon:r,theme:a={},...s},o)=>{const i=typeof n<"u",l=i?"a":"span",c=ee(de().breadcrumb.item,a);return g.jsxs("li",{className:U(c.base,e),...s,children:[g.jsx(Hd,{"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]})]})});hu.displayName="Breadcrumb.Item";const gu=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().breadcrumb.root,n);return g.jsx("nav",{"aria-label":"Breadcrumb",className:U(a.base,e),...r,children:g.jsx("ol",{className:a.list,children:t})})};gu.displayName="Breadcrumb",Object.assign(gu,{Item:hu});var fx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function pu(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var bu={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 s="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(s=a(s,r(i)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var i in s)e.call(s,i)&&s[i]&&(o=a(o,i));return o}function a(s,o){return o?s?s+" "+o:s+o:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(bu);var An=bu.exports;const gx=mu(An);var zi={exports:{}};function yu(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 a,s,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=a,h=s;a=void 0,s=void 0,l=t.apply(f,h)}}const d=function(...u){if(a&&this!==a)throw new Error("Debounced method called with different contexts.");a=this,s=u,i=Date.now();const f=r&&!o;if(o||(o=setTimeout(c,e)),f){const h=a,m=s;a=void 0,s=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=a,f=s;a=void 0,s=void 0,l=t.apply(u,f),clearTimeout(o),o=void 0},d}zi.exports.debounce=yu,zi.exports=yu;var mx=zi.exports;const px=mu(mx);var bx=Object.defineProperty,yx=(t,e,n)=>e in t?bx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Je=(t,e,n)=>(yx(t,typeof e!="symbol"?e+"":e,n),n);const vx=300,xx=0;class wx extends _.PureComponent{constructor(e){super(e),Je(this,"container"),Je(this,"scrolling"),Je(this,"started"),Je(this,"pressed"),Je(this,"isMobile",!1),Je(this,"internal"),Je(this,"scrollLeft"),Je(this,"scrollTop"),Je(this,"clientX"),Je(this,"clientY"),Je(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),Je(this,"onScroll",()=>{const n=this.container.current;(n.scrollLeft!==this.scrollLeft||n.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),Je(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 a=n.touches[0];this.processClick(a.clientX,a.clientY),!r&&this.props.stopPropagation&&n.stopPropagation()}}),Je(this,"onTouchEnd",()=>{const{nativeMobileScroll:n}=this.props;this.pressed&&(this.started&&(!this.scrolling||!n)?this.processEnd():this.pressed=!1,this.forceUpdate())}),Je(this,"onTouchMove",n=>{const{nativeMobileScroll:r}=this.props;if(this.pressed&&(!r||!this.isMobile)){const a=n.touches[0];a&&this.processMove(a.clientX,a.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()}}),Je(this,"onMouseDown",n=>{var r,a;this.isDraggable(n.target)&&this.isScrollable()&&(this.internal=!0,((a=(r=this.props)==null?void 0:r.buttons)==null?void 0:a.indexOf(n.button))!==-1&&(this.processClick(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()))}),Je(this,"onMouseMove",n=>{this.pressed&&(this.processMove(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),Je(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=px(this.onEndScroll,vx),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:a,activationDistance:s,onScroll:o}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),a&&(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)>s||a&&Math.abs(n-this.clientY)>s)&&(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:a,hideScrollbars:s}=this.props;return g.jsx("div",{className:gx(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]":s,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":s}),style:a,ref:this.getRef,onScroll:this.onScroll,children:e})}}Je(wx,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[xx]});const Bi=_.forwardRef(({className:t,color:e="default",theme:n={},...r},a)=>{const s=ee(de().checkbox,n);return g.jsx("input",{ref:a,type:"checkbox",className:U(s.root.base,s.root.color[e],t),...r})});Bi.displayName="Checkbox";const ba=({children:t,className:e,color:n="default",theme:r={},value:a,...s})=>{const o=ee(de().helperText,r);return g.jsx("p",{className:U(o.root.base,o.root.colors[n],e),...s,children:a??t??""})};ba.displayName="HelperText";const ya=_.forwardRef(({addon:t,className:e,color:n="gray",helperText:r,icon:a,rightIcon:s,shadow:o,sizing:i="md",theme:l={},type:c="text",...d},u)=>{const f=ee(de().textInput,l);return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:U(f.base,e),children:[t&&g.jsx("span",{className:f.addon,children:t}),g.jsxs("div",{className:f.field.base,children:[a&&g.jsx("div",{className:f.field.icon.base,children:g.jsx(a,{className:f.field.icon.svg})}),s&&g.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:g.jsx(s,{className:f.field.rightIcon.svg})}),g.jsx("input",{className:U(f.field.input.base,f.field.input.colors[n],f.field.input.sizes[i],f.field.input.withIcon[a?"on":"off"],f.field.input.withRightIcon[s?"on":"off"],f.field.input.withAddon[t?"on":"off"],f.field.input.withShadow[o?"on":"off"]),type:c,...d,ref:u})]})]}),r&&g.jsx(ba,{color:n,children:r})]})});ya.displayName="TextInput";const vu=_.createContext(void 0);function Cs(){const t=_.useContext(vu);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var Re=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(Re||{}),xu=(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))(xu||{});const va=(t,e,n)=>{const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&n){const a=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r>=a&&r<=s}if(e){const a=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return r>=a}if(n){const a=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r<=a}return!0},Es=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),kx=(t,e,n)=>(va(t,e,n)||(e&&t<e?t=e:n&&t>n&&(t=n)),t),_x=(t,e)=>{const n=new Date(t.getFullYear(),t.getMonth(),1);let a=n.getDay()-e;return a<0&&(a+=7),Hi(n,-a)},Sx=(t,e)=>{const n=[],r=new Date(0);r.setDate(r.getDate()-r.getDay()+e);const a=new Intl.DateTimeFormat(t,{weekday:"short"});for(let s=0;s<7;s++)n.push(a.format(Hi(r,s)));return n},Hi=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),n},Ox=(t,e)=>{const n=new Date(t);return n.setMonth(n.getMonth()+e),n},Ir=(t,e)=>{const n=new Date(t);return n.setFullYear(n.getFullYear()+e),n},xa=(t,e,n)=>{let r={day:"numeric",month:"long",year:"numeric"};return n&&(r=n),new Intl.DateTimeFormat(t,r).format(e)},Rr=(t,e)=>{const n=t.getFullYear();return Math.floor(n/e)*e},Dx=(t,e)=>{const n=t.getFullYear(),r=e+9;return n>=e&&n<=r},Mx=({theme:t={}})=>{const{theme:e,weekStart:n,minDate:r,maxDate:a,viewDate:s,selectedDate:o,changeSelectedDate:i,language:l}=Cs(),c=ee(e.views.days,t),d=Sx(l,n),u=_x(s,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=Hi(u,h),p=xa(l,m,{day:"numeric"}),b=Es(o,m),x=!va(m,r,a);return g.jsx("button",{disabled:x,type:"button",className:U(c.items.item.base,b&&c.items.item.selected,x&&c.items.item.disabled),onClick:()=>{x||i(m,!0)},children:p},h)})})]})},Cx=({theme:t={}})=>{const{theme:e,selectedDate:n,viewDate:r,setViewDate:a,setView:s}=Cs(),o=ee(e.views.decades,t);return g.jsx("div",{className:o.items.base,children:[...Array(12)].map((i,l)=>{const d=Rr(r,100)-10+l*10,u=new Date(d,0,1),f=Ir(u,9),h=Dx(r,d),m=!va(r,u,f);return g.jsx("button",{disabled:m,type:"button",className:U(o.items.item.base,h&&o.items.item.selected,m&&o.items.item.disabled),onClick:()=>{m||(a(Ir(r,d-n.getFullYear())),s(Re.Years))},children:d},l)})})},Ex=({theme:t={}})=>{const{theme:e,minDate:n,maxDate:r,selectedDate:a,viewDate:s,language:o,setViewDate:i,setView:l}=Cs(),c=ee(e.views.months,t);return g.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(s.getTime());f.setMonth(u);const h=xa(o,f,{month:"short"}),m=Es(a,f),p=!va(f,n,r);return g.jsx("button",{disabled:p,type:"button",className:U(c.items.item.base,m&&c.items.item.selected,p&&c.items.item.disabled),onClick:()=>{p||(i(f),l(Re.Days))},children:h},u)})})},Tx=({theme:t={}})=>{const{theme:e,selectedDate:n,minDate:r,maxDate:a,viewDate:s,setViewDate:o,setView:i}=Cs(),l=ee(e.views.years,t);return g.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=Rr(s,10)-1+d*1,h=new Date(s.getTime());h.setFullYear(f);const m=Es(n,h),p=!va(h,r,a);return g.jsx("button",{disabled:p,type:"button",className:U(l.items.item.base,m&&l.items.item.selected,p&&l.items.item.disabled),onClick:()=>{p||(o(h),i(Re.Months))},children:f},d)})})},Px=({title:t,open:e,inline:n=!1,autoHide:r=!0,showClearButton:a=!0,labelClearButton:s="Clear",showTodayButton:o=!0,labelTodayButton:i="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:f=xu.Sunday,className:h,theme:m={},onSelectedDateChanged:p,...b},x)=>{const w=ee(de().datepicker,m);l=kx(l,c,d);const[k,v]=_.useState(e),[y,S]=_.useState(Re.Days),[N,C]=_.useState(l),[P,E]=_.useState(l),B=_.useRef(null),F=_.useRef(null),O=(q,j)=>{C(q),p&&p(q),r&&y===Re.Days&&j==!0&&!n&&v(!1)},D=()=>{O(l,!0),l&&E(l)};_.useImperativeHandle(x,()=>({focus(){var q;(q=B.current)==null||q.focus()},clear(){D()}}));const T=q=>{switch(q){case Re.Decades:return g.jsx(Cx,{theme:w.views.decades});case Re.Years:return g.jsx(Tx,{theme:w.views.years});case Re.Months:return g.jsx(Ex,{theme:w.views.months});case Re.Days:default:return g.jsx(Mx,{theme:w.views.days})}},L=()=>{switch(y){case Re.Days:return Re.Months;case Re.Months:return Re.Years;case Re.Years:return Re.Decades}return y},V=()=>{switch(y){case Re.Decades:return`${Rr(P,100)} - ${Rr(P,100)+90}`;case Re.Years:return`${Rr(P,10)} - ${Rr(P,10)+9}`;case Re.Months:return xa(u,P,{year:"numeric"});case Re.Days:default:return xa(u,P,{month:"long",year:"numeric"})}},K=(q,j,H)=>{switch(q){case Re.Days:return new Date(Ox(j,H));case Re.Months:return new Date(Ir(j,H));case Re.Years:return new Date(Ir(j,H*10));case Re.Decades:return new Date(Ir(j,H*100));default:return new Date(Ir(j,H*10))}};return _.useEffect(()=>{const q=j=>{var R,I;const H=(R=F==null?void 0:F.current)==null?void 0:R.contains(j.target),A=(I=B==null?void 0:B.current)==null?void 0:I.contains(j.target);!H&&!A&&v(!1)};return document.addEventListener("mousedown",q),()=>{document.removeEventListener("mousedown",q)}},[B,F,v]),g.jsx(vu.Provider,{value:{theme:w,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:k,setIsOpen:v,view:y,setView:S,viewDate:P,setViewDate:E,selectedDate:N,setSelectedDate:C,changeSelectedDate:O},children:g.jsxs("div",{className:U(w.root.base,h),children:[!n&&g.jsx(ya,{theme:w.root.input,icon:Ly,ref:B,onFocus:()=>{Es(P,N)||E(N),v(!0)},value:N&&xa(u,N),readOnly:!0,...b}),(k||n)&&g.jsx("div",{ref:F,className:U(w.popup.root.base,n&&w.popup.root.inline),children:g.jsxs("div",{className:w.popup.root.inner,children:[g.jsxs("div",{className:w.popup.header.base,children:[t&&g.jsx("div",{className:w.popup.header.title,children:t}),g.jsxs("div",{className:w.popup.header.selectors.base,children:[g.jsx("button",{type:"button",className:U(w.popup.header.selectors.button.base,w.popup.header.selectors.button.prev),onClick:()=>E(K(y,P,-1)),children:g.jsx(Ay,{})}),g.jsx("button",{type:"button",className:U(w.popup.header.selectors.button.base,w.popup.header.selectors.button.view),onClick:()=>S(L()),children:V()}),g.jsx("button",{type:"button",className:U(w.popup.header.selectors.button.base,w.popup.header.selectors.button.next),onClick:()=>E(K(y,P,1)),children:g.jsx(Fy,{})})]})]}),g.jsx("div",{className:w.popup.view.base,children:T(y)}),(a||o)&&g.jsxs("div",{className:w.popup.footer.base,children:[o&&g.jsx("button",{type:"button",className:U(w.popup.footer.button.base,w.popup.footer.button.today),onClick:()=>{const q=new Date;O(q,!0),E(q)},children:i}),a&&g.jsx("button",{type:"button",className:U(w.popup.footer.button.base,w.popup.footer.button.clear),onClick:()=>{O(l,!0),l&&E(l)},children:s})]})]})})]})})},wu=_.forwardRef(Px);wu.displayName="Datepicker";function Ts(){return typeof window<"u"}function rr(t){return ku(t)?(t.nodeName||"").toLowerCase():"#document"}function mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Gt(t){var e;return(e=(ku(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ku(t){return Ts()?t instanceof Node||t instanceof mt(t).Node:!1}function Oe(t){return Ts()?t instanceof Element||t instanceof mt(t).Element:!1}function rt(t){return Ts()?t instanceof HTMLElement||t instanceof mt(t).HTMLElement:!1}function Yi(t){return!Ts()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mt(t).ShadowRoot}function wa(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=jt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(a)}function Nx(t){return["table","td","th"].includes(rr(t))}function Ps(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Vi(t){const e=Ui(),n=Oe(t)?jt(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 jx(t){let e=pn(t);for(;rt(e)&&!Fn(e);){if(Vi(e))return e;if(Ps(e))return null;e=pn(e)}return null}function Ui(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fn(t){return["html","body","#document"].includes(rr(t))}function jt(t){return mt(t).getComputedStyle(t)}function Ns(t){return Oe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pn(t){if(rr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Yi(t)&&t.host||Gt(t);return Yi(e)?e.host:e}function _u(t){const e=pn(t);return Fn(e)?t.ownerDocument?t.ownerDocument.body:t.body:rt(e)&&wa(e)?e:_u(e)}function Ln(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=_u(t),s=a===((r=t.ownerDocument)==null?void 0:r.body),o=mt(a);if(s){const i=Xi(o);return e.concat(o,o.visualViewport||[],wa(a)?a:[],i&&n?Ln(i):[])}return e.concat(a,Ln(a,[],n))}function Xi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kt(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 Xe(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Yi(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function Gi(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Su(){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 Ou(t){return t.mozInputSource===0&&t.isTrusted?!0:Zi()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Ki(t){return Ix()?!1:!Zi()&&t.width===0&&t.height===0||Zi()&&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 Qi(){return/apple/i.test(navigator.vendor)}function Zi(){const t=/android/i;return t.test(Gi())||t.test(Su())}function Du(){return Gi().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Ix(){return Su().includes("jsdom/")}function js(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function Rx(t){return"nativeEvent"in t}function Ax(t){return t.matches("html,body")}function ft(t){return(t==null?void 0:t.ownerDocument)||document}function Ji(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 Wn(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Fx="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function qi(t){return rt(t)&&t.matches(Fx)}function at(t){t.preventDefault(),t.stopPropagation()}function Mu(t){return t?t.getAttribute("role")==="combobox"&&qi(t):!1}const Lx=["top","right","bottom","left"],Cu=["start","end"],Eu=Lx.reduce((t,e)=>t.concat(e,e+"-"+Cu[0],e+"-"+Cu[1]),[]),Ar=Math.min,ar=Math.max,Is=Math.round,Fr=Math.floor,Qt=t=>({x:t,y:t}),Wx={left:"right",right:"left",bottom:"top",top:"bottom"},zx={start:"end",end:"start"};function $i(t,e,n){return ar(t,Ar(e,n))}function Lr(t,e){return typeof t=="function"?t(e):t}function bn(t){return t.split("-")[0]}function Zt(t){return t.split("-")[1]}function Tu(t){return t==="x"?"y":"x"}function el(t){return t==="y"?"height":"width"}function Rs(t){return["top","bottom"].includes(bn(t))?"y":"x"}function tl(t){return Tu(Rs(t))}function Pu(t,e,n){n===void 0&&(n=!1);const r=Zt(t),a=tl(t),s=el(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Fs(o)),[o,Fs(o)]}function Bx(t){const e=Fs(t);return[As(t),e,As(e)]}function As(t){return t.replace(/start|end/g,e=>zx[e])}function Hx(t,e,n){const r=["left","right"],a=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:r:e?r:a;case"left":case"right":return e?s:o;default:return[]}}function Yx(t,e,n,r){const a=Zt(t);let s=Hx(bn(t),n==="start",r);return a&&(s=s.map(o=>o+"-"+a),e&&(s=s.concat(s.map(As)))),s}function Fs(t){return t.replace(/left|right|bottom|top/g,e=>Wx[e])}function Vx(t){return{top:0,right:0,bottom:0,left:0,...t}}function Nu(t){return typeof t!="number"?Vx(t):{top:t,right:t,bottom:t,left:t}}function Ls(t){const{x:e,y:n,width:r,height:a}=t;return{width:r,height:a,top:n,left:e,right:e+r,bottom:n+a,x:e,y:n}}function ju(t,e,n){let{reference:r,floating:a}=t;const s=Rs(e),o=tl(e),i=el(o),l=bn(e),c=s==="y",d=r.x+r.width/2-a.width/2,u=r.y+r.height/2-a.height/2,f=r[i]/2-a[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-a.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-a.width,y:u};break;default:h={x:r.x,y:r.y}}switch(Zt(e)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const Ux=async(t,e,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:o}=n,i=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:u}=ju(c,r,l),f=r,h={},m=0;for(let p=0;p<i.length;p++){const{name:b,fn:x}=i[p],{x:w,y:k,data:v,reset:y}=await x({x:d,y:u,initialPlacement:r,placement:f,strategy:a,middlewareData:h,rects:c,platform:o,elements:{reference:t,floating:e}});d=w??d,u=k??u,h={...h,[b]:{...h[b],...v}},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:a}):y.rects),{x:d,y:u}=ju(c,f,l)),p=-1)}return{x:d,y:u,placement:f,strategy:a,middlewareData:h}};async function nl(t,e){var n;e===void 0&&(e={});const{x:r,y:a,platform:s,rects:o,elements:i,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=Lr(e,t),m=Nu(h),b=i[f?u==="floating"?"reference":"floating":u],x=Ls(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),w=u==="floating"?{...o.floating,x:r,y:a}:o.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),v=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},y=Ls(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:k,strategy:l}):w);return{top:(x.top-y.top+m.top)/v.y,bottom:(y.bottom-x.bottom+m.bottom)/v.y,left:(x.left-y.left+m.left)/v.x,right:(y.right-x.right+m.right)/v.x}}const Xx=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:a,rects:s,platform:o,elements:i,middlewareData:l}=e,{element:c,padding:d=0}=Lr(t,e)||{};if(c==null)return{};const u=Nu(d),f={x:n,y:r},h=tl(a),m=el(h),p=await o.getDimensions(c),b=h==="y",x=b?"top":"left",w=b?"bottom":"right",k=b?"clientHeight":"clientWidth",v=s.reference[m]+s.reference[h]-f[h]-s.floating[m],y=f[h]-s.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]||s.floating[m]);const C=v/2-y/2,P=N/2-p[m]/2-1,E=Ar(u[x],P),B=Ar(u[w],P),F=E,O=N-p[m]-B,D=N/2-p[m]/2+C,T=$i(F,D,O),L=!l.arrow&&Zt(a)!=null&&D!==T&&s.reference[m]/2-(D<F?E:B)-p[m]/2<0,V=L?D<F?D-F:D-O:0;return{[h]:f[h]+V,data:{[h]:T,centerOffset:D-T-V,...L&&{alignmentOffset:V}},reset:L}}});function Gx(t,e,n){return(t?[...n.filter(a=>Zt(a)===t),...n.filter(a=>Zt(a)!==t)]:n.filter(a=>bn(a)===a)).filter(a=>t?Zt(a)===t||(e?As(a)!==a:!1):!0)}const Kx=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,a;const{rects:s,middlewareData:o,placement:i,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:f=Eu,autoAlignment:h=!0,...m}=Lr(t,e),p=u!==void 0||f===Eu?Gx(u||null,h,f):f,b=await nl(e,m),x=((n=o.autoPlacement)==null?void 0:n.index)||0,w=p[x];if(w==null)return{};const k=Pu(w,s,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(i!==w)return{reset:{placement:p[0]}};const v=[b[bn(w)],b[k[0]],b[k[1]]],y=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:w,overflows:v}],S=p[x+1];if(S)return{data:{index:x+1,overflows:y},reset:{placement:S}};const N=y.map(E=>{const B=Zt(E.placement);return[E.placement,B&&d?E.overflows.slice(0,2).reduce((F,O)=>F+O,0):E.overflows[0],E.overflows]}).sort((E,B)=>E[1]-B[1]),P=((a=N.filter(E=>E[2].slice(0,Zt(E[0])?2:3).every(B=>B<=0))[0])==null?void 0:a[0])||N[0][0];return P!==i?{data:{index:x+1,overflows:y},reset:{placement:P}}:{}}}},Qx=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:a,middlewareData:s,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}=Lr(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=bn(a),w=bn(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),v=f||(w||!p?[Fs(i)]:Bx(i));!f&&m!=="none"&&v.push(...Yx(i,p,m,k));const y=[i,...v],S=await nl(e,b),N=[];let C=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&N.push(S[x]),u){const F=Pu(a,o,k);N.push(S[F[0]],S[F[1]])}if(C=[...C,{placement:a,overflows:N}],!N.every(F=>F<=0)){var P,E;const F=(((P=s.flip)==null?void 0:P.index)||0)+1,O=y[F];if(O)return{data:{index:F,overflows:C},reset:{placement:O}};let D=(E=C.filter(T=>T.overflows[0]<=0).sort((T,L)=>T.overflows[1]-L.overflows[1])[0])==null?void 0:E.placement;if(!D)switch(h){case"bestFit":{var B;const T=(B=C.map(L=>[L.placement,L.overflows.filter(V=>V>0).reduce((V,K)=>V+K,0)]).sort((L,V)=>L[1]-V[1])[0])==null?void 0:B[0];T&&(D=T);break}case"initialPlacement":D=i;break}if(a!==D)return{reset:{placement:D}}}return{}}}};async function Zx(t,e){const{placement:n,platform:r,elements:a}=t,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=bn(n),i=Zt(n),l=Rs(n)==="y",c=["left","top"].includes(o)?-1:1,d=s&&l?-1:1,u=Lr(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 Jx=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:a,y:s,placement:o,middlewareData:i}=e,l=await Zx(e,t);return o===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:s+l.y,data:{...l,placement:o}}}}},qx=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:a}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:i={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...l}=Lr(t,e),c={x:n,y:r},d=await nl(e,l),u=Rs(bn(a)),f=Tu(u);let h=c[f],m=c[u];if(s){const b=f==="y"?"top":"left",x=f==="y"?"bottom":"right",w=h+d[b],k=h-d[x];h=$i(w,h,k)}if(o){const b=u==="y"?"top":"left",x=u==="y"?"bottom":"right",w=m+d[b],k=m-d[x];m=$i(w,m,k)}const p=i.fn({...e,[f]:h,[u]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function Iu(t){const e=jt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=rt(t),s=a?t.offsetWidth:n,o=a?t.offsetHeight:r,i=Is(n)!==s||Is(r)!==o;return i&&(n=s,r=o),{width:n,height:r,$:i}}function rl(t){return Oe(t)?t:t.contextElement}function Wr(t){const e=rl(t);if(!rt(e))return Qt(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:s}=Iu(e);let o=(s?Is(n.width):n.width)/r,i=(s?Is(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const $x=Qt(0);function Ru(t){const e=mt(t);return!Ui()||!e.visualViewport?$x:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ew(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==mt(t)?!1:e}function sr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=rl(t);let o=Qt(1);e&&(r?Oe(r)&&(o=Wr(r)):o=Wr(t));const i=ew(s,n,r)?Ru(s):Qt(0);let l=(a.left+i.x)/o.x,c=(a.top+i.y)/o.y,d=a.width/o.x,u=a.height/o.y;if(s){const f=mt(s),h=r&&Oe(r)?mt(r):r;let m=f,p=Xi(m);for(;p&&r&&h!==m;){const b=Wr(p),x=p.getBoundingClientRect(),w=jt(p),k=x.left+(p.clientLeft+parseFloat(w.paddingLeft))*b.x,v=x.top+(p.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=v,m=mt(p),p=Xi(m)}}return Ls({width:d,height:u,x:l,y:c})}function al(t,e){const n=Ns(t).scrollLeft;return e?e.left+n:sr(Gt(t)).left+n}function Au(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),a=r.left+e.scrollLeft-(n?0:al(t,r)),s=r.top+e.scrollTop;return{x:a,y:s}}function tw(t){let{elements:e,rect:n,offsetParent:r,strategy:a}=t;const s=a==="fixed",o=Gt(r),i=e?Ps(e.floating):!1;if(r===o||i&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Qt(1);const d=Qt(0),u=rt(r);if((u||!u&&!s)&&((rr(r)!=="body"||wa(o))&&(l=Ns(r)),rt(r))){const h=sr(r);c=Wr(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const f=o&&!u&&!s?Au(o,l,!0):Qt(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 nw(t){return Array.from(t.getClientRects())}function rw(t){const e=Gt(t),n=Ns(t),r=t.ownerDocument.body,a=ar(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=ar(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+al(t);const i=-n.scrollTop;return jt(r).direction==="rtl"&&(o+=ar(e.clientWidth,r.clientWidth)-a),{width:a,height:s,x:o,y:i}}function aw(t,e){const n=mt(t),r=Gt(t),a=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,i=0,l=0;if(a){s=a.width,o=a.height;const c=Ui();(!c||c&&e==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:s,height:o,x:i,y:l}}function sw(t,e){const n=sr(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,s=rt(t)?Wr(t):Qt(1),o=t.clientWidth*s.x,i=t.clientHeight*s.y,l=a*s.x,c=r*s.y;return{width:o,height:i,x:l,y:c}}function Fu(t,e,n){let r;if(e==="viewport")r=aw(t,n);else if(e==="document")r=rw(Gt(t));else if(Oe(e))r=sw(e,n);else{const a=Ru(t);r={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return Ls(r)}function Lu(t,e){const n=pn(t);return n===e||!Oe(n)||Fn(n)?!1:jt(n).position==="fixed"||Lu(n,e)}function ow(t,e){const n=e.get(t);if(n)return n;let r=Ln(t,[],!1).filter(i=>Oe(i)&&rr(i)!=="body"),a=null;const s=jt(t).position==="fixed";let o=s?pn(t):t;for(;Oe(o)&&!Fn(o);){const i=jt(o),l=Vi(o);!l&&i.position==="fixed"&&(a=null),(s?!l&&!a:!l&&i.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||wa(o)&&!l&&Lu(t,o))?r=r.filter(d=>d!==o):a=i,o=pn(o)}return e.set(t,r),r}function iw(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const o=[...n==="clippingAncestors"?Ps(e)?[]:ow(e,this._c):[].concat(n),r],i=o[0],l=o.reduce((c,d)=>{const u=Fu(e,d,a);return c.top=ar(u.top,c.top),c.right=Ar(u.right,c.right),c.bottom=Ar(u.bottom,c.bottom),c.left=ar(u.left,c.left),c},Fu(e,i,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function lw(t){const{width:e,height:n}=Iu(t);return{width:e,height:n}}function cw(t,e,n){const r=rt(e),a=Gt(e),s=n==="fixed",o=sr(t,!0,s,e);let i={scrollLeft:0,scrollTop:0};const l=Qt(0);if(r||!r&&!s)if((rr(e)!=="body"||wa(a))&&(i=Ns(e)),r){const f=sr(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else a&&(l.x=al(a));const c=a&&!r&&!s?Au(a,i):Qt(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 sl(t){return jt(t).position==="static"}function Wu(t,e){if(!rt(t)||jt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Gt(t)===n&&(n=n.ownerDocument.body),n}function zu(t,e){const n=mt(t);if(Ps(t))return n;if(!rt(t)){let a=pn(t);for(;a&&!Fn(a);){if(Oe(a)&&!sl(a))return a;a=pn(a)}return n}let r=Wu(t,e);for(;r&&Nx(r)&&sl(r);)r=Wu(r,e);return r&&Fn(r)&&sl(r)&&!Vi(r)?n:r||jx(t)||n}const dw=async function(t){const e=this.getOffsetParent||zu,n=this.getDimensions,r=await n(t.floating);return{reference:cw(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uw(t){return jt(t).direction==="rtl"}const fw={convertOffsetParentRelativeRectToViewportRelativeRect:tw,getDocumentElement:Gt,getClippingRect:iw,getOffsetParent:zu,getElementRects:dw,getClientRects:nw,getDimensions:lw,getScale:Wr,isElement:Oe,isRTL:uw};function Bu(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function hw(t,e){let n=null,r;const a=Gt(t);function s(){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),s();const c=t.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(i||e(),!f||!h)return;const m=Fr(u),p=Fr(a.clientWidth-(d+f)),b=Fr(a.clientHeight-(u+h)),x=Fr(d),k={rootMargin:-m+"px "+-p+"px "+-b+"px "+-x+"px",threshold:ar(0,Ar(1,l))||1};let v=!0;function y(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&&!Bu(c,t.getBoundingClientRect())&&o(),v=!1}try{n=new IntersectionObserver(y,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(y,k)}n.observe(t)}return o(!0),s}function Hu(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=rl(t),d=a||s?[...c?Ln(c):[],...Ln(e)]:[];d.forEach(x=>{a&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const u=c&&i?hw(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.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?sr(t):null;l&&b();function b(){const x=sr(t);p&&!Bu(p,x)&&n(),p=x,m=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(w=>{a&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),u==null||u(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const gw=Jx,mw=Kx,pw=qx,bw=Qx,Yu=Xx,yw=(t,e,n)=>{const r=new Map,a={platform:fw,...n},s={...a.platform,_c:r};return Ux(t,e,{...a,platform:s})};var Ws=typeof document<"u"?_.useLayoutEffect:_.useEffect;function zs(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,a;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(!zs(t[r],e[r]))return!1;return!0}if(a=Object.keys(t),n=a.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,a[r]))return!1;for(r=n;r--!==0;){const s=a[r];if(!(s==="_owner"&&t.$$typeof)&&!zs(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Vu(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Uu(t,e){const n=Vu(t);return Math.round(e*n)/n}function ol(t){const e=z.useRef(t);return Ws(()=>{e.current=t}),e}function vw(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,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);zs(f,r)||h(r);const[m,p]=z.useState(null),[b,x]=z.useState(null),w=z.useCallback(K=>{K!==S.current&&(S.current=K,p(K))},[]),k=z.useCallback(K=>{K!==N.current&&(N.current=K,x(K))},[]),v=s||m,y=o||b,S=z.useRef(null),N=z.useRef(null),C=z.useRef(d),P=l!=null,E=ol(l),B=ol(a),F=ol(c),O=z.useCallback(()=>{if(!S.current||!N.current)return;const K={placement:e,strategy:n,middleware:f};B.current&&(K.platform=B.current),yw(S.current,N.current,K).then(q=>{const j={...q,isPositioned:F.current!==!1};D.current&&!zs(C.current,j)&&(C.current=j,ky.flushSync(()=>{u(j)}))})},[f,e,n,B,F]);Ws(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,u(K=>({...K,isPositioned:!1})))},[c]);const D=z.useRef(!1);Ws(()=>(D.current=!0,()=>{D.current=!1}),[]),Ws(()=>{if(v&&(S.current=v),y&&(N.current=y),v&&y){if(E.current)return E.current(v,y,O);O()}},[v,y,O,E,P]);const T=z.useMemo(()=>({reference:S,floating:N,setReference:w,setFloating:k}),[w,k]),L=z.useMemo(()=>({reference:v,floating:y}),[v,y]),V=z.useMemo(()=>{const K={position:n,left:0,top:0};if(!L.floating)return K;const q=Uu(L.floating,d.x),j=Uu(L.floating,d.y);return i?{...K,transform:"translate("+q+"px, "+j+"px)",...Vu(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:j}},[n,i,L.floating,d.x,d.y]);return z.useMemo(()=>({...d,update:O,refs:T,elements:L,floatingStyles:V}),[d,O,T,L,V])}const xw=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:a}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Yu({element:r.current,padding:a}).fn(n):{}:r?Yu({element:r,padding:a}).fn(n):{}}}},ww=(t,e)=>({...gw(t),options:[t,e]}),kw=(t,e)=>({...pw(t),options:[t,e]}),_w=(t,e)=>({...bw(t),options:[t,e]}),Sw=(t,e)=>({...mw(t),options:[t,e]}),Ow=(t,e)=>({...xw(t),options:[t,e]});/*!
5
+ */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var i=arguments[o];i&&(s=a(s,r(i)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var i in s)e.call(s,i)&&s[i]&&(o=a(o,i));return o}function a(s,o){return o?s?s+" "+o:s+o:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(bu);var Rn=bu.exports;const hx=mu(Rn);var zi={exports:{}};function yu(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 a,s,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=a,h=s;a=void 0,s=void 0,l=t.apply(f,h)}}const d=function(...u){if(a&&this!==a)throw new Error("Debounced method called with different contexts.");a=this,s=u,i=Date.now();const f=r&&!o;if(o||(o=setTimeout(c,e)),f){const h=a,m=s;a=void 0,s=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=a,f=s;a=void 0,s=void 0,l=t.apply(u,f),clearTimeout(o),o=void 0},d}zi.exports.debounce=yu,zi.exports=yu;var gx=zi.exports;const mx=mu(gx);var px=Object.defineProperty,bx=(t,e,n)=>e in t?px(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Je=(t,e,n)=>(bx(t,typeof e!="symbol"?e+"":e,n),n);const yx=300,vx=0;class xx extends _.PureComponent{constructor(e){super(e),Je(this,"container"),Je(this,"scrolling"),Je(this,"started"),Je(this,"pressed"),Je(this,"isMobile",!1),Je(this,"internal"),Je(this,"scrollLeft"),Je(this,"scrollTop"),Je(this,"clientX"),Je(this,"clientY"),Je(this,"onEndScroll",()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()}),Je(this,"onScroll",()=>{const n=this.container.current;(n.scrollLeft!==this.scrollLeft||n.scrollTop!==this.scrollTop)&&(this.scrolling=!0,this.processScroll(),this.onEndScroll())}),Je(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 a=n.touches[0];this.processClick(a.clientX,a.clientY),!r&&this.props.stopPropagation&&n.stopPropagation()}}),Je(this,"onTouchEnd",()=>{const{nativeMobileScroll:n}=this.props;this.pressed&&(this.started&&(!this.scrolling||!n)?this.processEnd():this.pressed=!1,this.forceUpdate())}),Je(this,"onTouchMove",n=>{const{nativeMobileScroll:r}=this.props;if(this.pressed&&(!r||!this.isMobile)){const a=n.touches[0];a&&this.processMove(a.clientX,a.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()}}),Je(this,"onMouseDown",n=>{var r,a;this.isDraggable(n.target)&&this.isScrollable()&&(this.internal=!0,((a=(r=this.props)==null?void 0:r.buttons)==null?void 0:a.indexOf(n.button))!==-1&&(this.processClick(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation()))}),Je(this,"onMouseMove",n=>{this.pressed&&(this.processMove(n.clientX,n.clientY),n.preventDefault(),this.props.stopPropagation&&n.stopPropagation())}),Je(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=mx(this.onEndScroll,yx),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:a,activationDistance:s,onScroll:o}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),a&&(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)>s||a&&Math.abs(n-this.clientY)>s)&&(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:a,hideScrollbars:s}=this.props;return g.jsx("div",{className:hx(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]":s,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":s}),style:a,ref:this.getRef,onScroll:this.onScroll,children:e})}}Je(xx,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[vx]});const Bi=_.forwardRef(({className:t,color:e="default",theme:n={},...r},a)=>{const s=ee(de().checkbox,n);return g.jsx("input",{ref:a,type:"checkbox",className:U(s.root.base,s.root.color[e],t),...r})});Bi.displayName="Checkbox";const ba=({children:t,className:e,color:n="default",theme:r={},value:a,...s})=>{const o=ee(de().helperText,r);return g.jsx("p",{className:U(o.root.base,o.root.colors[n],e),...s,children:a??t??""})};ba.displayName="HelperText";const ya=_.forwardRef(({addon:t,className:e,color:n="gray",helperText:r,icon:a,rightIcon:s,shadow:o,sizing:i="md",theme:l={},type:c="text",...d},u)=>{const f=ee(de().textInput,l);return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:U(f.base,e),children:[t&&g.jsx("span",{className:f.addon,children:t}),g.jsxs("div",{className:f.field.base,children:[a&&g.jsx("div",{className:f.field.icon.base,children:g.jsx(a,{className:f.field.icon.svg})}),s&&g.jsx("div",{"data-testid":"right-icon",className:f.field.rightIcon.base,children:g.jsx(s,{className:f.field.rightIcon.svg})}),g.jsx("input",{className:U(f.field.input.base,f.field.input.colors[n],f.field.input.sizes[i],f.field.input.withIcon[a?"on":"off"],f.field.input.withRightIcon[s?"on":"off"],f.field.input.withAddon[t?"on":"off"],f.field.input.withShadow[o?"on":"off"]),type:c,...d,ref:u})]})]}),r&&g.jsx(ba,{color:n,children:r})]})});ya.displayName="TextInput";const vu=_.createContext(void 0);function Cs(){const t=_.useContext(vu);if(!t)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return t}var Re=(t=>(t[t.Days=0]="Days",t[t.Months=1]="Months",t[t.Years=2]="Years",t[t.Decades=3]="Decades",t))(Re||{}),xu=(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))(xu||{});const va=(t,e,n)=>{const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();if(e&&n){const a=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),s=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r>=a&&r<=s}if(e){const a=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();return r>=a}if(n){const a=new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime();return r<=a}return!0},Es=(t,e)=>(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t.getTime()===e.getTime()),wx=(t,e,n)=>(va(t,e,n)||(e&&t<e?t=e:n&&t>n&&(t=n)),t),kx=(t,e)=>{const n=new Date(t.getFullYear(),t.getMonth(),1);let a=n.getDay()-e;return a<0&&(a+=7),Hi(n,-a)},_x=(t,e)=>{const n=[],r=new Date(0);r.setDate(r.getDate()-r.getDay()+e);const a=new Intl.DateTimeFormat(t,{weekday:"short"});for(let s=0;s<7;s++)n.push(a.format(Hi(r,s)));return n},Hi=(t,e)=>{const n=new Date(t);return n.setDate(n.getDate()+e),n},Sx=(t,e)=>{const n=new Date(t);return n.setMonth(n.getMonth()+e),n},Ir=(t,e)=>{const n=new Date(t);return n.setFullYear(n.getFullYear()+e),n},xa=(t,e,n)=>{let r={day:"numeric",month:"long",year:"numeric"};return n&&(r=n),new Intl.DateTimeFormat(t,r).format(e)},Rr=(t,e)=>{const n=t.getFullYear();return Math.floor(n/e)*e},Ox=(t,e)=>{const n=t.getFullYear(),r=e+9;return n>=e&&n<=r},Dx=({theme:t={}})=>{const{theme:e,weekStart:n,minDate:r,maxDate:a,viewDate:s,selectedDate:o,changeSelectedDate:i,language:l}=Cs(),c=ee(e.views.days,t),d=_x(l,n),u=kx(s,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=Hi(u,h),p=xa(l,m,{day:"numeric"}),b=Es(o,m),x=!va(m,r,a);return g.jsx("button",{disabled:x,type:"button",className:U(c.items.item.base,b&&c.items.item.selected,x&&c.items.item.disabled),onClick:()=>{x||i(m,!0)},children:p},h)})})]})},Mx=({theme:t={}})=>{const{theme:e,selectedDate:n,viewDate:r,setViewDate:a,setView:s}=Cs(),o=ee(e.views.decades,t);return g.jsx("div",{className:o.items.base,children:[...Array(12)].map((i,l)=>{const d=Rr(r,100)-10+l*10,u=new Date(d,0,1),f=Ir(u,9),h=Ox(r,d),m=!va(r,u,f);return g.jsx("button",{disabled:m,type:"button",className:U(o.items.item.base,h&&o.items.item.selected,m&&o.items.item.disabled),onClick:()=>{m||(a(Ir(r,d-n.getFullYear())),s(Re.Years))},children:d},l)})})},Cx=({theme:t={}})=>{const{theme:e,minDate:n,maxDate:r,selectedDate:a,viewDate:s,language:o,setViewDate:i,setView:l}=Cs(),c=ee(e.views.months,t);return g.jsx("div",{className:c.items.base,children:[...Array(12)].map((d,u)=>{const f=new Date(s.getTime());f.setMonth(u);const h=xa(o,f,{month:"short"}),m=Es(a,f),p=!va(f,n,r);return g.jsx("button",{disabled:p,type:"button",className:U(c.items.item.base,m&&c.items.item.selected,p&&c.items.item.disabled),onClick:()=>{p||(i(f),l(Re.Days))},children:h},u)})})},Ex=({theme:t={}})=>{const{theme:e,selectedDate:n,minDate:r,maxDate:a,viewDate:s,setViewDate:o,setView:i}=Cs(),l=ee(e.views.years,t);return g.jsx("div",{className:l.items.base,children:[...Array(12)].map((c,d)=>{const f=Rr(s,10)-1+d*1,h=new Date(s.getTime());h.setFullYear(f);const m=Es(n,h),p=!va(h,r,a);return g.jsx("button",{disabled:p,type:"button",className:U(l.items.item.base,m&&l.items.item.selected,p&&l.items.item.disabled),onClick:()=>{p||(o(h),i(Re.Months))},children:f},d)})})},Tx=({title:t,open:e,inline:n=!1,autoHide:r=!0,showClearButton:a=!0,labelClearButton:s="Clear",showTodayButton:o=!0,labelTodayButton:i="Today",defaultDate:l=new Date,minDate:c,maxDate:d,language:u="en",weekStart:f=xu.Sunday,className:h,theme:m={},onSelectedDateChanged:p,...b},x)=>{const w=ee(de().datepicker,m);l=wx(l,c,d);const[k,v]=_.useState(e),[y,S]=_.useState(Re.Days),[N,C]=_.useState(l),[P,E]=_.useState(l),B=_.useRef(null),F=_.useRef(null),O=(q,j)=>{C(q),p&&p(q),r&&y===Re.Days&&j==!0&&!n&&v(!1)},D=()=>{O(l,!0),l&&E(l)};_.useImperativeHandle(x,()=>({focus(){var q;(q=B.current)==null||q.focus()},clear(){D()}}));const T=q=>{switch(q){case Re.Decades:return g.jsx(Mx,{theme:w.views.decades});case Re.Years:return g.jsx(Ex,{theme:w.views.years});case Re.Months:return g.jsx(Cx,{theme:w.views.months});case Re.Days:default:return g.jsx(Dx,{theme:w.views.days})}},L=()=>{switch(y){case Re.Days:return Re.Months;case Re.Months:return Re.Years;case Re.Years:return Re.Decades}return y},V=()=>{switch(y){case Re.Decades:return`${Rr(P,100)} - ${Rr(P,100)+90}`;case Re.Years:return`${Rr(P,10)} - ${Rr(P,10)+9}`;case Re.Months:return xa(u,P,{year:"numeric"});case Re.Days:default:return xa(u,P,{month:"long",year:"numeric"})}},K=(q,j,H)=>{switch(q){case Re.Days:return new Date(Sx(j,H));case Re.Months:return new Date(Ir(j,H));case Re.Years:return new Date(Ir(j,H*10));case Re.Decades:return new Date(Ir(j,H*100));default:return new Date(Ir(j,H*10))}};return _.useEffect(()=>{const q=j=>{var R,I;const H=(R=F==null?void 0:F.current)==null?void 0:R.contains(j.target),A=(I=B==null?void 0:B.current)==null?void 0:I.contains(j.target);!H&&!A&&v(!1)};return document.addEventListener("mousedown",q),()=>{document.removeEventListener("mousedown",q)}},[B,F,v]),g.jsx(vu.Provider,{value:{theme:w,language:u,minDate:c,maxDate:d,weekStart:f,isOpen:k,setIsOpen:v,view:y,setView:S,viewDate:P,setViewDate:E,selectedDate:N,setSelectedDate:C,changeSelectedDate:O},children:g.jsxs("div",{className:U(w.root.base,h),children:[!n&&g.jsx(ya,{theme:w.root.input,icon:Fy,ref:B,onFocus:()=>{Es(P,N)||E(N),v(!0)},value:N&&xa(u,N),readOnly:!0,...b}),(k||n)&&g.jsx("div",{ref:F,className:U(w.popup.root.base,n&&w.popup.root.inline),children:g.jsxs("div",{className:w.popup.root.inner,children:[g.jsxs("div",{className:w.popup.header.base,children:[t&&g.jsx("div",{className:w.popup.header.title,children:t}),g.jsxs("div",{className:w.popup.header.selectors.base,children:[g.jsx("button",{type:"button",className:U(w.popup.header.selectors.button.base,w.popup.header.selectors.button.prev),onClick:()=>E(K(y,P,-1)),children:g.jsx(Ry,{})}),g.jsx("button",{type:"button",className:U(w.popup.header.selectors.button.base,w.popup.header.selectors.button.view),onClick:()=>S(L()),children:V()}),g.jsx("button",{type:"button",className:U(w.popup.header.selectors.button.base,w.popup.header.selectors.button.next),onClick:()=>E(K(y,P,1)),children:g.jsx(Ay,{})})]})]}),g.jsx("div",{className:w.popup.view.base,children:T(y)}),(a||o)&&g.jsxs("div",{className:w.popup.footer.base,children:[o&&g.jsx("button",{type:"button",className:U(w.popup.footer.button.base,w.popup.footer.button.today),onClick:()=>{const q=new Date;O(q,!0),E(q)},children:i}),a&&g.jsx("button",{type:"button",className:U(w.popup.footer.button.base,w.popup.footer.button.clear),onClick:()=>{O(l,!0),l&&E(l)},children:s})]})]})})]})})},wu=_.forwardRef(Tx);wu.displayName="Datepicker";function Ts(){return typeof window<"u"}function rr(t){return ku(t)?(t.nodeName||"").toLowerCase():"#document"}function mt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Gt(t){var e;return(e=(ku(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ku(t){return Ts()?t instanceof Node||t instanceof mt(t).Node:!1}function Oe(t){return Ts()?t instanceof Element||t instanceof mt(t).Element:!1}function rt(t){return Ts()?t instanceof HTMLElement||t instanceof mt(t).HTMLElement:!1}function Yi(t){return!Ts()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mt(t).ShadowRoot}function wa(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=jt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(a)}function Px(t){return["table","td","th"].includes(rr(t))}function Ps(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Vi(t){const e=Ui(),n=Oe(t)?jt(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 Nx(t){let e=pn(t);for(;rt(e)&&!An(e);){if(Vi(e))return e;if(Ps(e))return null;e=pn(e)}return null}function Ui(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function An(t){return["html","body","#document"].includes(rr(t))}function jt(t){return mt(t).getComputedStyle(t)}function Ns(t){return Oe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pn(t){if(rr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Yi(t)&&t.host||Gt(t);return Yi(e)?e.host:e}function _u(t){const e=pn(t);return An(e)?t.ownerDocument?t.ownerDocument.body:t.body:rt(e)&&wa(e)?e:_u(e)}function Fn(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=_u(t),s=a===((r=t.ownerDocument)==null?void 0:r.body),o=mt(a);if(s){const i=Xi(o);return e.concat(o,o.visualViewport||[],wa(a)?a:[],i&&n?Fn(i):[])}return e.concat(a,Fn(a,[],n))}function Xi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kt(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 Xe(t,e){if(!t||!e)return!1;const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Yi(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function Gi(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function Su(){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 Ou(t){return t.mozInputSource===0&&t.isTrusted?!0:Zi()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function Ki(t){return jx()?!1:!Zi()&&t.width===0&&t.height===0||Zi()&&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 Qi(){return/apple/i.test(navigator.vendor)}function Zi(){const t=/android/i;return t.test(Gi())||t.test(Su())}function Du(){return Gi().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function jx(){return Su().includes("jsdom/")}function js(t,e){const n=["mouse","pen"];return e||n.push("",void 0),n.includes(t)}function Ix(t){return"nativeEvent"in t}function Rx(t){return t.matches("html,body")}function ft(t){return(t==null?void 0:t.ownerDocument)||document}function Ji(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 Ln(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Ax="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function qi(t){return rt(t)&&t.matches(Ax)}function at(t){t.preventDefault(),t.stopPropagation()}function Mu(t){return t?t.getAttribute("role")==="combobox"&&qi(t):!1}const Fx=["top","right","bottom","left"],Cu=["start","end"],Eu=Fx.reduce((t,e)=>t.concat(e,e+"-"+Cu[0],e+"-"+Cu[1]),[]),Ar=Math.min,ar=Math.max,Is=Math.round,Fr=Math.floor,Qt=t=>({x:t,y:t}),Lx={left:"right",right:"left",bottom:"top",top:"bottom"},Wx={start:"end",end:"start"};function $i(t,e,n){return ar(t,Ar(e,n))}function Lr(t,e){return typeof t=="function"?t(e):t}function bn(t){return t.split("-")[0]}function Zt(t){return t.split("-")[1]}function Tu(t){return t==="x"?"y":"x"}function el(t){return t==="y"?"height":"width"}function Rs(t){return["top","bottom"].includes(bn(t))?"y":"x"}function tl(t){return Tu(Rs(t))}function Pu(t,e,n){n===void 0&&(n=!1);const r=Zt(t),a=tl(t),s=el(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Fs(o)),[o,Fs(o)]}function zx(t){const e=Fs(t);return[As(t),e,As(e)]}function As(t){return t.replace(/start|end/g,e=>Wx[e])}function Bx(t,e,n){const r=["left","right"],a=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:r:e?r:a;case"left":case"right":return e?s:o;default:return[]}}function Hx(t,e,n,r){const a=Zt(t);let s=Bx(bn(t),n==="start",r);return a&&(s=s.map(o=>o+"-"+a),e&&(s=s.concat(s.map(As)))),s}function Fs(t){return t.replace(/left|right|bottom|top/g,e=>Lx[e])}function Yx(t){return{top:0,right:0,bottom:0,left:0,...t}}function Nu(t){return typeof t!="number"?Yx(t):{top:t,right:t,bottom:t,left:t}}function Ls(t){const{x:e,y:n,width:r,height:a}=t;return{width:r,height:a,top:n,left:e,right:e+r,bottom:n+a,x:e,y:n}}function ju(t,e,n){let{reference:r,floating:a}=t;const s=Rs(e),o=tl(e),i=el(o),l=bn(e),c=s==="y",d=r.x+r.width/2-a.width/2,u=r.y+r.height/2-a.height/2,f=r[i]/2-a[i]/2;let h;switch(l){case"top":h={x:d,y:r.y-a.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-a.width,y:u};break;default:h={x:r.x,y:r.y}}switch(Zt(e)){case"start":h[o]-=f*(n&&c?-1:1);break;case"end":h[o]+=f*(n&&c?-1:1);break}return h}const Vx=async(t,e,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:o}=n,i=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:u}=ju(c,r,l),f=r,h={},m=0;for(let p=0;p<i.length;p++){const{name:b,fn:x}=i[p],{x:w,y:k,data:v,reset:y}=await x({x:d,y:u,initialPlacement:r,placement:f,strategy:a,middlewareData:h,rects:c,platform:o,elements:{reference:t,floating:e}});d=w??d,u=k??u,h={...h,[b]:{...h[b],...v}},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:a}):y.rects),{x:d,y:u}=ju(c,f,l)),p=-1)}return{x:d,y:u,placement:f,strategy:a,middlewareData:h}};async function nl(t,e){var n;e===void 0&&(e={});const{x:r,y:a,platform:s,rects:o,elements:i,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=Lr(e,t),m=Nu(h),b=i[f?u==="floating"?"reference":"floating":u],x=Ls(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),w=u==="floating"?{...o.floating,x:r,y:a}:o.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),v=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},y=Ls(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:k,strategy:l}):w);return{top:(x.top-y.top+m.top)/v.y,bottom:(y.bottom-x.bottom+m.bottom)/v.y,left:(x.left-y.left+m.left)/v.x,right:(y.right-x.right+m.right)/v.x}}const Ux=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:a,rects:s,platform:o,elements:i,middlewareData:l}=e,{element:c,padding:d=0}=Lr(t,e)||{};if(c==null)return{};const u=Nu(d),f={x:n,y:r},h=tl(a),m=el(h),p=await o.getDimensions(c),b=h==="y",x=b?"top":"left",w=b?"bottom":"right",k=b?"clientHeight":"clientWidth",v=s.reference[m]+s.reference[h]-f[h]-s.floating[m],y=f[h]-s.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]||s.floating[m]);const C=v/2-y/2,P=N/2-p[m]/2-1,E=Ar(u[x],P),B=Ar(u[w],P),F=E,O=N-p[m]-B,D=N/2-p[m]/2+C,T=$i(F,D,O),L=!l.arrow&&Zt(a)!=null&&D!==T&&s.reference[m]/2-(D<F?E:B)-p[m]/2<0,V=L?D<F?D-F:D-O:0;return{[h]:f[h]+V,data:{[h]:T,centerOffset:D-T-V,...L&&{alignmentOffset:V}},reset:L}}});function Xx(t,e,n){return(t?[...n.filter(a=>Zt(a)===t),...n.filter(a=>Zt(a)!==t)]:n.filter(a=>bn(a)===a)).filter(a=>t?Zt(a)===t||(e?As(a)!==a:!1):!0)}const Gx=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,a;const{rects:s,middlewareData:o,placement:i,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:f=Eu,autoAlignment:h=!0,...m}=Lr(t,e),p=u!==void 0||f===Eu?Xx(u||null,h,f):f,b=await nl(e,m),x=((n=o.autoPlacement)==null?void 0:n.index)||0,w=p[x];if(w==null)return{};const k=Pu(w,s,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(i!==w)return{reset:{placement:p[0]}};const v=[b[bn(w)],b[k[0]],b[k[1]]],y=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:w,overflows:v}],S=p[x+1];if(S)return{data:{index:x+1,overflows:y},reset:{placement:S}};const N=y.map(E=>{const B=Zt(E.placement);return[E.placement,B&&d?E.overflows.slice(0,2).reduce((F,O)=>F+O,0):E.overflows[0],E.overflows]}).sort((E,B)=>E[1]-B[1]),P=((a=N.filter(E=>E[2].slice(0,Zt(E[0])?2:3).every(B=>B<=0))[0])==null?void 0:a[0])||N[0][0];return P!==i?{data:{index:x+1,overflows:y},reset:{placement:P}}:{}}}},Kx=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:a,middlewareData:s,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}=Lr(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const x=bn(a),w=bn(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),v=f||(w||!p?[Fs(i)]:zx(i));!f&&m!=="none"&&v.push(...Hx(i,p,m,k));const y=[i,...v],S=await nl(e,b),N=[];let C=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&N.push(S[x]),u){const F=Pu(a,o,k);N.push(S[F[0]],S[F[1]])}if(C=[...C,{placement:a,overflows:N}],!N.every(F=>F<=0)){var P,E;const F=(((P=s.flip)==null?void 0:P.index)||0)+1,O=y[F];if(O)return{data:{index:F,overflows:C},reset:{placement:O}};let D=(E=C.filter(T=>T.overflows[0]<=0).sort((T,L)=>T.overflows[1]-L.overflows[1])[0])==null?void 0:E.placement;if(!D)switch(h){case"bestFit":{var B;const T=(B=C.map(L=>[L.placement,L.overflows.filter(V=>V>0).reduce((V,K)=>V+K,0)]).sort((L,V)=>L[1]-V[1])[0])==null?void 0:B[0];T&&(D=T);break}case"initialPlacement":D=i;break}if(a!==D)return{reset:{placement:D}}}return{}}}};async function Qx(t,e){const{placement:n,platform:r,elements:a}=t,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=bn(n),i=Zt(n),l=Rs(n)==="y",c=["left","top"].includes(o)?-1:1,d=s&&l?-1:1,u=Lr(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 Zx=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:a,y:s,placement:o,middlewareData:i}=e,l=await Qx(e,t);return o===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:s+l.y,data:{...l,placement:o}}}}},Jx=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:a}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:i={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...l}=Lr(t,e),c={x:n,y:r},d=await nl(e,l),u=Rs(bn(a)),f=Tu(u);let h=c[f],m=c[u];if(s){const b=f==="y"?"top":"left",x=f==="y"?"bottom":"right",w=h+d[b],k=h-d[x];h=$i(w,h,k)}if(o){const b=u==="y"?"top":"left",x=u==="y"?"bottom":"right",w=m+d[b],k=m-d[x];m=$i(w,m,k)}const p=i.fn({...e,[f]:h,[u]:m});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function Iu(t){const e=jt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=rt(t),s=a?t.offsetWidth:n,o=a?t.offsetHeight:r,i=Is(n)!==s||Is(r)!==o;return i&&(n=s,r=o),{width:n,height:r,$:i}}function rl(t){return Oe(t)?t:t.contextElement}function Wr(t){const e=rl(t);if(!rt(e))return Qt(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:s}=Iu(e);let o=(s?Is(n.width):n.width)/r,i=(s?Is(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const qx=Qt(0);function Ru(t){const e=mt(t);return!Ui()||!e.visualViewport?qx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $x(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==mt(t)?!1:e}function sr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=rl(t);let o=Qt(1);e&&(r?Oe(r)&&(o=Wr(r)):o=Wr(t));const i=$x(s,n,r)?Ru(s):Qt(0);let l=(a.left+i.x)/o.x,c=(a.top+i.y)/o.y,d=a.width/o.x,u=a.height/o.y;if(s){const f=mt(s),h=r&&Oe(r)?mt(r):r;let m=f,p=Xi(m);for(;p&&r&&h!==m;){const b=Wr(p),x=p.getBoundingClientRect(),w=jt(p),k=x.left+(p.clientLeft+parseFloat(w.paddingLeft))*b.x,v=x.top+(p.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,c*=b.y,d*=b.x,u*=b.y,l+=k,c+=v,m=mt(p),p=Xi(m)}}return Ls({width:d,height:u,x:l,y:c})}function al(t,e){const n=Ns(t).scrollLeft;return e?e.left+n:sr(Gt(t)).left+n}function Au(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),a=r.left+e.scrollLeft-(n?0:al(t,r)),s=r.top+e.scrollTop;return{x:a,y:s}}function ew(t){let{elements:e,rect:n,offsetParent:r,strategy:a}=t;const s=a==="fixed",o=Gt(r),i=e?Ps(e.floating):!1;if(r===o||i&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Qt(1);const d=Qt(0),u=rt(r);if((u||!u&&!s)&&((rr(r)!=="body"||wa(o))&&(l=Ns(r)),rt(r))){const h=sr(r);c=Wr(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const f=o&&!u&&!s?Au(o,l,!0):Qt(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 tw(t){return Array.from(t.getClientRects())}function nw(t){const e=Gt(t),n=Ns(t),r=t.ownerDocument.body,a=ar(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=ar(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+al(t);const i=-n.scrollTop;return jt(r).direction==="rtl"&&(o+=ar(e.clientWidth,r.clientWidth)-a),{width:a,height:s,x:o,y:i}}function rw(t,e){const n=mt(t),r=Gt(t),a=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,i=0,l=0;if(a){s=a.width,o=a.height;const c=Ui();(!c||c&&e==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:s,height:o,x:i,y:l}}function aw(t,e){const n=sr(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,s=rt(t)?Wr(t):Qt(1),o=t.clientWidth*s.x,i=t.clientHeight*s.y,l=a*s.x,c=r*s.y;return{width:o,height:i,x:l,y:c}}function Fu(t,e,n){let r;if(e==="viewport")r=rw(t,n);else if(e==="document")r=nw(Gt(t));else if(Oe(e))r=aw(e,n);else{const a=Ru(t);r={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return Ls(r)}function Lu(t,e){const n=pn(t);return n===e||!Oe(n)||An(n)?!1:jt(n).position==="fixed"||Lu(n,e)}function sw(t,e){const n=e.get(t);if(n)return n;let r=Fn(t,[],!1).filter(i=>Oe(i)&&rr(i)!=="body"),a=null;const s=jt(t).position==="fixed";let o=s?pn(t):t;for(;Oe(o)&&!An(o);){const i=jt(o),l=Vi(o);!l&&i.position==="fixed"&&(a=null),(s?!l&&!a:!l&&i.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||wa(o)&&!l&&Lu(t,o))?r=r.filter(d=>d!==o):a=i,o=pn(o)}return e.set(t,r),r}function ow(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const o=[...n==="clippingAncestors"?Ps(e)?[]:sw(e,this._c):[].concat(n),r],i=o[0],l=o.reduce((c,d)=>{const u=Fu(e,d,a);return c.top=ar(u.top,c.top),c.right=Ar(u.right,c.right),c.bottom=Ar(u.bottom,c.bottom),c.left=ar(u.left,c.left),c},Fu(e,i,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function iw(t){const{width:e,height:n}=Iu(t);return{width:e,height:n}}function lw(t,e,n){const r=rt(e),a=Gt(e),s=n==="fixed",o=sr(t,!0,s,e);let i={scrollLeft:0,scrollTop:0};const l=Qt(0);if(r||!r&&!s)if((rr(e)!=="body"||wa(a))&&(i=Ns(e)),r){const f=sr(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}else a&&(l.x=al(a));const c=a&&!r&&!s?Au(a,i):Qt(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 sl(t){return jt(t).position==="static"}function Wu(t,e){if(!rt(t)||jt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Gt(t)===n&&(n=n.ownerDocument.body),n}function zu(t,e){const n=mt(t);if(Ps(t))return n;if(!rt(t)){let a=pn(t);for(;a&&!An(a);){if(Oe(a)&&!sl(a))return a;a=pn(a)}return n}let r=Wu(t,e);for(;r&&Px(r)&&sl(r);)r=Wu(r,e);return r&&An(r)&&sl(r)&&!Vi(r)?n:r||Nx(t)||n}const cw=async function(t){const e=this.getOffsetParent||zu,n=this.getDimensions,r=await n(t.floating);return{reference:lw(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dw(t){return jt(t).direction==="rtl"}const uw={convertOffsetParentRelativeRectToViewportRelativeRect:ew,getDocumentElement:Gt,getClippingRect:ow,getOffsetParent:zu,getElementRects:cw,getClientRects:tw,getDimensions:iw,getScale:Wr,isElement:Oe,isRTL:dw};function Bu(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function fw(t,e){let n=null,r;const a=Gt(t);function s(){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),s();const c=t.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(i||e(),!f||!h)return;const m=Fr(u),p=Fr(a.clientWidth-(d+f)),b=Fr(a.clientHeight-(u+h)),x=Fr(d),k={rootMargin:-m+"px "+-p+"px "+-b+"px "+-x+"px",threshold:ar(0,Ar(1,l))||1};let v=!0;function y(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&&!Bu(c,t.getBoundingClientRect())&&o(),v=!1}try{n=new IntersectionObserver(y,{...k,root:a.ownerDocument})}catch{n=new IntersectionObserver(y,k)}n.observe(t)}return o(!0),s}function Hu(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=rl(t),d=a||s?[...c?Fn(c):[],...Fn(e)]:[];d.forEach(x=>{a&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const u=c&&i?fw(c,n):null;let f=-1,h=null;o&&(h=new ResizeObserver(x=>{let[w]=x;w&&w.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?sr(t):null;l&&b();function b(){const x=sr(t);p&&!Bu(p,x)&&n(),p=x,m=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(w=>{a&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),u==null||u(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const hw=Zx,gw=Gx,mw=Jx,pw=Kx,Yu=Ux,bw=(t,e,n)=>{const r=new Map,a={platform:uw,...n},s={...a.platform,_c:r};return Vx(t,e,{...a,platform:s})};var Ws=typeof document<"u"?_.useLayoutEffect:_.useEffect;function zs(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,a;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(!zs(t[r],e[r]))return!1;return!0}if(a=Object.keys(t),n=a.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,a[r]))return!1;for(r=n;r--!==0;){const s=a[r];if(!(s==="_owner"&&t.$$typeof)&&!zs(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function Vu(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Uu(t,e){const n=Vu(t);return Math.round(e*n)/n}function ol(t){const e=z.useRef(t);return Ws(()=>{e.current=t}),e}function yw(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,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);zs(f,r)||h(r);const[m,p]=z.useState(null),[b,x]=z.useState(null),w=z.useCallback(K=>{K!==S.current&&(S.current=K,p(K))},[]),k=z.useCallback(K=>{K!==N.current&&(N.current=K,x(K))},[]),v=s||m,y=o||b,S=z.useRef(null),N=z.useRef(null),C=z.useRef(d),P=l!=null,E=ol(l),B=ol(a),F=ol(c),O=z.useCallback(()=>{if(!S.current||!N.current)return;const K={placement:e,strategy:n,middleware:f};B.current&&(K.platform=B.current),bw(S.current,N.current,K).then(q=>{const j={...q,isPositioned:F.current!==!1};D.current&&!zs(C.current,j)&&(C.current=j,wy.flushSync(()=>{u(j)}))})},[f,e,n,B,F]);Ws(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,u(K=>({...K,isPositioned:!1})))},[c]);const D=z.useRef(!1);Ws(()=>(D.current=!0,()=>{D.current=!1}),[]),Ws(()=>{if(v&&(S.current=v),y&&(N.current=y),v&&y){if(E.current)return E.current(v,y,O);O()}},[v,y,O,E,P]);const T=z.useMemo(()=>({reference:S,floating:N,setReference:w,setFloating:k}),[w,k]),L=z.useMemo(()=>({reference:v,floating:y}),[v,y]),V=z.useMemo(()=>{const K={position:n,left:0,top:0};if(!L.floating)return K;const q=Uu(L.floating,d.x),j=Uu(L.floating,d.y);return i?{...K,transform:"translate("+q+"px, "+j+"px)",...Vu(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:j}},[n,i,L.floating,d.x,d.y]);return z.useMemo(()=>({...d,update:O,refs:T,elements:L,floatingStyles:V}),[d,O,T,L,V])}const vw=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:a}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Yu({element:r.current,padding:a}).fn(n):{}:r?Yu({element:r,padding:a}).fn(n):{}}}},xw=(t,e)=>({...hw(t),options:[t,e]}),ww=(t,e)=>({...mw(t),options:[t,e]}),kw=(t,e)=>({...pw(t),options:[t,e]}),_w=(t,e)=>({...gw(t),options:[t,e]}),Sw=(t,e)=>({...vw(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 Dw=["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])"],Bs=Dw.join(","),Xu=typeof Element>"u",zr=Xu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Hs=!Xu&&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},Ys=function t(e,n){var r;n===void 0&&(n=!0);var a=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=a===""||a==="true",o=s||n&&e&&t(e.parentNode);return o},Mw=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},Cw=function(e,n,r){if(Ys(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(Bs));return n&&zr.call(e,Bs)&&a.unshift(e),a=a.filter(r),a},Ew=function t(e,n,r){for(var a=[],s=Array.from(e);s.length;){var o=s.shift();if(!Ys(o,!1))if(o.tagName==="SLOT"){var i=o.assignedElements(),l=i.length?i:o.children,c=t(l,!0,r);r.flatten?a.push.apply(a,c):a.push({scopeParent:o,candidates:c})}else{var d=zr.call(o,Bs);d&&r.filter(o)&&(n||!e.includes(o))&&a.push(o);var u=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),f=!Ys(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&f){var h=t(u===!0?o.children:u.children,!0,r);r.flatten?a.push.apply(a,h):a.push({scopeParent:o,candidates:h})}else s.unshift.apply(s,o.children)}}return a},Gu=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ku=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Mw(e))&&!Gu(e)?0:e.tabIndex},Tw=function(e,n){var r=Ku(e);return r<0&&n&&!Gu(e)?0:r},Pw=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Qu=function(e){return e.tagName==="INPUT"},Nw=function(e){return Qu(e)&&e.type==="hidden"},jw=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},Iw=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},Rw=function(e){if(!e.name)return!0;var n=e.form||Hs(e),r=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=r(window.CSS.escape(e.name));else try{a=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 s=Iw(a,e.form);return!s||s===e},Aw=function(e){return Qu(e)&&e.type==="radio"},Fw=function(e){return Aw(e)&&!Rw(e)},Lw=function(e){var n,r=e&&Hs(e),a=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==e){var o,i,l;for(s=!!((o=a)!==null&&o!==void 0&&(i=o.ownerDocument)!==null&&i!==void 0&&i.contains(a)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!s&&a;){var c,d,u;r=Hs(a),a=(c=r)===null||c===void 0?void 0:c.host,s=!!((d=a)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(a))}}return s},Zu=function(e){var n=e.getBoundingClientRect(),r=n.width,a=n.height;return r===0&&a===0},Ww=function(e,n){var r=n.displayCheck,a=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=zr.call(e,"details>summary:first-of-type"),o=s?e.parentElement:e;if(zr.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var i=e;e;){var l=e.parentElement,c=Hs(e);if(l&&!l.shadowRoot&&a(l)===!0)return Zu(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=i}if(Lw(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Zu(e);return!1},zw=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 a=n.children.item(r);if(a.tagName==="LEGEND")return zr.call(n,"fieldset[disabled] *")?!0:!a.contains(e)}return!0}n=n.parentElement}return!1},Bw=function(e,n){return!(n.disabled||Ys(n)||Nw(n)||Ww(n,e)||jw(n)||zw(n))},il=function(e,n){return!(Fw(n)||Ku(n)<0||!Bw(e,n))},Hw=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Yw=function t(e){var n=[],r=[];return e.forEach(function(a,s){var o=!!a.scopeParent,i=o?a.scopeParent:a,l=Tw(i,o),c=o?t(a.candidates):i;l===0?o?n.push.apply(n,c):n.push(i):r.push({documentOrder:s,tabIndex:l,item:a,isScope:o,content:c})}),r.sort(Pw).reduce(function(a,s){return s.isScope?a.push.apply(a,s.content):a.push(s.content),a},[]).concat(n)},Vs=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Ew([e],n.includeContainer,{filter:il.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Hw}):r=Cw(e,n.includeContainer,il.bind(null,n)),Yw(r)},Vw=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return zr.call(e,Bs)===!1?!1:il(n,e)};function Ju(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 Uw=z.useInsertionEffect||(t=>t());function Jt(t){const e=z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Uw(()=>{e.current=t}),z.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.current==null?void 0:e.current(...r)},[])}const ll="ArrowUp",ka="ArrowDown",Br="ArrowLeft",Hr="ArrowRight";function Us(t,e,n){return Math.floor(t/e)!==n}function _a(t,e){return e<0||e>=t.current.length}function cl(t,e){return lt(t,{disabledIndices:e})}function qu(t,e){return lt(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function lt(t,e){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:a,amount:s=1}=e===void 0?{}:e;const o=t.current,i=a?c=>a.includes(c):c=>{const d=o[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=n;do l+=r?-s:s;while(l>=0&&l<=o.length-1&&i(l));return l}function Xw(t,e){let{event:n,orientation:r,loop:a,cols:s,disabledIndices:o,minIndex:i,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(n.key===ll){if(d&&at(n),c===-1)u=l;else if(u=lt(t,{startingIndex:u,amount:s,decrement:!0,disabledIndices:o}),a&&(c-s<i||u<0)){const f=c%s,h=l%s,m=l-(h-f);h===f?u=l:u=h>f?m:m-s}_a(t,u)&&(u=c)}if(n.key===ka&&(d&&at(n),c===-1?u=i:(u=lt(t,{startingIndex:c,amount:s,disabledIndices:o}),a&&c+s>l&&(u=lt(t,{startingIndex:c%s-s,amount:s,disabledIndices:o}))),_a(t,u)&&(u=c)),r==="both"){const f=Fr(c/s);n.key===Hr&&(d&&at(n),c%s!==s-1?(u=lt(t,{startingIndex:c,disabledIndices:o}),a&&Us(u,s,f)&&(u=lt(t,{startingIndex:c-c%s-1,disabledIndices:o}))):a&&(u=lt(t,{startingIndex:c-c%s-1,disabledIndices:o})),Us(u,s,f)&&(u=c)),n.key===Br&&(d&&at(n),c%s!==0?(u=lt(t,{startingIndex:c,disabledIndices:o,decrement:!0}),a&&Us(u,s,f)&&(u=lt(t,{startingIndex:c+(s-c%s),decrement:!0,disabledIndices:o}))):a&&(u=lt(t,{startingIndex:c+(s-c%s),decrement:!0,disabledIndices:o})),Us(u,s,f)&&(u=c));const h=Fr(l/s)===f;_a(t,u)&&(a&&h?u=n.key===Br?l:lt(t,{startingIndex:c-c%s-1,disabledIndices:o}):u=c)}return u}function Gw(t,e,n){const r=[];let a=0;return t.forEach((s,o)=>{let{width:i,height:l}=s;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&&(a=0);!c;){const d=[];for(let u=0;u<i;u++)for(let f=0;f<l;f++)d.push(a+u+f*e);a%e+i<=e&&d.every(u=>r[u]==null)?(d.forEach(u=>{r[u]=o}),c=!0):a++}}),[...r]}function Kw(t,e,n,r,a){if(t===-1)return-1;const s=n.indexOf(t);switch(a){case"tl":return s;case"tr":return s+e[t].width-1;case"bl":return s+(e[t].height-1)*r;case"br":return n.lastIndexOf(t)}}function Qw(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}let $u=0;function yn(t,e){e===void 0&&(e={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:a=!1}=e;r&&cancelAnimationFrame($u);const s=()=>t==null?void 0:t.focus({preventScroll:n});a?s():$u=requestAnimationFrame(s)}var Ee=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Zw(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 Jw(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 ef=z.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function qw(t){let{children:e,elementsRef:n,labelsRef:r}=t;const[a,s]=z.useState(()=>new Map),o=z.useCallback(l=>{s(c=>new Map(c).set(l,null))},[]),i=z.useCallback(l=>{s(c=>{const d=new Map(c);return d.delete(l),d})},[]);return Ee(()=>{const l=new Map(a);Array.from(l.keys()).sort(Zw).forEach((d,u)=>{l.set(d,u)}),Jw(a,l)||s(l)},[a]),z.createElement(ef.Provider,{value:z.useMemo(()=>({register:o,unregister:i,map:a,elementsRef:n,labelsRef:r}),[o,i,a,n,r])},e)}function $w(t){let{label:e}=t===void 0?{}:t;const[n,r]=z.useState(null),a=z.useRef(null),{register:s,unregister:o,map:i,elementsRef:l,labelsRef:c}=z.useContext(ef),d=z.useCallback(u=>{if(a.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 Ee(()=>{const u=a.current;if(u)return s(u),()=>{o(u)}},[s,o]),Ee(()=>{const u=a.current?i.get(a.current):null;u!=null&&r(u)},[i]),z.useMemo(()=>({ref:d,index:n??-1}),[n,d])}function Sa(){return Sa=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},Sa.apply(this,arguments)}let dl=!1,ek=0;const tf=()=>"floating-ui-"+ek++;function tk(){const[t,e]=z.useState(()=>dl?tf():void 0);return Ee(()=>{t==null&&e(tf())},[]),z.useEffect(()=>{dl||(dl=!0)},[]),t}const Xs=z.useId||tk;function nk(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(a=>a(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(a=>a!==n))||[])}}}const rk=z.createContext(null),ak=z.createContext(null),Gs=()=>{var t;return((t=z.useContext(rk))==null?void 0:t.id)||null},Oa=()=>z.useContext(ak);function or(t){return"data-floating-ui-"+t}function qt(t){const e=_.useRef(t);return Ee(()=>{e.current=t}),e}const nf=or("safe-polygon");function ul(t,e,n){return n&&!js(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function sk(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:a,events:s,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=Gs(),x=qt(u),w=qt(d),k=z.useRef(),v=z.useRef(),y=z.useRef(),S=z.useRef(),N=z.useRef(!0),C=z.useRef(!1),P=z.useRef(()=>{}),E=z.useCallback(()=>{var D;const T=(D=a.current.openEvent)==null?void 0:D.type;return(T==null?void 0:T.includes("mouse"))&&T!=="mousedown"},[a]);z.useEffect(()=>{if(!c)return;function D(T){let{open:L}=T;L||(clearTimeout(v.current),clearTimeout(S.current),N.current=!0)}return s.on("openchange",D),()=>{s.off("openchange",D)}},[c,s]),z.useEffect(()=>{if(!c||!x.current||!n)return;function D(L){E()&&r(!1,L,"hover")}const T=ft(i).documentElement;return T.addEventListener("mouseleave",D),()=>{T.removeEventListener("mouseleave",D)}},[i,n,r,c,x,E]);const B=z.useCallback(function(D,T,L){T===void 0&&(T=!0),L===void 0&&(L="hover");const V=ul(w.current,"close",k.current);V&&!y.current?(clearTimeout(v.current),v.current=setTimeout(()=>r(!1,D,L),V)):T&&(clearTimeout(v.current),r(!1,D,L))},[w,r]),F=z.useCallback(()=>{P.current(),y.current=void 0},[]),O=z.useCallback(()=>{if(C.current){const D=ft(l.floating.current).body;D.style.pointerEvents="",D.removeAttribute(nf),C.current=!1}},[l]);return z.useEffect(()=>{if(!c)return;function D(){return a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1}function T(K){if(clearTimeout(v.current),N.current=!1,f&&!js(k.current)||h>0&&ul(w.current,"open")===0)return;const q=ul(w.current,"open",k.current);q?v.current=setTimeout(()=>{r(!0,K,"hover")},q):r(!0,K,"hover")}function L(K){if(D())return;P.current();const q=ft(i);if(clearTimeout(S.current),x.current){n||clearTimeout(v.current),y.current=x.current({...t,tree:p,x:K.clientX,y:K.clientY,onClose(){O(),F(),B(K,!0,"safe-polygon")}});const H=y.current;q.addEventListener("mousemove",H),P.current=()=>{q.removeEventListener("mousemove",H)};return}(k.current==="touch"?!Xe(i,K.relatedTarget):!0)&&B(K)}function V(K){D()||x.current==null||x.current({...t,tree:p,x:K.clientX,y:K.clientY,onClose(){O(),F(),B(K)}})(K)}if(Oe(o)){const K=o;return n&&K.addEventListener("mouseleave",V),i==null||i.addEventListener("mouseleave",V),m&&K.addEventListener("mousemove",T,{once:!0}),K.addEventListener("mouseenter",T),K.addEventListener("mouseleave",L),()=>{n&&K.removeEventListener("mouseleave",V),i==null||i.removeEventListener("mouseleave",V),m&&K.removeEventListener("mousemove",T),K.removeEventListener("mouseenter",T),K.removeEventListener("mouseleave",L)}}},[o,i,c,t,f,h,m,B,F,O,r,n,p,w,x,a]),Ee(()=>{var D;if(c&&n&&(D=x.current)!=null&&D.__options.blockPointerEvents&&E()){const L=ft(i).body;if(L.setAttribute(nf,""),L.style.pointerEvents="none",C.current=!0,Oe(o)&&i){var T;const V=o,K=p==null||(T=p.nodesRef.current.find(q=>q.id===b))==null||(T=T.context)==null?void 0:T.elements.floating;return K&&(K.style.pointerEvents=""),V.style.pointerEvents="auto",i.style.pointerEvents="auto",()=>{V.style.pointerEvents="",i.style.pointerEvents=""}}}},[c,n,b,i,o,p,x,E]),Ee(()=>{n||(k.current=void 0,F(),O())},[n,F,O]),z.useEffect(()=>()=>{F(),clearTimeout(v.current),clearTimeout(S.current),O()},[c,o,F,O]),z.useMemo(()=>{if(!c)return{};function D(T){k.current=T.pointerType}return{reference:{onPointerDown:D,onPointerEnter:D,onMouseMove(T){n||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{N.current||r(!0,T.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(v.current)},onMouseLeave(T){B(T.nativeEvent,!1)}}}},[c,h,n,r,B])}function ok(t,e){var n;let r=[],a=(n=t.find(s=>s.id===e))==null?void 0:n.parentId;for(;a;){const s=t.find(o=>o.id===a);a=s==null?void 0:s.parentId,s&&(r=r.concat(s))}return r}function ir(t,e){let n=t.filter(a=>{var s;return a.parentId===e&&((s=a.context)==null?void 0:s.open)}),r=n;for(;r.length;)r=t.filter(a=>{var s;return(s=r)==null?void 0:s.some(o=>{var i;return a.parentId===o.id&&((i=a.context)==null?void 0:i.open)})}),n=n.concat(r);return n}function ik(t,e){let n,r=-1;function a(s,o){o>r&&(n=s,r=o),ir(t,s).forEach(l=>{a(l.id,o+1)})}return a(e,0),t.find(s=>s.id===n)}let Yr=new WeakMap,Ks=new WeakSet,Qs={},fl=0;const lk=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,rf=t=>t&&(t.host||rf(t.parentNode)),ck=(t,e)=>e.map(n=>{if(t.contains(n))return n;const r=rf(n);return t.contains(r)?r:null}).filter(n=>n!=null);function dk(t,e,n,r){const a="data-floating-ui-inert",s=r?"inert":n?"aria-hidden":null,o=ck(e,t),i=new Set,l=new Set(o),c=[];Qs[a]||(Qs[a]=new WeakMap);const d=Qs[a];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=s?m.getAttribute(s):null,b=p!==null&&p!=="false",x=(Yr.get(m)||0)+1,w=(d.get(m)||0)+1;Yr.set(m,x),d.set(m,w),c.push(m),x===1&&b&&Ks.add(m),w===1&&m.setAttribute(a,""),!b&&s&&m.setAttribute(s,"true")}})}return fl++,()=>{c.forEach(h=>{const m=(Yr.get(h)||0)-1,p=(d.get(h)||0)-1;Yr.set(h,m),d.set(h,p),m||(!Ks.has(h)&&s&&h.removeAttribute(s),Ks.delete(h)),p||h.removeAttribute(a)}),fl--,fl||(Yr=new WeakMap,Yr=new WeakMap,Ks=new WeakSet,Qs={})}}function af(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=ft(t[0]).body;return dk(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 sf(t,e){const n=Vs(t,Da());e==="prev"&&n.reverse();const r=n.indexOf(Kt(ft(t)));return n.slice(r+1)[0]}function of(){return sf(document.body,"next")}function lf(){return sf(document.body,"prev")}function Ma(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!Xe(n,r)}function uk(t){Vs(t,Da()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function fk(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 hl={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 hk;function cf(t){t.key==="Tab"&&(t.target,clearTimeout(hk))}const Zs=z.forwardRef(function(e,n){const[r,a]=z.useState();Ee(()=>(Qi()&&a("button"),document.addEventListener("keydown",cf),()=>{document.removeEventListener("keydown",cf)}),[]);const s={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[or("focus-guard")]:"",style:hl};return z.createElement("span",Sa({},e,s))}),df=z.createContext(null),uf=or("portal");function gk(t){let{id:e,root:n}=t===void 0?{}:t;const[r,a]=z.useState(null),s=Xs(),o=ff(),i=z.useRef(null);return Ee(()=>()=>{r==null||r.remove(),queueMicrotask(()=>{i.current=null})},[r]),Ee(()=>{if(i.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=s,c.setAttribute(uf,""),l.appendChild(c),i.current=c,a(c)},[e,s]),Ee(()=>{if(i.current)return;let l=n||(o==null?void 0:o.portalNode);l&&!Oe(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=s,d.setAttribute(uf,""),l=c||l,l.appendChild(d),i.current=d,a(d)},[e,n,s,o]),r}function mk(t){let{children:e,id:n,root:r=null,preserveTabOrder:a=!0}=t;const s=gk({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&&a&&!!(r||s);return z.useEffect(()=>{if(!s||!a||o!=null&&o.modal)return;function h(m){s&&Ma(m)&&(m.type==="focusin"?fk:uk)(s)}return s.addEventListener("focusin",h,!0),s.addEventListener("focusout",h,!0),()=>{s.removeEventListener("focusin",h,!0),s.removeEventListener("focusout",h,!0)}},[s,a,o==null?void 0:o.modal]),z.createElement(df.Provider,{value:z.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:s,setFocusManagerState:i}),[a,s])},f&&s&&z.createElement(Zs,{"data-type":"outside",ref:l,onFocus:h=>{if(Ma(h,s)){var m;(m=d.current)==null||m.focus()}else{const p=lf()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus()}}}),f&&s&&z.createElement("span",{"aria-owns":s.id,style:hl}),s&&Id.createPortal(e,s),f&&s&&z.createElement(Zs,{"data-type":"outside",ref:c,onFocus:h=>{if(Ma(h,s)){var m;(m=u.current)==null||m.focus()}else{const p=of()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,h.nativeEvent))}}}))}const ff=()=>z.useContext(df),pk=20;let lr=[];function gl(t){lr=lr.filter(n=>n.isConnected);let e=t;if(!(!e||rr(e)==="body")){if(!Vw(e,Da())){const n=Vs(e,Da())[0];if(!n)return;e=n}lr.push(e),lr.length>pk&&(lr=lr.slice(-20))}}function hf(){return lr.slice().reverse().find(t=>t.isConnected)}const bk=z.forwardRef(function(e,n){return z.createElement("button",Sa({},e,{type:"button",ref:n,tabIndex:-1,style:hl}))});function gf(t){const{context:e,children:n,disabled:r=!1,order:a=["content"],guards:s=!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:x,floating:w}}=e,k=typeof o=="number"&&o<0,v=Mu(x)&&k,y=lk()?s:!0,S=qt(a),N=qt(o),C=qt(i),P=Oa(),E=ff(),B=z.useRef(null),F=z.useRef(null),O=z.useRef(!1),D=z.useRef(!1),T=E!=null,L=z.useCallback(function(j){return j===void 0&&(j=w),j?Vs(j,Da()):[]},[w]),V=z.useCallback(j=>{const H=L(j);return S.current.map(A=>x&&A==="reference"?x:w&&A==="floating"?w:H).filter(Boolean).flat()},[x,w,S,L]);z.useEffect(()=>{if(r||!l)return;function j(A){if(A.key==="Tab"){Xe(w,Kt(ft(w)))&&L().length===0&&!v&&at(A);const R=V(),I=Wn(A);S.current[0]==="reference"&&I===x&&(at(A),A.shiftKey?yn(R[R.length-1]):yn(R[1])),S.current[1]==="floating"&&I===w&&A.shiftKey&&(at(A),yn(R[0]))}}const H=ft(w);return H.addEventListener("keydown",j),()=>{H.removeEventListener("keydown",j)}},[r,x,w,l,S,v,L,V]),z.useEffect(()=>{if(r||!d)return;function j(){D.current=!0,setTimeout(()=>{D.current=!1})}function H(A){const R=A.relatedTarget;queueMicrotask(()=>{const I=!(Xe(x,R)||Xe(w,R)||Xe(R,w)||Xe(E==null?void 0:E.portalNode,R)||R!=null&&R.hasAttribute(or("focus-guard"))||P&&(ir(P.nodesRef.current,h).find(M=>{var W,Q;return Xe((W=M.context)==null?void 0:W.elements.floating,R)||Xe((Q=M.context)==null?void 0:Q.elements.domReference,R)})||ok(P.nodesRef.current,h).find(M=>{var W,Q;return((W=M.context)==null?void 0:W.elements.floating)===R||((Q=M.context)==null?void 0:Q.elements.domReference)===R})));R&&I&&!D.current&&R!==hf()&&(O.current=!0,m(!1,A))})}if(w&&rt(x))return x.addEventListener("focusout",H),x.addEventListener("pointerdown",j),!l&&w.addEventListener("focusout",H),()=>{x.removeEventListener("focusout",H),x.removeEventListener("pointerdown",j),!l&&w.removeEventListener("focusout",H)}},[r,x,w,l,h,P,E,m,d]),z.useEffect(()=>{var j;if(r)return;const H=Array.from((E==null||(j=E.portalNode)==null?void 0:j.querySelectorAll("["+or("portal")+"]"))||[]);if(w){const A=[w,...H,B.current,F.current,S.current.includes("reference")||v?x:null].filter(I=>I!=null),R=l||v?af(A,y,!y):af(A);return()=>{R()}}},[r,x,w,l,S,E,v,y]),Ee(()=>{if(r||!w)return;const j=ft(w),H=Kt(j);queueMicrotask(()=>{const A=V(w),R=N.current,I=(typeof R=="number"?A[R]:R.current)||w,M=Xe(w,H);!k&&!M&&u&&yn(I,{preventScroll:I===w})})},[r,u,w,k,V,N]),Ee(()=>{if(r||!w)return;let j=!1;const H=ft(w),A=Kt(H),R=b.current;gl(A);function I(M){let{reason:W,event:Q,nested:G}=M;W==="escape-key"&&f.domReference.current&&gl(f.domReference.current),W==="hover"&&Q.type==="mouseleave"&&(O.current=!0),W==="outside-press"&&(G?(O.current=!1,j=!0):O.current=!(Ou(Q)||Ki(Q)))}return p.on("openchange",I),()=>{p.off("openchange",I);const M=Kt(H),W=Xe(w,M)||P&&ir(P.nodesRef.current,h).some(Z=>{var $;return Xe(($=Z.context)==null?void 0:$.elements.floating,M)});(W||R.openEvent&&["click","mousedown"].includes(R.openEvent.type))&&f.domReference.current&&gl(f.domReference.current);const G=hf();C.current&&!O.current&&rt(G)&&(!(G!==M&&M!==H.body)||W)&&yn(G,{cancelPrevious:!1,preventScroll:j})}},[r,w,C,b,f,p,P,h]),Ee(()=>{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]),Ee(()=>{if(r||!w||typeof MutationObserver!="function"||k)return;const j=()=>{const A=w.getAttribute("tabindex");S.current.includes("floating")||Kt(ft(w))!==f.domReference.current&&L().length===0?A!=="0"&&w.setAttribute("tabindex","0"):A!=="-1"&&w.setAttribute("tabindex","-1")};j();const H=new MutationObserver(j);return H.observe(w,{childList:!0,subtree:!0,attributes:!0}),()=>{H.disconnect()}},[r,w,f,S,L,k]);function K(j){return r||!c||!l?null:z.createElement(bk,{ref:j==="start"?B:F,onClick:H=>m(!1,H.nativeEvent)},typeof c=="string"?c:"Dismiss")}const q=!r&&y&&(T||l);return z.createElement(z.Fragment,null,q&&z.createElement(Zs,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:j=>{if(l){const A=V();yn(a[0]==="reference"?A[0]:A[A.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(O.current=!1,Ma(j,E.portalNode)){const A=of()||x;A==null||A.focus()}else{var H;(H=E.beforeOutsideRef.current)==null||H.focus()}}}),!v&&K("start"),n,K("end"),q&&z.createElement(Zs,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:j=>{if(l)yn(V()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(O.current=!0),Ma(j,E.portalNode)){const A=lf()||x;A==null||A.focus()}else{var H;(H=E.afterOutsideRef.current)==null||H.focus()}}}))}const ml=new Set,yk=z.forwardRef(function(e,n){let{lockScroll:r=!1,...a}=e;const s=Xs();return Ee(()=>{if(!r)return;ml.add(s);const o=/iP(hone|ad|od)|iOS/.test(Gi()),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()=>{ml.delete(s),ml.size===0&&(Object.assign(i,{overflow:"",[c]:""}),o&&(Object.assign(i,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[s,r]),z.createElement("div",Sa({ref:n},a,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}}))});function mf(t){return rt(t.target)&&t.target.tagName==="BUTTON"}function pf(t){return qi(t)}function bf(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:a,elements:{domReference:s}}=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&&(js(u.current,!0)&&c||i!=="click"&&(n&&l&&(!a.current.openEvent||a.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}js(u.current,!0)&&c||(n&&l&&(!a.current.openEvent||a.current.openEvent.type==="click")?r(!1,h.nativeEvent,"click"):r(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||mf(h))&&(h.key===" "&&!pf(s)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&r(!(n&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||mf(h)||pf(s)||h.key===" "&&f.current&&(f.current=!1,r(!(n&&l),h.nativeEvent,"click"))}}}:{},[o,a,i,c,d,s,l,n,r])}const vk={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},xk={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},yf=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 vf(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,nodeId:a,elements:{reference:s,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:x}=e,w=Oa(),k=Jt(typeof u=="function"?u:()=>!1),v=typeof u=="function"?k:u,y=z.useRef(!1),S=z.useRef(!1),{escapeKey:N,outsidePress:C}=yf(b),{escapeKey:P,outsidePress:E}=yf(x),B=Jt(T=>{if(!n||!c||!d||T.key!=="Escape")return;const L=w?ir(w.nodesRef.current,a):[];if(!N&&(T.stopPropagation(),L.length>0)){let V=!0;if(L.forEach(K=>{var q;if((q=K.context)!=null&&q.open&&!K.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}r(!1,Rx(T)?T.nativeEvent:T,"escape-key")}),F=Jt(T=>{var L;const V=()=>{var K;B(T),(K=Wn(T))==null||K.removeEventListener("keydown",V)};(L=Wn(T))==null||L.addEventListener("keydown",V)}),O=Jt(T=>{const L=y.current;y.current=!1;const V=S.current;if(S.current=!1,f==="click"&&V||L||typeof v=="function"&&!v(T))return;const K=Wn(T),q="["+or("inert")+"]",j=ft(i).querySelectorAll(q);let H=Oe(K)?K:null;for(;H&&!Fn(H);){const I=pn(H);if(Fn(I)||!Oe(I))break;H=I}if(j.length&&Oe(K)&&!Ax(K)&&!Xe(K,i)&&Array.from(j).every(I=>!Xe(H,I)))return;if(rt(K)&&i){const I=K.clientWidth>0&&K.scrollWidth>K.clientWidth,M=K.clientHeight>0&&K.scrollHeight>K.clientHeight;let W=M&&T.offsetX>K.clientWidth;if(M&&jt(K).direction==="rtl"&&(W=T.offsetX<=K.offsetWidth-K.clientWidth),W||I&&T.offsetY>K.clientHeight)return}const A=w&&ir(w.nodesRef.current,a).some(I=>{var M;return Ji(T,(M=I.context)==null?void 0:M.elements.floating)});if(Ji(T,i)||Ji(T,o)||A)return;const R=w?ir(w.nodesRef.current,a):[];if(R.length>0){let I=!0;if(R.forEach(M=>{var W;if((W=M.context)!=null&&W.open&&!M.context.dataRef.current.__outsidePressBubbles){I=!1;return}}),!I)return}r(!1,T,"outside-press")}),D=Jt(T=>{var L;const V=()=>{var K;O(T),(K=Wn(T))==null||K.removeEventListener(f,V)};(L=Wn(T))==null||L.addEventListener(f,V)});return z.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=N,l.current.__outsidePressBubbles=C;function T(K){r(!1,K,"ancestor-scroll")}const L=ft(i);d&&L.addEventListener("keydown",P?F:B,P),v&&L.addEventListener(f,E?D:O,E);let V=[];return p&&(Oe(o)&&(V=Ln(o)),Oe(i)&&(V=V.concat(Ln(i))),!Oe(s)&&s&&s.contextElement&&(V=V.concat(Ln(s.contextElement)))),V=V.filter(K=>{var q;return K!==((q=L.defaultView)==null?void 0:q.visualViewport)}),V.forEach(K=>{K.addEventListener("scroll",T,{passive:!0})}),()=>{d&&L.removeEventListener("keydown",P?F:B,P),v&&L.removeEventListener(f,E?D:O,E),V.forEach(K=>{K.removeEventListener("scroll",T)})}},[l,i,o,s,d,v,f,n,r,p,c,N,C,B,P,F,O,E,D]),z.useEffect(()=>{y.current=!1},[v,f]),z.useMemo(()=>c?{reference:{onKeyDown:B,[vk[m]]:T=>{h&&r(!1,T.nativeEvent,"reference-press")}},floating:{onKeyDown:B,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[xk[f]]:()=>{y.current=!0}}}:{},[c,h,f,m,r,B])}let pl;process.env.NODE_ENV!=="production"&&(pl=new Set);function xf(t){var e;t===void 0&&(t={});const{open:n=!1,onOpenChange:r,nodeId:a}=t;if(process.env.NODE_ENV!=="production"){var s;const C="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((s=t.elements)!=null&&s.reference&&!Oe(t.elements.reference)){var o;if(!((o=pl)!=null&&o.has(C))){var i;(i=pl)==null||i.add(C),console.error(C)}}}const[l,c]=z.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=vw(t),f=Oa(),h=Gs()!=null,m=Jt((C,P,E)=>{C&&(b.current.openEvent=P),x.emit("openchange",{open:C,event:P,reason:E,nested:h}),r==null||r(C,P,E)}),p=z.useRef(null),b=z.useRef({}),x=z.useState(()=>nk())[0],w=Xs(),k=z.useCallback(C=>{const P=Oe(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;u.refs.setReference(P)},[u.refs]),v=z.useCallback(C=>{(Oe(C)||C===null)&&(p.current=C,c(C)),(Oe(u.refs.reference.current)||u.refs.reference.current===null||C!==null&&!Oe(C))&&u.refs.setReference(C)},[u.refs]),y=z.useMemo(()=>({...u.refs,setReference:v,setPositionReference:k,domReference:p}),[u.refs,v,k]),S=z.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),N=z.useMemo(()=>({...u,refs:y,elements:S,dataRef:b,nodeId:a,floatingId:w,events:x,open:n,onOpenChange:m}),[u,a,w,x,n,m,y,S]);return Ee(()=>{const C=f==null?void 0:f.nodesRef.current.find(P=>P.id===a);C&&(C.context=N)}),z.useMemo(()=>({...u,context:N,refs:y,elements:S}),[u,y,S,N])}function wk(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:a,refs:s,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=mt(o);function h(){!n&&rt(o)&&o===Kt(ft(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 a.on("openchange",f),()=>{a.off("openchange",f)}},[a,i]),z.useEffect(()=>()=>{clearTimeout(d.current)},[]),z.useMemo(()=>i?{reference:{onPointerDown(f){Ki(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=Wn(f.nativeEvent);if(l&&Oe(h))try{if(Qi()&&Du())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!qi(h))return}r(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,m=Oe(h)&&h.hasAttribute(or("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const p=Kt(o?o.ownerDocument:document);!h&&p===o||Xe(s.floating.current,p)||Xe(o,p)||m||r(!1,f.nativeEvent,"focus")})}}}:{},[i,l,o,s,r])}const wf="active",kf="selected";function bl(t,e,n){const r=new Map,a=n==="item";let s=t;if(a&&t){const{[wf]:o,[kf]:i,...l}=t;s=l}return{...n==="floating"&&{tabIndex:-1},...s,...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(!(a&&[wf,kf].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 _f(t){t===void 0&&(t=[]);const e=t,n=z.useCallback(s=>bl(s,t,"reference"),e),r=z.useCallback(s=>bl(s,t,"floating"),e),a=z.useCallback(s=>bl(s,t,"item"),t.map(s=>s==null?void 0:s.item));return z.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:a}),[n,r,a])}let Sf=!1;function Js(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function Of(t,e){return Js(e,t===ll||t===ka,t===Br||t===Hr)}function yl(t,e,n){return Js(e,t===ka,n?t===Br:t===Hr)||t==="Enter"||t===" "||t===""}function kk(t,e,n){return Js(e,n?t===Br:t===Hr,t===ka)}function Df(t,e,n){return Js(e,n?t===Hr:t===Br,t===ll)}function _k(t,e){const{open:n,onOpenChange:r,refs:a,elements:{domReference:s,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:x="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:k=!0,disabledIndices:v=void 0,orientation:y="vertical",cols:S=1,scrollItemIntoView:N=!0,virtualItemRef:C,itemSizes:P,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 B=Gs(),F=Oa(),O=Jt(c),D=z.useRef(x),T=z.useRef(u??-1),L=z.useRef(null),V=z.useRef(!0),K=z.useRef(O),q=z.useRef(!!o),j=z.useRef(!1),H=z.useRef(!1),A=qt(v),R=qt(n),I=qt(N),[M,W]=z.useState(),[Q,G]=z.useState(),Z=Jt(function(Y,re,te){te===void 0&&(te=!1);const ie=Y.current[re.current];ie&&(b?(W(ie.id),F==null||F.events.emit("virtualfocus",ie),C&&(C.current=ie)):yn(ie,{preventScroll:!0,sync:Du()&&Qi()?Sf||j.current:!1}),requestAnimationFrame(()=>{const fe=I.current;fe&&ie&&(te||!V.current)&&(ie.scrollIntoView==null||ie.scrollIntoView(typeof fe=="boolean"?{block:"nearest",inline:"nearest"}:fe))}))});Ee(()=>{document.createElement("div").focus({get preventScroll(){return Sf=!0,!1}})},[]),Ee(()=>{d&&(n&&o?D.current&&u!=null&&(H.current=!0,T.current=u,O(u)):q.current&&(T.current=-1,K.current(null)))},[d,n,o,u,O]),Ee(()=>{if(d&&n&&o)if(l==null){if(j.current=!1,u!=null)return;if(q.current&&(T.current=-1,Z(i,T)),!q.current&&D.current&&(L.current!=null||D.current===!0&&L.current==null)){let Y=0;const re=()=>{i.current[0]==null?(Y<2&&(Y?requestAnimationFrame:queueMicrotask)(re),Y++):(T.current=L.current==null||yl(L.current,y,p)||m?cl(i,A.current):qu(i,A.current),L.current=null,O(T.current))};re()}}else _a(i,l)||(T.current=l,Z(i,T,H.current),H.current=!1)},[d,n,o,l,u,m,i,y,p,O,Z,A]),Ee(()=>{var Y;if(!d||o||!F||b||!q.current)return;const re=F.nodesRef.current,te=(Y=re.find(ce=>ce.id===B))==null||(Y=Y.context)==null?void 0:Y.elements.floating,ie=Kt(ft(o)),fe=re.some(ce=>ce.context&&Xe(ce.context.elements.floating,ie));te&&!fe&&V.current&&te.focus({preventScroll:!0})},[d,o,F,B,b]),Ee(()=>{if(!d||!F||!b||B)return;function Y(re){G(re.id),C&&(C.current=re)}return F.events.on("virtualfocus",Y),()=>{F.events.off("virtualfocus",Y)}},[d,F,b,B,C]),Ee(()=>{K.current=O,q.current=!!o}),Ee(()=>{n||(L.current=null)},[n]);const $=l!=null,ne=z.useMemo(()=>{function Y(te){if(!n)return;const ie=i.current.indexOf(te);ie!==-1&&O(ie)}return{onFocus(te){let{currentTarget:ie}=te;Y(ie)},onClick:te=>{let{currentTarget:ie}=te;return ie.focus({preventScroll:!0})},...w&&{onMouseMove(te){let{currentTarget:ie}=te;Y(ie)},onPointerLeave(te){let{pointerType:ie}=te;!V.current||ie==="touch"||(T.current=-1,Z(i,T),O(null),b||yn(a.floating.current,{preventScroll:!0}))}}}},[n,a,Z,w,i,O,b]);return z.useMemo(()=>{if(!d)return{};const Y=A.current;function re(ae){if(V.current=!1,j.current=!0,!R.current&&ae.currentTarget===a.floating.current)return;if(m&&Df(ae.key,y,p)){at(ae),r(!1,ae.nativeEvent,"list-navigation"),rt(s)&&!b&&s.focus();return}const Le=T.current,ge=cl(i,Y),Ae=qu(i,Y);if(ae.key==="Home"&&(at(ae),T.current=ge,O(T.current)),ae.key==="End"&&(at(ae),T.current=Ae,O(T.current)),S>1){const Be=P||Array.from({length:i.current.length},()=>({width:1,height:1})),Ue=Gw(Be,S,E),Et=Ue.findIndex(Pt=>Pt!=null&&!(Y!=null&&Y.includes(Pt))),Tt=Ue.reduce((Pt,er,Nt)=>er!=null&&!(Y!=null&&Y.includes(er))?Nt:Pt,-1);if(T.current=Ue[Xw({current:Ue.map(Pt=>Pt!=null?i.current[Pt]:null)},{event:ae,orientation:y,loop:h,cols:S,disabledIndices:Qw([...Y||[],void 0],Ue),minIndex:Et,maxIndex:Tt,prevIndex:Kw(T.current,Be,Ue,S,ae.key===ka?"bl":ae.key===Hr?"tr":"tl"),stopEvent:!0})],O(T.current),y==="both")return}if(Of(ae.key,y)){if(at(ae),n&&!b&&Kt(ae.currentTarget.ownerDocument)===ae.currentTarget){T.current=yl(ae.key,y,p)?ge:Ae,O(T.current);return}yl(ae.key,y,p)?h?T.current=Le>=Ae?f&&Le!==i.current.length?-1:ge:lt(i,{startingIndex:Le,disabledIndices:Y}):T.current=Math.min(Ae,lt(i,{startingIndex:Le,disabledIndices:Y})):h?T.current=Le<=ge?f&&Le!==-1?i.current.length:Ae:lt(i,{startingIndex:Le,decrement:!0,disabledIndices:Y}):T.current=Math.max(ge,lt(i,{startingIndex:Le,decrement:!0,disabledIndices:Y})),_a(i,T.current)?O(null):O(T.current)}}function te(ae){x==="auto"&&Ou(ae.nativeEvent)&&(D.current=!0)}function ie(ae){D.current=x,x==="auto"&&Ki(ae.nativeEvent)&&(D.current=!0)}const fe=b&&n&&$&&{"aria-activedescendant":Q||M},ce=i.current.find(ae=>(ae==null?void 0:ae.id)===M);return{reference:{...fe,onKeyDown(ae){V.current=!1;const Le=ae.key.indexOf("Arrow")===0,ge=kk(ae.key,y,p),Ae=Df(ae.key,y,p),Be=Of(ae.key,y),Ue=(m?ge:Be)||ae.key==="Enter"||ae.key.trim()==="";if(b&&n){const er=F==null?void 0:F.nodesRef.current.find(Ii=>Ii.parentId==null),Nt=F&&er?ik(F.nodesRef.current,er.id):null;if(Le&&Nt&&C){const Ii=new KeyboardEvent("keydown",{key:ae.key,bubbles:!0});if(ge||Ae){var Et,Tt;const tI=((Et=Nt.context)==null?void 0:Et.elements.domReference)===ae.currentTarget,wy=Ae&&!tI?(Tt=Nt.context)==null?void 0:Tt.elements.domReference:ge?ce:null;wy&&(at(ae),wy.dispatchEvent(Ii),G(void 0))}if(Be&&Nt.context&&Nt.context.open&&Nt.parentId&&ae.currentTarget!==Nt.context.elements.domReference){var Pt;at(ae),(Pt=Nt.context.elements.domReference)==null||Pt.dispatchEvent(Ii);return}}return re(ae)}if(!(!n&&!k&&Le)){if(Ue&&(L.current=m&&Be?null:ae.key),m){ge&&(at(ae),n?(T.current=cl(i,Y),O(T.current)):r(!0,ae.nativeEvent,"list-navigation"));return}Be&&(u!=null&&(T.current=u),at(ae),!n&&k?r(!0,ae.nativeEvent,"list-navigation"):re(ae),n&&O(T.current))}},onFocus(){n&&O(null)},onPointerDown:ie,onMouseDown:te,onClick:te},floating:{"aria-orientation":y==="both"?void 0:y,...!Mu(s)&&fe,onKeyDown:re,onPointerMove(){V.current=!0}},item:ne}},[s,a,M,Q,A,R,i,d,y,p,b,n,$,m,u,k,f,S,h,x,O,r,ne,F,C,P,E])}const Sk=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Mf(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:a}=t,{enabled:s=!0,role:o="dialog"}=e,i=(n=Sk.get(o))!=null?n:o,l=Xs(),d=Gs()!=null;return z.useMemo(()=>{if(!s)return{};const u={id:a,...i&&{role:i}};return i==="tooltip"||o==="label"?{reference:{["aria-"+(o==="label"?"labelledby":"describedby")]:r?a:void 0},floating:u}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?a: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:a+"-option"}};switch(o){case"select":return{...p,"aria-selected":h&&m};case"combobox":return{...p,...h&&{"aria-selected":!0}}}return{}}}},[s,o,i,r,a,l,d])}function Ok(t,e){var n;const{open:r,dataRef:a}=t,{listRef:s,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),x=z.useRef(null),w=Jt(i),k=Jt(l),v=qt(d),y=qt(f);return Ee(()=>{r&&(clearTimeout(m.current),x.current=null,p.current="")},[r]),Ee(()=>{if(r&&p.current===""){var S;b.current=(S=h??o)!=null?S:-1}},[r,h,o]),z.useMemo(()=>{if(!c)return{};function S(P){P?a.current.typing||(a.current.typing=P,k(P)):a.current.typing&&(a.current.typing=P,k(P))}function N(P,E,B){const F=v.current?v.current(E,B):E.find(O=>(O==null?void 0:O.toLocaleLowerCase().indexOf(B.toLocaleLowerCase()))===0);return F?P.indexOf(F):-1}function C(P){const E=s.current;if(p.current.length>0&&p.current[0]!==" "&&(N(E,E,p.current)===-1?S(!1):P.key===" "&&at(P)),E==null||y.current.includes(P.key)||P.key.length!==1||P.ctrlKey||P.metaKey||P.altKey)return;r&&P.key!==" "&&(at(P),S(!0)),E.every(D=>{var T,L;return D?((T=D[0])==null?void 0:T.toLocaleLowerCase())!==((L=D[1])==null?void 0:L.toLocaleLowerCase()):!0})&&p.current===P.key&&(p.current="",b.current=x.current),p.current+=P.key,clearTimeout(m.current),m.current=setTimeout(()=>{p.current="",b.current=x.current,S(!1)},u);const F=b.current,O=N(E,[...E.slice((F||0)+1),...E.slice(0,(F||0)+1)],p.current);O!==-1?(w(O),x.current=O):P.key!==" "&&(p.current="",S(!1))}return{reference:{onKeyDown:C},floating:{onKeyDown:C,onKeyUp(P){P.key===" "&&S(!1)}}}},[c,r,a,s,u,y,v,w,k])}function Cf(t,e){const[n,r]=t;let a=!1;const s=e.length;for(let o=0,i=s-1;o<s;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&&(a=!a)}return a}function Dk(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function Mk(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=t;let a,s=!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,w=Math.sqrt(p*p+b*b)/m;return o=u,i=f,l=h,w}const d=u=>{let{x:f,y:h,placement:m,elements:p,onClose:b,nodeId:x,tree:w}=u;return function(v){function y(){clearTimeout(a),b()}if(clearTimeout(a),!p.domReference||!p.floating||m==null||f==null||h==null)return;const{clientX:S,clientY:N}=v,C=[S,N],P=Wn(v),E=v.type==="mouseleave",B=Xe(p.floating,P),F=Xe(p.domReference,P),O=p.domReference.getBoundingClientRect(),D=p.floating.getBoundingClientRect(),T=m.split("-")[0],L=f>D.right-D.width/2,V=h>D.bottom-D.height/2,K=Dk(C,O),q=D.width>O.width,j=D.height>O.height,H=(q?O:D).left,A=(q?O:D).right,R=(j?O:D).top,I=(j?O:D).bottom;if(B&&(s=!0,!E))return;if(F&&(s=!1),F&&!E){s=!0;return}if(E&&Oe(v.relatedTarget)&&Xe(p.floating,v.relatedTarget)||w&&ir(w.nodesRef.current,x).some(Q=>{let{context:G}=Q;return G==null?void 0:G.open}))return;if(T==="top"&&h>=O.bottom-1||T==="bottom"&&h<=O.top+1||T==="left"&&f>=O.right-1||T==="right"&&f<=O.left+1)return y();let M=[];switch(T){case"top":M=[[H,O.top+1],[H,D.bottom-1],[A,D.bottom-1],[A,O.top+1]];break;case"bottom":M=[[H,D.top+1],[H,O.bottom-1],[A,O.bottom-1],[A,D.top+1]];break;case"left":M=[[D.right-1,I],[D.right-1,R],[O.left+1,R],[O.left+1,I]];break;case"right":M=[[O.right-1,I],[O.right-1,R],[D.left+1,R],[D.left+1,I]];break}function W(Q){let[G,Z]=Q;switch(T){case"top":{const $=[q?G+e/2:L?G+e*4:G-e*4,Z+e+1],ne=[q?G-e/2:L?G+e*4:G-e*4,Z+e+1],Y=[[D.left,L||q?D.bottom-e:D.top],[D.right,L?q?D.bottom-e:D.top:D.bottom-e]];return[$,ne,...Y]}case"bottom":{const $=[q?G+e/2:L?G+e*4:G-e*4,Z-e],ne=[q?G-e/2:L?G+e*4:G-e*4,Z-e],Y=[[D.left,L||q?D.top+e:D.bottom],[D.right,L?q?D.top+e:D.bottom:D.top+e]];return[$,ne,...Y]}case"left":{const $=[G+e+1,j?Z+e/2:V?Z+e*4:Z-e*4],ne=[G+e+1,j?Z-e/2:V?Z+e*4:Z-e*4];return[...[[V||j?D.right-e:D.left,D.top],[V?j?D.right-e:D.left:D.right-e,D.bottom]],$,ne]}case"right":{const $=[G-e,j?Z+e/2:V?Z+e*4:Z-e*4],ne=[G-e,j?Z-e/2:V?Z+e*4:Z-e*4],Y=[[V||j?D.left+e:D.right,D.top],[V?j?D.left+e:D.right:D.left+e,D.bottom]];return[$,ne,...Y]}}}if(!Cf([S,N],M)){if(s&&!K)return y();if(!E&&r){const Q=c(v.clientX,v.clientY);if(Q!==null&&Q<.1)return y()}Cf([S,N],W([f,h]))?!s&&r&&(a=window.setTimeout(y,40)):y()}}};return d.__options={blockPointerEvents:n},d}const Ck=({arrowRef:t,placement:e})=>{const n=[];return n.push(ww(8)),n.push(e==="auto"?Sw():_w()),n.push(kw({padding:8})),t!=null&&t.current&&n.push(Ow({element:t.current})),n},Ek=({placement:t})=>t==="auto"?void 0:t,Tk=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],Ef=({open:t,arrowRef:e,placement:n="top",setOpen:r})=>xf({placement:Ek({placement:n}),open:t,onOpenChange:r,whileElementsMounted:Hu,middleware:Ck({placement:n,arrowRef:e})}),Tf=({context:t,trigger:e,role:n="tooltip",interactions:r=[]})=>_f([bf(t,{enabled:e==="click"}),sk(t,{enabled:e==="hover",handleClose:Mk()}),vf(t),Mf(t,{role:n}),...r]),Pf=_.createContext(void 0);function vl(){const t=_.useContext(Pf);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const xl=({className:t,theme:e={},...n})=>{const{theme:r}=vl(),a=e.divider??r.floating.divider;return g.jsx("div",{className:U(a,t),...n})},Nf=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=vl(),s=n.header??a.floating.header;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:U(s,e),...r,children:t}),g.jsx(xl,{})]})},wl=_.forwardRef(({children:t,className:e,icon:n,onClick:r,theme:a={},...s},o)=>{const{ref:i,index:l}=$w({label:typeof t=="string"?t:void 0}),c=Ju([o,i]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:m}=vl(),p=u===l,b=ee(d.floating.item,a),x=s;return g.jsx("li",{role:"menuitem",className:b.container,children:g.jsxs(Wi,{ref:c,className:U(b.base,e),...x,...h({onClick:()=>{r==null||r(),f&&m(null)}}),tabIndex:p?0:-1,children:[n&&g.jsx(n,{className:b.icon}),t]})})});wl.displayName="DropdownItem";const Pk={top:Uy,right:Hd,bottom:Bd,left:Vy},Nk=({refs:t,children:e,inline:n,theme:r,disabled:a,setButtonWidth:s,getReferenceProps:o,renderTrigger:i,...l})=>{const c=t.reference,d=o();if(_.useEffect(()=>{c.current&&(s==null||s(c.current.clientWidth))},[c,s]),i){const u=i(r);return _.cloneElement(u,{ref:t.setReference,disabled:a,...d,...u.props})}return n?g.jsx("button",{type:"button",ref:t.setReference,className:r==null?void 0:r.inlineWrapper,disabled:a,...d,children:e}):g.jsx(pa,{...l,disabled:a,type:"button",ref:t.setReference,...d,children:e})},jf=({children:t,className:e,dismissOnClick:n=!0,theme:r={},renderTrigger:a,...s})=>{const[o,i]=_.useState(!1),[l,c]=_.useState(null),[d,u]=_.useState(null),[f,h]=_.useState(void 0),m=_.useRef([]),p=_.useRef([]),b=ee(de().dropdown,r),x=s,w=s["data-testid"]||"flowbite-dropdown-target",{placement:k=s.inline?"bottom-start":"bottom",trigger:v="click",label:y,inline:S,arrowIcon:N=!0,...C}=x,P=_.useCallback(j=>{u(j),i(!1)},[]),E=_.useCallback(j=>{o?c(j):P(j)},[o,P]),{context:B,floatingStyles:F,refs:O}=Ef({open:o,setOpen:i,placement:k}),D=_k(B,{listRef:m,activeIndex:l,selectedIndex:d,onNavigate:c}),T=Ok(B,{listRef:p,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:V,getItemProps:K}=Tf({context:B,role:"menu",trigger:v,interactions:[D,T]}),q=_.useMemo(()=>{const[j]=k.split("-");return Pk[j]??Bd},[k]);return g.jsxs(Pf.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:n,getItemProps:K,handleSelect:P},children:[g.jsxs(Nk,{...C,refs:O,inline:S,theme:b,"data-testid":w,className:U(b.floating.target,C.className),setButtonWidth:h,getReferenceProps:L,renderTrigger:a,children:[y,N&&g.jsx(q,{className:b.arrowIcon})]}),o&&g.jsx(gf,{context:B,modal:!1,children:g.jsx("div",{ref:O.setFloating,style:{...F,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":o,...V({className:U(b.floating.base,b.floating.animation,"duration-100",!o&&b.floating.hidden,b.floating.style.auto,e)}),children:g.jsx(qw,{elementsRef:m,labelsRef:p,children:g.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};jf.displayName="Dropdown",Nf.displayName="Dropdown.Header",xl.displayName="Dropdown.Divider";const jk=Object.assign(jf,{Item:wl,Header:Nf,Divider:xl}),If=_.forwardRef(({className:t,color:e="gray",helperText:n,sizing:r="md",theme:a={},...s},o)=>{const i=ee(de().fileInput,a);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:U(i.root.base,t),children:g.jsx("div",{className:i.field.base,children:g.jsx("input",{className:U(i.field.input.base,i.field.input.colors[e],i.field.input.sizes[r]),...s,type:"file",ref:o})})}),n&&g.jsx(ba,{color:e,children:n})]})});If.displayName="FileInput";const Ik=_.forwardRef(({label:t,helperText:e,color:n="default",sizing:r="md",variant:a,disabled:s=!1,theme:o={},className:i,...l},c)=>{const d=_.useId(),u=ee(de().floatingLabel,o);return g.jsxs("div",{children:[g.jsxs("div",{className:U("relative",a==="standard"?"z-0":""),children:[g.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:U(u.input[n][a][r],i),placeholder:" ","data-testid":"floating-label",disabled:s,...l,ref:c}),g.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:U(u.label[n][a][r],i),children:t})]}),g.jsx("p",{id:"outlined_helper_text"+d,className:U(u.helperText[n],i),children:e})]})});Ik.displayName="FloatingLabel";const Rf=({alt:t,className:e,children:n,href:r,name:a,src:s,theme:o={},...i})=>{const l=ee(de().footer.brand,o);return g.jsx("div",{children:r?g.jsxs("a",{"data-testid":"flowbite-footer-brand",href:r,className:U(l.base,e),...i,children:[g.jsx("img",{alt:t,src:s,className:l.img}),g.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:a}),n]}):g.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:s,className:U(l.img,e),...i})})},Af=({by:t,className:e,href:n,theme:r={},year:a,...s})=>{const o=ee(de().footer.copyright,r);return g.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:U(o.base,e),...s,children:["© ",a,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})]})},Ff=({className:t,theme:e={},...n})=>{const r=ee(de().footer.divider,e);return g.jsx("hr",{"data-testid":"footer-divider",className:U(r.base,t),...n})},Lf=({ariaLabel:t,className:e,href:n,icon:r,theme:a={},...s})=>{const o=ee(de().footer.icon,a);return g.jsx("div",{children:n?g.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:n,className:U(o.base,e),...s,children:g.jsx(r,{className:o.size})}):g.jsx(r,{"data-testid":"flowbite-footer-icon",className:o.size,...s})})},Wf=({as:t="a",children:e,className:n,href:r,theme:a={},...s})=>{const o=ee(de().footer.groupLink.link,a);return g.jsx("li",{className:U(o.base,n),children:g.jsx(t,{href:r,className:o.href,...s,children:e})})},zf=({children:t,className:e,col:n=!1,theme:r={},...a})=>{const s=ee(de().footer.groupLink,r);return g.jsx("ul",{"data-testid":"footer-groupLink",className:U(s.base,n&&s.col,e),...a,children:t})},Bf=({as:t="h2",className:e,theme:n={},title:r,...a})=>{const s=ee(de().footer.title,n);return g.jsx(t,{"data-testid":"flowbite-footer-title",className:U(s.base,e),...a,children:r})},Hf=({bgDark:t=!1,children:e,className:n,container:r=!1,theme:a={},...s})=>{const o=ee(de().footer,a);return g.jsx("footer",{"data-testid":"flowbite-footer",className:U(o.root.base,t&&o.root.bgDark,r&&o.root.container,n),...s,children:e})};Hf.displayName="Footer",Af.displayName="Footer.Copyright",Wf.displayName="Footer.Link",Rf.displayName="Footer.Brand",zf.displayName="Footer.LinkGroup",Lf.displayName="Footer.Icon",Bf.displayName="Footer.Title",Ff.displayName="Footer.Divider",Object.assign(Hf,{Copyright:Af,Link:Wf,LinkGroup:zf,Brand:Rf,Icon:Lf,Title:Bf,Divider:Ff});const kl=({children:t,className:e,color:n="default",disabled:r=!1,theme:a={},value:s,...o})=>{const i=ee(de().label,a);return g.jsx("label",{className:U(i.root.base,i.root.colors[n],r&&i.root.disabled,e),"data-testid":"flowbite-label",...o,children:s??t??""})};kl.displayName="Label";const Yf=({children:t,className:e,icon:n,theme:r={},...a})=>{const s=ee(de().list.item,r);return g.jsxs("li",{className:U(s.withIcon[n?"on":"off"],e),...a,children:[n&&g.jsx(n,{className:U(s.icon)}),t]})},Vf=({children:t,className:e,unstyled:n,nested:r,ordered:a,horizontal:s,theme:o={},...i})=>{const l=ee(de().list,o),c=a?"ol":"ul";return g.jsx(c,{className:U(l.root.base,l.root.ordered[a?"on":"off"],n&&l.root.unstyled,r&&l.root.nested,s&&l.root.horizontal,e),...i,children:t})};Vf.displayName="List",Yf.displayName="List.Item",Object.assign(Vf,{Item:Yf});const Uf=({active:t,children:e,className:n,href:r,icon:a,onClick:s,theme:o={},disabled:i,...l})=>{const c=ee(de().listGroup.item,o),d=typeof r<"u",u=d?"a":"button";return g.jsx("li",{className:U(c.base,n),children:g.jsxs(u,{href:r,onClick:s,type:d?void 0:"button",disabled:i,className:U(c.link.active[t?"on":"off"],c.link.disabled[i?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[a&&g.jsx(a,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Xf=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().listGroup,n);return g.jsx("ul",{className:U(a.root.base,e),...r,children:t})};Xf.displayName="ListGroup",Uf.displayName="ListGroup.Item",Object.assign(Xf,{Item:Uf});const Gf=_.createContext(void 0);function _l(){const t=_.useContext(Gf);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Kf=({children:t,className:e,theme:n={},...r})=>{const{theme:a,popup:s}=_l(),o=ee(a.body,n);return g.jsx("div",{className:U(o.base,s&&[o.popup],e),...r,children:t})},Qf=({children:t,className:e,theme:n={},...r})=>{const{theme:a,popup:s}=_l(),o=ee(a.footer,n);return g.jsx("div",{className:U(o.base,!s&&o.popup,e),...r,children:t})},Zf=({as:t="h3",children:e,className:n,theme:r={},id:a,...s})=>{const o=_.useId(),i=a||o,{theme:l,popup:c,onClose:d,setHeaderId:u}=_l(),f=ee(l.header,r);return _.useLayoutEffect(()=>(u(i),()=>u(void 0)),[i,u]),g.jsxs("div",{className:U(f.base,c&&f.popup,n),...s,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(Xy,{"aria-hidden":!0,className:f.close.icon})})]})},Jf=_.forwardRef(({children:t,className:e,dismissible:n=!1,onClose:r,popup:a,position:s="center",root:o,show:i,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,m]=_.useState(void 0),p=ee(de().modal,c),{context:b}=xf({open:i,onOpenChange:()=>r&&r()}),x=Ju([b.refs.setFloating,f]),w=bf(b),k=vf(b,{outsidePressEvent:"mousedown",enabled:n}),v=Mf(b),{getFloatingProps:y}=_f([w,k,v]);return i?g.jsx(Gf.Provider,{value:{theme:p,popup:a,onClose:r,setHeaderId:m},children:g.jsx(mk,{root:o,children:g.jsx(yk,{lockScroll:!0,"data-testid":"modal-overlay",className:U(p.root.base,p.root.positions[s],i?p.root.show.on:p.root.show.off,e),...u,children:g.jsx(gf,{context:b,initialFocus:d,children:g.jsx("div",{ref:x,...y(u),"aria-labelledby":h,className:U(p.content.base,p.root.sizes[l]),children:g.jsx("div",{className:p.content.inner,children:t})})})})})}):null});Jf.displayName="Modal",Zf.displayName="Modal.Header",Kf.displayName="Modal.Body",Qf.displayName="Modal.Footer",Object.assign(Jf,{Header:Zf,Body:Kf,Footer:Qf});const qf=_.createContext(void 0);function qs(){const t=_.useContext(qf);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const $f=({as:t="a",children:e,className:n,theme:r={},...a})=>{const{theme:s}=qs(),o=ee(s.brand,r);return g.jsx(t,{className:U(o.base,n),...a,children:e})},eh=({children:t,className:e,theme:n={},...r})=>{const{theme:a,isOpen:s}=qs(),o=ee(a.collapse,n);return g.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:U(o.base,o.hidden[s?"off":"on"],e),...r,children:g.jsx("ul",{className:o.list,children:t})})},th=({active:t,as:e="a",disabled:n,children:r,className:a,theme:s={},onClick:o,...i})=>{const{theme:l,setIsOpen:c}=qs(),d=ee(l.link,s),u=f=>{c(!1),o==null||o(f)};return g.jsx("li",{children:g.jsx(e,{className:U(d.base,t&&d.active.on,!t&&!n&&d.active.off,d.disabled[n?"on":"off"],a),onClick:u,...i,children:r})})},nh=({barIcon:t=Ny,className:e,theme:n={},...r})=>{const{theme:a,isOpen:s,setIsOpen:o}=qs(),i=ee(a.toggle,n),l=()=>{o(!s)};return g.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:U(i.base,e),...r,children:[g.jsx("span",{className:"sr-only",children:"Open main menu"}),g.jsx(t,{"aria-hidden":!0,className:i.icon})]})},rh=({border:t,children:e,className:n,fluid:r=!1,menuOpen:a,rounded:s,theme:o={},...i})=>{const[l,c]=_.useState(a),d=ee(de().navbar,o);return g.jsx(qf.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:g.jsx("nav",{className:U(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[s?"on":"off"],n),...i,children:g.jsx("div",{className:U(d.root.inner.base,d.root.inner.fluid[r?"on":"off"]),children:e})})})};rh.displayName="Navbar",$f.displayName="Navbar.Brand",eh.displayName="Navbar.Collapse",th.displayName="Navbar.Link",nh.displayName="Navbar.Toggle",Object.assign(rh,{Brand:$f,Collapse:eh,Link:th,Toggle:nh});const Rk=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(n=>n+t),Sl=({active:t,children:e,className:n,onClick:r,theme:a={},...s})=>{const o=ee(de().pagination,a);return g.jsx("button",{type:"button",className:U(t&&o.pages.selector.active,n),onClick:r,...s,children:e})};Sl.displayName="Pagination.Button";const Ol=({children:t,className:e,onClick:n,theme:r={},disabled:a=!1,...s})=>{const o=ee(de().pagination,r);return g.jsx("button",{type:"button",className:U(a&&o.pages.selector.disabled,e),disabled:a,onClick:n,...s,children:t})};Ol.displayName="Pagination.Navigation";const ah=({className:t,currentPage:e,layout:n="pagination",nextLabel:r="Next",onPageChange:a,previousLabel:s="Previous",renderPaginationButton:o=u=>g.jsx(Sl,{...u}),showIcons:i=!1,theme:l={},totalPages:c,...d})=>{const u=ee(de().pagination,l),f=Math.min(Math.max(n==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),m=()=>{a(Math.min(e+1,c))},p=()=>{a(Math.max(e-1,1))};return g.jsxs("nav",{className:U(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(Ol,{className:U(u.pages.previous.base,i&&u.pages.showIcon),onClick:p,disabled:e===1,children:[i&&g.jsx(Wy,{"aria-hidden":!0,className:u.pages.previous.icon}),s]})}),n==="pagination"&&Rk(h,f).map(b=>g.jsx("li",{"aria-current":b===e?"page":void 0,children:o({className:U(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>a(b),children:b})},b)),g.jsx("li",{children:g.jsxs(Ol,{className:U(u.pages.next.base,i&&u.pages.showIcon),onClick:m,disabled:e===c,children:[r,i&&g.jsx(zy,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};ah.displayName="Pagination",Object.assign(ah,{Button:Sl});const sh=_.forwardRef(({className:t,theme:e={},...n},r)=>{const a=ee(de().radio,e);return g.jsx("input",{ref:r,type:"radio",className:U(a.root.base,t),...n})});sh.displayName="Radio";const Ak=_.forwardRef(({className:t,sizing:e="md",theme:n={},...r},a)=>{const s=ee(de().rangeSlider,n);return g.jsx(g.Fragment,{children:g.jsx("div",{"data-testid":"flowbite-range-slider",className:U(s.root.base,t),children:g.jsx("div",{className:s.field.base,children:g.jsx("input",{ref:a,type:"range",className:U(s.field.input.base,s.field.input.sizes[e]),...r})})})})});Ak.displayName="RangeSlider";const oh=({children:t,className:e,percentFilled:n=0,theme:r={},...a})=>{const s=ee(de().ratingAdvanced,r);return g.jsxs("div",{className:U(s.base,e),...a,children:[g.jsx("span",{className:s.label,children:t}),g.jsx("div",{className:s.progress.base,children:g.jsx("div",{className:s.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),g.jsx("span",{className:s.progress.label,children:`${n}%`})]})},ih=_.createContext(void 0);function Fk(){const t=_.useContext(ih);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const lh=({className:t,filled:e=!0,starIcon:n=Hy,theme:r={},...a})=>{const{theme:s,size:o="sm"}=Fk(),i=ee(s.star,r);return g.jsx(n,{"data-testid":"flowbite-rating-star",className:U(i.sizes[o],i[e?"filled":"empty"],t),...a})},ch=({children:t,className:e,size:n="sm",theme:r={},...a})=>{const s=ee(de().rating,r);return g.jsx(ih.Provider,{value:{theme:s,size:n},children:g.jsx("div",{className:U(s.root.base,e),...a,children:t})})};ch.displayName="Rating",lh.displayName="Rating.Star",oh.displayName="Rating.Advanced",Object.assign(ch,{Star:lh,Advanced:oh});const Lk=_.forwardRef(({addon:t,children:e,className:n,color:r="gray",helperText:a,icon:s,shadow:o,sizing:i="md",theme:l={},...c},d)=>{const u=ee(de().select,l);return g.jsxs("div",{className:U(u.base,n),children:[t&&g.jsx("span",{className:u.addon,children:t}),g.jsxs("div",{className:u.field.base,children:[s&&g.jsx("div",{className:u.field.icon.base,children:g.jsx(s,{className:u.field.icon.svg})}),g.jsx("select",{className:U(u.field.select.base,u.field.select.colors[r],u.field.select.sizes[i],u.field.select.withIcon[s?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[o?"on":"off"]),...c,ref:d,children:e}),a&&g.jsx(ba,{color:r,children:a})]})]})});Lk.displayName="Select";const Wk=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:a,placement:s="top",style:o="dark",theme:i,trigger:l="hover",minWidth:c,...d})=>{const u=_.useRef(null),[f,h]=_.useState(!1),m=Ef({open:f,placement:s,arrowRef:u,setOpen:h}),{context:p,middlewareData:{arrow:{x:b,y:x}={}},refs:w,strategy:k,update:v,x:y,y:S}=m,N=wk(p),{getFloatingProps:C,getReferenceProps:P}=Tf({context:p,role:"tooltip",trigger:l,interactions:[N]});return _.useEffect(()=>{if(w.reference.current&&w.floating.current&&f)return Hu(w.reference.current,w.floating.current,v)},[f,w.floating,w.reference,v]),g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:w.setReference,className:i.target,"data-testid":"flowbite-tooltip-target",...P(),children:n}),g.jsxs("div",{ref:w.setFloating,"data-testid":"flowbite-tooltip",...C({className:U(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:a}),e&&g.jsx("div",{className:U(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:x??" ",left:b??" ",right:" ",bottom:" ",[Tk({placement:m.placement})]:i.arrow.placement},children:" "})]})]})},Dl=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:a,placement:s="top",style:o="dark",theme:i={},trigger:l="hover",...c})=>{const d=ee(de().tooltip,i);return g.jsx(Wk,{animation:t,arrow:e,content:a,placement:s,style:o,theme:d,trigger:l,className:r,...c,children:n})};Dl.displayName="Tooltip";const dh=_.createContext(void 0);function Vr(){const t=_.useContext(dh);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Ml=_.createContext(void 0);function zk(){const t=_.useContext(Ml);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const uh=({children:t,className:e,icon:n,label:r,chevronIcon:a=Ai,renderChevronIcon:s,open:o=!1,theme:i={},...l})=>{const c=_.useId(),[d,u]=_.useState(o),{theme:f,isCollapsed:h}=Vr(),m=ee(f.collapse,i);_.useEffect(()=>u(o),[o]);const p=({children:b})=>g.jsx("li",{children:h&&!d?g.jsx(Dl,{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:U(m.button,e),...l,children:[n&&g.jsx(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:U(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}),s?s(m,d):g.jsx(a,{"aria-hidden":!0,className:U(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(Ml.Provider,{value:{isInsideCollapse:!0},children:t})})]})};uh.displayName="Sidebar.Collapse";const fh=({children:t,color:e="info",className:n,theme:r={},...a})=>{const{theme:s,isCollapsed:o}=Vr(),i=ee(s.cta,r);return g.jsx("div",{"data-testid":"sidebar-cta",hidden:o,className:U(i.base,i.color[e],n),...a,children:t})};fh.displayName="Sidebar.CTA";const Bk=({id:t,theme:e,isCollapsed:n,tooltipChildren:r,children:a,...s})=>g.jsx("li",{...s,children:n?g.jsx(Dl,{content:g.jsx(hh,{id:t,theme:e,children:r}),placement:"right",children:a}):a}),hh=({id:t,theme:e,children:n})=>g.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:U(e.content.base),children:n}),gh=_.forwardRef(({active:t,as:e="a",children:n,className:r,icon:a,label:s,labelColor:o="info",theme:i={},...l},c)=>{var p,b,x,w;const d=_.useId(),{theme:u,isCollapsed:f}=Vr(),{isInsideCollapse:h}=zk(),m=ee(u.item,i);return g.jsx(Bk,{theme:m,className:m.listItem,id:d,isCollapsed:f,tooltipChildren:n,children:g.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:U(m.base,t&&m.active,!f&&h&&((p=m.collapsed)==null?void 0:p.insideCollapse),r),...l,children:[a&&g.jsx(a,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:U((b=m.icon)==null?void 0:b.base,t&&((x=m.icon)==null?void 0:x.active))}),f&&!a&&g.jsx("span",{className:(w=m.collapsed)==null?void 0:w.noIcon,children:n.charAt(0).toLocaleUpperCase()??"?"}),!f&&g.jsx(hh,{id:d,theme:m,children:n}),!f&&s&&g.jsx(su,{color:o,"data-testid":"flowbite-sidebar-label",hidden:f,className:m.label,children:s})]})})});gh.displayName="Sidebar.Item";const mh=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=Vr(),s=ee(a.itemGroup,n);return g.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:U(s.base,e),...r,children:g.jsx(Ml.Provider,{value:{isInsideCollapse:!1},children:t})})};mh.displayName="Sidebar.ItemGroup";const ph=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=Vr(),s=ee(a.items,n);return g.jsx("div",{className:U(s.base,e),"data-testid":"flowbite-sidebar-items",...r,children:t})};ph.displayName="Sidebar.Items";const bh=({children:t,className:e,href:n,img:r,imgAlt:a="",theme:s={},...o})=>{const i=_.useId(),{theme:l,isCollapsed:c}=Vr(),d=ee(l.logo,s);return g.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${i}`,href:n,className:U(d.base,e),...o,children:[g.jsx("img",{alt:a,src:r,className:d.img}),g.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${i}`,children:t})]})};bh.displayName="Sidebar.Logo";const yh=({children:t,as:e="nav",collapseBehavior:n="collapse",collapsed:r=!1,theme:a={},className:s,...o})=>{const i=ee(de().sidebar,a);return g.jsx(dh.Provider,{value:{theme:i,isCollapsed:r},children:g.jsx(e,{"aria-label":"Sidebar",hidden:r&&n==="hide",className:U(i.root.base,i.root.collapsed[r?"on":"off"],s),...o,children:g.jsx("div",{className:i.root.inner,children:t})})})};yh.displayName="Sidebar",Object.assign(yh,{Collapse:uh,CTA:fh,Item:gh,Items:ph,ItemGroup:mh,Logo:bh});const vh=_.createContext(void 0);function Hk(){const t=_.useContext(vh);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const xh=_.createContext(void 0);function Cl(){const t=_.useContext(xh);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const wh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s}=Cl(),o=ee(s.body,n);return g.jsx(vh.Provider,{value:{theme:o},children:g.jsx("tbody",{className:U(o.base,e),ref:a,...r,children:t})})});wh.displayName="Table.Body";const kh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s}=Hk(),o=ee(s.cell,n);return g.jsx("td",{className:U(o.base,e),ref:a,...r,children:t})});kh.displayName="Table.Cell";const _h=_.createContext(void 0);function Yk(){const t=_.useContext(_h);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const Sh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s}=Cl(),o=ee(s.head,n);return g.jsx(_h.Provider,{value:{theme:o},children:g.jsx("thead",{className:U(o.base,e),ref:a,...r,children:g.jsx("tr",{children:t})})})});Sh.displayName="Table.Head";const Oh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s}=Yk(),o=ee(s.cell,n);return g.jsx("th",{className:U(o.base,e),ref:a,...r,children:t})});Oh.displayName="Table.HeadCell";const Dh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s,hoverable:o,striped:i}=Cl(),l=ee(s.row,n);return g.jsx("tr",{ref:a,"data-testid":"table-row-element",className:U(l.base,i&&l.striped,o&&l.hovered,e),...r,children:t})});Dh.displayName="Table.Row";const Mh=_.forwardRef(({children:t,className:e,striped:n,hoverable:r,theme:a={},...s},o)=>{const i=ee(de().table,a);return g.jsx("div",{"data-testid":"table-element",className:U(i.root.wrapper),children:g.jsxs(xh.Provider,{value:{theme:i,striped:n,hoverable:r},children:[g.jsx("div",{className:U(i.root.shadow,e)}),g.jsx("table",{className:U(i.root.base,e),...s,ref:o,children:t})]})})});Mh.displayName="Table";const zn=Object.assign(Mh,{Head:Sh,Body:wh,Row:Dh,Cell:kh,HeadCell:Oh}),Ch=({children:t,className:e})=>g.jsx("div",{className:e,children:t});Ch.displayName="Tabs.Item";const Eh=_.forwardRef(({children:t,className:e,onActiveTabChange:n,style:r="default",theme:a={},...s},o)=>{const i=ee(de().tabs,a),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,m]=_.useState(-1),p=v=>{f(v),n&&n(v)},b=({target:v})=>{p(v),m(v)},x=({event:v,target:y})=>{v.key==="ArrowLeft"&&m(Math.max(0,h-1)),v.key==="ArrowRight"&&m(Math.min(c.length-1,h+1)),v.key==="Enter"&&(p(y),m(y))},w=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:p})),g.jsxs("div",{className:U(i.base,e),children:[g.jsx("div",{"aria-label":"Tabs",role:"tablist",className:U(i.tablist.base,i.tablist.styles[r],e),...s,children:c.map((v,y)=>g.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${y}`,"aria-selected":y===u,className:U(i.tablist.tabitem.base,w.base,y===u&&w.active.on,y!==u&&!v.disabled&&w.active.off),disabled:v.disabled,id:`${l}-tab-${y}`,onClick:()=>b({target:y}),onKeyDown:S=>x({event:S,target:y}),ref:S=>d.current[y]=S,role:"tab",tabIndex:y===h?0:-1,style:{zIndex:y===h?2:1},children:[v.icon&&g.jsx(v.icon,{className:i.tablist.tabitem.icon}),v.title]},y))}),g.jsx("div",{className:U(i.tabitemcontainer.base,k),children:c.map((v,y)=>g.jsx("div",{"aria-labelledby":`${l}-tab-${y}`,className:i.tabpanel,hidden:y!==u,id:`${l}-tabpanel-${y}`,role:"tabpanel",tabIndex:0,children:v.children},y))})]})});Eh.displayName="Tabs",Object.assign(Eh,{Item:Ch});const Vk=_.forwardRef(({className:t,color:e="gray",helperText:n,shadow:r,theme:a={},...s},o)=>{const i=ee(de().textarea,a);return g.jsxs(g.Fragment,{children:[g.jsx("textarea",{ref:o,className:U(i.base,i.colors[e],i.withShadow[r?"on":"off"],t),...s}),n&&g.jsx(ba,{color:e,children:n})]})});Vk.displayName="Textarea";const Th=_.createContext(void 0);function El(){const t=_.useContext(Th);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Ph=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=El(),s=ee(a.body,n);return g.jsx("div",{className:U(s.base,e),...r,children:t})},Nh=_.createContext(void 0);function Tl(){const t=_.useContext(Nh);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const jh=_.createContext(void 0);function Ih(){const t=_.useContext(jh);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Rh=({children:t,className:e,theme:n={},...r})=>{const{horizontal:a}=Tl(),{theme:s}=Ih(),o=ee(s.content,n);return g.jsx(Th.Provider,{value:{theme:o},children:g.jsx("div",{"data-testid":"timeline-content",className:U(a&&o.root.base,e),...r,children:t})})},Ah=({children:t,className:e,theme:n={},...r})=>{const{theme:a,horizontal:s}=Tl(),o=ee(a.item,n);return g.jsx(jh.Provider,{value:{theme:o},children:g.jsx("li",{"data-testid":"timeline-item",className:U(s&&o.root.horizontal,!s&&o.root.vertical,e),...r,children:t})})},Fh=({children:t,className:e,icon:n,theme:r={},...a})=>{const{horizontal:s}=Tl(),{theme:o}=Ih(),i=ee(o.point,r);return g.jsxs("div",{"data-testid":"timeline-point",className:U(s&&i.horizontal,!s&&i.vertical,e),...a,children:[t,n?g.jsx("span",{className:U(i.marker.icon.wrapper),children:g.jsx(n,{"aria-hidden":!0,className:U(i.marker.icon.base)})}):g.jsx("div",{className:U(s&&i.marker.base.horizontal,!s&&i.marker.base.vertical)}),s&&g.jsx("div",{className:U(i.line)})]})},Lh=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=El(),s=ee(a.time,n);return g.jsx("time",{className:U(s.base,e),...r,children:t})},Wh=({as:t="h3",children:e,className:n,theme:r={},...a})=>{const{theme:s}=El(),o=ee(s.title,r);return g.jsx(t,{className:U(o.base,n),...a,children:e})},zh=({children:t,className:e,horizontal:n,theme:r={},...a})=>{const s=ee(de().timeline,r);return g.jsx(Nh.Provider,{value:{theme:s,horizontal:n},children:g.jsx("ol",{"data-testid":"timeline-component",className:U(n&&s.root.direction.horizontal,!n&&s.root.direction.vertical,e),...a,children:t})})};zh.displayName="Timeline",Ah.displayName="Timeline.Item",Fh.displayName="Timeline.Point",Rh.displayName="Timeline.Content",Lh.displayName="Timeline.Time",Wh.displayName="Timeline.Title",Ph.displayName="Timeline.Body",Object.assign(zh,{Item:Ah,Point:Fh,Content:Rh,Time:Lh,Title:Wh,Body:Ph});const Bh=_.createContext(void 0);function Uk(){const t=_.useContext(Bh);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const Hh=({className:t,onClick:e,theme:n={},xIcon:r=Yy,onDismiss:a,...s})=>{const{theme:o,duration:i,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=Uk(),f=ee(o.toggle,n),h=m=>{if(e&&e(m),a){a();return}d(!l),setTimeout(()=>u(!c),i)};return g.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:U(f.base,t),...s,children:g.jsx(r,{"aria-hidden":!0,className:f.icon})})},Xk={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Yh=({children:t,className:e,duration:n=300,theme:r={},...a})=>{const[s,o]=_.useState(!1),[i,l]=_.useState(!1),c=ee(de().toast,r);return i?null:g.jsx(Bh.Provider,{value:{theme:c,duration:n,isClosed:s,isRemoved:i,setIsClosed:o,setIsRemoved:l},children:g.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:U(c.root.base,Xk[n],s&&c.root.closed,e),...a,children:t})})};Yh.displayName="Toast",Hh.displayName="Toast.Toggle",Object.assign(Yh,{Toggle:Hh});const Gk=_.forwardRef(({checked:t,className:e,color:n="blue",sizing:r="md",disabled:a,label:s,name:o,onChange:i,theme:l={},...c},d)=>{const u=_.useId(),f=ee(de().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:a,id:`${u}-flowbite-toggleswitch`,onClick:m,onKeyDown:p,role:"switch",tabIndex:0,type:"button",className:U(f.root.base,f.root.active[a?"off":"on"],e),...c,children:[g.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:U(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[n],f.toggle.sizes[r])}),s!=null&&s.length?g.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:s}):null]})]})});Gk.displayName="ToggleSwitch";const Pl=_.forwardRef(({icon:t,placeholder:e,label:n,error:r,type:a,classInclude:s,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(ya,{className:`${s}`,maxLength:o,ref:c,type:a,rightIcon:Ry,placeholder:e,onChange:i,...l}):g.jsx(ya,{className:`${s}`,maxLength:o,ref:c,type:a,placeholder:e,onChange:i,...l}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Pl.displayName="InputForm";const Kk={"mth-password":"passwordInput-module__mth-password__R6DoN"},Nl=({placeholder:t,onChange:e,value:n,...r})=>{const[a,s]=_.useState(!1),o=()=>{s(!a)};return g.jsx("div",{className:"mb-5",children:g.jsxs("div",{className:"relative inline-block w-full",children:[g.jsx("input",{type:a?"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:Kk["mth-password"],children:a?g.jsx(jy,{}):g.jsx(Iy,{})})]})})},Vh={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},Uh=({start:t,end:e,current:n,type:r})=>{const a=(n-t)/(e-t)*100,s=Math.min(Math.max(a,0),100),o=()=>s<10?"left-0":s>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:`${Vh.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${s}%`}}),g.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${s}%`},children:[g.jsx("div",{className:`${Vh.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"?"%":""]})]})]})]})},Xh=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:a,id:s,...o},i)=>g.jsxs("div",{className:"mb-5",children:[g.jsxs("select",{ref:i,id:s,className:"h-8 w-full rounded-lg border px-3 py-0.5",value:r,onChange:a,...o,children:[g.jsx("option",{value:"0",children:e||"Seleccione una opción"}),t==null?void 0:t.map(l=>g.jsx("option",{value:l.value,children:l.label},l.value))]}),n&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));Xh.displayName="SelectForm";const Gh={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},Qk=({logo:t,number:e,title:n,start:r,end:a,current:s,type:o,classIm:i})=>{const l=c=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(c);return g.jsxs("div",{className:`${Gh.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(jn,{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(Uh,{start:r,end:a,current:s,type:o})})]})};/*!
8
+ */var Ow=["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])"],Bs=Ow.join(","),Xu=typeof Element>"u",zr=Xu?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Hs=!Xu&&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},Ys=function t(e,n){var r;n===void 0&&(n=!0);var a=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=a===""||a==="true",o=s||n&&e&&t(e.parentNode);return o},Dw=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},Mw=function(e,n,r){if(Ys(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(Bs));return n&&zr.call(e,Bs)&&a.unshift(e),a=a.filter(r),a},Cw=function t(e,n,r){for(var a=[],s=Array.from(e);s.length;){var o=s.shift();if(!Ys(o,!1))if(o.tagName==="SLOT"){var i=o.assignedElements(),l=i.length?i:o.children,c=t(l,!0,r);r.flatten?a.push.apply(a,c):a.push({scopeParent:o,candidates:c})}else{var d=zr.call(o,Bs);d&&r.filter(o)&&(n||!e.includes(o))&&a.push(o);var u=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),f=!Ys(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(u&&f){var h=t(u===!0?o.children:u.children,!0,r);r.flatten?a.push.apply(a,h):a.push({scopeParent:o,candidates:h})}else s.unshift.apply(s,o.children)}}return a},Gu=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ku=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Dw(e))&&!Gu(e)?0:e.tabIndex},Ew=function(e,n){var r=Ku(e);return r<0&&n&&!Gu(e)?0:r},Tw=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Qu=function(e){return e.tagName==="INPUT"},Pw=function(e){return Qu(e)&&e.type==="hidden"},Nw=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},jw=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},Iw=function(e){if(!e.name)return!0;var n=e.form||Hs(e),r=function(i){return n.querySelectorAll('input[type="radio"][name="'+i+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=r(window.CSS.escape(e.name));else try{a=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 s=jw(a,e.form);return!s||s===e},Rw=function(e){return Qu(e)&&e.type==="radio"},Aw=function(e){return Rw(e)&&!Iw(e)},Fw=function(e){var n,r=e&&Hs(e),a=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==e){var o,i,l;for(s=!!((o=a)!==null&&o!==void 0&&(i=o.ownerDocument)!==null&&i!==void 0&&i.contains(a)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!s&&a;){var c,d,u;r=Hs(a),a=(c=r)===null||c===void 0?void 0:c.host,s=!!((d=a)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(a))}}return s},Zu=function(e){var n=e.getBoundingClientRect(),r=n.width,a=n.height;return r===0&&a===0},Lw=function(e,n){var r=n.displayCheck,a=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=zr.call(e,"details>summary:first-of-type"),o=s?e.parentElement:e;if(zr.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var i=e;e;){var l=e.parentElement,c=Hs(e);if(l&&!l.shadowRoot&&a(l)===!0)return Zu(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=i}if(Fw(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Zu(e);return!1},Ww=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 a=n.children.item(r);if(a.tagName==="LEGEND")return zr.call(n,"fieldset[disabled] *")?!0:!a.contains(e)}return!0}n=n.parentElement}return!1},zw=function(e,n){return!(n.disabled||Ys(n)||Pw(n)||Lw(n,e)||Nw(n)||Ww(n))},il=function(e,n){return!(Aw(n)||Ku(n)<0||!zw(e,n))},Bw=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Hw=function t(e){var n=[],r=[];return e.forEach(function(a,s){var o=!!a.scopeParent,i=o?a.scopeParent:a,l=Ew(i,o),c=o?t(a.candidates):i;l===0?o?n.push.apply(n,c):n.push(i):r.push({documentOrder:s,tabIndex:l,item:a,isScope:o,content:c})}),r.sort(Tw).reduce(function(a,s){return s.isScope?a.push.apply(a,s.content):a.push(s.content),a},[]).concat(n)},Vs=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Cw([e],n.includeContainer,{filter:il.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Bw}):r=Mw(e,n.includeContainer,il.bind(null,n)),Hw(r)},Yw=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return zr.call(e,Bs)===!1?!1:il(n,e)};function Ju(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 Vw=z.useInsertionEffect||(t=>t());function Jt(t){const e=z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Vw(()=>{e.current=t}),z.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return e.current==null?void 0:e.current(...r)},[])}const ll="ArrowUp",ka="ArrowDown",Br="ArrowLeft",Hr="ArrowRight";function Us(t,e,n){return Math.floor(t/e)!==n}function _a(t,e){return e<0||e>=t.current.length}function cl(t,e){return lt(t,{disabledIndices:e})}function qu(t,e){return lt(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function lt(t,e){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:a,amount:s=1}=e===void 0?{}:e;const o=t.current,i=a?c=>a.includes(c):c=>{const d=o[c];return d==null||d.hasAttribute("disabled")||d.getAttribute("aria-disabled")==="true"};let l=n;do l+=r?-s:s;while(l>=0&&l<=o.length-1&&i(l));return l}function Uw(t,e){let{event:n,orientation:r,loop:a,cols:s,disabledIndices:o,minIndex:i,maxIndex:l,prevIndex:c,stopEvent:d=!1}=e,u=c;if(n.key===ll){if(d&&at(n),c===-1)u=l;else if(u=lt(t,{startingIndex:u,amount:s,decrement:!0,disabledIndices:o}),a&&(c-s<i||u<0)){const f=c%s,h=l%s,m=l-(h-f);h===f?u=l:u=h>f?m:m-s}_a(t,u)&&(u=c)}if(n.key===ka&&(d&&at(n),c===-1?u=i:(u=lt(t,{startingIndex:c,amount:s,disabledIndices:o}),a&&c+s>l&&(u=lt(t,{startingIndex:c%s-s,amount:s,disabledIndices:o}))),_a(t,u)&&(u=c)),r==="both"){const f=Fr(c/s);n.key===Hr&&(d&&at(n),c%s!==s-1?(u=lt(t,{startingIndex:c,disabledIndices:o}),a&&Us(u,s,f)&&(u=lt(t,{startingIndex:c-c%s-1,disabledIndices:o}))):a&&(u=lt(t,{startingIndex:c-c%s-1,disabledIndices:o})),Us(u,s,f)&&(u=c)),n.key===Br&&(d&&at(n),c%s!==0?(u=lt(t,{startingIndex:c,disabledIndices:o,decrement:!0}),a&&Us(u,s,f)&&(u=lt(t,{startingIndex:c+(s-c%s),decrement:!0,disabledIndices:o}))):a&&(u=lt(t,{startingIndex:c+(s-c%s),decrement:!0,disabledIndices:o})),Us(u,s,f)&&(u=c));const h=Fr(l/s)===f;_a(t,u)&&(a&&h?u=n.key===Br?l:lt(t,{startingIndex:c-c%s-1,disabledIndices:o}):u=c)}return u}function Xw(t,e,n){const r=[];let a=0;return t.forEach((s,o)=>{let{width:i,height:l}=s;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&&(a=0);!c;){const d=[];for(let u=0;u<i;u++)for(let f=0;f<l;f++)d.push(a+u+f*e);a%e+i<=e&&d.every(u=>r[u]==null)?(d.forEach(u=>{r[u]=o}),c=!0):a++}}),[...r]}function Gw(t,e,n,r,a){if(t===-1)return-1;const s=n.indexOf(t);switch(a){case"tl":return s;case"tr":return s+e[t].width-1;case"bl":return s+(e[t].height-1)*r;case"br":return n.lastIndexOf(t)}}function Kw(t,e){return e.flatMap((n,r)=>t.includes(n)?[r]:[])}let $u=0;function yn(t,e){e===void 0&&(e={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:a=!1}=e;r&&cancelAnimationFrame($u);const s=()=>t==null?void 0:t.focus({preventScroll:n});a?s():$u=requestAnimationFrame(s)}var Ee=typeof document<"u"?_.useLayoutEffect:_.useEffect;function Qw(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 Zw(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 ef=z.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Jw(t){let{children:e,elementsRef:n,labelsRef:r}=t;const[a,s]=z.useState(()=>new Map),o=z.useCallback(l=>{s(c=>new Map(c).set(l,null))},[]),i=z.useCallback(l=>{s(c=>{const d=new Map(c);return d.delete(l),d})},[]);return Ee(()=>{const l=new Map(a);Array.from(l.keys()).sort(Qw).forEach((d,u)=>{l.set(d,u)}),Zw(a,l)||s(l)},[a]),z.createElement(ef.Provider,{value:z.useMemo(()=>({register:o,unregister:i,map:a,elementsRef:n,labelsRef:r}),[o,i,a,n,r])},e)}function qw(t){let{label:e}=t===void 0?{}:t;const[n,r]=z.useState(null),a=z.useRef(null),{register:s,unregister:o,map:i,elementsRef:l,labelsRef:c}=z.useContext(ef),d=z.useCallback(u=>{if(a.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 Ee(()=>{const u=a.current;if(u)return s(u),()=>{o(u)}},[s,o]),Ee(()=>{const u=a.current?i.get(a.current):null;u!=null&&r(u)},[i]),z.useMemo(()=>({ref:d,index:n??-1}),[n,d])}function Sa(){return Sa=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},Sa.apply(this,arguments)}let dl=!1,$w=0;const tf=()=>"floating-ui-"+$w++;function ek(){const[t,e]=z.useState(()=>dl?tf():void 0);return Ee(()=>{t==null&&e(tf())},[]),z.useEffect(()=>{dl||(dl=!0)},[]),t}const Xs=z.useId||ek;function tk(){const t=new Map;return{emit(e,n){var r;(r=t.get(e))==null||r.forEach(a=>a(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(a=>a!==n))||[])}}}const nk=z.createContext(null),rk=z.createContext(null),Gs=()=>{var t;return((t=z.useContext(nk))==null?void 0:t.id)||null},Oa=()=>z.useContext(rk);function or(t){return"data-floating-ui-"+t}function qt(t){const e=_.useRef(t);return Ee(()=>{e.current=t}),e}const nf=or("safe-polygon");function ul(t,e,n){return n&&!js(n)?0:typeof t=="number"?t:t==null?void 0:t[e]}function ak(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:a,events:s,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=Gs(),x=qt(u),w=qt(d),k=z.useRef(),v=z.useRef(),y=z.useRef(),S=z.useRef(),N=z.useRef(!0),C=z.useRef(!1),P=z.useRef(()=>{}),E=z.useCallback(()=>{var D;const T=(D=a.current.openEvent)==null?void 0:D.type;return(T==null?void 0:T.includes("mouse"))&&T!=="mousedown"},[a]);z.useEffect(()=>{if(!c)return;function D(T){let{open:L}=T;L||(clearTimeout(v.current),clearTimeout(S.current),N.current=!0)}return s.on("openchange",D),()=>{s.off("openchange",D)}},[c,s]),z.useEffect(()=>{if(!c||!x.current||!n)return;function D(L){E()&&r(!1,L,"hover")}const T=ft(i).documentElement;return T.addEventListener("mouseleave",D),()=>{T.removeEventListener("mouseleave",D)}},[i,n,r,c,x,E]);const B=z.useCallback(function(D,T,L){T===void 0&&(T=!0),L===void 0&&(L="hover");const V=ul(w.current,"close",k.current);V&&!y.current?(clearTimeout(v.current),v.current=setTimeout(()=>r(!1,D,L),V)):T&&(clearTimeout(v.current),r(!1,D,L))},[w,r]),F=z.useCallback(()=>{P.current(),y.current=void 0},[]),O=z.useCallback(()=>{if(C.current){const D=ft(l.floating.current).body;D.style.pointerEvents="",D.removeAttribute(nf),C.current=!1}},[l]);return z.useEffect(()=>{if(!c)return;function D(){return a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1}function T(K){if(clearTimeout(v.current),N.current=!1,f&&!js(k.current)||h>0&&ul(w.current,"open")===0)return;const q=ul(w.current,"open",k.current);q?v.current=setTimeout(()=>{r(!0,K,"hover")},q):r(!0,K,"hover")}function L(K){if(D())return;P.current();const q=ft(i);if(clearTimeout(S.current),x.current){n||clearTimeout(v.current),y.current=x.current({...t,tree:p,x:K.clientX,y:K.clientY,onClose(){O(),F(),B(K,!0,"safe-polygon")}});const H=y.current;q.addEventListener("mousemove",H),P.current=()=>{q.removeEventListener("mousemove",H)};return}(k.current==="touch"?!Xe(i,K.relatedTarget):!0)&&B(K)}function V(K){D()||x.current==null||x.current({...t,tree:p,x:K.clientX,y:K.clientY,onClose(){O(),F(),B(K)}})(K)}if(Oe(o)){const K=o;return n&&K.addEventListener("mouseleave",V),i==null||i.addEventListener("mouseleave",V),m&&K.addEventListener("mousemove",T,{once:!0}),K.addEventListener("mouseenter",T),K.addEventListener("mouseleave",L),()=>{n&&K.removeEventListener("mouseleave",V),i==null||i.removeEventListener("mouseleave",V),m&&K.removeEventListener("mousemove",T),K.removeEventListener("mouseenter",T),K.removeEventListener("mouseleave",L)}}},[o,i,c,t,f,h,m,B,F,O,r,n,p,w,x,a]),Ee(()=>{var D;if(c&&n&&(D=x.current)!=null&&D.__options.blockPointerEvents&&E()){const L=ft(i).body;if(L.setAttribute(nf,""),L.style.pointerEvents="none",C.current=!0,Oe(o)&&i){var T;const V=o,K=p==null||(T=p.nodesRef.current.find(q=>q.id===b))==null||(T=T.context)==null?void 0:T.elements.floating;return K&&(K.style.pointerEvents=""),V.style.pointerEvents="auto",i.style.pointerEvents="auto",()=>{V.style.pointerEvents="",i.style.pointerEvents=""}}}},[c,n,b,i,o,p,x,E]),Ee(()=>{n||(k.current=void 0,F(),O())},[n,F,O]),z.useEffect(()=>()=>{F(),clearTimeout(v.current),clearTimeout(S.current),O()},[c,o,F,O]),z.useMemo(()=>{if(!c)return{};function D(T){k.current=T.pointerType}return{reference:{onPointerDown:D,onPointerEnter:D,onMouseMove(T){n||h===0||(clearTimeout(S.current),S.current=setTimeout(()=>{N.current||r(!0,T.nativeEvent,"hover")},h))}},floating:{onMouseEnter(){clearTimeout(v.current)},onMouseLeave(T){B(T.nativeEvent,!1)}}}},[c,h,n,r,B])}function sk(t,e){var n;let r=[],a=(n=t.find(s=>s.id===e))==null?void 0:n.parentId;for(;a;){const s=t.find(o=>o.id===a);a=s==null?void 0:s.parentId,s&&(r=r.concat(s))}return r}function ir(t,e){let n=t.filter(a=>{var s;return a.parentId===e&&((s=a.context)==null?void 0:s.open)}),r=n;for(;r.length;)r=t.filter(a=>{var s;return(s=r)==null?void 0:s.some(o=>{var i;return a.parentId===o.id&&((i=a.context)==null?void 0:i.open)})}),n=n.concat(r);return n}function ok(t,e){let n,r=-1;function a(s,o){o>r&&(n=s,r=o),ir(t,s).forEach(l=>{a(l.id,o+1)})}return a(e,0),t.find(s=>s.id===n)}let Yr=new WeakMap,Ks=new WeakSet,Qs={},fl=0;const ik=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,rf=t=>t&&(t.host||rf(t.parentNode)),lk=(t,e)=>e.map(n=>{if(t.contains(n))return n;const r=rf(n);return t.contains(r)?r:null}).filter(n=>n!=null);function ck(t,e,n,r){const a="data-floating-ui-inert",s=r?"inert":n?"aria-hidden":null,o=lk(e,t),i=new Set,l=new Set(o),c=[];Qs[a]||(Qs[a]=new WeakMap);const d=Qs[a];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=s?m.getAttribute(s):null,b=p!==null&&p!=="false",x=(Yr.get(m)||0)+1,w=(d.get(m)||0)+1;Yr.set(m,x),d.set(m,w),c.push(m),x===1&&b&&Ks.add(m),w===1&&m.setAttribute(a,""),!b&&s&&m.setAttribute(s,"true")}})}return fl++,()=>{c.forEach(h=>{const m=(Yr.get(h)||0)-1,p=(d.get(h)||0)-1;Yr.set(h,m),d.set(h,p),m||(!Ks.has(h)&&s&&h.removeAttribute(s),Ks.delete(h)),p||h.removeAttribute(a)}),fl--,fl||(Yr=new WeakMap,Yr=new WeakMap,Ks=new WeakSet,Qs={})}}function af(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=ft(t[0]).body;return ck(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 sf(t,e){const n=Vs(t,Da());e==="prev"&&n.reverse();const r=n.indexOf(Kt(ft(t)));return n.slice(r+1)[0]}function of(){return sf(document.body,"next")}function lf(){return sf(document.body,"prev")}function Ma(t,e){const n=e||t.currentTarget,r=t.relatedTarget;return!r||!Xe(n,r)}function dk(t){Vs(t,Da()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function uk(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 hl={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 fk;function cf(t){t.key==="Tab"&&(t.target,clearTimeout(fk))}const Zs=z.forwardRef(function(e,n){const[r,a]=z.useState();Ee(()=>(Qi()&&a("button"),document.addEventListener("keydown",cf),()=>{document.removeEventListener("keydown",cf)}),[]);const s={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[or("focus-guard")]:"",style:hl};return z.createElement("span",Sa({},e,s))}),df=z.createContext(null),uf=or("portal");function hk(t){let{id:e,root:n}=t===void 0?{}:t;const[r,a]=z.useState(null),s=Xs(),o=ff(),i=z.useRef(null);return Ee(()=>()=>{r==null||r.remove(),queueMicrotask(()=>{i.current=null})},[r]),Ee(()=>{if(i.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=s,c.setAttribute(uf,""),l.appendChild(c),i.current=c,a(c)},[e,s]),Ee(()=>{if(i.current)return;let l=n||(o==null?void 0:o.portalNode);l&&!Oe(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=s,d.setAttribute(uf,""),l=c||l,l.appendChild(d),i.current=d,a(d)},[e,n,s,o]),r}function gk(t){let{children:e,id:n,root:r=null,preserveTabOrder:a=!0}=t;const s=hk({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&&a&&!!(r||s);return z.useEffect(()=>{if(!s||!a||o!=null&&o.modal)return;function h(m){s&&Ma(m)&&(m.type==="focusin"?uk:dk)(s)}return s.addEventListener("focusin",h,!0),s.addEventListener("focusout",h,!0),()=>{s.removeEventListener("focusin",h,!0),s.removeEventListener("focusout",h,!0)}},[s,a,o==null?void 0:o.modal]),z.createElement(df.Provider,{value:z.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:s,setFocusManagerState:i}),[a,s])},f&&s&&z.createElement(Zs,{"data-type":"outside",ref:l,onFocus:h=>{if(Ma(h,s)){var m;(m=d.current)==null||m.focus()}else{const p=lf()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus()}}}),f&&s&&z.createElement("span",{"aria-owns":s.id,style:hl}),s&&Id.createPortal(e,s),f&&s&&z.createElement(Zs,{"data-type":"outside",ref:c,onFocus:h=>{if(Ma(h,s)){var m;(m=u.current)==null||m.focus()}else{const p=of()||(o==null?void 0:o.refs.domReference.current);p==null||p.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,h.nativeEvent))}}}))}const ff=()=>z.useContext(df),mk=20;let lr=[];function gl(t){lr=lr.filter(n=>n.isConnected);let e=t;if(!(!e||rr(e)==="body")){if(!Yw(e,Da())){const n=Vs(e,Da())[0];if(!n)return;e=n}lr.push(e),lr.length>mk&&(lr=lr.slice(-20))}}function hf(){return lr.slice().reverse().find(t=>t.isConnected)}const pk=z.forwardRef(function(e,n){return z.createElement("button",Sa({},e,{type:"button",ref:n,tabIndex:-1,style:hl}))});function gf(t){const{context:e,children:n,disabled:r=!1,order:a=["content"],guards:s=!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:x,floating:w}}=e,k=typeof o=="number"&&o<0,v=Mu(x)&&k,y=ik()?s:!0,S=qt(a),N=qt(o),C=qt(i),P=Oa(),E=ff(),B=z.useRef(null),F=z.useRef(null),O=z.useRef(!1),D=z.useRef(!1),T=E!=null,L=z.useCallback(function(j){return j===void 0&&(j=w),j?Vs(j,Da()):[]},[w]),V=z.useCallback(j=>{const H=L(j);return S.current.map(A=>x&&A==="reference"?x:w&&A==="floating"?w:H).filter(Boolean).flat()},[x,w,S,L]);z.useEffect(()=>{if(r||!l)return;function j(A){if(A.key==="Tab"){Xe(w,Kt(ft(w)))&&L().length===0&&!v&&at(A);const R=V(),I=Ln(A);S.current[0]==="reference"&&I===x&&(at(A),A.shiftKey?yn(R[R.length-1]):yn(R[1])),S.current[1]==="floating"&&I===w&&A.shiftKey&&(at(A),yn(R[0]))}}const H=ft(w);return H.addEventListener("keydown",j),()=>{H.removeEventListener("keydown",j)}},[r,x,w,l,S,v,L,V]),z.useEffect(()=>{if(r||!d)return;function j(){D.current=!0,setTimeout(()=>{D.current=!1})}function H(A){const R=A.relatedTarget;queueMicrotask(()=>{const I=!(Xe(x,R)||Xe(w,R)||Xe(R,w)||Xe(E==null?void 0:E.portalNode,R)||R!=null&&R.hasAttribute(or("focus-guard"))||P&&(ir(P.nodesRef.current,h).find(M=>{var W,Q;return Xe((W=M.context)==null?void 0:W.elements.floating,R)||Xe((Q=M.context)==null?void 0:Q.elements.domReference,R)})||sk(P.nodesRef.current,h).find(M=>{var W,Q;return((W=M.context)==null?void 0:W.elements.floating)===R||((Q=M.context)==null?void 0:Q.elements.domReference)===R})));R&&I&&!D.current&&R!==hf()&&(O.current=!0,m(!1,A))})}if(w&&rt(x))return x.addEventListener("focusout",H),x.addEventListener("pointerdown",j),!l&&w.addEventListener("focusout",H),()=>{x.removeEventListener("focusout",H),x.removeEventListener("pointerdown",j),!l&&w.removeEventListener("focusout",H)}},[r,x,w,l,h,P,E,m,d]),z.useEffect(()=>{var j;if(r)return;const H=Array.from((E==null||(j=E.portalNode)==null?void 0:j.querySelectorAll("["+or("portal")+"]"))||[]);if(w){const A=[w,...H,B.current,F.current,S.current.includes("reference")||v?x:null].filter(I=>I!=null),R=l||v?af(A,y,!y):af(A);return()=>{R()}}},[r,x,w,l,S,E,v,y]),Ee(()=>{if(r||!w)return;const j=ft(w),H=Kt(j);queueMicrotask(()=>{const A=V(w),R=N.current,I=(typeof R=="number"?A[R]:R.current)||w,M=Xe(w,H);!k&&!M&&u&&yn(I,{preventScroll:I===w})})},[r,u,w,k,V,N]),Ee(()=>{if(r||!w)return;let j=!1;const H=ft(w),A=Kt(H),R=b.current;gl(A);function I(M){let{reason:W,event:Q,nested:G}=M;W==="escape-key"&&f.domReference.current&&gl(f.domReference.current),W==="hover"&&Q.type==="mouseleave"&&(O.current=!0),W==="outside-press"&&(G?(O.current=!1,j=!0):O.current=!(Ou(Q)||Ki(Q)))}return p.on("openchange",I),()=>{p.off("openchange",I);const M=Kt(H),W=Xe(w,M)||P&&ir(P.nodesRef.current,h).some(Z=>{var $;return Xe(($=Z.context)==null?void 0:$.elements.floating,M)});(W||R.openEvent&&["click","mousedown"].includes(R.openEvent.type))&&f.domReference.current&&gl(f.domReference.current);const G=hf();C.current&&!O.current&&rt(G)&&(!(G!==M&&M!==H.body)||W)&&yn(G,{cancelPrevious:!1,preventScroll:j})}},[r,w,C,b,f,p,P,h]),Ee(()=>{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]),Ee(()=>{if(r||!w||typeof MutationObserver!="function"||k)return;const j=()=>{const A=w.getAttribute("tabindex");S.current.includes("floating")||Kt(ft(w))!==f.domReference.current&&L().length===0?A!=="0"&&w.setAttribute("tabindex","0"):A!=="-1"&&w.setAttribute("tabindex","-1")};j();const H=new MutationObserver(j);return H.observe(w,{childList:!0,subtree:!0,attributes:!0}),()=>{H.disconnect()}},[r,w,f,S,L,k]);function K(j){return r||!c||!l?null:z.createElement(pk,{ref:j==="start"?B:F,onClick:H=>m(!1,H.nativeEvent)},typeof c=="string"?c:"Dismiss")}const q=!r&&y&&(T||l);return z.createElement(z.Fragment,null,q&&z.createElement(Zs,{"data-type":"inside",ref:E==null?void 0:E.beforeInsideRef,onFocus:j=>{if(l){const A=V();yn(a[0]==="reference"?A[0]:A[A.length-1])}else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(O.current=!1,Ma(j,E.portalNode)){const A=of()||x;A==null||A.focus()}else{var H;(H=E.beforeOutsideRef.current)==null||H.focus()}}}),!v&&K("start"),n,K("end"),q&&z.createElement(Zs,{"data-type":"inside",ref:E==null?void 0:E.afterInsideRef,onFocus:j=>{if(l)yn(V()[0]);else if(E!=null&&E.preserveTabOrder&&E.portalNode)if(d&&(O.current=!0),Ma(j,E.portalNode)){const A=lf()||x;A==null||A.focus()}else{var H;(H=E.afterOutsideRef.current)==null||H.focus()}}}))}const ml=new Set,bk=z.forwardRef(function(e,n){let{lockScroll:r=!1,...a}=e;const s=Xs();return Ee(()=>{if(!r)return;ml.add(s);const o=/iP(hone|ad|od)|iOS/.test(Gi()),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()=>{ml.delete(s),ml.size===0&&(Object.assign(i,{overflow:"",[c]:""}),o&&(Object.assign(i,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f)))}},[s,r]),z.createElement("div",Sa({ref:n},a,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}}))});function mf(t){return rt(t.target)&&t.target.tagName==="BUTTON"}function pf(t){return qi(t)}function bf(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,dataRef:a,elements:{domReference:s}}=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&&(js(u.current,!0)&&c||i!=="click"&&(n&&l&&(!a.current.openEvent||a.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}js(u.current,!0)&&c||(n&&l&&(!a.current.openEvent||a.current.openEvent.type==="click")?r(!1,h.nativeEvent,"click"):r(!0,h.nativeEvent,"click"))},onKeyDown(h){u.current=void 0,!(h.defaultPrevented||!d||mf(h))&&(h.key===" "&&!pf(s)&&(h.preventDefault(),f.current=!0),h.key==="Enter"&&r(!(n&&l),h.nativeEvent,"click"))},onKeyUp(h){h.defaultPrevented||!d||mf(h)||pf(s)||h.key===" "&&f.current&&(f.current=!1,r(!(n&&l),h.nativeEvent,"click"))}}}:{},[o,a,i,c,d,s,l,n,r])}const yk={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},vk={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},yf=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 vf(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,nodeId:a,elements:{reference:s,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:x}=e,w=Oa(),k=Jt(typeof u=="function"?u:()=>!1),v=typeof u=="function"?k:u,y=z.useRef(!1),S=z.useRef(!1),{escapeKey:N,outsidePress:C}=yf(b),{escapeKey:P,outsidePress:E}=yf(x),B=Jt(T=>{if(!n||!c||!d||T.key!=="Escape")return;const L=w?ir(w.nodesRef.current,a):[];if(!N&&(T.stopPropagation(),L.length>0)){let V=!0;if(L.forEach(K=>{var q;if((q=K.context)!=null&&q.open&&!K.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}r(!1,Ix(T)?T.nativeEvent:T,"escape-key")}),F=Jt(T=>{var L;const V=()=>{var K;B(T),(K=Ln(T))==null||K.removeEventListener("keydown",V)};(L=Ln(T))==null||L.addEventListener("keydown",V)}),O=Jt(T=>{const L=y.current;y.current=!1;const V=S.current;if(S.current=!1,f==="click"&&V||L||typeof v=="function"&&!v(T))return;const K=Ln(T),q="["+or("inert")+"]",j=ft(i).querySelectorAll(q);let H=Oe(K)?K:null;for(;H&&!An(H);){const I=pn(H);if(An(I)||!Oe(I))break;H=I}if(j.length&&Oe(K)&&!Rx(K)&&!Xe(K,i)&&Array.from(j).every(I=>!Xe(H,I)))return;if(rt(K)&&i){const I=K.clientWidth>0&&K.scrollWidth>K.clientWidth,M=K.clientHeight>0&&K.scrollHeight>K.clientHeight;let W=M&&T.offsetX>K.clientWidth;if(M&&jt(K).direction==="rtl"&&(W=T.offsetX<=K.offsetWidth-K.clientWidth),W||I&&T.offsetY>K.clientHeight)return}const A=w&&ir(w.nodesRef.current,a).some(I=>{var M;return Ji(T,(M=I.context)==null?void 0:M.elements.floating)});if(Ji(T,i)||Ji(T,o)||A)return;const R=w?ir(w.nodesRef.current,a):[];if(R.length>0){let I=!0;if(R.forEach(M=>{var W;if((W=M.context)!=null&&W.open&&!M.context.dataRef.current.__outsidePressBubbles){I=!1;return}}),!I)return}r(!1,T,"outside-press")}),D=Jt(T=>{var L;const V=()=>{var K;O(T),(K=Ln(T))==null||K.removeEventListener(f,V)};(L=Ln(T))==null||L.addEventListener(f,V)});return z.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=N,l.current.__outsidePressBubbles=C;function T(K){r(!1,K,"ancestor-scroll")}const L=ft(i);d&&L.addEventListener("keydown",P?F:B,P),v&&L.addEventListener(f,E?D:O,E);let V=[];return p&&(Oe(o)&&(V=Fn(o)),Oe(i)&&(V=V.concat(Fn(i))),!Oe(s)&&s&&s.contextElement&&(V=V.concat(Fn(s.contextElement)))),V=V.filter(K=>{var q;return K!==((q=L.defaultView)==null?void 0:q.visualViewport)}),V.forEach(K=>{K.addEventListener("scroll",T,{passive:!0})}),()=>{d&&L.removeEventListener("keydown",P?F:B,P),v&&L.removeEventListener(f,E?D:O,E),V.forEach(K=>{K.removeEventListener("scroll",T)})}},[l,i,o,s,d,v,f,n,r,p,c,N,C,B,P,F,O,E,D]),z.useEffect(()=>{y.current=!1},[v,f]),z.useMemo(()=>c?{reference:{onKeyDown:B,[yk[m]]:T=>{h&&r(!1,T.nativeEvent,"reference-press")}},floating:{onKeyDown:B,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[vk[f]]:()=>{y.current=!0}}}:{},[c,h,f,m,r,B])}let pl;process.env.NODE_ENV!=="production"&&(pl=new Set);function xf(t){var e;t===void 0&&(t={});const{open:n=!1,onOpenChange:r,nodeId:a}=t;if(process.env.NODE_ENV!=="production"){var s;const C="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((s=t.elements)!=null&&s.reference&&!Oe(t.elements.reference)){var o;if(!((o=pl)!=null&&o.has(C))){var i;(i=pl)==null||i.add(C),console.error(C)}}}const[l,c]=z.useState(null),d=((e=t.elements)==null?void 0:e.reference)||l,u=yw(t),f=Oa(),h=Gs()!=null,m=Jt((C,P,E)=>{C&&(b.current.openEvent=P),x.emit("openchange",{open:C,event:P,reason:E,nested:h}),r==null||r(C,P,E)}),p=z.useRef(null),b=z.useRef({}),x=z.useState(()=>tk())[0],w=Xs(),k=z.useCallback(C=>{const P=Oe(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;u.refs.setReference(P)},[u.refs]),v=z.useCallback(C=>{(Oe(C)||C===null)&&(p.current=C,c(C)),(Oe(u.refs.reference.current)||u.refs.reference.current===null||C!==null&&!Oe(C))&&u.refs.setReference(C)},[u.refs]),y=z.useMemo(()=>({...u.refs,setReference:v,setPositionReference:k,domReference:p}),[u.refs,v,k]),S=z.useMemo(()=>({...u.elements,domReference:d}),[u.elements,d]),N=z.useMemo(()=>({...u,refs:y,elements:S,dataRef:b,nodeId:a,floatingId:w,events:x,open:n,onOpenChange:m}),[u,a,w,x,n,m,y,S]);return Ee(()=>{const C=f==null?void 0:f.nodesRef.current.find(P=>P.id===a);C&&(C.context=N)}),z.useMemo(()=>({...u,context:N,refs:y,elements:S}),[u,y,S,N])}function xk(t,e){e===void 0&&(e={});const{open:n,onOpenChange:r,events:a,refs:s,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=mt(o);function h(){!n&&rt(o)&&o===Kt(ft(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 a.on("openchange",f),()=>{a.off("openchange",f)}},[a,i]),z.useEffect(()=>()=>{clearTimeout(d.current)},[]),z.useMemo(()=>i?{reference:{onPointerDown(f){Ki(f.nativeEvent)||(u.current=!1)},onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const h=Ln(f.nativeEvent);if(l&&Oe(h))try{if(Qi()&&Du())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!u.current&&!qi(h))return}r(!0,f.nativeEvent,"focus")},onBlur(f){c.current=!1;const h=f.relatedTarget,m=Oe(h)&&h.hasAttribute(or("focus-guard"))&&h.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{const p=Kt(o?o.ownerDocument:document);!h&&p===o||Xe(s.floating.current,p)||Xe(o,p)||m||r(!1,f.nativeEvent,"focus")})}}}:{},[i,l,o,s,r])}const wf="active",kf="selected";function bl(t,e,n){const r=new Map,a=n==="item";let s=t;if(a&&t){const{[wf]:o,[kf]:i,...l}=t;s=l}return{...n==="floating"&&{tabIndex:-1},...s,...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(!(a&&[wf,kf].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 _f(t){t===void 0&&(t=[]);const e=t,n=z.useCallback(s=>bl(s,t,"reference"),e),r=z.useCallback(s=>bl(s,t,"floating"),e),a=z.useCallback(s=>bl(s,t,"item"),t.map(s=>s==null?void 0:s.item));return z.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:a}),[n,r,a])}let Sf=!1;function Js(t,e,n){switch(t){case"vertical":return e;case"horizontal":return n;default:return e||n}}function Of(t,e){return Js(e,t===ll||t===ka,t===Br||t===Hr)}function yl(t,e,n){return Js(e,t===ka,n?t===Br:t===Hr)||t==="Enter"||t===" "||t===""}function wk(t,e,n){return Js(e,n?t===Br:t===Hr,t===ka)}function Df(t,e,n){return Js(e,n?t===Hr:t===Br,t===ll)}function kk(t,e){const{open:n,onOpenChange:r,refs:a,elements:{domReference:s,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:x="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:k=!0,disabledIndices:v=void 0,orientation:y="vertical",cols:S=1,scrollItemIntoView:N=!0,virtualItemRef:C,itemSizes:P,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 B=Gs(),F=Oa(),O=Jt(c),D=z.useRef(x),T=z.useRef(u??-1),L=z.useRef(null),V=z.useRef(!0),K=z.useRef(O),q=z.useRef(!!o),j=z.useRef(!1),H=z.useRef(!1),A=qt(v),R=qt(n),I=qt(N),[M,W]=z.useState(),[Q,G]=z.useState(),Z=Jt(function(Y,re,te){te===void 0&&(te=!1);const ie=Y.current[re.current];ie&&(b?(W(ie.id),F==null||F.events.emit("virtualfocus",ie),C&&(C.current=ie)):yn(ie,{preventScroll:!0,sync:Du()&&Qi()?Sf||j.current:!1}),requestAnimationFrame(()=>{const fe=I.current;fe&&ie&&(te||!V.current)&&(ie.scrollIntoView==null||ie.scrollIntoView(typeof fe=="boolean"?{block:"nearest",inline:"nearest"}:fe))}))});Ee(()=>{document.createElement("div").focus({get preventScroll(){return Sf=!0,!1}})},[]),Ee(()=>{d&&(n&&o?D.current&&u!=null&&(H.current=!0,T.current=u,O(u)):q.current&&(T.current=-1,K.current(null)))},[d,n,o,u,O]),Ee(()=>{if(d&&n&&o)if(l==null){if(j.current=!1,u!=null)return;if(q.current&&(T.current=-1,Z(i,T)),!q.current&&D.current&&(L.current!=null||D.current===!0&&L.current==null)){let Y=0;const re=()=>{i.current[0]==null?(Y<2&&(Y?requestAnimationFrame:queueMicrotask)(re),Y++):(T.current=L.current==null||yl(L.current,y,p)||m?cl(i,A.current):qu(i,A.current),L.current=null,O(T.current))};re()}}else _a(i,l)||(T.current=l,Z(i,T,H.current),H.current=!1)},[d,n,o,l,u,m,i,y,p,O,Z,A]),Ee(()=>{var Y;if(!d||o||!F||b||!q.current)return;const re=F.nodesRef.current,te=(Y=re.find(ce=>ce.id===B))==null||(Y=Y.context)==null?void 0:Y.elements.floating,ie=Kt(ft(o)),fe=re.some(ce=>ce.context&&Xe(ce.context.elements.floating,ie));te&&!fe&&V.current&&te.focus({preventScroll:!0})},[d,o,F,B,b]),Ee(()=>{if(!d||!F||!b||B)return;function Y(re){G(re.id),C&&(C.current=re)}return F.events.on("virtualfocus",Y),()=>{F.events.off("virtualfocus",Y)}},[d,F,b,B,C]),Ee(()=>{K.current=O,q.current=!!o}),Ee(()=>{n||(L.current=null)},[n]);const $=l!=null,ne=z.useMemo(()=>{function Y(te){if(!n)return;const ie=i.current.indexOf(te);ie!==-1&&O(ie)}return{onFocus(te){let{currentTarget:ie}=te;Y(ie)},onClick:te=>{let{currentTarget:ie}=te;return ie.focus({preventScroll:!0})},...w&&{onMouseMove(te){let{currentTarget:ie}=te;Y(ie)},onPointerLeave(te){let{pointerType:ie}=te;!V.current||ie==="touch"||(T.current=-1,Z(i,T),O(null),b||yn(a.floating.current,{preventScroll:!0}))}}}},[n,a,Z,w,i,O,b]);return z.useMemo(()=>{if(!d)return{};const Y=A.current;function re(ae){if(V.current=!1,j.current=!0,!R.current&&ae.currentTarget===a.floating.current)return;if(m&&Df(ae.key,y,p)){at(ae),r(!1,ae.nativeEvent,"list-navigation"),rt(s)&&!b&&s.focus();return}const Le=T.current,ge=cl(i,Y),Ae=qu(i,Y);if(ae.key==="Home"&&(at(ae),T.current=ge,O(T.current)),ae.key==="End"&&(at(ae),T.current=Ae,O(T.current)),S>1){const Be=P||Array.from({length:i.current.length},()=>({width:1,height:1})),Ue=Xw(Be,S,E),Et=Ue.findIndex(Pt=>Pt!=null&&!(Y!=null&&Y.includes(Pt))),Tt=Ue.reduce((Pt,$n,Nt)=>$n!=null&&!(Y!=null&&Y.includes($n))?Nt:Pt,-1);if(T.current=Ue[Uw({current:Ue.map(Pt=>Pt!=null?i.current[Pt]:null)},{event:ae,orientation:y,loop:h,cols:S,disabledIndices:Kw([...Y||[],void 0],Ue),minIndex:Et,maxIndex:Tt,prevIndex:Gw(T.current,Be,Ue,S,ae.key===ka?"bl":ae.key===Hr?"tr":"tl"),stopEvent:!0})],O(T.current),y==="both")return}if(Of(ae.key,y)){if(at(ae),n&&!b&&Kt(ae.currentTarget.ownerDocument)===ae.currentTarget){T.current=yl(ae.key,y,p)?ge:Ae,O(T.current);return}yl(ae.key,y,p)?h?T.current=Le>=Ae?f&&Le!==i.current.length?-1:ge:lt(i,{startingIndex:Le,disabledIndices:Y}):T.current=Math.min(Ae,lt(i,{startingIndex:Le,disabledIndices:Y})):h?T.current=Le<=ge?f&&Le!==-1?i.current.length:Ae:lt(i,{startingIndex:Le,decrement:!0,disabledIndices:Y}):T.current=Math.max(ge,lt(i,{startingIndex:Le,decrement:!0,disabledIndices:Y})),_a(i,T.current)?O(null):O(T.current)}}function te(ae){x==="auto"&&Ou(ae.nativeEvent)&&(D.current=!0)}function ie(ae){D.current=x,x==="auto"&&Ki(ae.nativeEvent)&&(D.current=!0)}const fe=b&&n&&$&&{"aria-activedescendant":Q||M},ce=i.current.find(ae=>(ae==null?void 0:ae.id)===M);return{reference:{...fe,onKeyDown(ae){V.current=!1;const Le=ae.key.indexOf("Arrow")===0,ge=wk(ae.key,y,p),Ae=Df(ae.key,y,p),Be=Of(ae.key,y),Ue=(m?ge:Be)||ae.key==="Enter"||ae.key.trim()==="";if(b&&n){const $n=F==null?void 0:F.nodesRef.current.find(Ii=>Ii.parentId==null),Nt=F&&$n?ok(F.nodesRef.current,$n.id):null;if(Le&&Nt&&C){const Ii=new KeyboardEvent("keydown",{key:ae.key,bubbles:!0});if(ge||Ae){var Et,Tt;const tI=((Et=Nt.context)==null?void 0:Et.elements.domReference)===ae.currentTarget,xy=Ae&&!tI?(Tt=Nt.context)==null?void 0:Tt.elements.domReference:ge?ce:null;xy&&(at(ae),xy.dispatchEvent(Ii),G(void 0))}if(Be&&Nt.context&&Nt.context.open&&Nt.parentId&&ae.currentTarget!==Nt.context.elements.domReference){var Pt;at(ae),(Pt=Nt.context.elements.domReference)==null||Pt.dispatchEvent(Ii);return}}return re(ae)}if(!(!n&&!k&&Le)){if(Ue&&(L.current=m&&Be?null:ae.key),m){ge&&(at(ae),n?(T.current=cl(i,Y),O(T.current)):r(!0,ae.nativeEvent,"list-navigation"));return}Be&&(u!=null&&(T.current=u),at(ae),!n&&k?r(!0,ae.nativeEvent,"list-navigation"):re(ae),n&&O(T.current))}},onFocus(){n&&O(null)},onPointerDown:ie,onMouseDown:te,onClick:te},floating:{"aria-orientation":y==="both"?void 0:y,...!Mu(s)&&fe,onKeyDown:re,onPointerMove(){V.current=!0}},item:ne}},[s,a,M,Q,A,R,i,d,y,p,b,n,$,m,u,k,f,S,h,x,O,r,ne,F,C,P,E])}const _k=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Mf(t,e){var n;e===void 0&&(e={});const{open:r,floatingId:a}=t,{enabled:s=!0,role:o="dialog"}=e,i=(n=_k.get(o))!=null?n:o,l=Xs(),d=Gs()!=null;return z.useMemo(()=>{if(!s)return{};const u={id:a,...i&&{role:i}};return i==="tooltip"||o==="label"?{reference:{["aria-"+(o==="label"?"labelledby":"describedby")]:r?a:void 0},floating:u}:{reference:{"aria-expanded":r?"true":"false","aria-haspopup":i==="alertdialog"?"dialog":i,"aria-controls":r?a: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:a+"-option"}};switch(o){case"select":return{...p,"aria-selected":h&&m};case"combobox":return{...p,...h&&{"aria-selected":!0}}}return{}}}},[s,o,i,r,a,l,d])}function Sk(t,e){var n;const{open:r,dataRef:a}=t,{listRef:s,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),x=z.useRef(null),w=Jt(i),k=Jt(l),v=qt(d),y=qt(f);return Ee(()=>{r&&(clearTimeout(m.current),x.current=null,p.current="")},[r]),Ee(()=>{if(r&&p.current===""){var S;b.current=(S=h??o)!=null?S:-1}},[r,h,o]),z.useMemo(()=>{if(!c)return{};function S(P){P?a.current.typing||(a.current.typing=P,k(P)):a.current.typing&&(a.current.typing=P,k(P))}function N(P,E,B){const F=v.current?v.current(E,B):E.find(O=>(O==null?void 0:O.toLocaleLowerCase().indexOf(B.toLocaleLowerCase()))===0);return F?P.indexOf(F):-1}function C(P){const E=s.current;if(p.current.length>0&&p.current[0]!==" "&&(N(E,E,p.current)===-1?S(!1):P.key===" "&&at(P)),E==null||y.current.includes(P.key)||P.key.length!==1||P.ctrlKey||P.metaKey||P.altKey)return;r&&P.key!==" "&&(at(P),S(!0)),E.every(D=>{var T,L;return D?((T=D[0])==null?void 0:T.toLocaleLowerCase())!==((L=D[1])==null?void 0:L.toLocaleLowerCase()):!0})&&p.current===P.key&&(p.current="",b.current=x.current),p.current+=P.key,clearTimeout(m.current),m.current=setTimeout(()=>{p.current="",b.current=x.current,S(!1)},u);const F=b.current,O=N(E,[...E.slice((F||0)+1),...E.slice(0,(F||0)+1)],p.current);O!==-1?(w(O),x.current=O):P.key!==" "&&(p.current="",S(!1))}return{reference:{onKeyDown:C},floating:{onKeyDown:C,onKeyUp(P){P.key===" "&&S(!1)}}}},[c,r,a,s,u,y,v,w,k])}function Cf(t,e){const[n,r]=t;let a=!1;const s=e.length;for(let o=0,i=s-1;o<s;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&&(a=!a)}return a}function Ok(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function Dk(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=t;let a,s=!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,w=Math.sqrt(p*p+b*b)/m;return o=u,i=f,l=h,w}const d=u=>{let{x:f,y:h,placement:m,elements:p,onClose:b,nodeId:x,tree:w}=u;return function(v){function y(){clearTimeout(a),b()}if(clearTimeout(a),!p.domReference||!p.floating||m==null||f==null||h==null)return;const{clientX:S,clientY:N}=v,C=[S,N],P=Ln(v),E=v.type==="mouseleave",B=Xe(p.floating,P),F=Xe(p.domReference,P),O=p.domReference.getBoundingClientRect(),D=p.floating.getBoundingClientRect(),T=m.split("-")[0],L=f>D.right-D.width/2,V=h>D.bottom-D.height/2,K=Ok(C,O),q=D.width>O.width,j=D.height>O.height,H=(q?O:D).left,A=(q?O:D).right,R=(j?O:D).top,I=(j?O:D).bottom;if(B&&(s=!0,!E))return;if(F&&(s=!1),F&&!E){s=!0;return}if(E&&Oe(v.relatedTarget)&&Xe(p.floating,v.relatedTarget)||w&&ir(w.nodesRef.current,x).some(Q=>{let{context:G}=Q;return G==null?void 0:G.open}))return;if(T==="top"&&h>=O.bottom-1||T==="bottom"&&h<=O.top+1||T==="left"&&f>=O.right-1||T==="right"&&f<=O.left+1)return y();let M=[];switch(T){case"top":M=[[H,O.top+1],[H,D.bottom-1],[A,D.bottom-1],[A,O.top+1]];break;case"bottom":M=[[H,D.top+1],[H,O.bottom-1],[A,O.bottom-1],[A,D.top+1]];break;case"left":M=[[D.right-1,I],[D.right-1,R],[O.left+1,R],[O.left+1,I]];break;case"right":M=[[O.right-1,I],[O.right-1,R],[D.left+1,R],[D.left+1,I]];break}function W(Q){let[G,Z]=Q;switch(T){case"top":{const $=[q?G+e/2:L?G+e*4:G-e*4,Z+e+1],ne=[q?G-e/2:L?G+e*4:G-e*4,Z+e+1],Y=[[D.left,L||q?D.bottom-e:D.top],[D.right,L?q?D.bottom-e:D.top:D.bottom-e]];return[$,ne,...Y]}case"bottom":{const $=[q?G+e/2:L?G+e*4:G-e*4,Z-e],ne=[q?G-e/2:L?G+e*4:G-e*4,Z-e],Y=[[D.left,L||q?D.top+e:D.bottom],[D.right,L?q?D.top+e:D.bottom:D.top+e]];return[$,ne,...Y]}case"left":{const $=[G+e+1,j?Z+e/2:V?Z+e*4:Z-e*4],ne=[G+e+1,j?Z-e/2:V?Z+e*4:Z-e*4];return[...[[V||j?D.right-e:D.left,D.top],[V?j?D.right-e:D.left:D.right-e,D.bottom]],$,ne]}case"right":{const $=[G-e,j?Z+e/2:V?Z+e*4:Z-e*4],ne=[G-e,j?Z-e/2:V?Z+e*4:Z-e*4],Y=[[V||j?D.left+e:D.right,D.top],[V?j?D.left+e:D.right:D.left+e,D.bottom]];return[$,ne,...Y]}}}if(!Cf([S,N],M)){if(s&&!K)return y();if(!E&&r){const Q=c(v.clientX,v.clientY);if(Q!==null&&Q<.1)return y()}Cf([S,N],W([f,h]))?!s&&r&&(a=window.setTimeout(y,40)):y()}}};return d.__options={blockPointerEvents:n},d}const Mk=({arrowRef:t,placement:e})=>{const n=[];return n.push(xw(8)),n.push(e==="auto"?_w():kw()),n.push(ww({padding:8})),t!=null&&t.current&&n.push(Sw({element:t.current})),n},Ck=({placement:t})=>t==="auto"?void 0:t,Ek=({placement:t})=>({top:"bottom",right:"left",bottom:"top",left:"right"})[t.split("-")[0]],Ef=({open:t,arrowRef:e,placement:n="top",setOpen:r})=>xf({placement:Ck({placement:n}),open:t,onOpenChange:r,whileElementsMounted:Hu,middleware:Mk({placement:n,arrowRef:e})}),Tf=({context:t,trigger:e,role:n="tooltip",interactions:r=[]})=>_f([bf(t,{enabled:e==="click"}),ak(t,{enabled:e==="hover",handleClose:Dk()}),vf(t),Mf(t,{role:n}),...r]),Pf=_.createContext(void 0);function vl(){const t=_.useContext(Pf);if(!t)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return t}const xl=({className:t,theme:e={},...n})=>{const{theme:r}=vl(),a=e.divider??r.floating.divider;return g.jsx("div",{className:U(a,t),...n})},Nf=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=vl(),s=n.header??a.floating.header;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:U(s,e),...r,children:t}),g.jsx(xl,{})]})},wl=_.forwardRef(({children:t,className:e,icon:n,onClick:r,theme:a={},...s},o)=>{const{ref:i,index:l}=qw({label:typeof t=="string"?t:void 0}),c=Ju([o,i]),{theme:d,activeIndex:u,dismissOnClick:f,getItemProps:h,handleSelect:m}=vl(),p=u===l,b=ee(d.floating.item,a),x=s;return g.jsx("li",{role:"menuitem",className:b.container,children:g.jsxs(Wi,{ref:c,className:U(b.base,e),...x,...h({onClick:()=>{r==null||r(),f&&m(null)}}),tabIndex:p?0:-1,children:[n&&g.jsx(n,{className:b.icon}),t]})})});wl.displayName="DropdownItem";const Tk={top:Vy,right:Hd,bottom:Bd,left:Yy},Pk=({refs:t,children:e,inline:n,theme:r,disabled:a,setButtonWidth:s,getReferenceProps:o,renderTrigger:i,...l})=>{const c=t.reference,d=o();if(_.useEffect(()=>{c.current&&(s==null||s(c.current.clientWidth))},[c,s]),i){const u=i(r);return _.cloneElement(u,{ref:t.setReference,disabled:a,...d,...u.props})}return n?g.jsx("button",{type:"button",ref:t.setReference,className:r==null?void 0:r.inlineWrapper,disabled:a,...d,children:e}):g.jsx(pa,{...l,disabled:a,type:"button",ref:t.setReference,...d,children:e})},jf=({children:t,className:e,dismissOnClick:n=!0,theme:r={},renderTrigger:a,...s})=>{const[o,i]=_.useState(!1),[l,c]=_.useState(null),[d,u]=_.useState(null),[f,h]=_.useState(void 0),m=_.useRef([]),p=_.useRef([]),b=ee(de().dropdown,r),x=s,w=s["data-testid"]||"flowbite-dropdown-target",{placement:k=s.inline?"bottom-start":"bottom",trigger:v="click",label:y,inline:S,arrowIcon:N=!0,...C}=x,P=_.useCallback(j=>{u(j),i(!1)},[]),E=_.useCallback(j=>{o?c(j):P(j)},[o,P]),{context:B,floatingStyles:F,refs:O}=Ef({open:o,setOpen:i,placement:k}),D=kk(B,{listRef:m,activeIndex:l,selectedIndex:d,onNavigate:c}),T=Sk(B,{listRef:p,activeIndex:l,selectedIndex:d,onMatch:E}),{getReferenceProps:L,getFloatingProps:V,getItemProps:K}=Tf({context:B,role:"menu",trigger:v,interactions:[D,T]}),q=_.useMemo(()=>{const[j]=k.split("-");return Tk[j]??Bd},[k]);return g.jsxs(Pf.Provider,{value:{theme:b,activeIndex:l,dismissOnClick:n,getItemProps:K,handleSelect:P},children:[g.jsxs(Pk,{...C,refs:O,inline:S,theme:b,"data-testid":w,className:U(b.floating.target,C.className),setButtonWidth:h,getReferenceProps:L,renderTrigger:a,children:[y,N&&g.jsx(q,{className:b.arrowIcon})]}),o&&g.jsx(gf,{context:B,modal:!1,children:g.jsx("div",{ref:O.setFloating,style:{...F,minWidth:f},"data-testid":"flowbite-dropdown","aria-expanded":o,...V({className:U(b.floating.base,b.floating.animation,"duration-100",!o&&b.floating.hidden,b.floating.style.auto,e)}),children:g.jsx(Jw,{elementsRef:m,labelsRef:p,children:g.jsx("ul",{className:b.content,tabIndex:-1,children:t})})})})]})};jf.displayName="Dropdown",Nf.displayName="Dropdown.Header",xl.displayName="Dropdown.Divider";const Nk=Object.assign(jf,{Item:wl,Header:Nf,Divider:xl}),If=_.forwardRef(({className:t,color:e="gray",helperText:n,sizing:r="md",theme:a={},...s},o)=>{const i=ee(de().fileInput,a);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:U(i.root.base,t),children:g.jsx("div",{className:i.field.base,children:g.jsx("input",{className:U(i.field.input.base,i.field.input.colors[e],i.field.input.sizes[r]),...s,type:"file",ref:o})})}),n&&g.jsx(ba,{color:e,children:n})]})});If.displayName="FileInput";const jk=_.forwardRef(({label:t,helperText:e,color:n="default",sizing:r="md",variant:a,disabled:s=!1,theme:o={},className:i,...l},c)=>{const d=_.useId(),u=ee(de().floatingLabel,o);return g.jsxs("div",{children:[g.jsxs("div",{className:U("relative",a==="standard"?"z-0":""),children:[g.jsx("input",{type:"text",id:l.id?l.id:"floatingLabel"+d,"aria-describedby":"outlined_success_help",className:U(u.input[n][a][r],i),placeholder:" ","data-testid":"floating-label",disabled:s,...l,ref:c}),g.jsx("label",{htmlFor:l.id?l.id:"floatingLabel"+d,className:U(u.label[n][a][r],i),children:t})]}),g.jsx("p",{id:"outlined_helper_text"+d,className:U(u.helperText[n],i),children:e})]})});jk.displayName="FloatingLabel";const Rf=({alt:t,className:e,children:n,href:r,name:a,src:s,theme:o={},...i})=>{const l=ee(de().footer.brand,o);return g.jsx("div",{children:r?g.jsxs("a",{"data-testid":"flowbite-footer-brand",href:r,className:U(l.base,e),...i,children:[g.jsx("img",{alt:t,src:s,className:l.img}),g.jsx("span",{"data-testid":"flowbite-footer-brand-span",className:l.span,children:a}),n]}):g.jsx("img",{alt:t,"data-testid":"flowbite-footer-brand",src:s,className:U(l.img,e),...i})})},Af=({by:t,className:e,href:n,theme:r={},year:a,...s})=>{const o=ee(de().footer.copyright,r);return g.jsxs("div",{"data-testid":"flowbite-footer-copyright",className:U(o.base,e),...s,children:["© ",a,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})]})},Ff=({className:t,theme:e={},...n})=>{const r=ee(de().footer.divider,e);return g.jsx("hr",{"data-testid":"footer-divider",className:U(r.base,t),...n})},Lf=({ariaLabel:t,className:e,href:n,icon:r,theme:a={},...s})=>{const o=ee(de().footer.icon,a);return g.jsx("div",{children:n?g.jsx("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:n,className:U(o.base,e),...s,children:g.jsx(r,{className:o.size})}):g.jsx(r,{"data-testid":"flowbite-footer-icon",className:o.size,...s})})},Wf=({as:t="a",children:e,className:n,href:r,theme:a={},...s})=>{const o=ee(de().footer.groupLink.link,a);return g.jsx("li",{className:U(o.base,n),children:g.jsx(t,{href:r,className:o.href,...s,children:e})})},zf=({children:t,className:e,col:n=!1,theme:r={},...a})=>{const s=ee(de().footer.groupLink,r);return g.jsx("ul",{"data-testid":"footer-groupLink",className:U(s.base,n&&s.col,e),...a,children:t})},Bf=({as:t="h2",className:e,theme:n={},title:r,...a})=>{const s=ee(de().footer.title,n);return g.jsx(t,{"data-testid":"flowbite-footer-title",className:U(s.base,e),...a,children:r})},Hf=({bgDark:t=!1,children:e,className:n,container:r=!1,theme:a={},...s})=>{const o=ee(de().footer,a);return g.jsx("footer",{"data-testid":"flowbite-footer",className:U(o.root.base,t&&o.root.bgDark,r&&o.root.container,n),...s,children:e})};Hf.displayName="Footer",Af.displayName="Footer.Copyright",Wf.displayName="Footer.Link",Rf.displayName="Footer.Brand",zf.displayName="Footer.LinkGroup",Lf.displayName="Footer.Icon",Bf.displayName="Footer.Title",Ff.displayName="Footer.Divider",Object.assign(Hf,{Copyright:Af,Link:Wf,LinkGroup:zf,Brand:Rf,Icon:Lf,Title:Bf,Divider:Ff});const kl=({children:t,className:e,color:n="default",disabled:r=!1,theme:a={},value:s,...o})=>{const i=ee(de().label,a);return g.jsx("label",{className:U(i.root.base,i.root.colors[n],r&&i.root.disabled,e),"data-testid":"flowbite-label",...o,children:s??t??""})};kl.displayName="Label";const Yf=({children:t,className:e,icon:n,theme:r={},...a})=>{const s=ee(de().list.item,r);return g.jsxs("li",{className:U(s.withIcon[n?"on":"off"],e),...a,children:[n&&g.jsx(n,{className:U(s.icon)}),t]})},Vf=({children:t,className:e,unstyled:n,nested:r,ordered:a,horizontal:s,theme:o={},...i})=>{const l=ee(de().list,o),c=a?"ol":"ul";return g.jsx(c,{className:U(l.root.base,l.root.ordered[a?"on":"off"],n&&l.root.unstyled,r&&l.root.nested,s&&l.root.horizontal,e),...i,children:t})};Vf.displayName="List",Yf.displayName="List.Item",Object.assign(Vf,{Item:Yf});const Uf=({active:t,children:e,className:n,href:r,icon:a,onClick:s,theme:o={},disabled:i,...l})=>{const c=ee(de().listGroup.item,o),d=typeof r<"u",u=d?"a":"button";return g.jsx("li",{className:U(c.base,n),children:g.jsxs(u,{href:r,onClick:s,type:d?void 0:"button",disabled:i,className:U(c.link.active[t?"on":"off"],c.link.disabled[i?"on":"off"],c.link.base,c.link.href[d?"on":"off"]),...l,children:[a&&g.jsx(a,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:c.link.icon}),e]})})},Xf=({children:t,className:e,theme:n={},...r})=>{const a=ee(de().listGroup,n);return g.jsx("ul",{className:U(a.root.base,e),...r,children:t})};Xf.displayName="ListGroup",Uf.displayName="ListGroup.Item",Object.assign(Xf,{Item:Uf});const Gf=_.createContext(void 0);function _l(){const t=_.useContext(Gf);if(!t)throw new Error("useModalContext should be used within the ModalContext provider!");return t}const Kf=({children:t,className:e,theme:n={},...r})=>{const{theme:a,popup:s}=_l(),o=ee(a.body,n);return g.jsx("div",{className:U(o.base,s&&[o.popup],e),...r,children:t})},Qf=({children:t,className:e,theme:n={},...r})=>{const{theme:a,popup:s}=_l(),o=ee(a.footer,n);return g.jsx("div",{className:U(o.base,!s&&o.popup,e),...r,children:t})},Zf=({as:t="h3",children:e,className:n,theme:r={},id:a,...s})=>{const o=_.useId(),i=a||o,{theme:l,popup:c,onClose:d,setHeaderId:u}=_l(),f=ee(l.header,r);return _.useLayoutEffect(()=>(u(i),()=>u(void 0)),[i,u]),g.jsxs("div",{className:U(f.base,c&&f.popup,n),...s,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(Uy,{"aria-hidden":!0,className:f.close.icon})})]})},Jf=_.forwardRef(({children:t,className:e,dismissible:n=!1,onClose:r,popup:a,position:s="center",root:o,show:i,size:l="2xl",theme:c={},initialFocus:d,...u},f)=>{const[h,m]=_.useState(void 0),p=ee(de().modal,c),{context:b}=xf({open:i,onOpenChange:()=>r&&r()}),x=Ju([b.refs.setFloating,f]),w=bf(b),k=vf(b,{outsidePressEvent:"mousedown",enabled:n}),v=Mf(b),{getFloatingProps:y}=_f([w,k,v]);return i?g.jsx(Gf.Provider,{value:{theme:p,popup:a,onClose:r,setHeaderId:m},children:g.jsx(gk,{root:o,children:g.jsx(bk,{lockScroll:!0,"data-testid":"modal-overlay",className:U(p.root.base,p.root.positions[s],i?p.root.show.on:p.root.show.off,e),...u,children:g.jsx(gf,{context:b,initialFocus:d,children:g.jsx("div",{ref:x,...y(u),"aria-labelledby":h,className:U(p.content.base,p.root.sizes[l]),children:g.jsx("div",{className:p.content.inner,children:t})})})})})}):null});Jf.displayName="Modal",Zf.displayName="Modal.Header",Kf.displayName="Modal.Body",Qf.displayName="Modal.Footer",Object.assign(Jf,{Header:Zf,Body:Kf,Footer:Qf});const qf=_.createContext(void 0);function qs(){const t=_.useContext(qf);if(!t)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return t}const $f=({as:t="a",children:e,className:n,theme:r={},...a})=>{const{theme:s}=qs(),o=ee(s.brand,r);return g.jsx(t,{className:U(o.base,n),...a,children:e})},eh=({children:t,className:e,theme:n={},...r})=>{const{theme:a,isOpen:s}=qs(),o=ee(a.collapse,n);return g.jsx("div",{"data-testid":"flowbite-navbar-collapse",className:U(o.base,o.hidden[s?"off":"on"],e),...r,children:g.jsx("ul",{className:o.list,children:t})})},th=({active:t,as:e="a",disabled:n,children:r,className:a,theme:s={},onClick:o,...i})=>{const{theme:l,setIsOpen:c}=qs(),d=ee(l.link,s),u=f=>{c(!1),o==null||o(f)};return g.jsx("li",{children:g.jsx(e,{className:U(d.base,t&&d.active.on,!t&&!n&&d.active.off,d.disabled[n?"on":"off"],a),onClick:u,...i,children:r})})},nh=({barIcon:t=Py,className:e,theme:n={},...r})=>{const{theme:a,isOpen:s,setIsOpen:o}=qs(),i=ee(a.toggle,n),l=()=>{o(!s)};return g.jsxs("button",{"data-testid":"flowbite-navbar-toggle",onClick:l,className:U(i.base,e),...r,children:[g.jsx("span",{className:"sr-only",children:"Open main menu"}),g.jsx(t,{"aria-hidden":!0,className:i.icon})]})},rh=({border:t,children:e,className:n,fluid:r=!1,menuOpen:a,rounded:s,theme:o={},...i})=>{const[l,c]=_.useState(a),d=ee(de().navbar,o);return g.jsx(qf.Provider,{value:{theme:d,isOpen:l,setIsOpen:c},children:g.jsx("nav",{className:U(d.root.base,d.root.bordered[t?"on":"off"],d.root.rounded[s?"on":"off"],n),...i,children:g.jsx("div",{className:U(d.root.inner.base,d.root.inner.fluid[r?"on":"off"]),children:e})})})};rh.displayName="Navbar",$f.displayName="Navbar.Brand",eh.displayName="Navbar.Collapse",th.displayName="Navbar.Link",nh.displayName="Navbar.Toggle",Object.assign(rh,{Brand:$f,Collapse:eh,Link:th,Toggle:nh});const Ik=(t,e)=>t>=e?[]:[...Array(e-t+1).keys()].map(n=>n+t),Sl=({active:t,children:e,className:n,onClick:r,theme:a={},...s})=>{const o=ee(de().pagination,a);return g.jsx("button",{type:"button",className:U(t&&o.pages.selector.active,n),onClick:r,...s,children:e})};Sl.displayName="Pagination.Button";const Ol=({children:t,className:e,onClick:n,theme:r={},disabled:a=!1,...s})=>{const o=ee(de().pagination,r);return g.jsx("button",{type:"button",className:U(a&&o.pages.selector.disabled,e),disabled:a,onClick:n,...s,children:t})};Ol.displayName="Pagination.Navigation";const ah=({className:t,currentPage:e,layout:n="pagination",nextLabel:r="Next",onPageChange:a,previousLabel:s="Previous",renderPaginationButton:o=u=>g.jsx(Sl,{...u}),showIcons:i=!1,theme:l={},totalPages:c,...d})=>{const u=ee(de().pagination,l),f=Math.min(Math.max(n==="pagination"?e+2:e+4,5),c),h=Math.max(1,f-4),m=()=>{a(Math.min(e+1,c))},p=()=>{a(Math.max(e-1,1))};return g.jsxs("nav",{className:U(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(Ol,{className:U(u.pages.previous.base,i&&u.pages.showIcon),onClick:p,disabled:e===1,children:[i&&g.jsx(Ly,{"aria-hidden":!0,className:u.pages.previous.icon}),s]})}),n==="pagination"&&Ik(h,f).map(b=>g.jsx("li",{"aria-current":b===e?"page":void 0,children:o({className:U(u.pages.selector.base,e===b&&u.pages.selector.active),active:b===e,onClick:()=>a(b),children:b})},b)),g.jsx("li",{children:g.jsxs(Ol,{className:U(u.pages.next.base,i&&u.pages.showIcon),onClick:m,disabled:e===c,children:[r,i&&g.jsx(Wy,{"aria-hidden":!0,className:u.pages.next.icon})]})})]})]})};ah.displayName="Pagination",Object.assign(ah,{Button:Sl});const sh=_.forwardRef(({className:t,theme:e={},...n},r)=>{const a=ee(de().radio,e);return g.jsx("input",{ref:r,type:"radio",className:U(a.root.base,t),...n})});sh.displayName="Radio";const Rk=_.forwardRef(({className:t,sizing:e="md",theme:n={},...r},a)=>{const s=ee(de().rangeSlider,n);return g.jsx(g.Fragment,{children:g.jsx("div",{"data-testid":"flowbite-range-slider",className:U(s.root.base,t),children:g.jsx("div",{className:s.field.base,children:g.jsx("input",{ref:a,type:"range",className:U(s.field.input.base,s.field.input.sizes[e]),...r})})})})});Rk.displayName="RangeSlider";const oh=({children:t,className:e,percentFilled:n=0,theme:r={},...a})=>{const s=ee(de().ratingAdvanced,r);return g.jsxs("div",{className:U(s.base,e),...a,children:[g.jsx("span",{className:s.label,children:t}),g.jsx("div",{className:s.progress.base,children:g.jsx("div",{className:s.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),g.jsx("span",{className:s.progress.label,children:`${n}%`})]})},ih=_.createContext(void 0);function Ak(){const t=_.useContext(ih);if(!t)throw new Error("useRatingContext should be used within the RatingContext provider!");return t}const lh=({className:t,filled:e=!0,starIcon:n=By,theme:r={},...a})=>{const{theme:s,size:o="sm"}=Ak(),i=ee(s.star,r);return g.jsx(n,{"data-testid":"flowbite-rating-star",className:U(i.sizes[o],i[e?"filled":"empty"],t),...a})},ch=({children:t,className:e,size:n="sm",theme:r={},...a})=>{const s=ee(de().rating,r);return g.jsx(ih.Provider,{value:{theme:s,size:n},children:g.jsx("div",{className:U(s.root.base,e),...a,children:t})})};ch.displayName="Rating",lh.displayName="Rating.Star",oh.displayName="Rating.Advanced",Object.assign(ch,{Star:lh,Advanced:oh});const Fk=_.forwardRef(({addon:t,children:e,className:n,color:r="gray",helperText:a,icon:s,shadow:o,sizing:i="md",theme:l={},...c},d)=>{const u=ee(de().select,l);return g.jsxs("div",{className:U(u.base,n),children:[t&&g.jsx("span",{className:u.addon,children:t}),g.jsxs("div",{className:u.field.base,children:[s&&g.jsx("div",{className:u.field.icon.base,children:g.jsx(s,{className:u.field.icon.svg})}),g.jsx("select",{className:U(u.field.select.base,u.field.select.colors[r],u.field.select.sizes[i],u.field.select.withIcon[s?"on":"off"],u.field.select.withAddon[t?"on":"off"],u.field.select.withShadow[o?"on":"off"]),...c,ref:d,children:e}),a&&g.jsx(ba,{color:r,children:a})]})]})});Fk.displayName="Select";const Lk=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:a,placement:s="top",style:o="dark",theme:i,trigger:l="hover",minWidth:c,...d})=>{const u=_.useRef(null),[f,h]=_.useState(!1),m=Ef({open:f,placement:s,arrowRef:u,setOpen:h}),{context:p,middlewareData:{arrow:{x:b,y:x}={}},refs:w,strategy:k,update:v,x:y,y:S}=m,N=xk(p),{getFloatingProps:C,getReferenceProps:P}=Tf({context:p,role:"tooltip",trigger:l,interactions:[N]});return _.useEffect(()=>{if(w.reference.current&&w.floating.current&&f)return Hu(w.reference.current,w.floating.current,v)},[f,w.floating,w.reference,v]),g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:w.setReference,className:i.target,"data-testid":"flowbite-tooltip-target",...P(),children:n}),g.jsxs("div",{ref:w.setFloating,"data-testid":"flowbite-tooltip",...C({className:U(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:a}),e&&g.jsx("div",{className:U(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:x??" ",left:b??" ",right:" ",bottom:" ",[Ek({placement:m.placement})]:i.arrow.placement},children:" "})]})]})},Dl=({animation:t="duration-300",arrow:e=!0,children:n,className:r,content:a,placement:s="top",style:o="dark",theme:i={},trigger:l="hover",...c})=>{const d=ee(de().tooltip,i);return g.jsx(Lk,{animation:t,arrow:e,content:a,placement:s,style:o,theme:d,trigger:l,className:r,...c,children:n})};Dl.displayName="Tooltip";const dh=_.createContext(void 0);function Vr(){const t=_.useContext(dh);if(!t)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return t}const Ml=_.createContext(void 0);function Wk(){const t=_.useContext(Ml);if(!t)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return t}const uh=({children:t,className:e,icon:n,label:r,chevronIcon:a=Ai,renderChevronIcon:s,open:o=!1,theme:i={},...l})=>{const c=_.useId(),[d,u]=_.useState(o),{theme:f,isCollapsed:h}=Vr(),m=ee(f.collapse,i);_.useEffect(()=>u(o),[o]);const p=({children:b})=>g.jsx("li",{children:h&&!d?g.jsx(Dl,{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:U(m.button,e),...l,children:[n&&g.jsx(n,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:U(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}),s?s(m,d):g.jsx(a,{"aria-hidden":!0,className:U(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(Ml.Provider,{value:{isInsideCollapse:!0},children:t})})]})};uh.displayName="Sidebar.Collapse";const fh=({children:t,color:e="info",className:n,theme:r={},...a})=>{const{theme:s,isCollapsed:o}=Vr(),i=ee(s.cta,r);return g.jsx("div",{"data-testid":"sidebar-cta",hidden:o,className:U(i.base,i.color[e],n),...a,children:t})};fh.displayName="Sidebar.CTA";const zk=({id:t,theme:e,isCollapsed:n,tooltipChildren:r,children:a,...s})=>g.jsx("li",{...s,children:n?g.jsx(Dl,{content:g.jsx(hh,{id:t,theme:e,children:r}),placement:"right",children:a}):a}),hh=({id:t,theme:e,children:n})=>g.jsx("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:U(e.content.base),children:n}),gh=_.forwardRef(({active:t,as:e="a",children:n,className:r,icon:a,label:s,labelColor:o="info",theme:i={},...l},c)=>{var p,b,x,w;const d=_.useId(),{theme:u,isCollapsed:f}=Vr(),{isInsideCollapse:h}=Wk(),m=ee(u.item,i);return g.jsx(zk,{theme:m,className:m.listItem,id:d,isCollapsed:f,tooltipChildren:n,children:g.jsxs(e,{"aria-labelledby":`flowbite-sidebar-item-${d}`,ref:c,className:U(m.base,t&&m.active,!f&&h&&((p=m.collapsed)==null?void 0:p.insideCollapse),r),...l,children:[a&&g.jsx(a,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:U((b=m.icon)==null?void 0:b.base,t&&((x=m.icon)==null?void 0:x.active))}),f&&!a&&g.jsx("span",{className:(w=m.collapsed)==null?void 0:w.noIcon,children:n.charAt(0).toLocaleUpperCase()??"?"}),!f&&g.jsx(hh,{id:d,theme:m,children:n}),!f&&s&&g.jsx(su,{color:o,"data-testid":"flowbite-sidebar-label",hidden:f,className:m.label,children:s})]})})});gh.displayName="Sidebar.Item";const mh=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=Vr(),s=ee(a.itemGroup,n);return g.jsx("ul",{"data-testid":"flowbite-sidebar-item-group",className:U(s.base,e),...r,children:g.jsx(Ml.Provider,{value:{isInsideCollapse:!1},children:t})})};mh.displayName="Sidebar.ItemGroup";const ph=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=Vr(),s=ee(a.items,n);return g.jsx("div",{className:U(s.base,e),"data-testid":"flowbite-sidebar-items",...r,children:t})};ph.displayName="Sidebar.Items";const bh=({children:t,className:e,href:n,img:r,imgAlt:a="",theme:s={},...o})=>{const i=_.useId(),{theme:l,isCollapsed:c}=Vr(),d=ee(l.logo,s);return g.jsxs("a",{"aria-labelledby":`flowbite-sidebar-logo-${i}`,href:n,className:U(d.base,e),...o,children:[g.jsx("img",{alt:a,src:r,className:d.img}),g.jsx("span",{className:d.collapsed[c?"on":"off"],id:`flowbite-sidebar-logo-${i}`,children:t})]})};bh.displayName="Sidebar.Logo";const yh=({children:t,as:e="nav",collapseBehavior:n="collapse",collapsed:r=!1,theme:a={},className:s,...o})=>{const i=ee(de().sidebar,a);return g.jsx(dh.Provider,{value:{theme:i,isCollapsed:r},children:g.jsx(e,{"aria-label":"Sidebar",hidden:r&&n==="hide",className:U(i.root.base,i.root.collapsed[r?"on":"off"],s),...o,children:g.jsx("div",{className:i.root.inner,children:t})})})};yh.displayName="Sidebar",Object.assign(yh,{Collapse:uh,CTA:fh,Item:gh,Items:ph,ItemGroup:mh,Logo:bh});const vh=_.createContext(void 0);function Bk(){const t=_.useContext(vh);if(!t)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return t}const xh=_.createContext(void 0);function Cl(){const t=_.useContext(xh);if(!t)throw new Error("useTableContext should be used within the TableContext provider!");return t}const wh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s}=Cl(),o=ee(s.body,n);return g.jsx(vh.Provider,{value:{theme:o},children:g.jsx("tbody",{className:U(o.base,e),ref:a,...r,children:t})})});wh.displayName="Table.Body";const kh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s}=Bk(),o=ee(s.cell,n);return g.jsx("td",{className:U(o.base,e),ref:a,...r,children:t})});kh.displayName="Table.Cell";const _h=_.createContext(void 0);function Hk(){const t=_.useContext(_h);if(!t)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return t}const Sh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s}=Cl(),o=ee(s.head,n);return g.jsx(_h.Provider,{value:{theme:o},children:g.jsx("thead",{className:U(o.base,e),ref:a,...r,children:g.jsx("tr",{children:t})})})});Sh.displayName="Table.Head";const Oh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s}=Hk(),o=ee(s.cell,n);return g.jsx("th",{className:U(o.base,e),ref:a,...r,children:t})});Oh.displayName="Table.HeadCell";const Dh=_.forwardRef(({children:t,className:e,theme:n={},...r},a)=>{const{theme:s,hoverable:o,striped:i}=Cl(),l=ee(s.row,n);return g.jsx("tr",{ref:a,"data-testid":"table-row-element",className:U(l.base,i&&l.striped,o&&l.hovered,e),...r,children:t})});Dh.displayName="Table.Row";const Mh=_.forwardRef(({children:t,className:e,striped:n,hoverable:r,theme:a={},...s},o)=>{const i=ee(de().table,a);return g.jsx("div",{"data-testid":"table-element",className:U(i.root.wrapper),children:g.jsxs(xh.Provider,{value:{theme:i,striped:n,hoverable:r},children:[g.jsx("div",{className:U(i.root.shadow,e)}),g.jsx("table",{className:U(i.root.base,e),...s,ref:o,children:t})]})})});Mh.displayName="Table";const Wn=Object.assign(Mh,{Head:Sh,Body:wh,Row:Dh,Cell:kh,HeadCell:Oh}),Ch=({children:t,className:e})=>g.jsx("div",{className:e,children:t});Ch.displayName="Tabs.Item";const Eh=_.forwardRef(({children:t,className:e,onActiveTabChange:n,style:r="default",theme:a={},...s},o)=>{const i=ee(de().tabs,a),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,m]=_.useState(-1),p=v=>{f(v),n&&n(v)},b=({target:v})=>{p(v),m(v)},x=({event:v,target:y})=>{v.key==="ArrowLeft"&&m(Math.max(0,h-1)),v.key==="ArrowRight"&&m(Math.min(c.length-1,h+1)),v.key==="Enter"&&(p(y),m(y))},w=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:p})),g.jsxs("div",{className:U(i.base,e),children:[g.jsx("div",{"aria-label":"Tabs",role:"tablist",className:U(i.tablist.base,i.tablist.styles[r],e),...s,children:c.map((v,y)=>g.jsxs("button",{type:"button","aria-controls":`${l}-tabpanel-${y}`,"aria-selected":y===u,className:U(i.tablist.tabitem.base,w.base,y===u&&w.active.on,y!==u&&!v.disabled&&w.active.off),disabled:v.disabled,id:`${l}-tab-${y}`,onClick:()=>b({target:y}),onKeyDown:S=>x({event:S,target:y}),ref:S=>d.current[y]=S,role:"tab",tabIndex:y===h?0:-1,style:{zIndex:y===h?2:1},children:[v.icon&&g.jsx(v.icon,{className:i.tablist.tabitem.icon}),v.title]},y))}),g.jsx("div",{className:U(i.tabitemcontainer.base,k),children:c.map((v,y)=>g.jsx("div",{"aria-labelledby":`${l}-tab-${y}`,className:i.tabpanel,hidden:y!==u,id:`${l}-tabpanel-${y}`,role:"tabpanel",tabIndex:0,children:v.children},y))})]})});Eh.displayName="Tabs",Object.assign(Eh,{Item:Ch});const Yk=_.forwardRef(({className:t,color:e="gray",helperText:n,shadow:r,theme:a={},...s},o)=>{const i=ee(de().textarea,a);return g.jsxs(g.Fragment,{children:[g.jsx("textarea",{ref:o,className:U(i.base,i.colors[e],i.withShadow[r?"on":"off"],t),...s}),n&&g.jsx(ba,{color:e,children:n})]})});Yk.displayName="Textarea";const Th=_.createContext(void 0);function El(){const t=_.useContext(Th);if(!t)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return t}const Ph=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=El(),s=ee(a.body,n);return g.jsx("div",{className:U(s.base,e),...r,children:t})},Nh=_.createContext(void 0);function Tl(){const t=_.useContext(Nh);if(!t)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return t}const jh=_.createContext(void 0);function Ih(){const t=_.useContext(jh);if(!t)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return t}const Rh=({children:t,className:e,theme:n={},...r})=>{const{horizontal:a}=Tl(),{theme:s}=Ih(),o=ee(s.content,n);return g.jsx(Th.Provider,{value:{theme:o},children:g.jsx("div",{"data-testid":"timeline-content",className:U(a&&o.root.base,e),...r,children:t})})},Ah=({children:t,className:e,theme:n={},...r})=>{const{theme:a,horizontal:s}=Tl(),o=ee(a.item,n);return g.jsx(jh.Provider,{value:{theme:o},children:g.jsx("li",{"data-testid":"timeline-item",className:U(s&&o.root.horizontal,!s&&o.root.vertical,e),...r,children:t})})},Fh=({children:t,className:e,icon:n,theme:r={},...a})=>{const{horizontal:s}=Tl(),{theme:o}=Ih(),i=ee(o.point,r);return g.jsxs("div",{"data-testid":"timeline-point",className:U(s&&i.horizontal,!s&&i.vertical,e),...a,children:[t,n?g.jsx("span",{className:U(i.marker.icon.wrapper),children:g.jsx(n,{"aria-hidden":!0,className:U(i.marker.icon.base)})}):g.jsx("div",{className:U(s&&i.marker.base.horizontal,!s&&i.marker.base.vertical)}),s&&g.jsx("div",{className:U(i.line)})]})},Lh=({children:t,className:e,theme:n={},...r})=>{const{theme:a}=El(),s=ee(a.time,n);return g.jsx("time",{className:U(s.base,e),...r,children:t})},Wh=({as:t="h3",children:e,className:n,theme:r={},...a})=>{const{theme:s}=El(),o=ee(s.title,r);return g.jsx(t,{className:U(o.base,n),...a,children:e})},zh=({children:t,className:e,horizontal:n,theme:r={},...a})=>{const s=ee(de().timeline,r);return g.jsx(Nh.Provider,{value:{theme:s,horizontal:n},children:g.jsx("ol",{"data-testid":"timeline-component",className:U(n&&s.root.direction.horizontal,!n&&s.root.direction.vertical,e),...a,children:t})})};zh.displayName="Timeline",Ah.displayName="Timeline.Item",Fh.displayName="Timeline.Point",Rh.displayName="Timeline.Content",Lh.displayName="Timeline.Time",Wh.displayName="Timeline.Title",Ph.displayName="Timeline.Body",Object.assign(zh,{Item:Ah,Point:Fh,Content:Rh,Time:Lh,Title:Wh,Body:Ph});const Bh=_.createContext(void 0);function Vk(){const t=_.useContext(Bh);if(!t)throw new Error("useToastContext should be used within the ToastContext provider!");return t}const Hh=({className:t,onClick:e,theme:n={},xIcon:r=Hy,onDismiss:a,...s})=>{const{theme:o,duration:i,isClosed:l,isRemoved:c,setIsClosed:d,setIsRemoved:u}=Vk(),f=ee(o.toggle,n),h=m=>{if(e&&e(m),a){a();return}d(!l),setTimeout(()=>u(!c),i)};return g.jsx("button",{"aria-label":"Close",onClick:h,type:"button",className:U(f.base,t),...s,children:g.jsx(r,{"aria-hidden":!0,className:f.icon})})},Uk={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Yh=({children:t,className:e,duration:n=300,theme:r={},...a})=>{const[s,o]=_.useState(!1),[i,l]=_.useState(!1),c=ee(de().toast,r);return i?null:g.jsx(Bh.Provider,{value:{theme:c,duration:n,isClosed:s,isRemoved:i,setIsClosed:o,setIsRemoved:l},children:g.jsx("div",{"data-testid":"flowbite-toast",role:"alert",className:U(c.root.base,Uk[n],s&&c.root.closed,e),...a,children:t})})};Yh.displayName="Toast",Hh.displayName="Toast.Toggle",Object.assign(Yh,{Toggle:Hh});const Xk=_.forwardRef(({checked:t,className:e,color:n="blue",sizing:r="md",disabled:a,label:s,name:o,onChange:i,theme:l={},...c},d)=>{const u=_.useId(),f=ee(de().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:a,id:`${u}-flowbite-toggleswitch`,onClick:m,onKeyDown:p,role:"switch",tabIndex:0,type:"button",className:U(f.root.base,f.root.active[a?"off":"on"],e),...c,children:[g.jsx("div",{"data-testid":"flowbite-toggleswitch-toggle",className:U(f.toggle.base,f.toggle.checked[t?"on":"off"],t&&f.toggle.checked.color[n],f.toggle.sizes[r])}),s!=null&&s.length?g.jsx("span",{"data-testid":"flowbite-toggleswitch-label",id:`${u}-flowbite-toggleswitch-label`,className:f.root.label,children:s}):null]})]})});Xk.displayName="ToggleSwitch";const Pl=_.forwardRef(({icon:t,placeholder:e,label:n,error:r,type:a,classInclude:s,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(ya,{className:`${s}`,maxLength:o,ref:c,type:a,rightIcon:Iy,placeholder:e,onChange:i,...l}):g.jsx(ya,{className:`${s}`,maxLength:o,ref:c,type:a,placeholder:e,onChange:i,...l}),r&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:r})]}));Pl.displayName="InputForm";const Gk={"mth-password":"passwordInput-module__mth-password__R6DoN"},Nl=({placeholder:t,onChange:e,value:n,...r})=>{const[a,s]=_.useState(!1),o=()=>{s(!a)};return g.jsx("div",{className:"mb-5",children:g.jsxs("div",{className:"relative inline-block w-full",children:[g.jsx("input",{type:a?"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:Gk["mth-password"],children:a?g.jsx(Ny,{}):g.jsx(jy,{})})]})})},Vh={mth_progress_bar:"progressBar-module__mth_progress_bar__q2V2y",mth_progress_bar_thumb:"progressBar-module__mth_progress_bar_thumb__OTDNJ"},Uh=({start:t,end:e,current:n,type:r})=>{const a=(n-t)/(e-t)*100,s=Math.min(Math.max(a,0),100),o=()=>s<10?"left-0":s>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:`${Vh.mth_progress_bar} absolute left-0 top-0 h-full rounded-full transition-all duration-300`,style:{width:`${s}%`}}),g.jsxs("div",{className:"absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2",style:{left:`${s}%`},children:[g.jsx("div",{className:`${Vh.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"?"%":""]})]})]})]})},Xh=_.forwardRef(({options:t,label:e,error:n,value:r,onChange:a,id:s,...o},i)=>g.jsxs("div",{className:"mb-5",children:[g.jsxs("select",{ref:i,id:s,className:"h-8 w-full rounded-lg border px-3 py-0.5",value:r,onChange:a,...o,children:[g.jsx("option",{value:"0",children:e||"Seleccione una opción"}),t==null?void 0:t.map(l=>g.jsx("option",{value:l.value,children:l.label},l.value))]}),n&&g.jsx("p",{className:"mt-1 text-sm text-red-500",children:n})]}));Xh.displayName="SelectForm";const Gh={mth_card_indicator:"card-module__mth_card_indicator__lfgp3"},Kk=({logo:t,number:e,title:n,start:r,end:a,current:s,type:o,classIm:i})=>{const l=c=>new Intl.NumberFormat("es-ES",{maximumFractionDigits:2,minimumFractionDigits:0}).format(c);return g.jsxs("div",{className:`${Gh.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(er,{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(Uh,{start:r,end:a,current:s,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 Bn=(t,e,n)=>Math.max(Math.min(t,n),e);function Ea(t){return Bn(Ca(t*2.55),0,255)}function Hn(t){return Bn(Ca(t*255),0,255)}function vn(t){return Bn(Ca(t/2.55)/100,0,1)}function Kh(t){return Bn(Ca(t*100),0,100)}const It={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},jl=[..."0123456789ABCDEF"],Zk=t=>jl[t&15],Jk=t=>jl[(t&240)>>4]+jl[t&15],$s=t=>(t&240)>>4===(t&15),qk=t=>$s(t.r)&&$s(t.g)&&$s(t.b)&&$s(t.a);function $k(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&It[t[1]]*17,g:255&It[t[2]]*17,b:255&It[t[3]]*17,a:e===5?It[t[4]]*17:255}:(e===7||e===9)&&(n={r:It[t[1]]<<4|It[t[2]],g:It[t[3]]<<4|It[t[4]],b:It[t[5]]<<4|It[t[6]],a:e===9?It[t[7]]<<4|It[t[8]]:255})),n}const e1=(t,e)=>t<255?e(t):"";function t1(t){var e=qk(t)?Zk:Jk;return t?"#"+e(t.r)+e(t.g)+e(t.b)+e1(t.a,e):void 0}const n1=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Qh(t,e,n){const r=e*Math.min(n,1-n),a=(s,o=(s+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[a(0),a(8),a(4)]}function r1(t,e,n){const r=(a,s=(a+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function a1(t,e,n){const r=Qh(t,1,.5);let a;for(e+n>1&&(a=1/(e+n),e*=a,n*=a),a=0;a<3;a++)r[a]*=1-e-n,r[a]+=e;return r}function s1(t,e,n,r,a){return t===a?(e-n)/r+(e<n?6:0):e===a?(n-t)/r+2:(t-e)/r+4}function Il(t){const n=t.r/255,r=t.g/255,a=t.b/255,s=Math.max(n,r,a),o=Math.min(n,r,a),i=(s+o)/2;let l,c,d;return s!==o&&(d=s-o,c=i>.5?d/(2-s-o):d/(s+o),l=s1(n,r,a,d,s),l=l*60+.5),[l|0,c||0,i]}function Rl(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Hn)}function Al(t,e,n){return Rl(Qh,t,e,n)}function o1(t,e,n){return Rl(a1,t,e,n)}function i1(t,e,n){return Rl(r1,t,e,n)}function Zh(t){return(t%360+360)%360}function l1(t){const e=n1.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?Ea(+e[5]):Hn(+e[5]));const a=Zh(+e[2]),s=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=o1(a,s,o):e[1]==="hsv"?r=i1(a,s,o):r=Al(a,s,o),{r:r[0],g:r[1],b:r[2],a:n}}function c1(t,e){var n=Il(t);n[0]=Zh(n[0]+e),n=Al(n),t.r=n[0],t.g=n[1],t.b=n[2]}function d1(t){if(!t)return;const e=Il(t),n=e[0],r=Kh(e[1]),a=Kh(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${a}%, ${vn(t.a)})`:`hsl(${n}, ${r}%, ${a}%)`}const Jh={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"},qh={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 u1(){const t={},e=Object.keys(qh),n=Object.keys(Jh);let r,a,s,o,i;for(r=0;r<e.length;r++){for(o=i=e[r],a=0;a<n.length;a++)s=n[a],i=i.replace(s,Jh[s]);s=parseInt(qh[o],16),t[i]=[s>>16&255,s>>8&255,s&255]}return t}let eo;function f1(t){eo||(eo=u1(),eo.transparent=[0,0,0,0]);const e=eo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const h1=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function g1(t){const e=h1.exec(t);let n=255,r,a,s;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?Ea(o):Bn(o*255,0,255)}return r=+e[1],a=+e[3],s=+e[5],r=255&(e[2]?Ea(r):Bn(r,0,255)),a=255&(e[4]?Ea(a):Bn(a,0,255)),s=255&(e[6]?Ea(s):Bn(s,0,255)),{r,g:a,b:s,a:n}}}function m1(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${vn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Fl=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ur=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function p1(t,e,n){const r=Ur(vn(t.r)),a=Ur(vn(t.g)),s=Ur(vn(t.b));return{r:Hn(Fl(r+n*(Ur(vn(e.r))-r))),g:Hn(Fl(a+n*(Ur(vn(e.g))-a))),b:Hn(Fl(s+n*(Ur(vn(e.b))-s))),a:t.a+n*(e.a-t.a)}}function to(t,e,n){if(t){let r=Il(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Al(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function $h(t,e){return t&&Object.assign(e||{},t)}function eg(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=Hn(t[3]))):(e=$h(t,{r:0,g:0,b:0,a:1}),e.a=Hn(e.a)),e}function b1(t){return t.charAt(0)==="r"?g1(t):l1(t)}class Ta{constructor(e){if(e instanceof Ta)return e;const n=typeof e;let r;n==="object"?r=eg(e):n==="string"&&(r=$k(e)||f1(e)||b1(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=$h(this._rgb);return e&&(e.a=vn(e.a)),e}set rgb(e){this._rgb=eg(e)}rgbString(){return this._valid?m1(this._rgb):void 0}hexString(){return this._valid?t1(this._rgb):void 0}hslString(){return this._valid?d1(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,a=e.rgb;let s;const o=n===s?.5:n,i=2*o-1,l=r.a-a.a,c=((i*l===-1?i:(i+l)/(1+i*l))+1)/2;s=1-c,r.r=255&c*r.r+s*a.r+.5,r.g=255&c*r.g+s*a.g+.5,r.b=255&c*r.b+s*a.b+.5,r.a=o*r.a+(1-o)*a.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=p1(this._rgb,e._rgb,n)),this}clone(){return new Ta(this.rgb)}alpha(e){return this._rgb.a=Hn(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 to(this._rgb,2,e),this}darken(e){return to(this._rgb,2,-e),this}saturate(e){return to(this._rgb,1,e),this}desaturate(e){return to(this._rgb,1,-e),this}rotate(e){return c1(this._rgb,e),this}}/*!
13
+ */function Ca(t){return t+.5|0}const zn=(t,e,n)=>Math.max(Math.min(t,n),e);function Ea(t){return zn(Ca(t*2.55),0,255)}function Bn(t){return zn(Ca(t*255),0,255)}function vn(t){return zn(Ca(t/2.55)/100,0,1)}function Kh(t){return zn(Ca(t*100),0,100)}const It={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},jl=[..."0123456789ABCDEF"],Qk=t=>jl[t&15],Zk=t=>jl[(t&240)>>4]+jl[t&15],$s=t=>(t&240)>>4===(t&15),Jk=t=>$s(t.r)&&$s(t.g)&&$s(t.b)&&$s(t.a);function qk(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&It[t[1]]*17,g:255&It[t[2]]*17,b:255&It[t[3]]*17,a:e===5?It[t[4]]*17:255}:(e===7||e===9)&&(n={r:It[t[1]]<<4|It[t[2]],g:It[t[3]]<<4|It[t[4]],b:It[t[5]]<<4|It[t[6]],a:e===9?It[t[7]]<<4|It[t[8]]:255})),n}const $k=(t,e)=>t<255?e(t):"";function e1(t){var e=Jk(t)?Qk:Zk;return t?"#"+e(t.r)+e(t.g)+e(t.b)+$k(t.a,e):void 0}const t1=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Qh(t,e,n){const r=e*Math.min(n,1-n),a=(s,o=(s+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[a(0),a(8),a(4)]}function n1(t,e,n){const r=(a,s=(a+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function r1(t,e,n){const r=Qh(t,1,.5);let a;for(e+n>1&&(a=1/(e+n),e*=a,n*=a),a=0;a<3;a++)r[a]*=1-e-n,r[a]+=e;return r}function a1(t,e,n,r,a){return t===a?(e-n)/r+(e<n?6:0):e===a?(n-t)/r+2:(t-e)/r+4}function Il(t){const n=t.r/255,r=t.g/255,a=t.b/255,s=Math.max(n,r,a),o=Math.min(n,r,a),i=(s+o)/2;let l,c,d;return s!==o&&(d=s-o,c=i>.5?d/(2-s-o):d/(s+o),l=a1(n,r,a,d,s),l=l*60+.5),[l|0,c||0,i]}function Rl(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Bn)}function Al(t,e,n){return Rl(Qh,t,e,n)}function s1(t,e,n){return Rl(r1,t,e,n)}function o1(t,e,n){return Rl(n1,t,e,n)}function Zh(t){return(t%360+360)%360}function i1(t){const e=t1.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?Ea(+e[5]):Bn(+e[5]));const a=Zh(+e[2]),s=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?r=s1(a,s,o):e[1]==="hsv"?r=o1(a,s,o):r=Al(a,s,o),{r:r[0],g:r[1],b:r[2],a:n}}function l1(t,e){var n=Il(t);n[0]=Zh(n[0]+e),n=Al(n),t.r=n[0],t.g=n[1],t.b=n[2]}function c1(t){if(!t)return;const e=Il(t),n=e[0],r=Kh(e[1]),a=Kh(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${a}%, ${vn(t.a)})`:`hsl(${n}, ${r}%, ${a}%)`}const Jh={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"},qh={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 d1(){const t={},e=Object.keys(qh),n=Object.keys(Jh);let r,a,s,o,i;for(r=0;r<e.length;r++){for(o=i=e[r],a=0;a<n.length;a++)s=n[a],i=i.replace(s,Jh[s]);s=parseInt(qh[o],16),t[i]=[s>>16&255,s>>8&255,s&255]}return t}let eo;function u1(t){eo||(eo=d1(),eo.transparent=[0,0,0,0]);const e=eo[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const f1=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function h1(t){const e=f1.exec(t);let n=255,r,a,s;if(e){if(e[7]!==r){const o=+e[7];n=e[8]?Ea(o):zn(o*255,0,255)}return r=+e[1],a=+e[3],s=+e[5],r=255&(e[2]?Ea(r):zn(r,0,255)),a=255&(e[4]?Ea(a):zn(a,0,255)),s=255&(e[6]?Ea(s):zn(s,0,255)),{r,g:a,b:s,a:n}}}function g1(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${vn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Fl=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ur=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function m1(t,e,n){const r=Ur(vn(t.r)),a=Ur(vn(t.g)),s=Ur(vn(t.b));return{r:Bn(Fl(r+n*(Ur(vn(e.r))-r))),g:Bn(Fl(a+n*(Ur(vn(e.g))-a))),b:Bn(Fl(s+n*(Ur(vn(e.b))-s))),a:t.a+n*(e.a-t.a)}}function to(t,e,n){if(t){let r=Il(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Al(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function $h(t,e){return t&&Object.assign(e||{},t)}function eg(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=Bn(t[3]))):(e=$h(t,{r:0,g:0,b:0,a:1}),e.a=Bn(e.a)),e}function p1(t){return t.charAt(0)==="r"?h1(t):i1(t)}class Ta{constructor(e){if(e instanceof Ta)return e;const n=typeof e;let r;n==="object"?r=eg(e):n==="string"&&(r=qk(e)||u1(e)||p1(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=$h(this._rgb);return e&&(e.a=vn(e.a)),e}set rgb(e){this._rgb=eg(e)}rgbString(){return this._valid?g1(this._rgb):void 0}hexString(){return this._valid?e1(this._rgb):void 0}hslString(){return this._valid?c1(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,a=e.rgb;let s;const o=n===s?.5:n,i=2*o-1,l=r.a-a.a,c=((i*l===-1?i:(i+l)/(1+i*l))+1)/2;s=1-c,r.r=255&c*r.r+s*a.r+.5,r.g=255&c*r.g+s*a.g+.5,r.b=255&c*r.b+s*a.b+.5,r.a=o*r.a+(1-o)*a.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=m1(this._rgb,e._rgb,n)),this}clone(){return new Ta(this.rgb)}alpha(e){return this._rgb.a=Bn(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 to(this._rgb,2,e),this}darken(e){return to(this._rgb,2,-e),this}saturate(e){return to(this._rgb,1,e),this}desaturate(e){return to(this._rgb,1,-e),this}rotate(e){return l1(this._rgb,e),this}}/*!
14
14
  * Chart.js v4.4.8
15
15
  * https://www.chartjs.org
16
16
  * (c) 2025 Chart.js Contributors
17
17
  * Released under the MIT License
18
- */function xn(){}const y1=(()=>{let t=0;return()=>t++})();function ct(t){return t==null}function st(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 pe(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function wn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function $t(t,e){return wn(t)?t:e}function _e(t,e){return typeof t>"u"?e:t}const v1=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,tg=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function je(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Se(t,e,n,r){let a,s,o;if(st(t))for(s=t.length,a=0;a<s;a++)e.call(n,t[a],a);else if(pe(t))for(o=Object.keys(t),s=o.length,a=0;a<s;a++)e.call(n,t[o[a]],o[a])}function no(t,e){let n,r,a,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(a=t[n],s=e[n],a.datasetIndex!==s.datasetIndex||a.index!==s.index)return!1;return!0}function ro(t){if(st(t))return t.map(ro);if(pe(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let a=0;for(;a<r;++a)e[n[a]]=ro(t[n[a]]);return e}return t}function ng(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function x1(t,e,n,r){if(!ng(t))return;const a=e[t],s=n[t];pe(a)&&pe(s)?Pa(a,s,r):e[t]=ro(s)}function Pa(t,e,n){const r=st(e)?e:[e],a=r.length;if(!pe(t))return t;n=n||{};const s=n.merger||x1;let o;for(let i=0;i<a;++i){if(o=r[i],!pe(o))continue;const l=Object.keys(o);for(let c=0,d=l.length;c<d;++c)s(l[c],t,o,n)}return t}function Na(t,e){return Pa(t,e,{merger:w1})}function w1(t,e,n){if(!ng(t))return;const r=e[t],a=n[t];pe(r)&&pe(a)?Na(r,a):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ro(a))}const rg={"":t=>t,x:t=>t.x,y:t=>t.y};function k1(t){const e=t.split("."),n=[];let r="";for(const a of e)r+=a,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function _1(t){const e=k1(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ja(t,e){return(rg[e]||(rg[e]=_1(e)))(t)}function Ll(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ao=t=>typeof t<"u",Yn=t=>typeof t=="function",ag=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function S1(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const et=Math.PI,Ge=2*et,so=Number.POSITIVE_INFINITY,O1=et/180,qe=et/2,cr=et/4,sg=et*2/3,og=Math.sign;function D1(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((a,s)=>a-s).pop(),e}function M1(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function oo(t){return!M1(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function dr(t){return t*(et/180)}function C1(t){return t*(180/et)}function ig(t,e){const n=e.x-t.x,r=e.y-t.y,a=Math.sqrt(n*n+r*r);let s=Math.atan2(r,n);return s<-.5*et&&(s+=Ge),{angle:s,distance:a}}function E1(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ur(t){return(t%Ge+Ge)%Ge}function io(t,e,n,r){const a=ur(t),s=ur(e),o=ur(n),i=ur(s-a),l=ur(o-a),c=ur(a-s),d=ur(a-o);return a===s||a===o||r&&s===o||i>l&&c<d}function Rt(t,e,n){return Math.max(e,Math.min(n,t))}function T1(t){return Rt(t,-32768,32767)}function Ia(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Wl(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,a=0,s;for(;r-a>1;)s=a+r>>1,n(s)?a=s:r=s;return{lo:a,hi:r}}const zl=(t,e,n,r)=>Wl(t,n,r?a=>{const s=t[a][e];return s<n||s===n&&t[a+1][e]===n}:a=>t[a][e]<n),P1=(t,e,n)=>Wl(t,n,r=>t[r][e]>=n);function N1(t,e,n){let r=0,a=t.length;for(;r<a&&t[r]<e;)r++;for(;a>r&&t[a-1]>n;)a--;return r>0||a<t.length?t.slice(r,a):t}const lg=["push","pop","shift","splice","unshift"];function j1(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),lg.forEach(n=>{const r="_onData"+Ll(n),a=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const o=a.apply(this,s);return t._chartjs.listeners.forEach(i=>{typeof i[r]=="function"&&i[r](...s)}),o}})})}function cg(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,a=r.indexOf(e);a!==-1&&r.splice(a,1),!(r.length>0)&&(lg.forEach(s=>{delete t[s]}),delete t._chartjs)}function I1(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const dg=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function ug(t,e){let n=[],r=!1;return function(...a){n=a,r||(r=!0,dg.call(window,()=>{r=!1,t.apply(e,n)}))}}function R1(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const fg=t=>t==="start"?"left":t==="end"?"right":"center",St=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,A1=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,lo=t=>t===0||t===1,hg=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ge/n)),gg=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ge/n)+1,Ra={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*qe)+1,easeOutSine:t=>Math.sin(t*qe),easeInOutSine:t=>-.5*(Math.cos(et*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=>lo(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=>lo(t)?t:hg(t,.075,.3),easeOutElastic:t=>lo(t)?t:gg(t,.075,.3),easeInOutElastic(t){return lo(t)?t:t<.5?.5*hg(t*2,.1125,.45):.5+.5*gg(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-Ra.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?Ra.easeInBounce(t*2)*.5:Ra.easeOutBounce(t*2-1)*.5+.5};function mg(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function pg(t){return mg(t)?t:new Ta(t)}function Bl(t){return mg(t)?t:new Ta(t).saturate(.5).darken(.1).hexString()}const F1=["x","y","borderWidth","radius","tension"],L1=["color","borderColor","backgroundColor"];function W1(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:L1},numbers:{type:"number",properties:F1}}),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 z1(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const bg=new Map;function B1(t,e){e=e||{};const n=t+JSON.stringify(e);let r=bg.get(n);return r||(r=new Intl.NumberFormat(t,e),bg.set(n,r)),r}function H1(t,e,n){return B1(e,n).format(t)}var Y1={formatters:{values(t){return st(t)?t:""+t}}};function V1(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:Y1.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 fr=Object.create(null),Hl=Object.create(null);function Aa(t,e){if(!e)return t;const n=e.split(".");for(let r=0,a=n.length;r<a;++r){const s=n[r];t=t[s]||(t[s]=Object.create(null))}return t}function Yl(t,e,n){return typeof e=="string"?Pa(Aa(t,e),n):Pa(Aa(t,""),e)}class U1{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,a)=>Bl(a.backgroundColor),this.hoverBorderColor=(r,a)=>Bl(a.borderColor),this.hoverColor=(r,a)=>Bl(a.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 Yl(this,e,n)}get(e){return Aa(this,e)}describe(e,n){return Yl(Hl,e,n)}override(e,n){return Yl(fr,e,n)}route(e,n,r,a){const s=Aa(this,e),o=Aa(this,r),i="_"+n;Object.defineProperties(s,{[i]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[i],c=o[a];return pe(l)?Object.assign({},c,l):_e(l,c)},set(l){this[i]=l}}})}apply(e){e.forEach(n=>n(this))}}var He=new U1({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[W1,z1,V1]);function X1(t){return!t||ct(t.size)||ct(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function yg(t,e,n,r,a){let s=e[a];return s||(s=e[a]=t.measureText(a).width,n.push(a)),s>r&&(r=s),r}function hr(t,e,n){const r=t.currentDevicePixelRatio,a=n!==0?Math.max(n/2,.5):0;return Math.round((e-a)*r)/r+a}function vg(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function xg(t,e,n,r){wg(t,e,n,r,null)}function wg(t,e,n,r,a){let s,o,i,l,c,d,u,f;const h=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*O1;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[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:a?t.ellipse(n,r,a/2,p,0,0,Ge):t.arc(n,r,p,0,Ge),t.closePath();break;case"triangle":d=a?a/2:p,t.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=sg,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=sg,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+cr)*l,u=Math.cos(b+cr)*(a?a/2-c:l),i=Math.sin(b+cr)*l,f=Math.sin(b+cr)*(a?a/2-c:l),t.arc(n-u,r-i,c,b-et,b-qe),t.arc(n+f,r-o,c,b-qe,b),t.arc(n+u,r+i,c,b,b+qe),t.arc(n-f,r+o,c,b+qe,b+et),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,d=a?a/2:l,t.rect(n-d,r-l,2*d,2*l);break}b+=cr;case"rectRot":u=Math.cos(b)*(a?a/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(a?a/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+=cr;case"cross":u=Math.cos(b)*(a?a/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(a?a/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)*(a?a/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(a?a/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+=cr,u=Math.cos(b)*(a?a/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(a?a/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=a?a/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)*(a?a/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function kg(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 Vl(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ul(t){t.restore()}function G1(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),ct(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 K1(t,e,n,r,a){if(a.strikethrough||a.underline){const s=t.measureText(r),o=e-s.actualBoundingBoxLeft,i=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,d=a.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=a.decorationWidth||2,t.moveTo(o,d),t.lineTo(i,d),t.stroke()}}function Q1(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function co(t,e,n,r,a,s={}){const o=st(e)?e:[e],i=s.strokeWidth>0&&s.strokeColor!=="";let l,c;for(t.save(),t.font=a.string,G1(t,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&Q1(t,s.backdrop),i&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),ct(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,n,r,s.maxWidth)),t.fillText(c,n,r,s.maxWidth),K1(t,n,r,c,s),r+=Number(a.lineHeight);t.restore()}function Xl(t,e){const{x:n,y:r,w:a,h:s,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*et,et,!0),t.lineTo(n,r+s-o.bottomLeft),t.arc(n+o.bottomLeft,r+s-o.bottomLeft,o.bottomLeft,et,qe,!0),t.lineTo(n+a-o.bottomRight,r+s),t.arc(n+a-o.bottomRight,r+s-o.bottomRight,o.bottomRight,qe,0,!0),t.lineTo(n+a,r+o.topRight),t.arc(n+a-o.topRight,r+o.topRight,o.topRight,0,-qe,!0),t.lineTo(n+o.topLeft,r)}const Z1=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,J1=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function q1(t,e){const n=(""+t).match(Z1);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 $1=t=>+t||0;function Gl(t,e){const n={},r=pe(e),a=r?Object.keys(e):e,s=pe(t)?r?o=>_e(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of a)n[o]=$1(s(o));return n}function e_(t){return Gl(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Fa(t){return Gl(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Bt(t){const e=e_(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function pt(t,e){t=t||{},e=e||He.font;let n=_e(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=_e(t.style,e.style);r&&!(""+r).match(J1)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const a={family:_e(t.family,e.family),lineHeight:q1(_e(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:_e(t.weight,e.weight),string:""};return a.string=X1(a),a}function uo(t,e,n,r){let a,s,o;for(a=0,s=t.length;a<s;++a)if(o=t[a],o!==void 0&&o!==void 0)return o}function t_(t,e,n){const{min:r,max:a}=t,s=tg(e,(a-r)/2),o=(i,l)=>n&&i===0?0:i+l;return{min:o(r,-Math.abs(s)),max:o(a,s)}}function Xr(t,e){return Object.assign(Object.create(t),e)}function Kl(t,e=[""],n,r,a=()=>t[0]){const s=n||t;typeof r>"u"&&(r=Mg("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:r,_getTarget:a,override:i=>Kl([i,...t],e,s,r)};return new Proxy(o,{deleteProperty(i,l){return delete i[l],delete i._keys,delete t[0][l],!0},get(i,l){return Sg(i,l,()=>c_(l,e,t,i))},getOwnPropertyDescriptor(i,l){return Reflect.getOwnPropertyDescriptor(i._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(i,l){return Cg(i).includes(l)},ownKeys(i){return Cg(i)},set(i,l,c){const d=i._storage||(i._storage=a());return i[l]=d[l]=c,delete i._keys,!0}})}function Gr(t,e,n,r){const a={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:_g(t,r),setContext:s=>Gr(t,s,n,r),override:s=>Gr(t.override(s),e,n,r)};return new Proxy(a,{deleteProperty(s,o){return delete s[o],delete t[o],!0},get(s,o,i){return Sg(s,o,()=>r_(s,o,i))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(s,o,i){return t[o]=i,delete s[o],!0}})}function _g(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:a=e.allKeys}=t;return{allKeys:a,scriptable:n,indexable:r,isScriptable:Yn(n)?n:()=>n,isIndexable:Yn(r)?r:()=>r}}const n_=(t,e)=>t?t+Ll(e):e,Ql=(t,e)=>pe(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Sg(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function r_(t,e,n){const{_proxy:r,_context:a,_subProxy:s,_descriptors:o}=t;let i=r[e];return Yn(i)&&o.isScriptable(e)&&(i=a_(e,i,t,n)),st(i)&&i.length&&(i=s_(e,i,t,o.isIndexable)),Ql(e,i)&&(i=Gr(i,a,s&&s[e],o)),i}function a_(t,e,n,r){const{_proxy:a,_context:s,_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(s,o||r);return i.delete(t),Ql(t,l)&&(l=Zl(a._scopes,a,t,l)),l}function s_(t,e,n,r){const{_proxy:a,_context:s,_subProxy:o,_descriptors:i}=n;if(typeof s.index<"u"&&r(t))return e[s.index%e.length];if(pe(e[0])){const l=e,c=a._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=Zl(c,a,t,d);e.push(Gr(u,s,o&&o[t],i))}}return e}function Og(t,e,n){return Yn(t)?t(e,n):t}const o_=(t,e)=>t===!0?e:typeof t=="string"?ja(e,t):void 0;function i_(t,e,n,r,a){for(const s of e){const o=o_(n,s);if(o){t.add(o);const i=Og(o._fallback,n,a);if(typeof i<"u"&&i!==n&&i!==r)return i}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Zl(t,e,n,r){const a=e._rootScopes,s=Og(e._fallback,n,r),o=[...t,...a],i=new Set;i.add(r);let l=Dg(i,o,n,s||n,r);return l===null||typeof s<"u"&&s!==n&&(l=Dg(i,o,s,l,r),l===null)?!1:Kl(Array.from(i),[""],a,s,()=>l_(e,n,r))}function Dg(t,e,n,r,a){for(;n;)n=i_(t,e,n,r,a);return n}function l_(t,e,n){const r=t._getTarget();e in r||(r[e]={});const a=r[e];return st(a)&&pe(n)?n:a||{}}function c_(t,e,n,r){let a;for(const s of e)if(a=Mg(n_(s,t),n),typeof a<"u")return Ql(t,a)?Zl(n,r,t,a):a}function Mg(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function Cg(t){let e=t._keys;return e||(e=t._keys=d_(t._scopes)),e}function d_(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(a=>!a.startsWith("_")))e.add(r);return Array.from(e)}function Jl(){return typeof window<"u"&&typeof document<"u"}function ql(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function fo(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 ho=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function u_(t,e){return ho(t).getPropertyValue(e)}const f_=["top","right","bottom","left"];function gr(t,e,n){const r={};n=n?"-"+n:"";for(let a=0;a<4;a++){const s=f_[a];r[s]=parseFloat(t[e+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const h_=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function g_(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:a,offsetY:s}=r;let o=!1,i,l;if(h_(a,s,t.target))i=a,l=s;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 mr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,a=ho(n),s=a.boxSizing==="border-box",o=gr(a,"padding"),i=gr(a,"border","width"),{x:l,y:c,box:d}=g_(t,n),u=o.left+(d&&i.left),f=o.top+(d&&i.top);let{width:h,height:m}=e;return s&&(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 m_(t,e,n){let r,a;if(e===void 0||n===void 0){const s=t&&ql(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const o=s.getBoundingClientRect(),i=ho(s),l=gr(i,"border","width"),c=gr(i,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=fo(i.maxWidth,s,"clientWidth"),a=fo(i.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:r||so,maxHeight:a||so}}const go=t=>Math.round(t*10)/10;function p_(t,e,n,r){const a=ho(t),s=gr(a,"margin"),o=fo(a.maxWidth,t,"clientWidth")||so,i=fo(a.maxHeight,t,"clientHeight")||so,l=m_(t,e,n);let{width:c,height:d}=l;if(a.boxSizing==="content-box"){const f=gr(a,"border","width"),h=gr(a,"padding");c-=h.width+f.width,d-=h.height+f.height}return c=Math.max(0,c-s.width),d=Math.max(0,r?c/r:d-s.height),c=go(Math.min(c,o,l.maxWidth)),d=go(Math.min(d,i,l.maxHeight)),c&&!d&&(d=go(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=go(Math.floor(d*r))),{width:c,height:d}}function Eg(t,e,n){const r=e||1,a=Math.floor(t.height*r),s=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!==a||o.width!==s?(t.currentDevicePixelRatio=r,o.height=a,o.width=s,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const b_=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Jl()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Tg(t,e){const n=u_(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const y_=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}}},v_=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Kr(t,e,n){return t?y_(e,n):v_()}function Pg(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 Ng(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
18
+ */function xn(){}const b1=(()=>{let t=0;return()=>t++})();function ct(t){return t==null}function st(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 pe(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function wn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function $t(t,e){return wn(t)?t:e}function _e(t,e){return typeof t>"u"?e:t}const y1=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,tg=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function je(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Se(t,e,n,r){let a,s,o;if(st(t))for(s=t.length,a=0;a<s;a++)e.call(n,t[a],a);else if(pe(t))for(o=Object.keys(t),s=o.length,a=0;a<s;a++)e.call(n,t[o[a]],o[a])}function no(t,e){let n,r,a,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(a=t[n],s=e[n],a.datasetIndex!==s.datasetIndex||a.index!==s.index)return!1;return!0}function ro(t){if(st(t))return t.map(ro);if(pe(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let a=0;for(;a<r;++a)e[n[a]]=ro(t[n[a]]);return e}return t}function ng(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function v1(t,e,n,r){if(!ng(t))return;const a=e[t],s=n[t];pe(a)&&pe(s)?Pa(a,s,r):e[t]=ro(s)}function Pa(t,e,n){const r=st(e)?e:[e],a=r.length;if(!pe(t))return t;n=n||{};const s=n.merger||v1;let o;for(let i=0;i<a;++i){if(o=r[i],!pe(o))continue;const l=Object.keys(o);for(let c=0,d=l.length;c<d;++c)s(l[c],t,o,n)}return t}function Na(t,e){return Pa(t,e,{merger:x1})}function x1(t,e,n){if(!ng(t))return;const r=e[t],a=n[t];pe(r)&&pe(a)?Na(r,a):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ro(a))}const rg={"":t=>t,x:t=>t.x,y:t=>t.y};function w1(t){const e=t.split("."),n=[];let r="";for(const a of e)r+=a,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function k1(t){const e=w1(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function ja(t,e){return(rg[e]||(rg[e]=k1(e)))(t)}function Ll(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ao=t=>typeof t<"u",Hn=t=>typeof t=="function",ag=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function _1(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const et=Math.PI,Ge=2*et,so=Number.POSITIVE_INFINITY,S1=et/180,qe=et/2,cr=et/4,sg=et*2/3,og=Math.sign;function O1(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((a,s)=>a-s).pop(),e}function D1(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function oo(t){return!D1(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function dr(t){return t*(et/180)}function M1(t){return t*(180/et)}function ig(t,e){const n=e.x-t.x,r=e.y-t.y,a=Math.sqrt(n*n+r*r);let s=Math.atan2(r,n);return s<-.5*et&&(s+=Ge),{angle:s,distance:a}}function C1(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ur(t){return(t%Ge+Ge)%Ge}function io(t,e,n,r){const a=ur(t),s=ur(e),o=ur(n),i=ur(s-a),l=ur(o-a),c=ur(a-s),d=ur(a-o);return a===s||a===o||r&&s===o||i>l&&c<d}function Rt(t,e,n){return Math.max(e,Math.min(n,t))}function E1(t){return Rt(t,-32768,32767)}function Ia(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Wl(t,e,n){n=n||(o=>t[o]<e);let r=t.length-1,a=0,s;for(;r-a>1;)s=a+r>>1,n(s)?a=s:r=s;return{lo:a,hi:r}}const zl=(t,e,n,r)=>Wl(t,n,r?a=>{const s=t[a][e];return s<n||s===n&&t[a+1][e]===n}:a=>t[a][e]<n),T1=(t,e,n)=>Wl(t,n,r=>t[r][e]>=n);function P1(t,e,n){let r=0,a=t.length;for(;r<a&&t[r]<e;)r++;for(;a>r&&t[a-1]>n;)a--;return r>0||a<t.length?t.slice(r,a):t}const lg=["push","pop","shift","splice","unshift"];function N1(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),lg.forEach(n=>{const r="_onData"+Ll(n),a=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const o=a.apply(this,s);return t._chartjs.listeners.forEach(i=>{typeof i[r]=="function"&&i[r](...s)}),o}})})}function cg(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,a=r.indexOf(e);a!==-1&&r.splice(a,1),!(r.length>0)&&(lg.forEach(s=>{delete t[s]}),delete t._chartjs)}function j1(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const dg=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function ug(t,e){let n=[],r=!1;return function(...a){n=a,r||(r=!0,dg.call(window,()=>{r=!1,t.apply(e,n)}))}}function I1(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const fg=t=>t==="start"?"left":t==="end"?"right":"center",St=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,R1=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,lo=t=>t===0||t===1,hg=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ge/n)),gg=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ge/n)+1,Ra={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*qe)+1,easeOutSine:t=>Math.sin(t*qe),easeInOutSine:t=>-.5*(Math.cos(et*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=>lo(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=>lo(t)?t:hg(t,.075,.3),easeOutElastic:t=>lo(t)?t:gg(t,.075,.3),easeInOutElastic(t){return lo(t)?t:t<.5?.5*hg(t*2,.1125,.45):.5+.5*gg(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-Ra.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?Ra.easeInBounce(t*2)*.5:Ra.easeOutBounce(t*2-1)*.5+.5};function mg(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function pg(t){return mg(t)?t:new Ta(t)}function Bl(t){return mg(t)?t:new Ta(t).saturate(.5).darken(.1).hexString()}const A1=["x","y","borderWidth","radius","tension"],F1=["color","borderColor","backgroundColor"];function L1(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:F1},numbers:{type:"number",properties:A1}}),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 W1(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const bg=new Map;function z1(t,e){e=e||{};const n=t+JSON.stringify(e);let r=bg.get(n);return r||(r=new Intl.NumberFormat(t,e),bg.set(n,r)),r}function B1(t,e,n){return z1(e,n).format(t)}var H1={formatters:{values(t){return st(t)?t:""+t}}};function Y1(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:H1.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 fr=Object.create(null),Hl=Object.create(null);function Aa(t,e){if(!e)return t;const n=e.split(".");for(let r=0,a=n.length;r<a;++r){const s=n[r];t=t[s]||(t[s]=Object.create(null))}return t}function Yl(t,e,n){return typeof e=="string"?Pa(Aa(t,e),n):Pa(Aa(t,""),e)}class V1{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,a)=>Bl(a.backgroundColor),this.hoverBorderColor=(r,a)=>Bl(a.borderColor),this.hoverColor=(r,a)=>Bl(a.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 Yl(this,e,n)}get(e){return Aa(this,e)}describe(e,n){return Yl(Hl,e,n)}override(e,n){return Yl(fr,e,n)}route(e,n,r,a){const s=Aa(this,e),o=Aa(this,r),i="_"+n;Object.defineProperties(s,{[i]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[i],c=o[a];return pe(l)?Object.assign({},c,l):_e(l,c)},set(l){this[i]=l}}})}apply(e){e.forEach(n=>n(this))}}var He=new V1({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[L1,W1,Y1]);function U1(t){return!t||ct(t.size)||ct(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function yg(t,e,n,r,a){let s=e[a];return s||(s=e[a]=t.measureText(a).width,n.push(a)),s>r&&(r=s),r}function hr(t,e,n){const r=t.currentDevicePixelRatio,a=n!==0?Math.max(n/2,.5):0;return Math.round((e-a)*r)/r+a}function vg(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function xg(t,e,n,r){wg(t,e,n,r,null)}function wg(t,e,n,r,a){let s,o,i,l,c,d,u,f;const h=e.pointStyle,m=e.rotation,p=e.radius;let b=(m||0)*S1;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[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:a?t.ellipse(n,r,a/2,p,0,0,Ge):t.arc(n,r,p,0,Ge),t.closePath();break;case"triangle":d=a?a/2:p,t.moveTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=sg,t.lineTo(n+Math.sin(b)*d,r-Math.cos(b)*p),b+=sg,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+cr)*l,u=Math.cos(b+cr)*(a?a/2-c:l),i=Math.sin(b+cr)*l,f=Math.sin(b+cr)*(a?a/2-c:l),t.arc(n-u,r-i,c,b-et,b-qe),t.arc(n+f,r-o,c,b-qe,b),t.arc(n+u,r+i,c,b,b+qe),t.arc(n-f,r+o,c,b+qe,b+et),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*p,d=a?a/2:l,t.rect(n-d,r-l,2*d,2*l);break}b+=cr;case"rectRot":u=Math.cos(b)*(a?a/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(a?a/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+=cr;case"cross":u=Math.cos(b)*(a?a/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(a?a/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)*(a?a/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(a?a/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+=cr,u=Math.cos(b)*(a?a/2:p),o=Math.cos(b)*p,i=Math.sin(b)*p,f=Math.sin(b)*(a?a/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=a?a/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)*(a?a/2:p),r+Math.sin(b)*p);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function kg(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 Vl(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ul(t){t.restore()}function X1(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),ct(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 G1(t,e,n,r,a){if(a.strikethrough||a.underline){const s=t.measureText(r),o=e-s.actualBoundingBoxLeft,i=e+s.actualBoundingBoxRight,l=n-s.actualBoundingBoxAscent,c=n+s.actualBoundingBoxDescent,d=a.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=a.decorationWidth||2,t.moveTo(o,d),t.lineTo(i,d),t.stroke()}}function K1(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function co(t,e,n,r,a,s={}){const o=st(e)?e:[e],i=s.strokeWidth>0&&s.strokeColor!=="";let l,c;for(t.save(),t.font=a.string,X1(t,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&K1(t,s.backdrop),i&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),ct(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(c,n,r,s.maxWidth)),t.fillText(c,n,r,s.maxWidth),G1(t,n,r,c,s),r+=Number(a.lineHeight);t.restore()}function Xl(t,e){const{x:n,y:r,w:a,h:s,radius:o}=e;t.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*et,et,!0),t.lineTo(n,r+s-o.bottomLeft),t.arc(n+o.bottomLeft,r+s-o.bottomLeft,o.bottomLeft,et,qe,!0),t.lineTo(n+a-o.bottomRight,r+s),t.arc(n+a-o.bottomRight,r+s-o.bottomRight,o.bottomRight,qe,0,!0),t.lineTo(n+a,r+o.topRight),t.arc(n+a-o.topRight,r+o.topRight,o.topRight,0,-qe,!0),t.lineTo(n+o.topLeft,r)}const Q1=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Z1=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function J1(t,e){const n=(""+t).match(Q1);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 q1=t=>+t||0;function Gl(t,e){const n={},r=pe(e),a=r?Object.keys(e):e,s=pe(t)?r?o=>_e(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of a)n[o]=q1(s(o));return n}function $1(t){return Gl(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Fa(t){return Gl(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Bt(t){const e=$1(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function pt(t,e){t=t||{},e=e||He.font;let n=_e(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=_e(t.style,e.style);r&&!(""+r).match(Z1)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const a={family:_e(t.family,e.family),lineHeight:J1(_e(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:_e(t.weight,e.weight),string:""};return a.string=U1(a),a}function uo(t,e,n,r){let a,s,o;for(a=0,s=t.length;a<s;++a)if(o=t[a],o!==void 0&&o!==void 0)return o}function e_(t,e,n){const{min:r,max:a}=t,s=tg(e,(a-r)/2),o=(i,l)=>n&&i===0?0:i+l;return{min:o(r,-Math.abs(s)),max:o(a,s)}}function Xr(t,e){return Object.assign(Object.create(t),e)}function Kl(t,e=[""],n,r,a=()=>t[0]){const s=n||t;typeof r>"u"&&(r=Mg("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:r,_getTarget:a,override:i=>Kl([i,...t],e,s,r)};return new Proxy(o,{deleteProperty(i,l){return delete i[l],delete i._keys,delete t[0][l],!0},get(i,l){return Sg(i,l,()=>l_(l,e,t,i))},getOwnPropertyDescriptor(i,l){return Reflect.getOwnPropertyDescriptor(i._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(i,l){return Cg(i).includes(l)},ownKeys(i){return Cg(i)},set(i,l,c){const d=i._storage||(i._storage=a());return i[l]=d[l]=c,delete i._keys,!0}})}function Gr(t,e,n,r){const a={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:_g(t,r),setContext:s=>Gr(t,s,n,r),override:s=>Gr(t.override(s),e,n,r)};return new Proxy(a,{deleteProperty(s,o){return delete s[o],delete t[o],!0},get(s,o,i){return Sg(s,o,()=>n_(s,o,i))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(s,o,i){return t[o]=i,delete s[o],!0}})}function _g(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:a=e.allKeys}=t;return{allKeys:a,scriptable:n,indexable:r,isScriptable:Hn(n)?n:()=>n,isIndexable:Hn(r)?r:()=>r}}const t_=(t,e)=>t?t+Ll(e):e,Ql=(t,e)=>pe(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Sg(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function n_(t,e,n){const{_proxy:r,_context:a,_subProxy:s,_descriptors:o}=t;let i=r[e];return Hn(i)&&o.isScriptable(e)&&(i=r_(e,i,t,n)),st(i)&&i.length&&(i=a_(e,i,t,o.isIndexable)),Ql(e,i)&&(i=Gr(i,a,s&&s[e],o)),i}function r_(t,e,n,r){const{_proxy:a,_context:s,_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(s,o||r);return i.delete(t),Ql(t,l)&&(l=Zl(a._scopes,a,t,l)),l}function a_(t,e,n,r){const{_proxy:a,_context:s,_subProxy:o,_descriptors:i}=n;if(typeof s.index<"u"&&r(t))return e[s.index%e.length];if(pe(e[0])){const l=e,c=a._scopes.filter(d=>d!==l);e=[];for(const d of l){const u=Zl(c,a,t,d);e.push(Gr(u,s,o&&o[t],i))}}return e}function Og(t,e,n){return Hn(t)?t(e,n):t}const s_=(t,e)=>t===!0?e:typeof t=="string"?ja(e,t):void 0;function o_(t,e,n,r,a){for(const s of e){const o=s_(n,s);if(o){t.add(o);const i=Og(o._fallback,n,a);if(typeof i<"u"&&i!==n&&i!==r)return i}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Zl(t,e,n,r){const a=e._rootScopes,s=Og(e._fallback,n,r),o=[...t,...a],i=new Set;i.add(r);let l=Dg(i,o,n,s||n,r);return l===null||typeof s<"u"&&s!==n&&(l=Dg(i,o,s,l,r),l===null)?!1:Kl(Array.from(i),[""],a,s,()=>i_(e,n,r))}function Dg(t,e,n,r,a){for(;n;)n=o_(t,e,n,r,a);return n}function i_(t,e,n){const r=t._getTarget();e in r||(r[e]={});const a=r[e];return st(a)&&pe(n)?n:a||{}}function l_(t,e,n,r){let a;for(const s of e)if(a=Mg(t_(s,t),n),typeof a<"u")return Ql(t,a)?Zl(n,r,t,a):a}function Mg(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function Cg(t){let e=t._keys;return e||(e=t._keys=c_(t._scopes)),e}function c_(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(a=>!a.startsWith("_")))e.add(r);return Array.from(e)}function Jl(){return typeof window<"u"&&typeof document<"u"}function ql(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function fo(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 ho=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function d_(t,e){return ho(t).getPropertyValue(e)}const u_=["top","right","bottom","left"];function gr(t,e,n){const r={};n=n?"-"+n:"";for(let a=0;a<4;a++){const s=u_[a];r[s]=parseFloat(t[e+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const f_=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function h_(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:a,offsetY:s}=r;let o=!1,i,l;if(f_(a,s,t.target))i=a,l=s;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 mr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,a=ho(n),s=a.boxSizing==="border-box",o=gr(a,"padding"),i=gr(a,"border","width"),{x:l,y:c,box:d}=h_(t,n),u=o.left+(d&&i.left),f=o.top+(d&&i.top);let{width:h,height:m}=e;return s&&(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 g_(t,e,n){let r,a;if(e===void 0||n===void 0){const s=t&&ql(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const o=s.getBoundingClientRect(),i=ho(s),l=gr(i,"border","width"),c=gr(i,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,r=fo(i.maxWidth,s,"clientWidth"),a=fo(i.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:r||so,maxHeight:a||so}}const go=t=>Math.round(t*10)/10;function m_(t,e,n,r){const a=ho(t),s=gr(a,"margin"),o=fo(a.maxWidth,t,"clientWidth")||so,i=fo(a.maxHeight,t,"clientHeight")||so,l=g_(t,e,n);let{width:c,height:d}=l;if(a.boxSizing==="content-box"){const f=gr(a,"border","width"),h=gr(a,"padding");c-=h.width+f.width,d-=h.height+f.height}return c=Math.max(0,c-s.width),d=Math.max(0,r?c/r:d-s.height),c=go(Math.min(c,o,l.maxWidth)),d=go(Math.min(d,i,l.maxHeight)),c&&!d&&(d=go(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&d>l.height&&(d=l.height,c=go(Math.floor(d*r))),{width:c,height:d}}function Eg(t,e,n){const r=e||1,a=Math.floor(t.height*r),s=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!==a||o.width!==s?(t.currentDevicePixelRatio=r,o.height=a,o.width=s,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const p_=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Jl()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t}();function Tg(t,e){const n=d_(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const b_=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}}},y_=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Kr(t,e,n){return t?b_(e,n):y_()}function Pg(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 Ng(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*!
19
19
  * Chart.js v4.4.8
20
20
  * https://www.chartjs.org
21
21
  * (c) 2025 Chart.js Contributors
22
22
  * Released under the MIT License
23
- */class x_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,a){const s=n.listeners[a],o=n.duration;s.forEach(i=>i({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=dg.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,i=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),i=!0):(s[o]=s[s.length-1],s.pop());i&&(a.draw(),this._notify(a,r,e,"progress")),s.length||(r.running=!1,this._notify(a,r,e,"complete"),r.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var kn=new x_;const jg="transparent",w_={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=pg(t||jg),a=r.valid&&pg(e||jg);return a&&a.valid?a.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class k_{constructor(e,n,r,a){const s=n[r];a=uo([e.to,a,s,e.from]);const o=uo([e.from,s,a]);this._active=!0,this._fn=e.fn||w_[e.type||typeof o],this._easing=Ra[e.easing]||Ra.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=a,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const a=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=uo([e.to,n,a,e.from]),this._from=uo([e.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,a=this._prop,s=this._from,o=this._loop,i=this._to;let l;if(this._active=s!==i&&(o||n<r),!this._active){this._target[a]=i,this._notify(!0);return}if(n<0){this._target[a]=s;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(s,i,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][n]()}}class Ig{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!pe(e))return;const n=Object.keys(He.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(a=>{const s=e[a];if(!pe(s))return;const o={};for(const i of n)o[i]=s[i];(st(s.properties)&&s.properties||[a]).forEach(i=>{(i===a||!r.has(i))&&r.set(i,o)})})}_animateOptions(e,n){const r=n.options,a=S_(e,r);if(!a)return[];const s=this._createAnimations(a,r);return r.$shared&&__(e.options.$animations,r).then(()=>{e.options=r},()=>{}),s}_createAnimations(e,n){const r=this._properties,a=[],s=e.$animations||(e.$animations={}),o=Object.keys(n),i=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){a.push(...this._animateOptions(e,n));continue}const d=n[c];let u=s[c];const f=r.get(c);if(u)if(f&&u.active()){u.update(f,d,i);continue}else u.cancel();if(!f||!f.duration){e[c]=d;continue}s[c]=u=new k_(f,e,c,d),a.push(u)}return a}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return kn.add(this._chart,r),!0}}function __(t,e){const n=[],r=Object.keys(e);for(let a=0;a<r.length;a++){const s=t[r[a]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function S_(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 Rg(t,e){const n=t&&t.options||{},r=n.reverse,a=n.min===void 0?e:0,s=n.max===void 0?e:0;return{start:r?s:a,end:r?a:s}}function O_(t,e,n){if(n===!1)return!1;const r=Rg(t,n),a=Rg(e,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function D_(t){let e,n,r,a;return pe(t)?(e=t.top,n=t.right,r=t.bottom,a=t.left):e=n=r=a=t,{top:e,right:n,bottom:r,left:a,disabled:t===!1}}function Ag(t,e){const n=[],r=t._getSortedDatasetMetas(e);let a,s;for(a=0,s=r.length;a<s;++a)n.push(r[a].index);return n}function Fg(t,e,n,r={}){const a=t.keys,s=r.mode==="single";let o,i,l,c;if(e===null)return;let d=!1;for(o=0,i=a.length;o<i;++o){if(l=+a[o],l===n){if(d=!0,r.all)continue;break}c=t.values[l],wn(c)&&(s||e===0||og(e)===og(c))&&(e+=c)}return!d&&!r.all?0:e}function M_(t,e){const{iScale:n,vScale:r}=e,a=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",o=Object.keys(t),i=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],i[l]={[a]:d,[s]:t[d]};return i}function $l(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function C_(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function E_(t){const{min:e,max:n,minDefined:r,maxDefined:a}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function T_(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Lg(t,e,n,r){for(const a of e.getMatchingVisibleMetas(r).reverse()){const s=t[a.index];if(n&&s>0||!n&&s<0)return a.index}return null}function Wg(t,e){const{chart:n,_cachedMeta:r}=t,a=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:i}=r,l=s.axis,c=o.axis,d=C_(s,o,r),u=e.length;let f;for(let h=0;h<u;++h){const m=e[h],{[l]:p,[c]:b}=m,x=m._stacks||(m._stacks={});f=x[c]=T_(a,d,p),f[i]=b,f._top=Lg(f,o,!0,r.type),f._bottom=Lg(f,o,!1,r.type);const w=f._visualValues||(f._visualValues={});w[i]=b}}function ec(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function P_(t,e){return Xr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function N_(t,e,n){return Xr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function La(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const a of e){const s=a._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const tc=t=>t==="reset"||t==="none",zg=(t,e)=>e?t:Object.assign({},t),j_=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Ag(n,!0),values:null};class Wa{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=$l(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&&La(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),a=(u,f,h,m)=>u==="x"?f:u==="r"?m:h,s=n.xAxisID=_e(r.xAxisID,ec(e,"x")),o=n.yAxisID=_e(r.yAxisID,ec(e,"y")),i=n.rAxisID=_e(r.rAxisID,ec(e,"r")),l=n.indexAxis,c=n.iAxisID=a(l,s,o,i),d=n.vAxisID=a(l,o,s,i);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(i),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&cg(this._data,this),e._stacked&&La(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(pe(n)){const a=this._cachedMeta;this._data=M_(n,a)}else if(r!==n){if(r){cg(r,this);const a=this._cachedMeta;La(a),a._parsed=[]}n&&Object.isExtensible(n)&&j1(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const s=n._stacked;n._stacked=$l(n.vScale,n),n.stack!==r.stack&&(a=!0,La(n),n.stack=r.stack),this._resyncElements(e),(a||s!==n._stacked)&&(Wg(this,n._parsed),n._stacked=$l(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:a}=this,{iScale:s,_stacked:o}=r,i=s.axis;let l=e===0&&n===a.length?!0:r._sorted,c=e>0&&r._parsed[e-1],d,u,f;if(this._parsing===!1)r._parsed=a,r._sorted=!0,f=a;else{st(a[e])?f=this.parseArrayData(r,a,e,n):pe(a[e])?f=this.parseObjectData(r,a,e,n):f=this.parsePrimitiveData(r,a,e,n);const h=()=>u[i]===null||c&&u[i]<c[i];for(d=0;d<n;++d)r._parsed[d+e]=u=f[d],l&&(h()&&(l=!1),c=u);r._sorted=l}o&&Wg(this,f)}parsePrimitiveData(e,n,r,a){const{iScale:s,vScale:o}=e,i=s.axis,l=o.axis,c=s.getLabels(),d=s===o,u=new Array(a);let f,h,m;for(f=0,h=a;f<h;++f)m=f+r,u[f]={[i]:d||s.parse(c[m],m),[l]:o.parse(n[m],m)};return u}parseArrayData(e,n,r,a){const{xScale:s,yScale:o}=e,i=new Array(a);let l,c,d,u;for(l=0,c=a;l<c;++l)d=l+r,u=n[d],i[l]={x:s.parse(u[0],d),y:o.parse(u[1],d)};return i}parseObjectData(e,n,r,a){const{xScale:s,yScale:o}=e,{xAxisKey:i="x",yAxisKey:l="y"}=this._parsing,c=new Array(a);let d,u,f,h;for(d=0,u=a;d<u;++d)f=d+r,h=n[f],c[d]={x:s.parse(ja(h,i),f),y:o.parse(ja(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const a=this.chart,s=this._cachedMeta,o=n[e.axis],i={keys:Ag(a,!0),values:n._stacks[e.axis]._visualValues};return Fg(i,o,s.index,{mode:r})}updateRangeFromParsed(e,n,r,a){const s=r[n.axis];let o=s===null?NaN:s;const i=a&&r._stacks[n.axis];a&&i&&(a.values=i,o=Fg(a,s,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,a=r._parsed,s=r._sorted&&e===r.iScale,o=a.length,i=this._getOtherScale(e),l=j_(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=E_(i);let f,h;function m(){h=a[f];const p=h[i.axis];return!wn(h[e.axis])||d>p||u<p}for(f=0;f<o&&!(!m()&&(this.updateRangeFromParsed(c,e,h,l),s));++f);if(s){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 a,s,o;for(a=0,s=n.length;a<s;++a)o=n[a][e.axis],wn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,a=n.vScale,s=this.getParsed(e);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:a?""+a.getLabelForValue(s[a.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=D_(_e(this.options.clip,O_(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,a=r.data||[],s=n.chartArea,o=[],i=this._drawStart||0,l=this._drawCount||a.length-i,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,s,i,l),d=i;d<i+l;++d){const u=a[d];u.hidden||(u.active&&c?o.push(u):u.draw(e,s))}for(d=0;d<o.length;++d)o[d].draw(e,s)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const a=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];s=o.$context||(o.$context=N_(this.getContext(),e,o)),s.parsed=this.getParsed(e),s.raw=a.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=P_(this.chart.getContext(),this.index)),s.dataset=a,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const a=n==="active",s=this._cachedDataOpts,o=e+"-"+n,i=s[o],l=this.enableOptionSharing&&ao(r);if(i)return zg(i,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=a?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(He.elements[e]),m=()=>this.getContext(r,a,n),p=c.resolveNamedOptions(f,h,m,u);return p.$shared&&(p.$shared=l,s[o]=Object.freeze(zg(p,l))),p}_resolveAnimations(e,n,r){const a=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,i=s[o];if(i)return i;let l;if(a.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,n),f=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(f,this.getContext(e,r,n))}const c=new Ig(a,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||tc(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),a=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==a;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(e,n,r,a){tc(a)?Object.assign(e,r):this._resolveAnimations(n,a).update(e,r)}updateSharedOptions(e,n,r){e&&!tc(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,a){e.active=a;const s=this.getStyle(n,a);this._resolveAnimations(n,r,a).update(e,{options:!a&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[i,l,c]of this._syncList)this[i](l,c);this._syncList=[];const a=r.length,s=n.length,o=Math.min(s,a);o&&this.parse(0,o),s>a?this._insertElements(a,s-a,e):s<a&&this._removeElements(s,a-s)}_insertElements(e,n,r=!0){const a=this._cachedMeta,s=a.data,o=e+n;let i;const l=c=>{for(c.length+=n,i=c.length-1;i>=o;i--)c[i]=c[i-n]};for(l(s),i=e;i<o;++i)s[i]=new this.dataElementType;this._parsing&&l(a._parsed),this.parse(e,n),r&&this.updateElements(s,e,n,"reset")}updateElements(e,n,r,a){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(e,n);r._stacked&&La(r,a)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,a]=e;this[n](r,a)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}J(Wa,"defaults",{}),J(Wa,"datasetElementType",null),J(Wa,"dataElementType",null);function I_(t,e,n){let r=1,a=1,s=0,o=0;if(e<Ge){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,y)=>io(k,i,l,!0)?1:Math.max(v,v*n,y,y*n),m=(k,v,y)=>io(k,i,l,!0)?-1:Math.min(v,v*n,y,y*n),p=h(0,c,u),b=h(qe,d,f),x=m(et,c,u),w=m(et+qe,d,f);r=(p-x)/2,a=(b-w)/2,s=-(p+x)/2,o=-(b+w)/2}return{ratioX:r,ratioY:a,offsetX:s,offsetY:o}}class za extends Wa{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=r;else{let s=l=>+r[l];if(pe(r[e])){const{key:l="value"}=this._parsing;s=c=>+ja(r[c],l)}let o,i;for(o=e,i=e+n;o<i;++o)a._parsed[o]=s(o)}}_getRotation(){return dr(this.options.rotation-90)}_getCircumference(){return dr(this.options.circumference)}_getRotationExtents(){let e=Ge,n=-Ge;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,s=a._getRotation(),o=a._getCircumference();e=Math.min(e,s),n=Math.max(n,s+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,a=this._cachedMeta,s=a.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,i=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(v1(this.options.cutout,i),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:m,offsetY:p}=I_(u,d,l),b=(r.width-o)/f,x=(r.height-o)/h,w=Math.max(Math.min(b,x)/2,0),k=tg(this.options.radius,w),v=Math.max(k*l,0),y=(k-v)/this._getVisibleDatasetWeightTotal();this.offsetX=m*k,this.offsetY=p*k,a.total=this.calculateTotal(),this.outerRadius=k-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*c,0),this.updateElements(s,0,s.length,e)}_circumference(e,n){const r=this.options,a=this._cachedMeta,s=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||a._parsed[e]===null||a.data[e].hidden?0:this.calculateCircumference(a._parsed[e]*s/Ge)}updateElements(e,n,r,a){const s=a==="reset",o=this.chart,i=o.chartArea,c=o.options.animation,d=(i.left+i.right)/2,u=(i.top+i.bottom)/2,f=s&&c.animateScale,h=f?0:this.innerRadius,m=f?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(n,a);let x=this._getRotation(),w;for(w=0;w<n;++w)x+=this._circumference(w,s);for(w=n;w<n+r;++w){const k=this._circumference(w,s),v=e[w],y={x:d+this.offsetX,y:u+this.offsetY,startAngle:x,endAngle:x+k,circumference:k,outerRadius:m,innerRadius:h};b&&(y.options=p||this.resolveDataElementOptions(w,v.active?"active":a)),x+=k,this.updateElement(v,w,y,a)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,a;for(a=0;a<n.length;a++){const s=e._parsed[a];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(a)&&!n[a].hidden&&(r+=Math.abs(s))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?Ge*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],s=H1(n._parsed[e],r.options.locale);return{label:a[e]||"",value:s}}getMaxBorderWidth(e){let n=0;const r=this.chart;let a,s,o,i,l;if(!e){for(a=0,s=r.data.datasets.length;a<s;++a)if(r.isDatasetVisible(a)){o=r.getDatasetMeta(a),e=o.data,i=o.controller;break}}if(!e)return 0;for(a=0,s=e.length;a<s;++a)l=i.resolveDataElementOptions(a),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,a=e.length;r<a;++r){const s=this.resolveDataElementOptions(r);n=Math.max(n,s.offset||0,s.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(_e(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}J(za,"id","doughnut"),J(za,"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"}),J(za,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),J(za,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=e.legend.options;return n.labels.map((s,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:a,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function pr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class nc{constructor(e){J(this,"options");this.options=e||{}}static override(e){Object.assign(nc.prototype,e)}init(){}formats(){return pr()}parse(){return pr()}format(){return pr()}add(){return pr()}diff(){return pr()}startOf(){return pr()}endOf(){return pr()}}var R_={_date:nc};function A_(t,e,n,r){const{controller:a,data:s,_sorted:o}=t,i=a._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(i&&e===i.axis&&e!=="r"&&o&&s.length){const c=i._reversePixels?P1:zl;if(r){if(a._sharedOptions){const d=s[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(s,e,n-u),h=c(s,e,n+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(s,e,n);if(l){const{vScale:u}=a._cachedMeta,{_parsed:f}=t,h=f.slice(0,d.lo+1).reverse().findIndex(p=>!ct(p[u.axis]));d.lo-=Math.max(0,h);const m=f.slice(d.hi).findIndex(p=>!ct(p[u.axis]));d.hi+=Math.max(0,m)}return d}}return{lo:0,hi:s.length-1}}function mo(t,e,n,r,a){const s=t.getSortedVisibleDatasetMetas(),o=n[e];for(let i=0,l=s.length;i<l;++i){const{index:c,data:d}=s[i],{lo:u,hi:f}=A_(s[i],e,o,a);for(let h=u;h<=f;++h){const m=d[h];m.skip||r(m,c,h)}}}function F_(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,a){const s=e?Math.abs(r.x-a.x):0,o=n?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function rc(t,e,n,r,a){const s=[];return!a&&!t.isPointInArea(e)||mo(t,n,e,function(i,l,c){!a&&!kg(i,t.chartArea,0)||i.inRange(e.x,e.y,r)&&s.push({element:i,datasetIndex:l,index:c})},!0),s}function L_(t,e,n,r){let a=[];function s(o,i,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:u}=ig(o,{x:e.x,y:e.y});io(u,c,d)&&a.push({element:o,datasetIndex:i,index:l})}return mo(t,n,e,s),a}function W_(t,e,n,r,a,s){let o=[];const i=F_(n);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(e.x,e.y,a);if(r&&!h)return;const m=d.getCenterPoint(a);if(!(!!s||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 mo(t,n,e,c),o}function ac(t,e,n,r,a,s){return!s&&!t.isPointInArea(e)?[]:n==="r"&&!r?L_(t,e,n,a):W_(t,e,n,r,a,s)}function Bg(t,e,n,r,a){const s=[],o=n==="x"?"inXRange":"inYRange";let i=!1;return mo(t,n,e,(l,c,d)=>{l[o]&&l[o](e[n],a)&&(s.push({element:l,datasetIndex:c,index:d}),i=i||l.inRange(e.x,e.y,a))}),r&&!i?[]:s}var z_={modes:{index(t,e,n,r){const a=mr(e,t),s=n.axis||"x",o=n.includeInvisible||!1,i=n.intersect?rc(t,a,s,r,o):ac(t,a,s,!1,r,o),l=[];return i.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=i[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,n,r){const a=mr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let i=n.intersect?rc(t,a,s,r,o):ac(t,a,s,!1,r,o);if(i.length>0){const l=i[0].datasetIndex,c=t.getDatasetMeta(l).data;i=[];for(let d=0;d<c.length;++d)i.push({element:c[d],datasetIndex:l,index:d})}return i},point(t,e,n,r){const a=mr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return rc(t,a,s,r,o)},nearest(t,e,n,r){const a=mr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return ac(t,a,s,n.intersect,r,o)},x(t,e,n,r){const a=mr(e,t);return Bg(t,a,"x",n.intersect,r)},y(t,e,n,r){const a=mr(e,t);return Bg(t,a,"y",n.intersect,r)}}};const Hg=["left","top","right","bottom"];function Ba(t,e){return t.filter(n=>n.pos===e)}function Yg(t,e){return t.filter(n=>Hg.indexOf(n.pos)===-1&&n.box.axis===e)}function Ha(t,e){return t.sort((n,r)=>{const a=e?r:n,s=e?n:r;return a.weight===s.weight?a.index-s.index:a.weight-s.weight})}function B_(t){const e=[];let n,r,a,s,o,i;for(n=0,r=(t||[]).length;n<r;++n)a=t[n],{position:s,options:{stack:o,stackWeight:i=1}}=a,e.push({index:n,box:a,pos:s,horizontal:a.isHorizontal(),weight:a.weight,stack:o&&s+o,stackWeight:i});return e}function H_(t){const e={};for(const n of t){const{stack:r,pos:a,stackWeight:s}=n;if(!r||!Hg.includes(a))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}function Y_(t,e){const n=H_(t),{vBoxMaxWidth:r,hBoxMaxHeight:a}=e;let s,o,i;for(s=0,o=t.length;s<o;++s){i=t[s];const{fullSize:l}=i.box,c=n[i.stack],d=c&&i.stackWeight/c.weight;i.horizontal?(i.width=d?d*r:l&&e.availableWidth,i.height=a):(i.width=r,i.height=d?d*a:l&&e.availableHeight)}return n}function V_(t){const e=B_(t),n=Ha(e.filter(c=>c.box.fullSize),!0),r=Ha(Ba(e,"left"),!0),a=Ha(Ba(e,"right")),s=Ha(Ba(e,"top"),!0),o=Ha(Ba(e,"bottom")),i=Yg(e,"x"),l=Yg(e,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:a.concat(l).concat(o).concat(i),chartArea:Ba(e,"chartArea"),vertical:r.concat(a).concat(l),horizontal:s.concat(o).concat(i)}}function Vg(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Ug(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 U_(t,e,n,r){const{pos:a,box:s}=n,o=t.maxPadding;if(!pe(a)){n.size&&(t[a]-=n.size);const u=r[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?s.height:s.width),n.size=u.size/u.count,t[a]+=n.size}s.getPadding&&Ug(o,s.getPadding());const i=Math.max(0,e.outerWidth-Vg(o,t,"left","right")),l=Math.max(0,e.outerHeight-Vg(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 X_(t){const e=t.maxPadding;function n(r){const a=Math.max(e[r]-t[r],0);return t[r]+=a,a}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function G_(t,e){const n=e.maxPadding;function r(a){const s={left:0,top:0,right:0,bottom:0};return a.forEach(o=>{s[o]=Math.max(e[o],n[o])}),s}return r(t?["left","right"]:["top","bottom"])}function Ya(t,e,n,r){const a=[];let s,o,i,l,c,d;for(s=0,o=t.length,c=0;s<o;++s){i=t[s],l=i.box,l.update(i.width||e.w,i.height||e.h,G_(i.horizontal,e));const{same:u,other:f}=U_(e,n,i,r);c|=u&&a.length,d=d||f,l.fullSize||a.push(i)}return c&&Ya(a,e,n,r)||d}function po(t,e,n,r,a){t.top=n,t.left=e,t.right=e+r,t.bottom=n+a,t.width=r,t.height=a}function Xg(t,e,n,r){const a=n.padding;let{x:s,y:o}=e;for(const i of t){const l=i.box,c=r[i.stack]||{placed:0,weight:1},d=i.stackWeight/c.weight||1;if(i.horizontal){const u=e.w*d,f=c.size||l.height;ao(c.start)&&(o=c.start),l.fullSize?po(l,a.left,o,n.outerWidth-a.right-a.left,f):po(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;ao(c.start)&&(s=c.start),l.fullSize?po(l,s,a.top,f,n.outerHeight-a.bottom-a.top):po(l,s,e.top+c.placed,f,u),c.start=s,c.placed+=u,s=l.right}}e.x=s,e.y=o}var Vn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const a=Bt(t.options.layout.padding),s=Math.max(e-a.width,0),o=Math.max(n-a.height,0),i=V_(t.boxes),l=i.vertical,c=i.horizontal;Se(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:a,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),f=Object.assign({},a);Ug(f,Bt(r));const h=Object.assign({maxPadding:f,w:s,h:o,x:a.left,y:a.top},a),m=Y_(l.concat(c),u);Ya(i.fullSize,h,u,m),Ya(l,h,u,m),Ya(c,h,u,m)&&Ya(l,h,u,m),X_(h),Xg(i.leftAndTop,h,u,m),h.x+=h.w,h.y+=h.h,Xg(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},Se(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 Gg{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,a){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,a?Math.floor(n/a):r)}}isAttached(e){return!0}updateConfig(e){}}class K_ extends Gg{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const bo="$chartjs",Q_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Kg=t=>t===null||t==="";function Z_(t,e){const n=t.style,r=t.getAttribute("height"),a=t.getAttribute("width");if(t[bo]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Kg(a)){const s=Tg(t,"width");s!==void 0&&(t.width=s)}if(Kg(r))if(t.style.height==="")t.height=t.width/(e||2);else{const s=Tg(t,"height");s!==void 0&&(t.height=s)}return t}const Qg=b_?{passive:!0}:!1;function J_(t,e,n){t&&t.addEventListener(e,n,Qg)}function q_(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Qg)}function $_(t,e){const n=Q_[t.type]||t.type,{x:r,y:a}=mr(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:a!==void 0?a:null}}function yo(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function eS(t,e,n){const r=t.canvas,a=new MutationObserver(s=>{let o=!1;for(const i of s)o=o||yo(i.addedNodes,r),o=o&&!yo(i.removedNodes,r);o&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function tS(t,e,n){const r=t.canvas,a=new MutationObserver(s=>{let o=!1;for(const i of s)o=o||yo(i.removedNodes,r),o=o&&!yo(i.addedNodes,r);o&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const Va=new Map;let Zg=0;function Jg(){const t=window.devicePixelRatio;t!==Zg&&(Zg=t,Va.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function nS(t,e){Va.size||window.addEventListener("resize",Jg),Va.set(t,e)}function rS(t){Va.delete(t),Va.size||window.removeEventListener("resize",Jg)}function aS(t,e,n){const r=t.canvas,a=r&&ql(r);if(!a)return;const s=ug((i,l)=>{const c=a.clientWidth;n(i,l),c<a.clientWidth&&n()},window),o=new ResizeObserver(i=>{const l=i[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||s(c,d)});return o.observe(a),nS(t,s),o}function sc(t,e,n){n&&n.disconnect(),e==="resize"&&rS(t)}function sS(t,e,n){const r=t.canvas,a=ug(s=>{t.ctx!==null&&n($_(s,t))},t);return J_(r,e,a),a}class oS extends Gg{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(Z_(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[bo])return!1;const r=n[bo].initial;["height","width"].forEach(s=>{const o=r[s];ct(o)?n.removeAttribute(s):n.setAttribute(s,o)});const a=r.style||{};return Object.keys(a).forEach(s=>{n.style[s]=a[s]}),n.width=n.width,delete n[bo],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const a=e.$proxies||(e.$proxies={}),o={attach:eS,detach:tS,resize:aS}[n]||sS;a[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),a=r[n];if(!a)return;({attach:sc,detach:sc,resize:sc}[n]||q_)(e,n,a),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,a){return p_(e,n,r,a)}isAttached(e){const n=e&&ql(e);return!!(n&&n.isConnected)}}function iS(t){return!Jl()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?K_:oS}let Ua=(ji=class{constructor(){J(this,"x");J(this,"y");J(this,"active",!1);J(this,"options");J(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return oo(this.x)&&oo(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const a={};return e.forEach(s=>{a[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),a}},J(ji,"defaults",{}),J(ji,"defaultRoutes"),ji);function lS(t,e){const n=t.options.ticks,r=cS(t),a=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?uS(e):[],o=s.length,i=s[0],l=s[o-1],c=[];if(o>a)return fS(e,c,s,o/a),c;const d=dS(s,e,a);if(o>0){let u,f;const h=o>1?Math.round((l-i)/(o-1)):null;for(vo(e,c,d,ct(h)?0:i-h,i),u=0,f=o-1;u<f;u++)vo(e,c,d,s[u],s[u+1]);return vo(e,c,d,l,ct(h)?e.length:l+h),c}return vo(e,c,d),c}function cS(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),a=t._maxLength/n;return Math.floor(Math.min(r,a))}function dS(t,e,n){const r=hS(t),a=e.length/n;if(!r)return Math.max(a,1);const s=D1(r);for(let o=0,i=s.length-1;o<i;o++){const l=s[o];if(l>a)return l}return Math.max(a,1)}function uS(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function fS(t,e,n,r){let a=0,s=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===s&&(e.push(t[o]),a++,s=n[a*r])}function vo(t,e,n,r,a){const s=_e(r,0),o=Math.min(_e(a,t.length),t.length);let i=0,l,c,d;for(n=Math.ceil(n),a&&(l=a-r,n=l/Math.floor(l/n)),d=s;d<0;)i++,d=Math.round(s+i*n);for(c=Math.max(s,0);c<o;c++)c===d&&(e.push(t[c]),i++,d=Math.round(s+i*n))}function hS(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 gS=t=>t==="left"?"right":t==="right"?"left":t,qg=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,$g=(t,e)=>Math.min(e||t,t);function em(t,e){const n=[],r=t.length/e,a=t.length;let s=0;for(;s<a;s+=r)n.push(t[Math.floor(s)]);return n}function mS(t,e,n){const r=t.ticks.length,a=Math.min(e,r-1),s=t._startPixel,o=t._endPixel,i=1e-6;let l=t.getPixelForTick(a),c;if(!(n&&(r===1?c=Math.max(l-s,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(a-1))/2,l+=a<e?c:-c,l<s-i||l>o+i)))return l}function pS(t,e){Se(t,n=>{const r=n.gc,a=r.length/2;let s;if(a>e){for(s=0;s<a;++s)delete n.data[r[s]];r.splice(0,a)}})}function Xa(t){return t.drawTicks?t.tickLength:0}function tm(t,e){if(!t.display)return 0;const n=pt(t.font,e),r=Bt(t.padding);return(st(t.text)?t.text.length:1)*n.lineHeight+r.height}function bS(t,e){return Xr(t,{scale:e,type:"scale"})}function yS(t,e,n){return Xr(t,{tick:n,index:e,type:"tick"})}function vS(t,e,n){let r=fg(t);return(n&&e!=="right"||!n&&e==="right")&&(r=gS(r)),r}function xS(t,e,n,r){const{top:a,left:s,bottom:o,right:i,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,f,h,m;const p=o-a,b=i-s;if(t.isHorizontal()){if(h=St(r,s,i),pe(n)){const x=Object.keys(n)[0],w=n[x];m=d[x].getPixelForValue(w)+p-e}else n==="center"?m=(c.bottom+c.top)/2+p-e:m=qg(t,n,e);f=i-s}else{if(pe(n)){const x=Object.keys(n)[0],w=n[x];h=d[x].getPixelForValue(w)-b+e}else n==="center"?h=(c.left+c.right)/2-b+e:h=qg(t,n,e);m=St(r,o,a),u=n==="left"?-qe:qe}return{titleX:h,titleY:m,maxWidth:f,rotation:u}}class xo extends Ua{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:a}=this;return e=$t(e,Number.POSITIVE_INFINITY),n=$t(n,Number.NEGATIVE_INFINITY),r=$t(r,Number.POSITIVE_INFINITY),a=$t(a,Number.NEGATIVE_INFINITY),{min:$t(e,r),max:$t(n,a),minDefined:wn(e),maxDefined:wn(n)}}getMinMax(e){let{min:n,max:r,minDefined:a,maxDefined:s}=this.getUserBounds(),o;if(a&&s)return{min:n,max:r};const i=this.getMatchingVisibleMetas();for(let l=0,c=i.length;l<c;++l)o=i[l].controller.getMinMax(this,e),a||(n=Math.min(n,o.min)),s||(r=Math.max(r,o.max));return n=s&&n>r?r:n,r=a&&n>r?n:r,{min:$t(n,$t(r,n)),max:$t(r,$t(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(){je(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:a,grace:s,ticks:o}=this.options,i=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=t_(this,s,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=i<this.ticks.length;this._convertTicksToLabels(l?em(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=lS(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(){je(this.options.afterUpdate,[this])}beforeSetDimensions(){je(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(){je(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),je(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){je(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,a,s;for(r=0,a=e.length;r<a;r++)s=e[r],s.label=je(n.callback,[s.value,r,e],this)}afterTickToLabelConversion(){je(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){je(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=$g(this.ticks.length,e.ticks.maxTicksLimit),a=n.minRotation||0,s=n.maxRotation;let o=a,i,l,c;if(!this._isVisible()||!n.display||a>=s||r<=1||!this.isHorizontal()){this.labelRotation=a;return}const d=this._getLabelSizes(),u=d.widest.width,f=d.highest.height,h=Rt(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-Xa(e.grid)-n.padding-tm(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),o=C1(Math.min(Math.asin(Rt((d.highest.height+6)/i,-1,1)),Math.asin(Rt(l/c,-1,1))-Math.asin(Rt(f/c,-1,1)))),o=Math.max(a,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){je(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){je(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:a,grid:s}}=this,o=this._isVisible(),i=this.isHorizontal();if(o){const l=tm(a,n.options.font);if(i?(e.width=this.maxWidth,e.height=Xa(s)+l):(e.height=this.maxHeight,e.width=Xa(s)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=r.padding*2,m=dr(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(i){const x=r.mirror?0:b*u.width+p*f.height;e.height=Math.min(this.maxHeight,e.height+x+h)}else{const x=r.mirror?0:p*u.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+x+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,a){const{ticks:{align:s,padding:o},position:i}=this.options,l=this.labelRotation!==0,c=i!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=a*e.width,h=r*n.height):(f=r*e.height,h=a*n.width):s==="start"?h=n.width:s==="end"?f=e.width:s!=="inner"&&(f=e.width/2,h=n.width/2),this.paddingLeft=Math.max((f-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-u+o)*this.width/(this.width-u),0)}else{let d=n.height/2,u=e.height/2;s==="start"?(d=0,u=e.height):s==="end"&&(d=n.height,u=0),this.paddingTop=d+o,this.paddingBottom=u+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){je(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++)ct(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=em(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:a,_longestTextCache:s}=this,o=[],i=[],l=Math.floor(n/$g(n,r));let c=0,d=0,u,f,h,m,p,b,x,w,k,v,y;for(u=0;u<n;u+=l){if(m=e[u].label,p=this._resolveTickFontOptions(u),a.font=b=p.string,x=s[b]=s[b]||{data:{},gc:[]},w=p.lineHeight,k=v=0,!ct(m)&&!st(m))k=yg(a,x.data,x.gc,k,m),v=w;else if(st(m))for(f=0,h=m.length;f<h;++f)y=m[f],!ct(y)&&!st(y)&&(k=yg(a,x.data,x.gc,k,y),v+=w);o.push(k),i.push(v),c=Math.max(k,c),d=Math.max(v,d)}pS(s,n);const S=o.indexOf(c),N=i.indexOf(d),C=P=>({width:o[P]||0,height:i[P]||0});return{first:C(0),last:C(n-1),widest:C(S),highest:C(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 T1(this._alignToPixels?hr(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=yS(this.getContext(),e,r))}return this.$context||(this.$context=bS(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=dr(this.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),s=this._getLabelSizes(),o=e.autoSkipPadding||0,i=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*r>i*a?i/r:l/a:l*a<i*r?l/r:i/a}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,a=this.options,{grid:s,position:o,border:i}=a,l=s.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=Xa(s),h=[],m=i.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,x=function(L){return hr(r,L,p)};let w,k,v,y,S,N,C,P,E,B,F,O;if(o==="top")w=x(this.bottom),N=this.bottom-f,P=w-b,B=x(e.top)+b,O=e.bottom;else if(o==="bottom")w=x(this.top),B=e.top,O=x(e.bottom)-b,N=w+b,P=this.top+f;else if(o==="left")w=x(this.right),S=this.right-f,C=w-b,E=x(e.left)+b,F=e.right;else if(o==="right")w=x(this.left),E=e.left,F=x(e.right)-b,S=w+b,C=this.left+f;else if(n==="x"){if(o==="center")w=x((e.top+e.bottom)/2+.5);else if(pe(o)){const L=Object.keys(o)[0],V=o[L];w=x(this.chart.scales[L].getPixelForValue(V))}B=e.top,O=e.bottom,N=w+b,P=N+f}else if(n==="y"){if(o==="center")w=x((e.left+e.right)/2);else if(pe(o)){const L=Object.keys(o)[0],V=o[L];w=x(this.chart.scales[L].getPixelForValue(V))}S=w-b,C=S-f,E=e.left,F=e.right}const D=_e(a.ticks.maxTicksLimit,u),T=Math.max(1,Math.ceil(u/D));for(k=0;k<u;k+=T){const L=this.getContext(k),V=s.setContext(L),K=i.setContext(L),q=V.lineWidth,j=V.color,H=K.dash||[],A=K.dashOffset,R=V.tickWidth,I=V.tickColor,M=V.tickBorderDash||[],W=V.tickBorderDashOffset;v=mS(this,k,l),v!==void 0&&(y=hr(r,v,q),c?S=C=E=F=y:N=P=B=O=y,h.push({tx1:S,ty1:N,tx2:C,ty2:P,x1:E,y1:B,x2:F,y2:O,width:q,color:j,borderDash:H,borderDashOffset:A,tickWidth:R,tickColor:I,tickBorderDash:M,tickBorderDashOffset:W}))}return this._ticksLength=u,this._borderValue=w,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:a,ticks:s}=r,o=this.isHorizontal(),i=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=s,f=Xa(r.grid),h=f+d,m=u?-d:h,p=-dr(this.labelRotation),b=[];let x,w,k,v,y,S,N,C,P,E,B,F,O="middle";if(a==="top")S=this.bottom-m,N=this._getXAxisLabelAlignment();else if(a==="bottom")S=this.top+m,N=this._getXAxisLabelAlignment();else if(a==="left"){const T=this._getYAxisLabelAlignment(f);N=T.textAlign,y=T.x}else if(a==="right"){const T=this._getYAxisLabelAlignment(f);N=T.textAlign,y=T.x}else if(n==="x"){if(a==="center")S=(e.top+e.bottom)/2+h;else if(pe(a)){const T=Object.keys(a)[0],L=a[T];S=this.chart.scales[T].getPixelForValue(L)+h}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")y=(e.left+e.right)/2-h;else if(pe(a)){const T=Object.keys(a)[0],L=a[T];y=this.chart.scales[T].getPixelForValue(L)}N=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?O="top":l==="end"&&(O="bottom"));const D=this._getLabelSizes();for(x=0,w=i.length;x<w;++x){k=i[x],v=k.label;const T=s.setContext(this.getContext(x));C=this.getPixelForTick(x)+s.labelOffset,P=this._resolveTickFontOptions(x),E=P.lineHeight,B=st(v)?v.length:1;const L=B/2,V=T.color,K=T.textStrokeColor,q=T.textStrokeWidth;let j=N;o?(y=C,N==="inner"&&(x===w-1?j=this.options.reverse?"left":"right":x===0?j=this.options.reverse?"right":"left":j="center"),a==="top"?c==="near"||p!==0?F=-B*E+E/2:c==="center"?F=-D.highest.height/2-L*E+E:F=-D.highest.height+E/2:c==="near"||p!==0?F=E/2:c==="center"?F=D.highest.height/2-L*E:F=D.highest.height-B*E,u&&(F*=-1),p!==0&&!T.showLabelBackdrop&&(y+=E/2*Math.sin(p))):(S=C,F=(1-B)*E/2);let H;if(T.showLabelBackdrop){const A=Bt(T.backdropPadding),R=D.heights[x],I=D.widths[x];let M=F-A.top,W=0-A.left;switch(O){case"middle":M-=R/2;break;case"bottom":M-=R;break}switch(N){case"center":W-=I/2;break;case"right":W-=I;break;case"inner":x===w-1?W-=I:x>0&&(W-=I/2);break}H={left:W,top:M,width:I+A.width,height:R+A.height,color:T.backdropColor}}b.push({label:v,font:P,textOffset:F,options:{rotation:p,color:V,strokeColor:K,strokeWidth:q,textAlign:j,textBaseline:O,translation:[y,S],backdrop:H}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-dr(this.labelRotation))return e==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:a,padding:s}}=this.options,o=this._getLabelSizes(),i=e+s,l=o.widest.width;let c,d;return n==="left"?a?(d=this.right+s,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-i,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d=this.left)):n==="right"?a?(d=this.left+s,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+i,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:a,width:s,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,a,s,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(s=>s.value===e);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,o;const i=(l,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=a.length;s<o;++s){const l=a[s];n.drawOnChartArea&&i({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&i({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:a}}=this,s=r.setContext(this.getContext()),o=r.display?s.width:0;if(!o)return;const i=a.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,f;this.isHorizontal()?(c=hr(e,this.left,o)-o/2,d=hr(e,this.right,i)+i/2,u=f=l):(u=hr(e,this.top,o)-o/2,f=hr(e,this.bottom,i)+i/2,c=d=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(c,u),n.lineTo(d,f),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&Vl(r,a);const s=this.getLabelItems(e);for(const o of s){const i=o.options,l=o.font,c=o.label,d=o.textOffset;co(r,c,0,d,l,i)}a&&Ul(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:a}}=this;if(!r.display)return;const s=pt(r.font),o=Bt(r.padding),i=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||pe(n)?(l+=o.bottom,st(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=xS(this,l,n,i);co(e,r.text,0,0,s,{color:r.color,maxWidth:u,rotation:f,textAlign:vS(i,n,a),textBaseline:"middle",translation:[c,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=_e(e.grid&&e.grid.z,-1),a=_e(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==xo.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let s,o;for(s=0,o=n.length;s<o;++s){const i=n[s];i[r]===this.id&&(!e||i.type===e)&&a.push(i)}return a}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return pt(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class wo{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;_S(n)&&(r=this.register(n));const a=this.items,s=e.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in a||(a[s]=e,wS(e,o,r),this.override&&He.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,a=this.scope;r in n&&delete n[r],a&&r in He[a]&&(delete He[a][r],this.override&&delete fr[r])}}function wS(t,e,n){const r=Pa(Object.create(null),[n?He.get(n):{},He.get(e),t.defaults]);He.set(e,r),t.defaultRoutes&&kS(e,t.defaultRoutes),t.descriptors&&He.describe(e,t.descriptors)}function kS(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),a=r.pop(),s=[t].concat(r).join("."),o=e[n].split("."),i=o.pop(),l=o.join(".");He.route(s,a,l,i)})}function _S(t){return"id"in t&&"defaults"in t}class SS{constructor(){this.controllers=new wo(Wa,"datasets",!0),this.elements=new wo(Ua,"elements"),this.plugins=new wo(Object,"plugins"),this.scales=new wo(xo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(a=>{const s=r||this._getRegistryForType(a);r||s.isForType(a)||s===this.plugins&&a.id?this._exec(e,s,a):Se(a,o=>{const i=r||this._getRegistryForType(o);this._exec(e,i,o)})})}_exec(e,n,r){const a=Ll(e);je(r["before"+a],[],r),n[e](r),je(r["after"+a],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const a=n.get(e);if(a===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return a}}var en=new SS;class OS{constructor(){this._init=[]}notify(e,n,r,a){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const s=a?this._descriptors(e).filter(a):this._descriptors(e),o=this._notify(s,e,n,r);return n==="afterDestroy"&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,n,r,a){a=a||{};for(const s of e){const o=s.plugin,i=o[r],l=[n,a,s.options];if(je(i,l,o)===!1&&a.cancelable)return!1}return!0}invalidate(){ct(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,a=_e(r.options&&r.options.plugins,{}),s=DS(r);return a===!1&&!n?[]:CS(e,s,a,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,a=(s,o)=>s.filter(i=>!o.some(l=>i.plugin.id===l.plugin.id));this._notify(a(n,r),e,"stop"),this._notify(a(r,n),e,"start")}}function DS(t){const e={},n=[],r=Object.keys(en.plugins.items);for(let s=0;s<r.length;s++)n.push(en.getPlugin(r[s]));const a=t.plugins||[];for(let s=0;s<a.length;s++){const o=a[s];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function MS(t,e){return!e&&t===!1?null:t===!0?{}:t}function CS(t,{plugins:e,localIds:n},r,a){const s=[],o=t.getContext();for(const i of e){const l=i.id,c=MS(r[l],a);c!==null&&s.push({plugin:i,options:ES(t.config,{plugin:i,local:n[l]},c,o)})}return s}function ES(t,{plugin:e,local:n},r,a){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(r,s);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function oc(t,e){const n=He.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function TS(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function PS(t,e){return t===e?"_index_":"_value_"}function nm(t){if(t==="x"||t==="y"||t==="r")return t}function NS(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function ic(t,...e){if(nm(t))return t;for(const n of e){const r=n.axis||NS(n.position)||t.length>1&&nm(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function rm(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function jS(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 rm(t,"x",n[0])||rm(t,"y",n[0])}return{}}function IS(t,e){const n=fr[t.type]||{scales:{}},r=e.scales||{},a=oc(t.type,e),s=Object.create(null);return Object.keys(r).forEach(o=>{const i=r[o];if(!pe(i))return console.error(`Invalid scale configuration for scale: ${o}`);if(i._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=ic(o,i,jS(o,t),He.scales[i.type]),c=PS(l,a),d=n.scales||{};s[o]=Na(Object.create(null),[{axis:l},i,d[l],d[c]])}),t.data.datasets.forEach(o=>{const i=o.type||t.type,l=o.indexAxis||oc(i,e),d=(fr[i]||{}).scales||{};Object.keys(d).forEach(u=>{const f=TS(u,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),Na(s[h],[{axis:f},r[h],d[u]])})}),Object.keys(s).forEach(o=>{const i=s[o];Na(i,[He.scales[i.type],He.scale])}),s}function am(t){const e=t.options||(t.options={});e.plugins=_e(e.plugins,{}),e.scales=IS(t,e)}function sm(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function RS(t){return t=t||{},t.data=sm(t.data),am(t),t}const om=new Map,im=new Set;function ko(t,e){let n=om.get(t);return n||(n=e(),om.set(t,n),im.add(n)),n}const Ga=(t,e,n)=>{const r=ja(e,n);r!==void 0&&t.add(r)};class AS{constructor(e){this._config=RS(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=sm(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(),am(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ko(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return ko(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return ko(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return ko(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let a=r.get(e);return(!a||n)&&(a=new Map,r.set(e,a)),a}getOptionScopes(e,n,r){const{options:a,type:s}=this,o=this._cachedScopes(e,r),i=o.get(n);if(i)return i;const l=new Set;n.forEach(d=>{e&&(l.add(e),d.forEach(u=>Ga(l,e,u))),d.forEach(u=>Ga(l,a,u)),d.forEach(u=>Ga(l,fr[s]||{},u)),d.forEach(u=>Ga(l,He,u)),d.forEach(u=>Ga(l,Hl,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),im.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,fr[n]||{},He.datasets[n]||{},{type:n},He,Hl]}resolveNamedOptions(e,n,r,a=[""]){const s={$shared:!0},{resolver:o,subPrefixes:i}=lm(this._resolverCache,e,a);let l=o;if(LS(o,n)){s.$shared=!1,r=Yn(r)?r():r;const c=this.createResolver(e,r,i);l=Gr(o,r,c)}for(const c of n)s[c]=l[c];return s}createResolver(e,n,r=[""],a){const{resolver:s}=lm(this._resolverCache,e,r);return pe(n)?Gr(s,n,void 0,a):s}}function lm(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const a=n.join();let s=r.get(a);return s||(s={resolver:Kl(e,n),subPrefixes:n.filter(i=>!i.toLowerCase().includes("hover"))},r.set(a,s)),s}const FS=t=>pe(t)&&Object.getOwnPropertyNames(t).some(e=>Yn(t[e]));function LS(t,e){const{isScriptable:n,isIndexable:r}=_g(t);for(const a of e){const s=n(a),o=r(a),i=(o||s)&&t[a];if(s&&(Yn(i)||FS(i))||o&&st(i))return!0}return!1}var WS="4.4.8";const zS=["top","bottom","left","right","chartArea"];function cm(t,e){return t==="top"||t==="bottom"||zS.indexOf(t)===-1&&e==="x"}function dm(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function um(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),je(n&&n.onComplete,[t],e)}function BS(t){const e=t.chart,n=e.options.animation;je(n&&n.onProgress,[t],e)}function fm(t){return Jl()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const _o={},hm=t=>{const e=fm(t);return Object.values(_o).filter(n=>n.canvas===e).pop()};function HS(t,e,n){const r=Object.keys(t);for(const a of r){const s=+a;if(s>=e){const o=t[a];delete t[a],(n>0||s>e)&&(t[s+n]=o)}}}function YS(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function So(t,e,n){return t.options.clip?t[n]:e[n]}function VS(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:So(n,e,"left"),right:So(n,e,"right"),top:So(r,e,"top"),bottom:So(r,e,"bottom")}:e}let Oo=($n=class{static register(...e){en.add(...e),gm()}static unregister(...e){en.remove(...e),gm()}constructor(e,n){const r=this.config=new AS(n),a=fm(e),s=hm(a);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||iS(a)),this.platform.updateConfig(r);const i=this.platform.acquireContext(a,o.aspectRatio),l=i&&i.canvas,c=l&&l.height,d=l&&l.width;if(this.id=y1(),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 OS,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=R1(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],_o[this.id]=this,!i||!l){console.error("Failed to create chart: can't acquire context from the given item");return}kn.listen(this,"complete",um),kn.listen(this,"progress",BS),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:a,_aspectRatio:s}=this;return ct(e)?n&&s?s:a?r/a:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return en}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Eg(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return vg(this.canvas,this.ctx),this}stop(){return kn.stop(this),this}resize(e,n){kn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,a=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(a,e,n,s),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Eg(this,i,!0)&&(this.notifyPlugins("resize",{size:o}),je(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Se(n,(r,a)=>{r.id=a})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,a=Object.keys(r).reduce((o,i)=>(o[i]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const i=n[o],l=ic(o,i),c=l==="r",d=l==="x";return{options:i,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Se(s,o=>{const i=o.options,l=i.id,c=ic(l,i),d=_e(i.type,o.dtype);(i.position===void 0||cm(i.position,c)!==cm(o.dposition))&&(i.position=o.dposition),a[l]=!0;let u=null;if(l in r&&r[l].type===d)u=r[l];else{const f=en.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,e)}),Se(a,(o,i)=>{o||delete r[i]}),Se(r,o=>{Vn.configure(this,o,o.options),Vn.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((a,s)=>a.index-s.index),r>n){for(let a=n;a<r;++a)this._destroyDatasetMeta(a);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(dm("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,a)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=n.length;r<a;r++){const s=n[r];let o=this.getDatasetMeta(r);const i=s.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=s.indexAxis||oc(i,this.options),o.order=s.order||0,o.index=r,o.label=""+s.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=en.getController(i),{datasetElementType:c,dataElementType:d}=He.datasets[i];Object.assign(l,{dataElementType:en.getElement(d),datasetElementType:c&&en.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Se(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),f=!a&&s.indexOf(u)===-1;u.buildOrUpdateElements(f),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),a||Se(s,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(dm("z","_idx"));const{_active:i,_lastEvent:l}=this;l?this._eventHandler(l,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Se(this.scales,e=>{Vn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!ag(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:s}of n){const o=r==="_removeElements"?-s:s;HS(e,a,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(e.filter(o=>o[0]===s).map((o,i)=>i+","+o.splice(1).join(","))),a=r(0);for(let s=1;s<n;s++)if(!ag(a,r(s)))return;return Array.from(a).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Vn.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Se(this.boxes,a=>{r&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,s)=>{a._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Yn(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),a={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(r.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(kn.has(this)?this.attached&&!kn.running(this)&&kn.start(this):(this.draw(),um({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,a)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let a,s;for(a=0,s=n.length;a<s;++a){const o=n[a];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,a=!r.disabled,s=VS(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(a&&Vl(n,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),e.controller.draw(),a&&Ul(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return kg(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,a){const s=z_.modes[n];return typeof s=="function"?s(this,e,r,a):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let a=r.filter(s=>s&&s._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=Xr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const a=r?"show":"hide",s=this.getDatasetMeta(e),o=s.controller._resolveAnimations(void 0,a);ao(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(s,{visible:r}),this.update(i=>i.datasetIndex===e?a:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),kn.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(),vg(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete _o[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(s,o)=>{n.addEventListener(this,s,o),e[s]=o},a=(s,o,i)=>{s.offsetX=o,s.offsetY=i,this._eventHandler(s)};Se(this.options.events,s=>r(s,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},a=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const i=()=>{a("attach",i),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,a("resize",s),this._stop(),this._resize(0,0),r("attach",i)},n.isAttached(this.canvas)?i():o()}unbindEvents(){Se(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Se(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const a=r?"set":"remove";let s,o,i,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+a+"DatasetHoverStyle"]()),i=0,l=e.length;i<l;++i){o=e[i];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[a+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:s,index:o})=>{const i=this.getDatasetMeta(s);if(!i)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:i.data[o],index:o}});!no(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const a=this.options.hover,s=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=s(n,e),i=r?e:s(e,n);o.length&&this.updateHoverStyle(o,a.mode,!1),i.length&&a.mode&&this.updateHoverStyle(i,a.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},a=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,a)===!1)return;const s=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(s||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:a=[],options:s}=this,o=n,i=this._getActiveElements(e,a,r,o),l=S1(e),c=YS(e,this._lastEvent,r,l);r&&(this._lastEvent=null,je(s.onHover,[e,i,this],this),l&&je(s.onClick,[e,i,this],this));const d=!no(i,a);return(d||n)&&(this._active=i,this._updateHoverStyles(i,a,n)),this._lastEvent=c,d}_getActiveElements(e,n,r,a){if(e.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,a)}},J($n,"defaults",He),J($n,"instances",_o),J($n,"overrides",fr),J($n,"registry",en),J($n,"version",WS),J($n,"getChart",hm),$n);function gm(){return Se(Oo.instances,t=>t._plugins.invalidate())}function US(t,e,n){const{startAngle:r,pixelMargin:a,x:s,y:o,outerRadius:i,innerRadius:l}=e;let c=a/i;t.beginPath(),t.arc(s,o,i,r-c,n+c),l>a?(c=a/l,t.arc(s,o,l,n+c,r-c,!0)):t.arc(s,o,a,n+qe,r-qe),t.closePath(),t.clip()}function XS(t){return Gl(t,["outerStart","outerEnd","innerStart","innerEnd"])}function GS(t,e,n,r){const a=XS(t.options.borderRadius),s=(n-e)/2,o=Math.min(s,r*e/2),i=l=>{const c=(n-Math.min(s,l))*r/2;return Rt(l,0,Math.min(s,c))};return{outerStart:i(a.outerStart),outerEnd:i(a.outerEnd),innerStart:Rt(a.innerStart,0,o),innerEnd:Rt(a.innerEnd,0,o)}}function Qr(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Do(t,e,n,r,a,s){const{x:o,y:i,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+r+n-c,0),f=d>0?d+r+n+c:0;let h=0;const m=a-l;if(r){const T=d>0?d-r:0,L=u>0?u-r:0,V=(T+L)/2,K=V!==0?m*V/(V+r):m;h=(m-K)/2}const p=Math.max(.001,m*u-n/et)/u,b=(m-p)/2,x=l+b+h,w=a-b-h,{outerStart:k,outerEnd:v,innerStart:y,innerEnd:S}=GS(e,f,u,w-x),N=u-k,C=u-v,P=x+k/N,E=w-v/C,B=f+y,F=f+S,O=x+y/B,D=w-S/F;if(t.beginPath(),s){const T=(P+E)/2;if(t.arc(o,i,u,P,T),t.arc(o,i,u,T,E),v>0){const q=Qr(C,E,o,i);t.arc(q.x,q.y,v,E,w+qe)}const L=Qr(F,w,o,i);if(t.lineTo(L.x,L.y),S>0){const q=Qr(F,D,o,i);t.arc(q.x,q.y,S,w+qe,D+Math.PI)}const V=(w-S/f+(x+y/f))/2;if(t.arc(o,i,f,w-S/f,V,!0),t.arc(o,i,f,V,x+y/f,!0),y>0){const q=Qr(B,O,o,i);t.arc(q.x,q.y,y,O+Math.PI,x-qe)}const K=Qr(N,x,o,i);if(t.lineTo(K.x,K.y),k>0){const q=Qr(N,P,o,i);t.arc(q.x,q.y,k,x-qe,P)}}else{t.moveTo(o,i);const T=Math.cos(P)*u+o,L=Math.sin(P)*u+i;t.lineTo(T,L);const V=Math.cos(E)*u+o,K=Math.sin(E)*u+i;t.lineTo(V,K)}t.closePath()}function KS(t,e,n,r,a){const{fullCircles:s,startAngle:o,circumference:i}=e;let l=e.endAngle;if(s){Do(t,e,n,r,l,a);for(let c=0;c<s;++c)t.fill();isNaN(i)||(l=o+(i%Ge||Ge))}return Do(t,e,n,r,l,a),t.fill(),l}function QS(t,e,n,r,a){const{fullCircles:s,startAngle:o,circumference:i,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=f,h?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let m=e.endAngle;if(s){Do(t,e,n,r,m,a);for(let p=0;p<s;++p)t.stroke();isNaN(i)||(m=o+(i%Ge||Ge))}h&&US(t,e,m),s||(Do(t,e,n,r,m,a),t.stroke())}class Ka extends Ua{constructor(n){super();J(this,"circumference");J(this,"endAngle");J(this,"fullCircles");J(this,"innerRadius");J(this,"outerRadius");J(this,"pixelMargin");J(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,a){const s=this.getProps(["x","y"],a),{angle:o,distance:i}=ig(s,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],a),h=(this.options.spacing+this.options.borderWidth)/2,m=_e(f,c-l),p=io(o,l,c)&&l!==c,b=m>=Ge||p,x=Ia(i,d+h,u+h);return b&&x}getCenterPoint(n){const{x:r,y:a,startAngle:s,endAngle:o,innerRadius:i,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,u=(s+o)/2,f=(i+l+d+c)/2;return{x:r+Math.cos(u)*f,y:a+Math.sin(u)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:a}=this,s=(r.offset||0)/4,o=(r.spacing||0)/2,i=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=a>Ge?Math.floor(a/Ge):0,a===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*s,Math.sin(l)*s);const c=1-Math.sin(Math.min(et,a||0)),d=s*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,KS(n,this,d,o,i),QS(n,this,d,o,i),n.restore()}}J(Ka,"id","arc"),J(Ka,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),J(Ka,"defaultRoutes",{backgroundColor:"backgroundColor"}),J(Ka,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});const mm=(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)}},ZS=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class pm extends Ua{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=je(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,a)=>e.sort(r,a,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,a=pt(r.font),s=a.size,o=this._computeTitleHeight(),{boxWidth:i,itemHeight:l}=mm(r,s);let c,d;n.font=a.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,s,i,l)+10):(d=this.maxHeight,c=this._fitCols(o,a,i,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,a){const{ctx:s,maxWidth:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=a+i;let u=e;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((m,p)=>{const b=r+n/2+s.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:a},c[c.length-1]+=b+i}),u}_fitCols(e,n,r,a){const{ctx:s,maxHeight:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=i,f=0,h=0,m=0,p=0;return this.legendItems.forEach((b,x)=>{const{itemWidth:w,itemHeight:k}=JS(r,n,s,b,a);x>0&&h+k+2*i>d&&(u+=f+i,c.push({width:f,height:h}),m+=f+i,p++,f=h=0),l[x]={left:m,top:h,col:p,width:w,height:k},f=Math.max(f,w),h+=k+i}),u+=f,c.push({width:f,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:a},rtl:s}}=this,o=Kr(s,this.left,this.width);if(this.isHorizontal()){let i=0,l=St(r,this.left+a,this.right-this.lineWidths[i]);for(const c of n)i!==c.row&&(i=c.row,l=St(r,this.left+a,this.right-this.lineWidths[i])),c.top+=this.top+e+a,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+a}else{let i=0,l=St(r,this.top+e+a,this.bottom-this.columnSizes[i].height);for(const c of n)c.col!==i&&(i=c.col,l=St(r,this.top+e+a,this.bottom-this.columnSizes[i].height)),c.top=l,c.left+=this.left+a,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Vl(e,this),this._draw(),Ul(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:a}=this,{align:s,labels:o}=e,i=He.color,l=Kr(e.rtl,this.left,this.width),c=pt(o.font),{padding:d}=o,u=c.size,f=u/2;let h;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=mm(o,u),x=function(S,N,C){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;a.save();const P=_e(C.lineWidth,1);if(a.fillStyle=_e(C.fillStyle,i),a.lineCap=_e(C.lineCap,"butt"),a.lineDashOffset=_e(C.lineDashOffset,0),a.lineJoin=_e(C.lineJoin,"miter"),a.lineWidth=P,a.strokeStyle=_e(C.strokeStyle,i),a.setLineDash(_e(C.lineDash,[])),o.usePointStyle){const E={radius:p*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:P},B=l.xPlus(S,m/2),F=N+f;wg(a,E,B,F,o.pointStyleWidth&&m)}else{const E=N+Math.max((u-p)/2,0),B=l.leftForLtr(S,m),F=Fa(C.borderRadius);a.beginPath(),Object.values(F).some(O=>O!==0)?Xl(a,{x:B,y:E,w:m,h:p,radius:F}):a.rect(B,E,m,p),a.fill(),P!==0&&a.stroke()}a.restore()},w=function(S,N,C){co(a,C.text,S,N+b/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},k=this.isHorizontal(),v=this._computeTitleHeight();k?h={x:St(s,this.left+d,this.right-r[0]),y:this.top+d+v,line:0}:h={x:this.left+d,y:St(s,this.top+v+d,this.bottom-n[0].height),line:0},Pg(this.ctx,e.textDirection);const y=b+d;this.legendItems.forEach((S,N)=>{a.strokeStyle=S.fontColor,a.fillStyle=S.fontColor;const C=a.measureText(S.text).width,P=l.textAlign(S.textAlign||(S.textAlign=o.textAlign)),E=m+f+C;let B=h.x,F=h.y;l.setWidth(this.width),k?N>0&&B+E+d>this.right&&(F=h.y+=y,h.line++,B=h.x=St(s,this.left+d,this.right-r[h.line])):N>0&&F+y>this.bottom&&(B=h.x=B+n[h.line].width+d,h.line++,F=h.y=St(s,this.top+v+d,this.bottom-n[h.line].height));const O=l.x(B);if(x(O,F,S),B=A1(P,B+m+f,k?B+E:this.right,e.rtl),w(l.x(B),F,S),k)h.x+=E+d;else if(typeof S.text!="string"){const D=c.lineHeight;h.y+=bm(S,D)+d}else h.y+=y}),Ng(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=pt(n.font),a=Bt(n.padding);if(!n.display)return;const s=Kr(e.rtl,this.left,this.width),o=this.ctx,i=n.position,l=r.size/2,c=a.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=St(e.align,u,this.right-f);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);d=c+St(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const h=St(i,u,u+f);o.textAlign=s.textAlign(fg(i)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,co(o,n.text,h,d,r)}_computeTitleHeight(){const e=this.options.title,n=pt(e.font),r=Bt(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,a,s;if(Ia(e,this.left,this.right)&&Ia(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(a=s[r],Ia(e,a.left,a.left+a.width)&&Ia(n,a.top,a.top+a.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!eO(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const a=this._hoveredItem,s=ZS(a,r);a&&!s&&je(n.onLeave,[e,a,this],this),this._hoveredItem=r,r&&!s&&je(n.onHover,[e,r,this],this)}else r&&je(n.onClick,[e,r,this],this)}}function JS(t,e,n,r,a){const s=qS(r,t,e,n),o=$S(a,r,e.lineHeight);return{itemWidth:s,itemHeight:o}}function qS(t,e,n,r){let a=t.text;return a&&typeof a!="string"&&(a=a.reduce((s,o)=>s.length>o.length?s:o)),e+n.size/2+r.measureText(a).width}function $S(t,e,n){let r=t;return typeof e.text!="string"&&(r=bm(e,n)),r}function bm(t,e){const n=t.text?t.text.length:0;return e*n}function eO(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var tO={id:"legend",_element:pm,start(t,e,n){const r=t.legend=new pm({ctx:t.ctx,options:n,chart:t});Vn.configure(t,r,n),Vn.addBox(t,r)},stop(t){Vn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Vn.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),e.hidden=!0):(a.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:a,color:s,useBorderRadius:o,borderRadius:i}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=Bt(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:a||c.textAlign,borderRadius:o&&(i||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const Qa={average(t){if(!t.length)return!1;let e,n,r=new Set,a=0,s=0;for(e=0,n=t.length;e<n;++e){const i=t[e].element;if(i&&i.hasValue()){const l=i.tooltipPosition();r.add(l.x),a+=l.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((i,l)=>i+l)/r.size,y:a/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,a=Number.POSITIVE_INFINITY,s,o,i;for(s=0,o=t.length;s<o;++s){const l=t[s].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=E1(e,c);d<a&&(a=d,i=l)}}if(i){const l=i.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function tn(t,e){return e&&(st(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function _n(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
23
+ */class v_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,a){const s=n.listeners[a],o=n.duration;s.forEach(i=>i({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=dg.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,i=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),i=!0):(s[o]=s[s.length-1],s.pop());i&&(a.draw(),this._notify(a,r,e,"progress")),s.length||(r.running=!1,this._notify(a,r,e,"complete"),r.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var kn=new v_;const jg="transparent",x_={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=pg(t||jg),a=r.valid&&pg(e||jg);return a&&a.valid?a.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class w_{constructor(e,n,r,a){const s=n[r];a=uo([e.to,a,s,e.from]);const o=uo([e.from,s,a]);this._active=!0,this._fn=e.fn||x_[e.type||typeof o],this._easing=Ra[e.easing]||Ra.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=o,this._to=a,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const a=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=uo([e.to,n,a,e.from]),this._from=uo([e.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,a=this._prop,s=this._from,o=this._loop,i=this._to;let l;if(this._active=s!==i&&(o||n<r),!this._active){this._target[a]=i,this._notify(!0);return}if(n<0){this._target[a]=s;return}l=n/r%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(s,i,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][n]()}}class Ig{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!pe(e))return;const n=Object.keys(He.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(a=>{const s=e[a];if(!pe(s))return;const o={};for(const i of n)o[i]=s[i];(st(s.properties)&&s.properties||[a]).forEach(i=>{(i===a||!r.has(i))&&r.set(i,o)})})}_animateOptions(e,n){const r=n.options,a=__(e,r);if(!a)return[];const s=this._createAnimations(a,r);return r.$shared&&k_(e.options.$animations,r).then(()=>{e.options=r},()=>{}),s}_createAnimations(e,n){const r=this._properties,a=[],s=e.$animations||(e.$animations={}),o=Object.keys(n),i=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){a.push(...this._animateOptions(e,n));continue}const d=n[c];let u=s[c];const f=r.get(c);if(u)if(f&&u.active()){u.update(f,d,i);continue}else u.cancel();if(!f||!f.duration){e[c]=d;continue}s[c]=u=new w_(f,e,c,d),a.push(u)}return a}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return kn.add(this._chart,r),!0}}function k_(t,e){const n=[],r=Object.keys(e);for(let a=0;a<r.length;a++){const s=t[r[a]];s&&s.active()&&n.push(s.wait())}return Promise.all(n)}function __(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 Rg(t,e){const n=t&&t.options||{},r=n.reverse,a=n.min===void 0?e:0,s=n.max===void 0?e:0;return{start:r?s:a,end:r?a:s}}function S_(t,e,n){if(n===!1)return!1;const r=Rg(t,n),a=Rg(e,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function O_(t){let e,n,r,a;return pe(t)?(e=t.top,n=t.right,r=t.bottom,a=t.left):e=n=r=a=t,{top:e,right:n,bottom:r,left:a,disabled:t===!1}}function Ag(t,e){const n=[],r=t._getSortedDatasetMetas(e);let a,s;for(a=0,s=r.length;a<s;++a)n.push(r[a].index);return n}function Fg(t,e,n,r={}){const a=t.keys,s=r.mode==="single";let o,i,l,c;if(e===null)return;let d=!1;for(o=0,i=a.length;o<i;++o){if(l=+a[o],l===n){if(d=!0,r.all)continue;break}c=t.values[l],wn(c)&&(s||e===0||og(e)===og(c))&&(e+=c)}return!d&&!r.all?0:e}function D_(t,e){const{iScale:n,vScale:r}=e,a=n.axis==="x"?"x":"y",s=r.axis==="x"?"x":"y",o=Object.keys(t),i=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],i[l]={[a]:d,[s]:t[d]};return i}function $l(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function M_(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function C_(t){const{min:e,max:n,minDefined:r,maxDefined:a}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function E_(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Lg(t,e,n,r){for(const a of e.getMatchingVisibleMetas(r).reverse()){const s=t[a.index];if(n&&s>0||!n&&s<0)return a.index}return null}function Wg(t,e){const{chart:n,_cachedMeta:r}=t,a=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:i}=r,l=s.axis,c=o.axis,d=M_(s,o,r),u=e.length;let f;for(let h=0;h<u;++h){const m=e[h],{[l]:p,[c]:b}=m,x=m._stacks||(m._stacks={});f=x[c]=E_(a,d,p),f[i]=b,f._top=Lg(f,o,!0,r.type),f._bottom=Lg(f,o,!1,r.type);const w=f._visualValues||(f._visualValues={});w[i]=b}}function ec(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function T_(t,e){return Xr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function P_(t,e,n){return Xr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function La(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const a of e){const s=a._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const tc=t=>t==="reset"||t==="none",zg=(t,e)=>e?t:Object.assign({},t),N_=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Ag(n,!0),values:null};class Wa{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=$l(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&&La(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),a=(u,f,h,m)=>u==="x"?f:u==="r"?m:h,s=n.xAxisID=_e(r.xAxisID,ec(e,"x")),o=n.yAxisID=_e(r.yAxisID,ec(e,"y")),i=n.rAxisID=_e(r.rAxisID,ec(e,"r")),l=n.indexAxis,c=n.iAxisID=a(l,s,o,i),d=n.vAxisID=a(l,o,s,i);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(i),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&cg(this._data,this),e._stacked&&La(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(pe(n)){const a=this._cachedMeta;this._data=D_(n,a)}else if(r!==n){if(r){cg(r,this);const a=this._cachedMeta;La(a),a._parsed=[]}n&&Object.isExtensible(n)&&N1(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const s=n._stacked;n._stacked=$l(n.vScale,n),n.stack!==r.stack&&(a=!0,La(n),n.stack=r.stack),this._resyncElements(e),(a||s!==n._stacked)&&(Wg(this,n._parsed),n._stacked=$l(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:a}=this,{iScale:s,_stacked:o}=r,i=s.axis;let l=e===0&&n===a.length?!0:r._sorted,c=e>0&&r._parsed[e-1],d,u,f;if(this._parsing===!1)r._parsed=a,r._sorted=!0,f=a;else{st(a[e])?f=this.parseArrayData(r,a,e,n):pe(a[e])?f=this.parseObjectData(r,a,e,n):f=this.parsePrimitiveData(r,a,e,n);const h=()=>u[i]===null||c&&u[i]<c[i];for(d=0;d<n;++d)r._parsed[d+e]=u=f[d],l&&(h()&&(l=!1),c=u);r._sorted=l}o&&Wg(this,f)}parsePrimitiveData(e,n,r,a){const{iScale:s,vScale:o}=e,i=s.axis,l=o.axis,c=s.getLabels(),d=s===o,u=new Array(a);let f,h,m;for(f=0,h=a;f<h;++f)m=f+r,u[f]={[i]:d||s.parse(c[m],m),[l]:o.parse(n[m],m)};return u}parseArrayData(e,n,r,a){const{xScale:s,yScale:o}=e,i=new Array(a);let l,c,d,u;for(l=0,c=a;l<c;++l)d=l+r,u=n[d],i[l]={x:s.parse(u[0],d),y:o.parse(u[1],d)};return i}parseObjectData(e,n,r,a){const{xScale:s,yScale:o}=e,{xAxisKey:i="x",yAxisKey:l="y"}=this._parsing,c=new Array(a);let d,u,f,h;for(d=0,u=a;d<u;++d)f=d+r,h=n[f],c[d]={x:s.parse(ja(h,i),f),y:o.parse(ja(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const a=this.chart,s=this._cachedMeta,o=n[e.axis],i={keys:Ag(a,!0),values:n._stacks[e.axis]._visualValues};return Fg(i,o,s.index,{mode:r})}updateRangeFromParsed(e,n,r,a){const s=r[n.axis];let o=s===null?NaN:s;const i=a&&r._stacks[n.axis];a&&i&&(a.values=i,o=Fg(a,s,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const r=this._cachedMeta,a=r._parsed,s=r._sorted&&e===r.iScale,o=a.length,i=this._getOtherScale(e),l=N_(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:u}=C_(i);let f,h;function m(){h=a[f];const p=h[i.axis];return!wn(h[e.axis])||d>p||u<p}for(f=0;f<o&&!(!m()&&(this.updateRangeFromParsed(c,e,h,l),s));++f);if(s){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 a,s,o;for(a=0,s=n.length;a<s;++a)o=n[a][e.axis],wn(o)&&r.push(o);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,a=n.vScale,s=this.getParsed(e);return{label:r?""+r.getLabelForValue(s[r.axis]):"",value:a?""+a.getLabelForValue(s[a.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=O_(_e(this.options.clip,S_(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,a=r.data||[],s=n.chartArea,o=[],i=this._drawStart||0,l=this._drawCount||a.length-i,c=this.options.drawActiveElementsOnTop;let d;for(r.dataset&&r.dataset.draw(e,s,i,l),d=i;d<i+l;++d){const u=a[d];u.hidden||(u.active&&c?o.push(u):u.draw(e,s))}for(d=0;d<o.length;++d)o[d].draw(e,s)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const a=this.getDataset();let s;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];s=o.$context||(o.$context=P_(this.getContext(),e,o)),s.parsed=this.getParsed(e),s.raw=a.data[e],s.index=s.dataIndex=e}else s=this.$context||(this.$context=T_(this.chart.getContext(),this.index)),s.dataset=a,s.index=s.datasetIndex=this.index;return s.active=!!n,s.mode=r,s}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const a=n==="active",s=this._cachedDataOpts,o=e+"-"+n,i=s[o],l=this.enableOptionSharing&&ao(r);if(i)return zg(i,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,e),u=a?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),d),h=Object.keys(He.elements[e]),m=()=>this.getContext(r,a,n),p=c.resolveNamedOptions(f,h,m,u);return p.$shared&&(p.$shared=l,s[o]=Object.freeze(zg(p,l))),p}_resolveAnimations(e,n,r){const a=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,i=s[o];if(i)return i;let l;if(a.options.animation!==!1){const d=this.chart.config,u=d.datasetAnimationScopeKeys(this._type,n),f=d.getOptionScopes(this.getDataset(),u);l=d.createResolver(f,this.getContext(e,r,n))}const c=new Ig(a,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||tc(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),a=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==a;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(e,n,r,a){tc(a)?Object.assign(e,r):this._resolveAnimations(n,a).update(e,r)}updateSharedOptions(e,n,r){e&&!tc(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,a){e.active=a;const s=this.getStyle(n,a);this._resolveAnimations(n,r,a).update(e,{options:!a&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[i,l,c]of this._syncList)this[i](l,c);this._syncList=[];const a=r.length,s=n.length,o=Math.min(s,a);o&&this.parse(0,o),s>a?this._insertElements(a,s-a,e):s<a&&this._removeElements(s,a-s)}_insertElements(e,n,r=!0){const a=this._cachedMeta,s=a.data,o=e+n;let i;const l=c=>{for(c.length+=n,i=c.length-1;i>=o;i--)c[i]=c[i-n]};for(l(s),i=e;i<o;++i)s[i]=new this.dataElementType;this._parsing&&l(a._parsed),this.parse(e,n),r&&this.updateElements(s,e,n,"reset")}updateElements(e,n,r,a){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(e,n);r._stacked&&La(r,a)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,a]=e;this[n](r,a)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}J(Wa,"defaults",{}),J(Wa,"datasetElementType",null),J(Wa,"dataElementType",null);function j_(t,e,n){let r=1,a=1,s=0,o=0;if(e<Ge){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,y)=>io(k,i,l,!0)?1:Math.max(v,v*n,y,y*n),m=(k,v,y)=>io(k,i,l,!0)?-1:Math.min(v,v*n,y,y*n),p=h(0,c,u),b=h(qe,d,f),x=m(et,c,u),w=m(et+qe,d,f);r=(p-x)/2,a=(b-w)/2,s=-(p+x)/2,o=-(b+w)/2}return{ratioX:r,ratioY:a,offsetX:s,offsetY:o}}class za extends Wa{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=r;else{let s=l=>+r[l];if(pe(r[e])){const{key:l="value"}=this._parsing;s=c=>+ja(r[c],l)}let o,i;for(o=e,i=e+n;o<i;++o)a._parsed[o]=s(o)}}_getRotation(){return dr(this.options.rotation-90)}_getCircumference(){return dr(this.options.circumference)}_getRotationExtents(){let e=Ge,n=-Ge;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,s=a._getRotation(),o=a._getCircumference();e=Math.min(e,s),n=Math.max(n,s+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,a=this._cachedMeta,s=a.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,i=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min(y1(this.options.cutout,i),1),c=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:m,offsetY:p}=j_(u,d,l),b=(r.width-o)/f,x=(r.height-o)/h,w=Math.max(Math.min(b,x)/2,0),k=tg(this.options.radius,w),v=Math.max(k*l,0),y=(k-v)/this._getVisibleDatasetWeightTotal();this.offsetX=m*k,this.offsetY=p*k,a.total=this.calculateTotal(),this.outerRadius=k-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*c,0),this.updateElements(s,0,s.length,e)}_circumference(e,n){const r=this.options,a=this._cachedMeta,s=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||a._parsed[e]===null||a.data[e].hidden?0:this.calculateCircumference(a._parsed[e]*s/Ge)}updateElements(e,n,r,a){const s=a==="reset",o=this.chart,i=o.chartArea,c=o.options.animation,d=(i.left+i.right)/2,u=(i.top+i.bottom)/2,f=s&&c.animateScale,h=f?0:this.innerRadius,m=f?0:this.outerRadius,{sharedOptions:p,includeOptions:b}=this._getSharedOptions(n,a);let x=this._getRotation(),w;for(w=0;w<n;++w)x+=this._circumference(w,s);for(w=n;w<n+r;++w){const k=this._circumference(w,s),v=e[w],y={x:d+this.offsetX,y:u+this.offsetY,startAngle:x,endAngle:x+k,circumference:k,outerRadius:m,innerRadius:h};b&&(y.options=p||this.resolveDataElementOptions(w,v.active?"active":a)),x+=k,this.updateElement(v,w,y,a)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,a;for(a=0;a<n.length;a++){const s=e._parsed[a];s!==null&&!isNaN(s)&&this.chart.getDataVisibility(a)&&!n[a].hidden&&(r+=Math.abs(s))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?Ge*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],s=B1(n._parsed[e],r.options.locale);return{label:a[e]||"",value:s}}getMaxBorderWidth(e){let n=0;const r=this.chart;let a,s,o,i,l;if(!e){for(a=0,s=r.data.datasets.length;a<s;++a)if(r.isDatasetVisible(a)){o=r.getDatasetMeta(a),e=o.data,i=o.controller;break}}if(!e)return 0;for(a=0,s=e.length;a<s;++a)l=i.resolveDataElementOptions(a),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,a=e.length;r<a;++r){const s=this.resolveDataElementOptions(r);n=Math.max(n,s.offset||0,s.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(_e(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}J(za,"id","doughnut"),J(za,"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"}),J(za,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),J(za,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=e.legend.options;return n.labels.map((s,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:a,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});function pr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class nc{constructor(e){J(this,"options");this.options=e||{}}static override(e){Object.assign(nc.prototype,e)}init(){}formats(){return pr()}parse(){return pr()}format(){return pr()}add(){return pr()}diff(){return pr()}startOf(){return pr()}endOf(){return pr()}}var I_={_date:nc};function R_(t,e,n,r){const{controller:a,data:s,_sorted:o}=t,i=a._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(i&&e===i.axis&&e!=="r"&&o&&s.length){const c=i._reversePixels?T1:zl;if(r){if(a._sharedOptions){const d=s[0],u=typeof d.getRange=="function"&&d.getRange(e);if(u){const f=c(s,e,n-u),h=c(s,e,n+u);return{lo:f.lo,hi:h.hi}}}}else{const d=c(s,e,n);if(l){const{vScale:u}=a._cachedMeta,{_parsed:f}=t,h=f.slice(0,d.lo+1).reverse().findIndex(p=>!ct(p[u.axis]));d.lo-=Math.max(0,h);const m=f.slice(d.hi).findIndex(p=>!ct(p[u.axis]));d.hi+=Math.max(0,m)}return d}}return{lo:0,hi:s.length-1}}function mo(t,e,n,r,a){const s=t.getSortedVisibleDatasetMetas(),o=n[e];for(let i=0,l=s.length;i<l;++i){const{index:c,data:d}=s[i],{lo:u,hi:f}=R_(s[i],e,o,a);for(let h=u;h<=f;++h){const m=d[h];m.skip||r(m,c,h)}}}function A_(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,a){const s=e?Math.abs(r.x-a.x):0,o=n?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}function rc(t,e,n,r,a){const s=[];return!a&&!t.isPointInArea(e)||mo(t,n,e,function(i,l,c){!a&&!kg(i,t.chartArea,0)||i.inRange(e.x,e.y,r)&&s.push({element:i,datasetIndex:l,index:c})},!0),s}function F_(t,e,n,r){let a=[];function s(o,i,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],r),{angle:u}=ig(o,{x:e.x,y:e.y});io(u,c,d)&&a.push({element:o,datasetIndex:i,index:l})}return mo(t,n,e,s),a}function L_(t,e,n,r,a,s){let o=[];const i=A_(n);let l=Number.POSITIVE_INFINITY;function c(d,u,f){const h=d.inRange(e.x,e.y,a);if(r&&!h)return;const m=d.getCenterPoint(a);if(!(!!s||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 mo(t,n,e,c),o}function ac(t,e,n,r,a,s){return!s&&!t.isPointInArea(e)?[]:n==="r"&&!r?F_(t,e,n,a):L_(t,e,n,r,a,s)}function Bg(t,e,n,r,a){const s=[],o=n==="x"?"inXRange":"inYRange";let i=!1;return mo(t,n,e,(l,c,d)=>{l[o]&&l[o](e[n],a)&&(s.push({element:l,datasetIndex:c,index:d}),i=i||l.inRange(e.x,e.y,a))}),r&&!i?[]:s}var W_={modes:{index(t,e,n,r){const a=mr(e,t),s=n.axis||"x",o=n.includeInvisible||!1,i=n.intersect?rc(t,a,s,r,o):ac(t,a,s,!1,r,o),l=[];return i.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const d=i[0].index,u=c.data[d];u&&!u.skip&&l.push({element:u,datasetIndex:c.index,index:d})}),l):[]},dataset(t,e,n,r){const a=mr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let i=n.intersect?rc(t,a,s,r,o):ac(t,a,s,!1,r,o);if(i.length>0){const l=i[0].datasetIndex,c=t.getDatasetMeta(l).data;i=[];for(let d=0;d<c.length;++d)i.push({element:c[d],datasetIndex:l,index:d})}return i},point(t,e,n,r){const a=mr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return rc(t,a,s,r,o)},nearest(t,e,n,r){const a=mr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;return ac(t,a,s,n.intersect,r,o)},x(t,e,n,r){const a=mr(e,t);return Bg(t,a,"x",n.intersect,r)},y(t,e,n,r){const a=mr(e,t);return Bg(t,a,"y",n.intersect,r)}}};const Hg=["left","top","right","bottom"];function Ba(t,e){return t.filter(n=>n.pos===e)}function Yg(t,e){return t.filter(n=>Hg.indexOf(n.pos)===-1&&n.box.axis===e)}function Ha(t,e){return t.sort((n,r)=>{const a=e?r:n,s=e?n:r;return a.weight===s.weight?a.index-s.index:a.weight-s.weight})}function z_(t){const e=[];let n,r,a,s,o,i;for(n=0,r=(t||[]).length;n<r;++n)a=t[n],{position:s,options:{stack:o,stackWeight:i=1}}=a,e.push({index:n,box:a,pos:s,horizontal:a.isHorizontal(),weight:a.weight,stack:o&&s+o,stackWeight:i});return e}function B_(t){const e={};for(const n of t){const{stack:r,pos:a,stackWeight:s}=n;if(!r||!Hg.includes(a))continue;const o=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}function H_(t,e){const n=B_(t),{vBoxMaxWidth:r,hBoxMaxHeight:a}=e;let s,o,i;for(s=0,o=t.length;s<o;++s){i=t[s];const{fullSize:l}=i.box,c=n[i.stack],d=c&&i.stackWeight/c.weight;i.horizontal?(i.width=d?d*r:l&&e.availableWidth,i.height=a):(i.width=r,i.height=d?d*a:l&&e.availableHeight)}return n}function Y_(t){const e=z_(t),n=Ha(e.filter(c=>c.box.fullSize),!0),r=Ha(Ba(e,"left"),!0),a=Ha(Ba(e,"right")),s=Ha(Ba(e,"top"),!0),o=Ha(Ba(e,"bottom")),i=Yg(e,"x"),l=Yg(e,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:a.concat(l).concat(o).concat(i),chartArea:Ba(e,"chartArea"),vertical:r.concat(a).concat(l),horizontal:s.concat(o).concat(i)}}function Vg(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Ug(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 V_(t,e,n,r){const{pos:a,box:s}=n,o=t.maxPadding;if(!pe(a)){n.size&&(t[a]-=n.size);const u=r[n.stack]||{size:0,count:1};u.size=Math.max(u.size,n.horizontal?s.height:s.width),n.size=u.size/u.count,t[a]+=n.size}s.getPadding&&Ug(o,s.getPadding());const i=Math.max(0,e.outerWidth-Vg(o,t,"left","right")),l=Math.max(0,e.outerHeight-Vg(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 U_(t){const e=t.maxPadding;function n(r){const a=Math.max(e[r]-t[r],0);return t[r]+=a,a}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function X_(t,e){const n=e.maxPadding;function r(a){const s={left:0,top:0,right:0,bottom:0};return a.forEach(o=>{s[o]=Math.max(e[o],n[o])}),s}return r(t?["left","right"]:["top","bottom"])}function Ya(t,e,n,r){const a=[];let s,o,i,l,c,d;for(s=0,o=t.length,c=0;s<o;++s){i=t[s],l=i.box,l.update(i.width||e.w,i.height||e.h,X_(i.horizontal,e));const{same:u,other:f}=V_(e,n,i,r);c|=u&&a.length,d=d||f,l.fullSize||a.push(i)}return c&&Ya(a,e,n,r)||d}function po(t,e,n,r,a){t.top=n,t.left=e,t.right=e+r,t.bottom=n+a,t.width=r,t.height=a}function Xg(t,e,n,r){const a=n.padding;let{x:s,y:o}=e;for(const i of t){const l=i.box,c=r[i.stack]||{placed:0,weight:1},d=i.stackWeight/c.weight||1;if(i.horizontal){const u=e.w*d,f=c.size||l.height;ao(c.start)&&(o=c.start),l.fullSize?po(l,a.left,o,n.outerWidth-a.right-a.left,f):po(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;ao(c.start)&&(s=c.start),l.fullSize?po(l,s,a.top,f,n.outerHeight-a.bottom-a.top):po(l,s,e.top+c.placed,f,u),c.start=s,c.placed+=u,s=l.right}}e.x=s,e.y=o}var Yn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const a=Bt(t.options.layout.padding),s=Math.max(e-a.width,0),o=Math.max(n-a.height,0),i=Y_(t.boxes),l=i.vertical,c=i.horizontal;Se(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:a,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),f=Object.assign({},a);Ug(f,Bt(r));const h=Object.assign({maxPadding:f,w:s,h:o,x:a.left,y:a.top},a),m=H_(l.concat(c),u);Ya(i.fullSize,h,u,m),Ya(l,h,u,m),Ya(c,h,u,m)&&Ya(l,h,u,m),U_(h),Xg(i.leftAndTop,h,u,m),h.x+=h.w,h.y+=h.h,Xg(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},Se(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 Gg{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,a){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,a?Math.floor(n/a):r)}}isAttached(e){return!0}updateConfig(e){}}class G_ extends Gg{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const bo="$chartjs",K_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Kg=t=>t===null||t==="";function Q_(t,e){const n=t.style,r=t.getAttribute("height"),a=t.getAttribute("width");if(t[bo]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Kg(a)){const s=Tg(t,"width");s!==void 0&&(t.width=s)}if(Kg(r))if(t.style.height==="")t.height=t.width/(e||2);else{const s=Tg(t,"height");s!==void 0&&(t.height=s)}return t}const Qg=p_?{passive:!0}:!1;function Z_(t,e,n){t&&t.addEventListener(e,n,Qg)}function J_(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Qg)}function q_(t,e){const n=K_[t.type]||t.type,{x:r,y:a}=mr(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:a!==void 0?a:null}}function yo(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function $_(t,e,n){const r=t.canvas,a=new MutationObserver(s=>{let o=!1;for(const i of s)o=o||yo(i.addedNodes,r),o=o&&!yo(i.removedNodes,r);o&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function eS(t,e,n){const r=t.canvas,a=new MutationObserver(s=>{let o=!1;for(const i of s)o=o||yo(i.removedNodes,r),o=o&&!yo(i.addedNodes,r);o&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const Va=new Map;let Zg=0;function Jg(){const t=window.devicePixelRatio;t!==Zg&&(Zg=t,Va.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function tS(t,e){Va.size||window.addEventListener("resize",Jg),Va.set(t,e)}function nS(t){Va.delete(t),Va.size||window.removeEventListener("resize",Jg)}function rS(t,e,n){const r=t.canvas,a=r&&ql(r);if(!a)return;const s=ug((i,l)=>{const c=a.clientWidth;n(i,l),c<a.clientWidth&&n()},window),o=new ResizeObserver(i=>{const l=i[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||s(c,d)});return o.observe(a),tS(t,s),o}function sc(t,e,n){n&&n.disconnect(),e==="resize"&&nS(t)}function aS(t,e,n){const r=t.canvas,a=ug(s=>{t.ctx!==null&&n(q_(s,t))},t);return Z_(r,e,a),a}class sS extends Gg{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(Q_(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[bo])return!1;const r=n[bo].initial;["height","width"].forEach(s=>{const o=r[s];ct(o)?n.removeAttribute(s):n.setAttribute(s,o)});const a=r.style||{};return Object.keys(a).forEach(s=>{n.style[s]=a[s]}),n.width=n.width,delete n[bo],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const a=e.$proxies||(e.$proxies={}),o={attach:$_,detach:eS,resize:rS}[n]||aS;a[n]=o(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),a=r[n];if(!a)return;({attach:sc,detach:sc,resize:sc}[n]||J_)(e,n,a),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,a){return m_(e,n,r,a)}isAttached(e){const n=e&&ql(e);return!!(n&&n.isConnected)}}function oS(t){return!Jl()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?G_:sS}let Ua=(ji=class{constructor(){J(this,"x");J(this,"y");J(this,"active",!1);J(this,"options");J(this,"$animations")}tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return oo(this.x)&&oo(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const a={};return e.forEach(s=>{a[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),a}},J(ji,"defaults",{}),J(ji,"defaultRoutes"),ji);function iS(t,e){const n=t.options.ticks,r=lS(t),a=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?dS(e):[],o=s.length,i=s[0],l=s[o-1],c=[];if(o>a)return uS(e,c,s,o/a),c;const d=cS(s,e,a);if(o>0){let u,f;const h=o>1?Math.round((l-i)/(o-1)):null;for(vo(e,c,d,ct(h)?0:i-h,i),u=0,f=o-1;u<f;u++)vo(e,c,d,s[u],s[u+1]);return vo(e,c,d,l,ct(h)?e.length:l+h),c}return vo(e,c,d),c}function lS(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),a=t._maxLength/n;return Math.floor(Math.min(r,a))}function cS(t,e,n){const r=fS(t),a=e.length/n;if(!r)return Math.max(a,1);const s=O1(r);for(let o=0,i=s.length-1;o<i;o++){const l=s[o];if(l>a)return l}return Math.max(a,1)}function dS(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function uS(t,e,n,r){let a=0,s=n[0],o;for(r=Math.ceil(r),o=0;o<t.length;o++)o===s&&(e.push(t[o]),a++,s=n[a*r])}function vo(t,e,n,r,a){const s=_e(r,0),o=Math.min(_e(a,t.length),t.length);let i=0,l,c,d;for(n=Math.ceil(n),a&&(l=a-r,n=l/Math.floor(l/n)),d=s;d<0;)i++,d=Math.round(s+i*n);for(c=Math.max(s,0);c<o;c++)c===d&&(e.push(t[c]),i++,d=Math.round(s+i*n))}function fS(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 hS=t=>t==="left"?"right":t==="right"?"left":t,qg=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,$g=(t,e)=>Math.min(e||t,t);function em(t,e){const n=[],r=t.length/e,a=t.length;let s=0;for(;s<a;s+=r)n.push(t[Math.floor(s)]);return n}function gS(t,e,n){const r=t.ticks.length,a=Math.min(e,r-1),s=t._startPixel,o=t._endPixel,i=1e-6;let l=t.getPixelForTick(a),c;if(!(n&&(r===1?c=Math.max(l-s,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(a-1))/2,l+=a<e?c:-c,l<s-i||l>o+i)))return l}function mS(t,e){Se(t,n=>{const r=n.gc,a=r.length/2;let s;if(a>e){for(s=0;s<a;++s)delete n.data[r[s]];r.splice(0,a)}})}function Xa(t){return t.drawTicks?t.tickLength:0}function tm(t,e){if(!t.display)return 0;const n=pt(t.font,e),r=Bt(t.padding);return(st(t.text)?t.text.length:1)*n.lineHeight+r.height}function pS(t,e){return Xr(t,{scale:e,type:"scale"})}function bS(t,e,n){return Xr(t,{tick:n,index:e,type:"tick"})}function yS(t,e,n){let r=fg(t);return(n&&e!=="right"||!n&&e==="right")&&(r=hS(r)),r}function vS(t,e,n,r){const{top:a,left:s,bottom:o,right:i,chart:l}=t,{chartArea:c,scales:d}=l;let u=0,f,h,m;const p=o-a,b=i-s;if(t.isHorizontal()){if(h=St(r,s,i),pe(n)){const x=Object.keys(n)[0],w=n[x];m=d[x].getPixelForValue(w)+p-e}else n==="center"?m=(c.bottom+c.top)/2+p-e:m=qg(t,n,e);f=i-s}else{if(pe(n)){const x=Object.keys(n)[0],w=n[x];h=d[x].getPixelForValue(w)-b+e}else n==="center"?h=(c.left+c.right)/2-b+e:h=qg(t,n,e);m=St(r,o,a),u=n==="left"?-qe:qe}return{titleX:h,titleY:m,maxWidth:f,rotation:u}}class xo extends Ua{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:a}=this;return e=$t(e,Number.POSITIVE_INFINITY),n=$t(n,Number.NEGATIVE_INFINITY),r=$t(r,Number.POSITIVE_INFINITY),a=$t(a,Number.NEGATIVE_INFINITY),{min:$t(e,r),max:$t(n,a),minDefined:wn(e),maxDefined:wn(n)}}getMinMax(e){let{min:n,max:r,minDefined:a,maxDefined:s}=this.getUserBounds(),o;if(a&&s)return{min:n,max:r};const i=this.getMatchingVisibleMetas();for(let l=0,c=i.length;l<c;++l)o=i[l].controller.getMinMax(this,e),a||(n=Math.min(n,o.min)),s||(r=Math.max(r,o.max));return n=s&&n>r?r:n,r=a&&n>r?n:r,{min:$t(n,$t(r,n)),max:$t(r,$t(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(){je(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:a,grace:s,ticks:o}=this.options,i=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=e_(this,s,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=i<this.ticks.length;this._convertTicksToLabels(l?em(this.ticks,i):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=iS(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(){je(this.options.afterUpdate,[this])}beforeSetDimensions(){je(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(){je(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),je(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){je(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,a,s;for(r=0,a=e.length;r<a;r++)s=e[r],s.label=je(n.callback,[s.value,r,e],this)}afterTickToLabelConversion(){je(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){je(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=$g(this.ticks.length,e.ticks.maxTicksLimit),a=n.minRotation||0,s=n.maxRotation;let o=a,i,l,c;if(!this._isVisible()||!n.display||a>=s||r<=1||!this.isHorizontal()){this.labelRotation=a;return}const d=this._getLabelSizes(),u=d.widest.width,f=d.highest.height,h=Rt(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-Xa(e.grid)-n.padding-tm(e.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),o=M1(Math.min(Math.asin(Rt((d.highest.height+6)/i,-1,1)),Math.asin(Rt(l/c,-1,1))-Math.asin(Rt(f/c,-1,1)))),o=Math.max(a,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){je(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){je(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:a,grid:s}}=this,o=this._isVisible(),i=this.isHorizontal();if(o){const l=tm(a,n.options.font);if(i?(e.width=this.maxWidth,e.height=Xa(s)+l):(e.height=this.maxHeight,e.width=Xa(s)+l),r.display&&this.ticks.length){const{first:c,last:d,widest:u,highest:f}=this._getLabelSizes(),h=r.padding*2,m=dr(this.labelRotation),p=Math.cos(m),b=Math.sin(m);if(i){const x=r.mirror?0:b*u.width+p*f.height;e.height=Math.min(this.maxHeight,e.height+x+h)}else{const x=r.mirror?0:p*u.width+b*f.height;e.width=Math.min(this.maxWidth,e.width+x+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,a){const{ticks:{align:s,padding:o},position:i}=this.options,l=this.labelRotation!==0,c=i!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=a*e.width,h=r*n.height):(f=r*e.height,h=a*n.width):s==="start"?h=n.width:s==="end"?f=e.width:s!=="inner"&&(f=e.width/2,h=n.width/2),this.paddingLeft=Math.max((f-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((h-u+o)*this.width/(this.width-u),0)}else{let d=n.height/2,u=e.height/2;s==="start"?(d=0,u=e.height):s==="end"&&(d=n.height,u=0),this.paddingTop=d+o,this.paddingBottom=u+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){je(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++)ct(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=em(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:a,_longestTextCache:s}=this,o=[],i=[],l=Math.floor(n/$g(n,r));let c=0,d=0,u,f,h,m,p,b,x,w,k,v,y;for(u=0;u<n;u+=l){if(m=e[u].label,p=this._resolveTickFontOptions(u),a.font=b=p.string,x=s[b]=s[b]||{data:{},gc:[]},w=p.lineHeight,k=v=0,!ct(m)&&!st(m))k=yg(a,x.data,x.gc,k,m),v=w;else if(st(m))for(f=0,h=m.length;f<h;++f)y=m[f],!ct(y)&&!st(y)&&(k=yg(a,x.data,x.gc,k,y),v+=w);o.push(k),i.push(v),c=Math.max(k,c),d=Math.max(v,d)}mS(s,n);const S=o.indexOf(c),N=i.indexOf(d),C=P=>({width:o[P]||0,height:i[P]||0});return{first:C(0),last:C(n-1),widest:C(S),highest:C(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 E1(this._alignToPixels?hr(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=bS(this.getContext(),e,r))}return this.$context||(this.$context=pS(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=dr(this.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),s=this._getLabelSizes(),o=e.autoSkipPadding||0,i=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*r>i*a?i/r:l/a:l*a<i*r?l/r:i/a}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,a=this.options,{grid:s,position:o,border:i}=a,l=s.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),f=Xa(s),h=[],m=i.setContext(this.getContext()),p=m.display?m.width:0,b=p/2,x=function(L){return hr(r,L,p)};let w,k,v,y,S,N,C,P,E,B,F,O;if(o==="top")w=x(this.bottom),N=this.bottom-f,P=w-b,B=x(e.top)+b,O=e.bottom;else if(o==="bottom")w=x(this.top),B=e.top,O=x(e.bottom)-b,N=w+b,P=this.top+f;else if(o==="left")w=x(this.right),S=this.right-f,C=w-b,E=x(e.left)+b,F=e.right;else if(o==="right")w=x(this.left),E=e.left,F=x(e.right)-b,S=w+b,C=this.left+f;else if(n==="x"){if(o==="center")w=x((e.top+e.bottom)/2+.5);else if(pe(o)){const L=Object.keys(o)[0],V=o[L];w=x(this.chart.scales[L].getPixelForValue(V))}B=e.top,O=e.bottom,N=w+b,P=N+f}else if(n==="y"){if(o==="center")w=x((e.left+e.right)/2);else if(pe(o)){const L=Object.keys(o)[0],V=o[L];w=x(this.chart.scales[L].getPixelForValue(V))}S=w-b,C=S-f,E=e.left,F=e.right}const D=_e(a.ticks.maxTicksLimit,u),T=Math.max(1,Math.ceil(u/D));for(k=0;k<u;k+=T){const L=this.getContext(k),V=s.setContext(L),K=i.setContext(L),q=V.lineWidth,j=V.color,H=K.dash||[],A=K.dashOffset,R=V.tickWidth,I=V.tickColor,M=V.tickBorderDash||[],W=V.tickBorderDashOffset;v=gS(this,k,l),v!==void 0&&(y=hr(r,v,q),c?S=C=E=F=y:N=P=B=O=y,h.push({tx1:S,ty1:N,tx2:C,ty2:P,x1:E,y1:B,x2:F,y2:O,width:q,color:j,borderDash:H,borderDashOffset:A,tickWidth:R,tickColor:I,tickBorderDash:M,tickBorderDashOffset:W}))}return this._ticksLength=u,this._borderValue=w,h}_computeLabelItems(e){const n=this.axis,r=this.options,{position:a,ticks:s}=r,o=this.isHorizontal(),i=this.ticks,{align:l,crossAlign:c,padding:d,mirror:u}=s,f=Xa(r.grid),h=f+d,m=u?-d:h,p=-dr(this.labelRotation),b=[];let x,w,k,v,y,S,N,C,P,E,B,F,O="middle";if(a==="top")S=this.bottom-m,N=this._getXAxisLabelAlignment();else if(a==="bottom")S=this.top+m,N=this._getXAxisLabelAlignment();else if(a==="left"){const T=this._getYAxisLabelAlignment(f);N=T.textAlign,y=T.x}else if(a==="right"){const T=this._getYAxisLabelAlignment(f);N=T.textAlign,y=T.x}else if(n==="x"){if(a==="center")S=(e.top+e.bottom)/2+h;else if(pe(a)){const T=Object.keys(a)[0],L=a[T];S=this.chart.scales[T].getPixelForValue(L)+h}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")y=(e.left+e.right)/2-h;else if(pe(a)){const T=Object.keys(a)[0],L=a[T];y=this.chart.scales[T].getPixelForValue(L)}N=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?O="top":l==="end"&&(O="bottom"));const D=this._getLabelSizes();for(x=0,w=i.length;x<w;++x){k=i[x],v=k.label;const T=s.setContext(this.getContext(x));C=this.getPixelForTick(x)+s.labelOffset,P=this._resolveTickFontOptions(x),E=P.lineHeight,B=st(v)?v.length:1;const L=B/2,V=T.color,K=T.textStrokeColor,q=T.textStrokeWidth;let j=N;o?(y=C,N==="inner"&&(x===w-1?j=this.options.reverse?"left":"right":x===0?j=this.options.reverse?"right":"left":j="center"),a==="top"?c==="near"||p!==0?F=-B*E+E/2:c==="center"?F=-D.highest.height/2-L*E+E:F=-D.highest.height+E/2:c==="near"||p!==0?F=E/2:c==="center"?F=D.highest.height/2-L*E:F=D.highest.height-B*E,u&&(F*=-1),p!==0&&!T.showLabelBackdrop&&(y+=E/2*Math.sin(p))):(S=C,F=(1-B)*E/2);let H;if(T.showLabelBackdrop){const A=Bt(T.backdropPadding),R=D.heights[x],I=D.widths[x];let M=F-A.top,W=0-A.left;switch(O){case"middle":M-=R/2;break;case"bottom":M-=R;break}switch(N){case"center":W-=I/2;break;case"right":W-=I;break;case"inner":x===w-1?W-=I:x>0&&(W-=I/2);break}H={left:W,top:M,width:I+A.width,height:R+A.height,color:T.backdropColor}}b.push({label:v,font:P,textOffset:F,options:{rotation:p,color:V,strokeColor:K,strokeWidth:q,textAlign:j,textBaseline:O,translation:[y,S],backdrop:H}})}return b}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-dr(this.labelRotation))return e==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:a,padding:s}}=this.options,o=this._getLabelSizes(),i=e+s,l=o.widest.width;let c,d;return n==="left"?a?(d=this.right+s,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-i,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d=this.left)):n==="right"?a?(d=this.left+s,r==="near"?c="right":r==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+i,r==="near"?c="left":r==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:a,width:s,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,a,s,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(s=>s.value===e);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,o;const i=(l,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=a.length;s<o;++s){const l=a[s];n.drawOnChartArea&&i({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&i({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:a}}=this,s=r.setContext(this.getContext()),o=r.display?s.width:0;if(!o)return;const i=a.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,u,f;this.isHorizontal()?(c=hr(e,this.left,o)-o/2,d=hr(e,this.right,i)+i/2,u=f=l):(u=hr(e,this.top,o)-o/2,f=hr(e,this.bottom,i)+i/2,c=d=l),n.save(),n.lineWidth=s.width,n.strokeStyle=s.color,n.beginPath(),n.moveTo(c,u),n.lineTo(d,f),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&Vl(r,a);const s=this.getLabelItems(e);for(const o of s){const i=o.options,l=o.font,c=o.label,d=o.textOffset;co(r,c,0,d,l,i)}a&&Ul(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:a}}=this;if(!r.display)return;const s=pt(r.font),o=Bt(r.padding),i=r.align;let l=s.lineHeight/2;n==="bottom"||n==="center"||pe(n)?(l+=o.bottom,st(r.text)&&(l+=s.lineHeight*(r.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:u,rotation:f}=vS(this,l,n,i);co(e,r.text,0,0,s,{color:r.color,maxWidth:u,rotation:f,textAlign:yS(i,n,a),textBaseline:"middle",translation:[c,d]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=_e(e.grid&&e.grid.z,-1),a=_e(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==xo.prototype.draw?[{z:n,draw:s=>{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let s,o;for(s=0,o=n.length;s<o;++s){const i=n[s];i[r]===this.id&&(!e||i.type===e)&&a.push(i)}return a}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return pt(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class wo{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;kS(n)&&(r=this.register(n));const a=this.items,s=e.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+e);return s in a||(a[s]=e,xS(e,o,r),this.override&&He.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,a=this.scope;r in n&&delete n[r],a&&r in He[a]&&(delete He[a][r],this.override&&delete fr[r])}}function xS(t,e,n){const r=Pa(Object.create(null),[n?He.get(n):{},He.get(e),t.defaults]);He.set(e,r),t.defaultRoutes&&wS(e,t.defaultRoutes),t.descriptors&&He.describe(e,t.descriptors)}function wS(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),a=r.pop(),s=[t].concat(r).join("."),o=e[n].split("."),i=o.pop(),l=o.join(".");He.route(s,a,l,i)})}function kS(t){return"id"in t&&"defaults"in t}class _S{constructor(){this.controllers=new wo(Wa,"datasets",!0),this.elements=new wo(Ua,"elements"),this.plugins=new wo(Object,"plugins"),this.scales=new wo(xo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(a=>{const s=r||this._getRegistryForType(a);r||s.isForType(a)||s===this.plugins&&a.id?this._exec(e,s,a):Se(a,o=>{const i=r||this._getRegistryForType(o);this._exec(e,i,o)})})}_exec(e,n,r){const a=Ll(e);je(r["before"+a],[],r),n[e](r),je(r["after"+a],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const a=n.get(e);if(a===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return a}}var en=new _S;class SS{constructor(){this._init=[]}notify(e,n,r,a){n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const s=a?this._descriptors(e).filter(a):this._descriptors(e),o=this._notify(s,e,n,r);return n==="afterDestroy"&&(this._notify(s,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,n,r,a){a=a||{};for(const s of e){const o=s.plugin,i=o[r],l=[n,a,s.options];if(je(i,l,o)===!1&&a.cancelable)return!1}return!0}invalidate(){ct(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,a=_e(r.options&&r.options.plugins,{}),s=OS(r);return a===!1&&!n?[]:MS(e,s,a,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,a=(s,o)=>s.filter(i=>!o.some(l=>i.plugin.id===l.plugin.id));this._notify(a(n,r),e,"stop"),this._notify(a(r,n),e,"start")}}function OS(t){const e={},n=[],r=Object.keys(en.plugins.items);for(let s=0;s<r.length;s++)n.push(en.getPlugin(r[s]));const a=t.plugins||[];for(let s=0;s<a.length;s++){const o=a[s];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function DS(t,e){return!e&&t===!1?null:t===!0?{}:t}function MS(t,{plugins:e,localIds:n},r,a){const s=[],o=t.getContext();for(const i of e){const l=i.id,c=DS(r[l],a);c!==null&&s.push({plugin:i,options:CS(t.config,{plugin:i,local:n[l]},c,o)})}return s}function CS(t,{plugin:e,local:n},r,a){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(r,s);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function oc(t,e){const n=He.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function ES(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function TS(t,e){return t===e?"_index_":"_value_"}function nm(t){if(t==="x"||t==="y"||t==="r")return t}function PS(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function ic(t,...e){if(nm(t))return t;for(const n of e){const r=n.axis||PS(n.position)||t.length>1&&nm(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function rm(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function NS(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 rm(t,"x",n[0])||rm(t,"y",n[0])}return{}}function jS(t,e){const n=fr[t.type]||{scales:{}},r=e.scales||{},a=oc(t.type,e),s=Object.create(null);return Object.keys(r).forEach(o=>{const i=r[o];if(!pe(i))return console.error(`Invalid scale configuration for scale: ${o}`);if(i._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=ic(o,i,NS(o,t),He.scales[i.type]),c=TS(l,a),d=n.scales||{};s[o]=Na(Object.create(null),[{axis:l},i,d[l],d[c]])}),t.data.datasets.forEach(o=>{const i=o.type||t.type,l=o.indexAxis||oc(i,e),d=(fr[i]||{}).scales||{};Object.keys(d).forEach(u=>{const f=ES(u,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),Na(s[h],[{axis:f},r[h],d[u]])})}),Object.keys(s).forEach(o=>{const i=s[o];Na(i,[He.scales[i.type],He.scale])}),s}function am(t){const e=t.options||(t.options={});e.plugins=_e(e.plugins,{}),e.scales=jS(t,e)}function sm(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function IS(t){return t=t||{},t.data=sm(t.data),am(t),t}const om=new Map,im=new Set;function ko(t,e){let n=om.get(t);return n||(n=e(),om.set(t,n),im.add(n)),n}const Ga=(t,e,n)=>{const r=ja(e,n);r!==void 0&&t.add(r)};class RS{constructor(e){this._config=IS(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=sm(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(),am(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ko(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return ko(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return ko(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return ko(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let a=r.get(e);return(!a||n)&&(a=new Map,r.set(e,a)),a}getOptionScopes(e,n,r){const{options:a,type:s}=this,o=this._cachedScopes(e,r),i=o.get(n);if(i)return i;const l=new Set;n.forEach(d=>{e&&(l.add(e),d.forEach(u=>Ga(l,e,u))),d.forEach(u=>Ga(l,a,u)),d.forEach(u=>Ga(l,fr[s]||{},u)),d.forEach(u=>Ga(l,He,u)),d.forEach(u=>Ga(l,Hl,u))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),im.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,fr[n]||{},He.datasets[n]||{},{type:n},He,Hl]}resolveNamedOptions(e,n,r,a=[""]){const s={$shared:!0},{resolver:o,subPrefixes:i}=lm(this._resolverCache,e,a);let l=o;if(FS(o,n)){s.$shared=!1,r=Hn(r)?r():r;const c=this.createResolver(e,r,i);l=Gr(o,r,c)}for(const c of n)s[c]=l[c];return s}createResolver(e,n,r=[""],a){const{resolver:s}=lm(this._resolverCache,e,r);return pe(n)?Gr(s,n,void 0,a):s}}function lm(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const a=n.join();let s=r.get(a);return s||(s={resolver:Kl(e,n),subPrefixes:n.filter(i=>!i.toLowerCase().includes("hover"))},r.set(a,s)),s}const AS=t=>pe(t)&&Object.getOwnPropertyNames(t).some(e=>Hn(t[e]));function FS(t,e){const{isScriptable:n,isIndexable:r}=_g(t);for(const a of e){const s=n(a),o=r(a),i=(o||s)&&t[a];if(s&&(Hn(i)||AS(i))||o&&st(i))return!0}return!1}var LS="4.4.8";const WS=["top","bottom","left","right","chartArea"];function cm(t,e){return t==="top"||t==="bottom"||WS.indexOf(t)===-1&&e==="x"}function dm(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function um(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),je(n&&n.onComplete,[t],e)}function zS(t){const e=t.chart,n=e.options.animation;je(n&&n.onProgress,[t],e)}function fm(t){return Jl()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const _o={},hm=t=>{const e=fm(t);return Object.values(_o).filter(n=>n.canvas===e).pop()};function BS(t,e,n){const r=Object.keys(t);for(const a of r){const s=+a;if(s>=e){const o=t[a];delete t[a],(n>0||s>e)&&(t[s+n]=o)}}}function HS(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}function So(t,e,n){return t.options.clip?t[n]:e[n]}function YS(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:So(n,e,"left"),right:So(n,e,"right"),top:So(r,e,"top"),bottom:So(r,e,"bottom")}:e}let Oo=(qn=class{static register(...e){en.add(...e),gm()}static unregister(...e){en.remove(...e),gm()}constructor(e,n){const r=this.config=new RS(n),a=fm(e),s=hm(a);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||oS(a)),this.platform.updateConfig(r);const i=this.platform.acquireContext(a,o.aspectRatio),l=i&&i.canvas,c=l&&l.height,d=l&&l.width;if(this.id=b1(),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 SS,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=I1(u=>this.update(u),o.resizeDelay||0),this._dataChanges=[],_o[this.id]=this,!i||!l){console.error("Failed to create chart: can't acquire context from the given item");return}kn.listen(this,"complete",um),kn.listen(this,"progress",zS),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:a,_aspectRatio:s}=this;return ct(e)?n&&s?s:a?r/a:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return en}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Eg(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return vg(this.canvas,this.ctx),this}stop(){return kn.stop(this),this}resize(e,n){kn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,a=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(a,e,n,s),i=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Eg(this,i,!0)&&(this.notifyPlugins("resize",{size:o}),je(r.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Se(n,(r,a)=>{r.id=a})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,a=Object.keys(r).reduce((o,i)=>(o[i]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const i=n[o],l=ic(o,i),c=l==="r",d=l==="x";return{options:i,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Se(s,o=>{const i=o.options,l=i.id,c=ic(l,i),d=_e(i.type,o.dtype);(i.position===void 0||cm(i.position,c)!==cm(o.dposition))&&(i.position=o.dposition),a[l]=!0;let u=null;if(l in r&&r[l].type===d)u=r[l];else{const f=en.getScale(d);u=new f({id:l,type:d,ctx:this.ctx,chart:this}),r[u.id]=u}u.init(i,e)}),Se(a,(o,i)=>{o||delete r[i]}),Se(r,o=>{Yn.configure(this,o,o.options),Yn.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((a,s)=>a.index-s.index),r>n){for(let a=n;a<r;++a)this._destroyDatasetMeta(a);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(dm("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,a)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=n.length;r<a;r++){const s=n[r];let o=this.getDatasetMeta(r);const i=s.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=s.indexAxis||oc(i,this.options),o.order=s.order||0,o.index=r,o.label=""+s.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const l=en.getController(i),{datasetElementType:c,dataElementType:d}=He.datasets[i];Object.assign(l,{dataElementType:en.getElement(d),datasetElementType:c&&en.getElement(c)}),o.controller=new l(this,r),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){Se(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:u}=this.getDatasetMeta(c),f=!a&&s.indexOf(u)===-1;u.buildOrUpdateElements(f),o=Math.max(+u.getMaxOverflow(),o)}o=this._minPadding=r.layout.autoPadding?o:0,this._updateLayout(o),a||Se(s,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(dm("z","_idx"));const{_active:i,_lastEvent:l}=this;l?this._eventHandler(l,!0):i.length&&this._updateHoverStyles(i,i,!0),this.render()}_updateScales(){Se(this.scales,e=>{Yn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!ag(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:s}of n){const o=r==="_removeElements"?-s:s;BS(e,a,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(e.filter(o=>o[0]===s).map((o,i)=>i+","+o.splice(1).join(","))),a=r(0);for(let s=1;s<n;s++)if(!ag(a,r(s)))return;return Array.from(a).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Yn.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Se(this.boxes,a=>{r&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,s)=>{a._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Hn(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),a={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(r.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(kn.has(this)?this.attached&&!kn.running(this)&&kn.start(this):(this.draw(),um({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,a)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let a,s;for(a=0,s=n.length;a<s;++a){const o=n[a];(!e||o.visible)&&r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r=e._clip,a=!r.disabled,s=YS(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(a&&Vl(n,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),e.controller.draw(),a&&Ul(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return kg(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,a){const s=W_.modes[n];return typeof s=="function"?s(this,e,r,a):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let a=r.filter(s=>s&&s._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=Xr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const a=r?"show":"hide",s=this.getDatasetMeta(e),o=s.controller._resolveAnimations(void 0,a);ao(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),o.update(s,{visible:r}),this.update(i=>i.datasetIndex===e?a:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),kn.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(),vg(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete _o[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(s,o)=>{n.addEventListener(this,s,o),e[s]=o},a=(s,o,i)=>{s.offsetX=o,s.offsetY=i,this._eventHandler(s)};Se(this.options.events,s=>r(s,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},a=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const i=()=>{a("attach",i),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,a("resize",s),this._stop(),this._resize(0,0),r("attach",i)},n.isAttached(this.canvas)?i():o()}unbindEvents(){Se(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Se(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const a=r?"set":"remove";let s,o,i,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+a+"DatasetHoverStyle"]()),i=0,l=e.length;i<l;++i){o=e[i];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[a+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:s,index:o})=>{const i=this.getDatasetMeta(s);if(!i)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:i.data[o],index:o}});!no(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const a=this.options.hover,s=(l,c)=>l.filter(d=>!c.some(u=>d.datasetIndex===u.datasetIndex&&d.index===u.index)),o=s(n,e),i=r?e:s(e,n);o.length&&this.updateHoverStyle(o,a.mode,!1),i.length&&a.mode&&this.updateHoverStyle(i,a.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},a=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,a)===!1)return;const s=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(s||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:a=[],options:s}=this,o=n,i=this._getActiveElements(e,a,r,o),l=_1(e),c=HS(e,this._lastEvent,r,l);r&&(this._lastEvent=null,je(s.onHover,[e,i,this],this),l&&je(s.onClick,[e,i,this],this));const d=!no(i,a);return(d||n)&&(this._active=i,this._updateHoverStyles(i,a,n)),this._lastEvent=c,d}_getActiveElements(e,n,r,a){if(e.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,a)}},J(qn,"defaults",He),J(qn,"instances",_o),J(qn,"overrides",fr),J(qn,"registry",en),J(qn,"version",LS),J(qn,"getChart",hm),qn);function gm(){return Se(Oo.instances,t=>t._plugins.invalidate())}function VS(t,e,n){const{startAngle:r,pixelMargin:a,x:s,y:o,outerRadius:i,innerRadius:l}=e;let c=a/i;t.beginPath(),t.arc(s,o,i,r-c,n+c),l>a?(c=a/l,t.arc(s,o,l,n+c,r-c,!0)):t.arc(s,o,a,n+qe,r-qe),t.closePath(),t.clip()}function US(t){return Gl(t,["outerStart","outerEnd","innerStart","innerEnd"])}function XS(t,e,n,r){const a=US(t.options.borderRadius),s=(n-e)/2,o=Math.min(s,r*e/2),i=l=>{const c=(n-Math.min(s,l))*r/2;return Rt(l,0,Math.min(s,c))};return{outerStart:i(a.outerStart),outerEnd:i(a.outerEnd),innerStart:Rt(a.innerStart,0,o),innerEnd:Rt(a.innerEnd,0,o)}}function Qr(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Do(t,e,n,r,a,s){const{x:o,y:i,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+r+n-c,0),f=d>0?d+r+n+c:0;let h=0;const m=a-l;if(r){const T=d>0?d-r:0,L=u>0?u-r:0,V=(T+L)/2,K=V!==0?m*V/(V+r):m;h=(m-K)/2}const p=Math.max(.001,m*u-n/et)/u,b=(m-p)/2,x=l+b+h,w=a-b-h,{outerStart:k,outerEnd:v,innerStart:y,innerEnd:S}=XS(e,f,u,w-x),N=u-k,C=u-v,P=x+k/N,E=w-v/C,B=f+y,F=f+S,O=x+y/B,D=w-S/F;if(t.beginPath(),s){const T=(P+E)/2;if(t.arc(o,i,u,P,T),t.arc(o,i,u,T,E),v>0){const q=Qr(C,E,o,i);t.arc(q.x,q.y,v,E,w+qe)}const L=Qr(F,w,o,i);if(t.lineTo(L.x,L.y),S>0){const q=Qr(F,D,o,i);t.arc(q.x,q.y,S,w+qe,D+Math.PI)}const V=(w-S/f+(x+y/f))/2;if(t.arc(o,i,f,w-S/f,V,!0),t.arc(o,i,f,V,x+y/f,!0),y>0){const q=Qr(B,O,o,i);t.arc(q.x,q.y,y,O+Math.PI,x-qe)}const K=Qr(N,x,o,i);if(t.lineTo(K.x,K.y),k>0){const q=Qr(N,P,o,i);t.arc(q.x,q.y,k,x-qe,P)}}else{t.moveTo(o,i);const T=Math.cos(P)*u+o,L=Math.sin(P)*u+i;t.lineTo(T,L);const V=Math.cos(E)*u+o,K=Math.sin(E)*u+i;t.lineTo(V,K)}t.closePath()}function GS(t,e,n,r,a){const{fullCircles:s,startAngle:o,circumference:i}=e;let l=e.endAngle;if(s){Do(t,e,n,r,l,a);for(let c=0;c<s;++c)t.fill();isNaN(i)||(l=o+(i%Ge||Ge))}return Do(t,e,n,r,l,a),t.fill(),l}function KS(t,e,n,r,a){const{fullCircles:s,startAngle:o,circumference:i,options:l}=e,{borderWidth:c,borderJoinStyle:d,borderDash:u,borderDashOffset:f}=l,h=l.borderAlign==="inner";if(!c)return;t.setLineDash(u||[]),t.lineDashOffset=f,h?(t.lineWidth=c*2,t.lineJoin=d||"round"):(t.lineWidth=c,t.lineJoin=d||"bevel");let m=e.endAngle;if(s){Do(t,e,n,r,m,a);for(let p=0;p<s;++p)t.stroke();isNaN(i)||(m=o+(i%Ge||Ge))}h&&VS(t,e,m),s||(Do(t,e,n,r,m,a),t.stroke())}class Ka extends Ua{constructor(n){super();J(this,"circumference");J(this,"endAngle");J(this,"fullCircles");J(this,"innerRadius");J(this,"outerRadius");J(this,"pixelMargin");J(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,a){const s=this.getProps(["x","y"],a),{angle:o,distance:i}=ig(s,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:u,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],a),h=(this.options.spacing+this.options.borderWidth)/2,m=_e(f,c-l),p=io(o,l,c)&&l!==c,b=m>=Ge||p,x=Ia(i,d+h,u+h);return b&&x}getCenterPoint(n){const{x:r,y:a,startAngle:s,endAngle:o,innerRadius:i,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,u=(s+o)/2,f=(i+l+d+c)/2;return{x:r+Math.cos(u)*f,y:a+Math.sin(u)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:a}=this,s=(r.offset||0)/4,o=(r.spacing||0)/2,i=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=a>Ge?Math.floor(a/Ge):0,a===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*s,Math.sin(l)*s);const c=1-Math.sin(Math.min(et,a||0)),d=s*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,GS(n,this,d,o,i),KS(n,this,d,o,i),n.restore()}}J(Ka,"id","arc"),J(Ka,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),J(Ka,"defaultRoutes",{backgroundColor:"backgroundColor"}),J(Ka,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});const mm=(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)}},QS=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class pm extends Ua{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=je(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,a)=>e.sort(r,a,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,a=pt(r.font),s=a.size,o=this._computeTitleHeight(),{boxWidth:i,itemHeight:l}=mm(r,s);let c,d;n.font=a.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,s,i,l)+10):(d=this.maxHeight,c=this._fitCols(o,a,i,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(d,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,a){const{ctx:s,maxWidth:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=a+i;let u=e;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-d;return this.legendItems.forEach((m,p)=>{const b=r+n/2+s.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:a},c[c.length-1]+=b+i}),u}_fitCols(e,n,r,a){const{ctx:s,maxHeight:o,options:{labels:{padding:i}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-e;let u=i,f=0,h=0,m=0,p=0;return this.legendItems.forEach((b,x)=>{const{itemWidth:w,itemHeight:k}=ZS(r,n,s,b,a);x>0&&h+k+2*i>d&&(u+=f+i,c.push({width:f,height:h}),m+=f+i,p++,f=h=0),l[x]={left:m,top:h,col:p,width:w,height:k},f=Math.max(f,w),h+=k+i}),u+=f,c.push({width:f,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:a},rtl:s}}=this,o=Kr(s,this.left,this.width);if(this.isHorizontal()){let i=0,l=St(r,this.left+a,this.right-this.lineWidths[i]);for(const c of n)i!==c.row&&(i=c.row,l=St(r,this.left+a,this.right-this.lineWidths[i])),c.top+=this.top+e+a,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+a}else{let i=0,l=St(r,this.top+e+a,this.bottom-this.columnSizes[i].height);for(const c of n)c.col!==i&&(i=c.col,l=St(r,this.top+e+a,this.bottom-this.columnSizes[i].height)),c.top=l,c.left+=this.left+a,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Vl(e,this),this._draw(),Ul(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:a}=this,{align:s,labels:o}=e,i=He.color,l=Kr(e.rtl,this.left,this.width),c=pt(o.font),{padding:d}=o,u=c.size,f=u/2;let h;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;const{boxWidth:m,boxHeight:p,itemHeight:b}=mm(o,u),x=function(S,N,C){if(isNaN(m)||m<=0||isNaN(p)||p<0)return;a.save();const P=_e(C.lineWidth,1);if(a.fillStyle=_e(C.fillStyle,i),a.lineCap=_e(C.lineCap,"butt"),a.lineDashOffset=_e(C.lineDashOffset,0),a.lineJoin=_e(C.lineJoin,"miter"),a.lineWidth=P,a.strokeStyle=_e(C.strokeStyle,i),a.setLineDash(_e(C.lineDash,[])),o.usePointStyle){const E={radius:p*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:P},B=l.xPlus(S,m/2),F=N+f;wg(a,E,B,F,o.pointStyleWidth&&m)}else{const E=N+Math.max((u-p)/2,0),B=l.leftForLtr(S,m),F=Fa(C.borderRadius);a.beginPath(),Object.values(F).some(O=>O!==0)?Xl(a,{x:B,y:E,w:m,h:p,radius:F}):a.rect(B,E,m,p),a.fill(),P!==0&&a.stroke()}a.restore()},w=function(S,N,C){co(a,C.text,S,N+b/2,c,{strikethrough:C.hidden,textAlign:l.textAlign(C.textAlign)})},k=this.isHorizontal(),v=this._computeTitleHeight();k?h={x:St(s,this.left+d,this.right-r[0]),y:this.top+d+v,line:0}:h={x:this.left+d,y:St(s,this.top+v+d,this.bottom-n[0].height),line:0},Pg(this.ctx,e.textDirection);const y=b+d;this.legendItems.forEach((S,N)=>{a.strokeStyle=S.fontColor,a.fillStyle=S.fontColor;const C=a.measureText(S.text).width,P=l.textAlign(S.textAlign||(S.textAlign=o.textAlign)),E=m+f+C;let B=h.x,F=h.y;l.setWidth(this.width),k?N>0&&B+E+d>this.right&&(F=h.y+=y,h.line++,B=h.x=St(s,this.left+d,this.right-r[h.line])):N>0&&F+y>this.bottom&&(B=h.x=B+n[h.line].width+d,h.line++,F=h.y=St(s,this.top+v+d,this.bottom-n[h.line].height));const O=l.x(B);if(x(O,F,S),B=R1(P,B+m+f,k?B+E:this.right,e.rtl),w(l.x(B),F,S),k)h.x+=E+d;else if(typeof S.text!="string"){const D=c.lineHeight;h.y+=bm(S,D)+d}else h.y+=y}),Ng(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=pt(n.font),a=Bt(n.padding);if(!n.display)return;const s=Kr(e.rtl,this.left,this.width),o=this.ctx,i=n.position,l=r.size/2,c=a.top+l;let d,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+c,u=St(e.align,u,this.right-f);else{const m=this.columnSizes.reduce((p,b)=>Math.max(p,b.height),0);d=c+St(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const h=St(i,u,u+f);o.textAlign=s.textAlign(fg(i)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,co(o,n.text,h,d,r)}_computeTitleHeight(){const e=this.options.title,n=pt(e.font),r=Bt(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,a,s;if(Ia(e,this.left,this.right)&&Ia(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;r<s.length;++r)if(a=s[r],Ia(e,a.left,a.left+a.width)&&Ia(n,a.top,a.top+a.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!$S(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const a=this._hoveredItem,s=QS(a,r);a&&!s&&je(n.onLeave,[e,a,this],this),this._hoveredItem=r,r&&!s&&je(n.onHover,[e,r,this],this)}else r&&je(n.onClick,[e,r,this],this)}}function ZS(t,e,n,r,a){const s=JS(r,t,e,n),o=qS(a,r,e.lineHeight);return{itemWidth:s,itemHeight:o}}function JS(t,e,n,r){let a=t.text;return a&&typeof a!="string"&&(a=a.reduce((s,o)=>s.length>o.length?s:o)),e+n.size/2+r.measureText(a).width}function qS(t,e,n){let r=t;return typeof e.text!="string"&&(r=bm(e,n)),r}function bm(t,e){const n=t.text?t.text.length:0;return e*n}function $S(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var eO={id:"legend",_element:pm,start(t,e,n){const r=t.legend=new pm({ctx:t.ctx,options:n,chart:t});Yn.configure(t,r,n),Yn.addBox(t,r)},stop(t){Yn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Yn.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),e.hidden=!0):(a.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:a,color:s,useBorderRadius:o,borderRadius:i}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=Bt(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:a||c.textAlign,borderRadius:o&&(i||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};const Qa={average(t){if(!t.length)return!1;let e,n,r=new Set,a=0,s=0;for(e=0,n=t.length;e<n;++e){const i=t[e].element;if(i&&i.hasValue()){const l=i.tooltipPosition();r.add(l.x),a+=l.y,++s}}return s===0||r.size===0?!1:{x:[...r].reduce((i,l)=>i+l)/r.size,y:a/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,a=Number.POSITIVE_INFINITY,s,o,i;for(s=0,o=t.length;s<o;++s){const l=t[s].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=C1(e,c);d<a&&(a=d,i=l)}}if(i){const l=i.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function tn(t,e){return e&&(st(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function _n(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
24
24
  `)>-1?t.split(`
25
- `):t}function nO(t,e){const{element:n,datasetIndex:r,index:a}=e,s=t.getDatasetMeta(r).controller,{label:o,value:i}=s.getLabelAndValue(a);return{chart:t,label:o,parsed:s.getParsed(a),raw:t.data.datasets[r].data[a],formattedValue:i,dataset:s.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function ym(t,e){const n=t.chart.ctx,{body:r,footer:a,title:s}=t,{boxWidth:o,boxHeight:i}=e,l=pt(e.bodyFont),c=pt(e.titleFont),d=pt(e.footerFont),u=s.length,f=a.length,h=r.length,m=Bt(e.padding);let p=m.height,b=0,x=r.reduce((v,y)=>v+y.before.length+y.lines.length+y.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),x){const v=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;p+=h*v+(x-h)*l.lineHeight+(x-1)*e.bodySpacing}f&&(p+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let w=0;const k=function(v){b=Math.max(b,n.measureText(v).width+w)};return n.save(),n.font=c.string,Se(t.title,k),n.font=l.string,Se(t.beforeBody.concat(t.afterBody),k),w=e.displayColors?o+2+e.boxPadding:0,Se(r,v=>{Se(v.before,k),Se(v.lines,k),Se(v.after,k)}),w=0,n.font=d.string,Se(t.footer,k),n.restore(),b+=m.width,{width:b,height:p}}function rO(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function aO(t,e,n,r){const{x:a,width:s}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&a+s+o>e.width||t==="right"&&a-s-o<0)return!0}function sO(t,e,n,r){const{x:a,width:s}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=a<=(i+l)/2?"left":"right":a<=s/2?c="left":a>=o-s/2&&(c="right"),aO(c,t,e,n)&&(c="center"),c}function vm(t,e,n){const r=n.yAlign||e.yAlign||rO(t,n);return{xAlign:n.xAlign||e.xAlign||sO(t,e,n,r),yAlign:r}}function oO(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function iO(t,e,n){let{y:r,height:a}=t;return e==="top"?r+=n:e==="bottom"?r-=a+n:r-=a/2,r}function xm(t,e,n,r){const{caretSize:a,caretPadding:s,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=a+s,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=Fa(o);let m=oO(e,i);const p=iO(e,l,c);return l==="center"?i==="left"?m+=c:i==="right"&&(m-=c):i==="left"?m-=Math.max(d,f)+a:i==="right"&&(m+=Math.max(u,h)+a),{x:Rt(m,0,r.width-e.width),y:Rt(p,0,r.height-e.height)}}function Mo(t,e,n){const r=Bt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function wm(t){return tn([],_n(t))}function lO(t,e,n){return Xr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function km(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const _m={beforeTitle:xn,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:xn,beforeBody:xn,beforeLabel:xn,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 ct(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:xn,afterBody:xn,beforeFooter:xn,footer:xn,afterFooter:xn};function bt(t,e,n,r){const a=t[e].call(n,r);return typeof a>"u"?_m[e].call(n,r):a}class lc extends Ua{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,s=new Ig(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=lO(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,a=bt(r,"beforeTitle",this,e),s=bt(r,"title",this,e),o=bt(r,"afterTitle",this,e);let i=[];return i=tn(i,_n(a)),i=tn(i,_n(s)),i=tn(i,_n(o)),i}getBeforeBody(e,n){return wm(bt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,a=[];return Se(e,s=>{const o={before:[],lines:[],after:[]},i=km(r,s);tn(o.before,_n(bt(i,"beforeLabel",this,s))),tn(o.lines,bt(i,"label",this,s)),tn(o.after,_n(bt(i,"afterLabel",this,s))),a.push(o)}),a}getAfterBody(e,n){return wm(bt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,a=bt(r,"beforeFooter",this,e),s=bt(r,"footer",this,e),o=bt(r,"afterFooter",this,e);let i=[];return i=tn(i,_n(a)),i=tn(i,_n(s)),i=tn(i,_n(o)),i}_createItems(e){const n=this._active,r=this.chart.data,a=[],s=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(nO(this.chart,n[l]));return e.filter&&(i=i.filter((d,u,f)=>e.filter(d,u,f,r))),e.itemSort&&(i=i.sort((d,u)=>e.itemSort(d,u,r))),Se(i,d=>{const u=km(e.callbacks,d);a.push(bt(u,"labelColor",this,d)),s.push(bt(u,"labelPointStyle",this,d)),o.push(bt(u,"labelTextColor",this,d))}),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),a=this._active;let s,o=[];if(!a.length)this.opacity!==0&&(s={opacity:0});else{const i=Qa[r.position].call(this,a,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=ym(this,r),c=Object.assign({},i,l),d=vm(this.chart,r,c),u=xm(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:i.x,caretY:i.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,a){const s=this.getCaretPosition(e,r,a);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,r){const{xAlign:a,yAlign:s}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=Fa(i),{x:f,y:h}=e,{width:m,height:p}=n;let b,x,w,k,v,y;return s==="center"?(v=h+p/2,a==="left"?(b=f,x=b-o,k=v+o,y=v-o):(b=f+m,x=b+o,k=v-o,y=v+o),w=b):(a==="left"?x=f+Math.max(l,d)+o:a==="right"?x=f+m-Math.max(c,u)-o:x=this.caretX,s==="top"?(k=h,v=k-o,b=x-o,w=x+o):(k=h+p,v=k+o,b=x+o,w=x-o),y=k),{x1:b,x2:x,x3:w,y1:k,y2:v,y3:y}}drawTitle(e,n,r){const a=this.title,s=a.length;let o,i,l;if(s){const c=Kr(r.rtl,this.x,this.width);for(e.x=Mo(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=pt(r.titleFont),i=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<s;++l)n.fillText(a[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===s&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,a,s){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=s,d=pt(s.bodyFont),u=Mo(this,"left",s),f=a.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,m=n.y+h;if(s.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=a.leftForLtr(f,c)+c/2,x=m+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,xg(e,p,b,x),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,xg(e,p,b,x)}else{e.lineWidth=pe(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const p=a.leftForLtr(f,c),b=a.leftForLtr(a.xPlus(f,1),c-2),x=Fa(o.borderRadius);Object.values(x).some(w=>w!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,Xl(e,{x:p,y:m,w:c,h:l,radius:x}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Xl(e,{x:b,y:m+1,w:c-2,h:l-2,radius:x}),e.fill()):(e.fillStyle=s.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:a}=this,{bodySpacing:s,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=pt(r.bodyFont);let f=u.lineHeight,h=0;const m=Kr(r.rtl,this.x,this.width),p=function(C){n.fillText(C,m.x(e.x+h),e.y+f/2),e.y+=f+s},b=m.textAlign(o);let x,w,k,v,y,S,N;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=Mo(this,b,r),n.fillStyle=r.bodyColor,Se(this.beforeBody,p),h=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,v=0,S=a.length;v<S;++v){for(x=a[v],w=this.labelTextColors[v],n.fillStyle=w,Se(x.before,p),k=x.lines,i&&k.length&&(this._drawColorBox(n,e,v,m,r),f=Math.max(u.lineHeight,l)),y=0,N=k.length;y<N;++y)p(k[y]),f=u.lineHeight;Se(x.after,p)}h=0,f=u.lineHeight,Se(this.afterBody,p),e.y-=s}drawFooter(e,n,r){const a=this.footer,s=a.length;let o,i;if(s){const l=Kr(r.rtl,this.x,this.width);for(e.x=Mo(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=pt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,i=0;i<s;++i)n.fillText(a[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,a){const{xAlign:s,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:m}=Fa(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,a),n.lineTo(i+c-f,l),n.quadraticCurveTo(i+c,l,i+c,l+f),o==="center"&&s==="right"&&this.drawCaret(e,n,r,a),n.lineTo(i+c,l+d-m),n.quadraticCurveTo(i+c,l+d,i+c-m,l+d),o==="bottom"&&this.drawCaret(e,n,r,a),n.lineTo(i+h,l+d),n.quadraticCurveTo(i,l+d,i,l+d-h),o==="center"&&s==="left"&&this.drawCaret(e,n,r,a),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,a=r&&r.x,s=r&&r.y;if(a||s){const o=Qa[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=ym(this,e),l=Object.assign({},o,this._size),c=vm(n,e,l),d=xm(e,l,c,n);(a._to!==d.x||s._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=i.width,this.height=i.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Bt(n.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&i&&(e.save(),e.globalAlpha=r,this.drawBackground(s,e,a,n),Pg(e,n.textDirection),s.y+=o.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),Ng(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,a=e.map(({datasetIndex:i,index:l})=>{const c=this.chart.getDatasetMeta(i);if(!c)throw new Error("Cannot find a dataset at index "+i);return{datasetIndex:i,element:c.data[l],index:l}}),s=!no(r,a),o=this._positionChanged(a,n);(s||o)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,s=this._active||[],o=this._getActiveElements(e,s,n,r),i=this._positionChanged(o,e),l=n||!no(o,s)||i;return l&&(this._active=o,(a.enabled||a.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,a){const s=this.options;if(e.type==="mouseout")return[];if(!a)return n.filter(i=>this.chart.data.datasets[i.datasetIndex]&&this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:a,options:s}=this,o=Qa[s.position].call(this,e,n);return o!==!1&&(r!==o.x||a!==o.y)}}J(lc,"positioners",Qa);var cO={id:"tooltip",_element:lc,positioners:Qa,afterInit(t,e,n){n&&(t.tooltip=new lc({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:_m},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 Co={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}},yt=Object.keys(Co);function Sm(t,e){return t-e}function Om(t,e){if(ct(e))return null;const n=t._adapter,{parser:r,round:a,isoWeekday:s}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),wn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(a&&(o=a==="week"&&(oo(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,a)),+o)}function Dm(t,e,n,r){const a=yt.length;for(let s=yt.indexOf(t);s<a-1;++s){const o=Co[yt[s]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return yt[s]}return yt[a-1]}function dO(t,e,n,r,a){for(let s=yt.length-1;s>=yt.indexOf(n);s--){const o=yt[s];if(Co[o].common&&t._adapter.diff(a,r,o)>=e-1)return o}return yt[n?yt.indexOf(n):0]}function uO(t){for(let e=yt.indexOf(t)+1,n=yt.length;e<n;++e)if(Co[yt[e]].common)return yt[e]}function Mm(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:a}=Wl(n,e),s=n[r]>=e?n[r]:n[a];t[s]=!0}}function fO(t,e,n,r){const a=t._adapter,s=+a.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=s;i<=o;i=+a.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function Cm(t,e,n){const r=[],a={},s=e.length;let o,i;for(o=0;o<s;++o)i=e[o],a[i]=o,r.push({value:i,major:!1});return s===0||!n?r:fO(t,r,a,n)}class Eo extends xo{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),a=this._adapter=new R_._date(e.adapters.date);a.init(n),Na(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Om(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:a,max:s,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(a=Math.min(a,c.min)),!i&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),a=wn(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),s=wn(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,s-1),this.max=Math.max(a+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const s=this.min,o=this.max,i=N1(a,s,o);return this._unit=n.unit||(r.autoSkip?Dm(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):dO(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:uO(this._unit),this.initOffsets(a),e.reverse&&i.reverse(),Cm(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,a,s;this.options.offset&&e.length&&(a=this.getDecimalForValue(e[0]),e.length===1?n=1-a:n=(this.getDecimalForValue(e[1])-a)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?r=s:r=(s-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=Rt(n,0,o),r=Rt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,a=this.options,s=a.time,o=s.unit||Dm(s.minUnit,n,r,this._getLabelCapacity(n)),i=_e(a.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,c=oo(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=a.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<r;f=+e.add(f,i,o),h++)Mm(d,f,m);return(f===r||a.bounds==="ticks"||h===1)&&Mm(d,f,m),Object.keys(d).sort(Sm).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 a=this.options.time.displayFormats,s=this._unit,o=n||a[s];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,a){const s=this.options,o=s.ticks.callback;if(o)return je(o,[e,n,r],this);const i=s.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&i[l],u=c&&i[c],f=r[n],h=c&&u&&f&&f.major;return this._adapter.format(e,a||(h?u:d))}generateTickLabels(e){let n,r,a;for(n=0,r=e.length;n<r;++n)a=e[n],a.label=this._tickFormatFunction(a.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,a=dr(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(a),o=Math.sin(a),i=this._resolveTickFontOptions(0).size;return{w:r*s+i*o,h:r*o+i*s}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,s=this._tickFormatFunction(e,0,Cm(this,[e],this._majorUnit),a),o=this._getLabelSize(s),i=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return i>0?i:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)e=e.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)e.push(Om(this,a[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return I1(e.sort(Sm))}}J(Eo,"id","time"),J(Eo,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function To(t,e,n){let r=0,a=t.length-1,s,o,i,l;n?(e>=t[r].pos&&e<=t[a].pos&&({lo:r,hi:a}=zl(t,"pos",e)),{pos:s,time:i}=t[r],{pos:o,time:l}=t[a]):(e>=t[r].time&&e<=t[a].time&&({lo:r,hi:a}=zl(t,"time",e)),{time:s,pos:i}=t[r],{time:o,pos:l}=t[a]);const c=o-s;return c?i+(l-i)*(e-s)/c:i}class Em extends Eo{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=To(n,this.min),this._tableRange=To(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,a=[],s=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&a.push(c);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=a.length;o<i;++o)d=a[o+1],l=a[o-1],c=a[o],Math.round((d+l)/2)!==c&&s.push({time:c,pos:o/(i-1)});return s}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((a,s)=>a-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(To(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return To(this._table,r*this._tableRange+this._minPos,!0)}}J(Em,"id","timeseries"),J(Em,"defaults",Eo.defaults);const Tm="label";function Pm(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function hO(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function Nm(t,e){t.labels=e}function jm(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tm;const r=[];t.datasets=e.map(a=>{const s=t.datasets.find(o=>o[n]===a[n]);return!s||!a.data||r.includes(s)?{...a}:(r.push(s),Object.assign(s,a),s)})}function gO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tm;const n={labels:[],datasets:[]};return Nm(n,t.labels),jm(n,t.datasets,e),n}function mO(t,e){const{height:n=150,width:r=300,redraw:a=!1,datasetIdKey:s,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=_.useRef(null),m=_.useRef(null),p=()=>{h.current&&(m.current=new Oo(h.current,{type:o,data:gO(i,s),options:l&&{...l},plugins:c}),Pm(e,m.current))},b=()=>{Pm(e,null),m.current&&(m.current.destroy(),m.current=null)};return _.useEffect(()=>{!a&&m.current&&l&&hO(m.current,l)},[a,l]),_.useEffect(()=>{!a&&m.current&&Nm(m.current.config.data,i.labels)},[a,i.labels]),_.useEffect(()=>{!a&&m.current&&i.datasets&&jm(m.current.config.data,i.datasets,s)},[a,i.datasets]),_.useEffect(()=>{m.current&&(a?(b(),setTimeout(p)):m.current.update(u))},[a,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 pO=_.forwardRef(mO);function bO(t,e){return Oo.register(e),_.forwardRef((n,r)=>_.createElement(pO,{...n,ref:r,type:t}))}const yO=bO("doughnut",za);Oo.register(Ka,cO,tO);const Im=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),vO=({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:Im(e.datasets[0].data.reduce((s,o)=>s+o,0)),font:{size:"15"}}]}}},r={id:"textCenter",beforeDraw(s){const{ctx:o,chartArea:{top:i,width:l,height:c}}=s,d="Total",u=Im(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()}},a={id:"currencyLabel",beforeDraw(s){const{ctx:o,chartArea:{top:i,width:l}}=s;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+30),o.restore()}};return g.jsx("div",{children:g.jsx(yO,{data:e,options:n,plugins:[r,a]})})},cc={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function xO(t){return Pe({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 wO(t){return Pe({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 Rm=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto"},a)=>t?g.jsx("div",{className:cc.overlay,children:g.jsxs("div",{ref:a,className:cc.modal,style:{width:r},children:[g.jsx("button",{onClick:e,className:cc.closeButton,children:g.jsx(wO,{})}),n]})}):null);/*! *****************************************************************************
25
+ `):t}function tO(t,e){const{element:n,datasetIndex:r,index:a}=e,s=t.getDatasetMeta(r).controller,{label:o,value:i}=s.getLabelAndValue(a);return{chart:t,label:o,parsed:s.getParsed(a),raw:t.data.datasets[r].data[a],formattedValue:i,dataset:s.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function ym(t,e){const n=t.chart.ctx,{body:r,footer:a,title:s}=t,{boxWidth:o,boxHeight:i}=e,l=pt(e.bodyFont),c=pt(e.titleFont),d=pt(e.footerFont),u=s.length,f=a.length,h=r.length,m=Bt(e.padding);let p=m.height,b=0,x=r.reduce((v,y)=>v+y.before.length+y.lines.length+y.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),x){const v=e.displayColors?Math.max(i,l.lineHeight):l.lineHeight;p+=h*v+(x-h)*l.lineHeight+(x-1)*e.bodySpacing}f&&(p+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let w=0;const k=function(v){b=Math.max(b,n.measureText(v).width+w)};return n.save(),n.font=c.string,Se(t.title,k),n.font=l.string,Se(t.beforeBody.concat(t.afterBody),k),w=e.displayColors?o+2+e.boxPadding:0,Se(r,v=>{Se(v.before,k),Se(v.lines,k),Se(v.after,k)}),w=0,n.font=d.string,Se(t.footer,k),n.restore(),b+=m.width,{width:b,height:p}}function nO(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function rO(t,e,n,r){const{x:a,width:s}=r,o=n.caretSize+n.caretPadding;if(t==="left"&&a+s+o>e.width||t==="right"&&a-s-o<0)return!0}function aO(t,e,n,r){const{x:a,width:s}=n,{width:o,chartArea:{left:i,right:l}}=t;let c="center";return r==="center"?c=a<=(i+l)/2?"left":"right":a<=s/2?c="left":a>=o-s/2&&(c="right"),rO(c,t,e,n)&&(c="center"),c}function vm(t,e,n){const r=n.yAlign||e.yAlign||nO(t,n);return{xAlign:n.xAlign||e.xAlign||aO(t,e,n,r),yAlign:r}}function sO(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function oO(t,e,n){let{y:r,height:a}=t;return e==="top"?r+=n:e==="bottom"?r-=a+n:r-=a/2,r}function xm(t,e,n,r){const{caretSize:a,caretPadding:s,cornerRadius:o}=t,{xAlign:i,yAlign:l}=n,c=a+s,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:h}=Fa(o);let m=sO(e,i);const p=oO(e,l,c);return l==="center"?i==="left"?m+=c:i==="right"&&(m-=c):i==="left"?m-=Math.max(d,f)+a:i==="right"&&(m+=Math.max(u,h)+a),{x:Rt(m,0,r.width-e.width),y:Rt(p,0,r.height-e.height)}}function Mo(t,e,n){const r=Bt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function wm(t){return tn([],_n(t))}function iO(t,e,n){return Xr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function km(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const _m={beforeTitle:xn,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:xn,beforeBody:xn,beforeLabel:xn,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 ct(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:xn,afterBody:xn,beforeFooter:xn,footer:xn,afterFooter:xn};function bt(t,e,n,r){const a=t[e].call(n,r);return typeof a>"u"?_m[e].call(n,r):a}class lc extends Ua{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,s=new Ig(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=iO(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,a=bt(r,"beforeTitle",this,e),s=bt(r,"title",this,e),o=bt(r,"afterTitle",this,e);let i=[];return i=tn(i,_n(a)),i=tn(i,_n(s)),i=tn(i,_n(o)),i}getBeforeBody(e,n){return wm(bt(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,a=[];return Se(e,s=>{const o={before:[],lines:[],after:[]},i=km(r,s);tn(o.before,_n(bt(i,"beforeLabel",this,s))),tn(o.lines,bt(i,"label",this,s)),tn(o.after,_n(bt(i,"afterLabel",this,s))),a.push(o)}),a}getAfterBody(e,n){return wm(bt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,a=bt(r,"beforeFooter",this,e),s=bt(r,"footer",this,e),o=bt(r,"afterFooter",this,e);let i=[];return i=tn(i,_n(a)),i=tn(i,_n(s)),i=tn(i,_n(o)),i}_createItems(e){const n=this._active,r=this.chart.data,a=[],s=[],o=[];let i=[],l,c;for(l=0,c=n.length;l<c;++l)i.push(tO(this.chart,n[l]));return e.filter&&(i=i.filter((d,u,f)=>e.filter(d,u,f,r))),e.itemSort&&(i=i.sort((d,u)=>e.itemSort(d,u,r))),Se(i,d=>{const u=km(e.callbacks,d);a.push(bt(u,"labelColor",this,d)),s.push(bt(u,"labelPointStyle",this,d)),o.push(bt(u,"labelTextColor",this,d))}),this.labelColors=a,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=i,i}update(e,n){const r=this.options.setContext(this.getContext()),a=this._active;let s,o=[];if(!a.length)this.opacity!==0&&(s={opacity:0});else{const i=Qa[r.position].call(this,a,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=ym(this,r),c=Object.assign({},i,l),d=vm(this.chart,r,c),u=xm(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:u.x,y:u.y,width:l.width,height:l.height,caretX:i.x,caretY:i.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,a){const s=this.getCaretPosition(e,r,a);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,r){const{xAlign:a,yAlign:s}=this,{caretSize:o,cornerRadius:i}=r,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:u}=Fa(i),{x:f,y:h}=e,{width:m,height:p}=n;let b,x,w,k,v,y;return s==="center"?(v=h+p/2,a==="left"?(b=f,x=b-o,k=v+o,y=v-o):(b=f+m,x=b+o,k=v-o,y=v+o),w=b):(a==="left"?x=f+Math.max(l,d)+o:a==="right"?x=f+m-Math.max(c,u)-o:x=this.caretX,s==="top"?(k=h,v=k-o,b=x-o,w=x+o):(k=h+p,v=k+o,b=x+o,w=x-o),y=k),{x1:b,x2:x,x3:w,y1:k,y2:v,y3:y}}drawTitle(e,n,r){const a=this.title,s=a.length;let o,i,l;if(s){const c=Kr(r.rtl,this.x,this.width);for(e.x=Mo(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=pt(r.titleFont),i=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;l<s;++l)n.fillText(a[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+i,l+1===s&&(e.y+=r.titleMarginBottom-i)}}_drawColorBox(e,n,r,a,s){const o=this.labelColors[r],i=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=s,d=pt(s.bodyFont),u=Mo(this,"left",s),f=a.x(u),h=l<d.lineHeight?(d.lineHeight-l)/2:0,m=n.y+h;if(s.usePointStyle){const p={radius:Math.min(c,l)/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:1},b=a.leftForLtr(f,c)+c/2,x=m+l/2;e.strokeStyle=s.multiKeyBackground,e.fillStyle=s.multiKeyBackground,xg(e,p,b,x),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,xg(e,p,b,x)}else{e.lineWidth=pe(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const p=a.leftForLtr(f,c),b=a.leftForLtr(a.xPlus(f,1),c-2),x=Fa(o.borderRadius);Object.values(x).some(w=>w!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,Xl(e,{x:p,y:m,w:c,h:l,radius:x}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Xl(e,{x:b,y:m+1,w:c-2,h:l-2,radius:x}),e.fill()):(e.fillStyle=s.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:a}=this,{bodySpacing:s,bodyAlign:o,displayColors:i,boxHeight:l,boxWidth:c,boxPadding:d}=r,u=pt(r.bodyFont);let f=u.lineHeight,h=0;const m=Kr(r.rtl,this.x,this.width),p=function(C){n.fillText(C,m.x(e.x+h),e.y+f/2),e.y+=f+s},b=m.textAlign(o);let x,w,k,v,y,S,N;for(n.textAlign=o,n.textBaseline="middle",n.font=u.string,e.x=Mo(this,b,r),n.fillStyle=r.bodyColor,Se(this.beforeBody,p),h=i&&b!=="right"?o==="center"?c/2+d:c+2+d:0,v=0,S=a.length;v<S;++v){for(x=a[v],w=this.labelTextColors[v],n.fillStyle=w,Se(x.before,p),k=x.lines,i&&k.length&&(this._drawColorBox(n,e,v,m,r),f=Math.max(u.lineHeight,l)),y=0,N=k.length;y<N;++y)p(k[y]),f=u.lineHeight;Se(x.after,p)}h=0,f=u.lineHeight,Se(this.afterBody,p),e.y-=s}drawFooter(e,n,r){const a=this.footer,s=a.length;let o,i;if(s){const l=Kr(r.rtl,this.x,this.width);for(e.x=Mo(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",o=pt(r.footerFont),n.fillStyle=r.footerColor,n.font=o.string,i=0;i<s;++i)n.fillText(a[i],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+r.footerSpacing}}drawBackground(e,n,r,a){const{xAlign:s,yAlign:o}=this,{x:i,y:l}=e,{width:c,height:d}=r,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:m}=Fa(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(i+u,l),o==="top"&&this.drawCaret(e,n,r,a),n.lineTo(i+c-f,l),n.quadraticCurveTo(i+c,l,i+c,l+f),o==="center"&&s==="right"&&this.drawCaret(e,n,r,a),n.lineTo(i+c,l+d-m),n.quadraticCurveTo(i+c,l+d,i+c-m,l+d),o==="bottom"&&this.drawCaret(e,n,r,a),n.lineTo(i+h,l+d),n.quadraticCurveTo(i,l+d,i,l+d-h),o==="center"&&s==="left"&&this.drawCaret(e,n,r,a),n.lineTo(i,l+u),n.quadraticCurveTo(i,l,i+u,l),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,a=r&&r.x,s=r&&r.y;if(a||s){const o=Qa[e.position].call(this,this._active,this._eventPosition);if(!o)return;const i=this._size=ym(this,e),l=Object.assign({},o,this._size),c=vm(n,e,l),d=xm(e,l,c,n);(a._to!==d.x||s._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=i.width,this.height=i.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Bt(n.padding),i=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&i&&(e.save(),e.globalAlpha=r,this.drawBackground(s,e,a,n),Pg(e,n.textDirection),s.y+=o.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),Ng(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,a=e.map(({datasetIndex:i,index:l})=>{const c=this.chart.getDatasetMeta(i);if(!c)throw new Error("Cannot find a dataset at index "+i);return{datasetIndex:i,element:c.data[l],index:l}}),s=!no(r,a),o=this._positionChanged(a,n);(s||o)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,s=this._active||[],o=this._getActiveElements(e,s,n,r),i=this._positionChanged(o,e),l=n||!no(o,s)||i;return l&&(this._active=o,(a.enabled||a.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,a){const s=this.options;if(e.type==="mouseout")return[];if(!a)return n.filter(i=>this.chart.data.datasets[i.datasetIndex]&&this.chart.getDatasetMeta(i.datasetIndex).controller.getParsed(i.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:r,caretY:a,options:s}=this,o=Qa[s.position].call(this,e,n);return o!==!1&&(r!==o.x||a!==o.y)}}J(lc,"positioners",Qa);var lO={id:"tooltip",_element:lc,positioners:Qa,afterInit(t,e,n){n&&(t.tooltip=new lc({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:_m},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 Co={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}},yt=Object.keys(Co);function Sm(t,e){return t-e}function Om(t,e){if(ct(e))return null;const n=t._adapter,{parser:r,round:a,isoWeekday:s}=t._parseOpts;let o=e;return typeof r=="function"&&(o=r(o)),wn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(a&&(o=a==="week"&&(oo(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,a)),+o)}function Dm(t,e,n,r){const a=yt.length;for(let s=yt.indexOf(t);s<a-1;++s){const o=Co[yt[s]],i=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(i*o.size))<=r)return yt[s]}return yt[a-1]}function cO(t,e,n,r,a){for(let s=yt.length-1;s>=yt.indexOf(n);s--){const o=yt[s];if(Co[o].common&&t._adapter.diff(a,r,o)>=e-1)return o}return yt[n?yt.indexOf(n):0]}function dO(t){for(let e=yt.indexOf(t)+1,n=yt.length;e<n;++e)if(Co[yt[e]].common)return yt[e]}function Mm(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:a}=Wl(n,e),s=n[r]>=e?n[r]:n[a];t[s]=!0}}function uO(t,e,n,r){const a=t._adapter,s=+a.startOf(e[0].value,r),o=e[e.length-1].value;let i,l;for(i=s;i<=o;i=+a.add(i,1,r))l=n[i],l>=0&&(e[l].major=!0);return e}function Cm(t,e,n){const r=[],a={},s=e.length;let o,i;for(o=0;o<s;++o)i=e[o],a[i]=o,r.push({value:i,major:!1});return s===0||!n?r:uO(t,r,a,n)}class Eo extends xo{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),a=this._adapter=new I_._date(e.adapters.date);a.init(n),Na(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Om(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:a,max:s,minDefined:o,maxDefined:i}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(a=Math.min(a,c.min)),!i&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!o||!i)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),a=wn(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),s=wn(s)&&!isNaN(s)?s:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,s-1),this.max=Math.max(a+1,s)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const s=this.min,o=this.max,i=P1(a,s,o);return this._unit=n.unit||(r.autoSkip?Dm(n.minUnit,this.min,this.max,this._getLabelCapacity(s)):cO(this,i.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:dO(this._unit),this.initOffsets(a),e.reverse&&i.reverse(),Cm(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,a,s;this.options.offset&&e.length&&(a=this.getDecimalForValue(e[0]),e.length===1?n=1-a:n=(this.getDecimalForValue(e[1])-a)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?r=s:r=(s-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=Rt(n,0,o),r=Rt(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,a=this.options,s=a.time,o=s.unit||Dm(s.minUnit,n,r,this._getLabelCapacity(n)),i=_e(a.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,c=oo(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=a.ticks.source==="data"&&this.getDataTimestamps();for(f=u,h=0;f<r;f=+e.add(f,i,o),h++)Mm(d,f,m);return(f===r||a.bounds==="ticks"||h===1)&&Mm(d,f,m),Object.keys(d).sort(Sm).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 a=this.options.time.displayFormats,s=this._unit,o=n||a[s];return this._adapter.format(e,o)}_tickFormatFunction(e,n,r,a){const s=this.options,o=s.ticks.callback;if(o)return je(o,[e,n,r],this);const i=s.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&i[l],u=c&&i[c],f=r[n],h=c&&u&&f&&f.major;return this._adapter.format(e,a||(h?u:d))}generateTickLabels(e){let n,r,a;for(n=0,r=e.length;n<r;++n)a=e[n],a.label=this._tickFormatFunction(a.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,a=dr(this.isHorizontal()?n.maxRotation:n.minRotation),s=Math.cos(a),o=Math.sin(a),i=this._resolveTickFontOptions(0).size;return{w:r*s+i*o,h:r*o+i*s}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,s=this._tickFormatFunction(e,0,Cm(this,[e],this._majorUnit),a),o=this._getLabelSize(s),i=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return i>0?i:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)e=e.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)e.push(Om(this,a[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return j1(e.sort(Sm))}}J(Eo,"id","time"),J(Eo,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function To(t,e,n){let r=0,a=t.length-1,s,o,i,l;n?(e>=t[r].pos&&e<=t[a].pos&&({lo:r,hi:a}=zl(t,"pos",e)),{pos:s,time:i}=t[r],{pos:o,time:l}=t[a]):(e>=t[r].time&&e<=t[a].time&&({lo:r,hi:a}=zl(t,"time",e)),{time:s,pos:i}=t[r],{time:o,pos:l}=t[a]);const c=o-s;return c?i+(l-i)*(e-s)/c:i}class Em extends Eo{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=To(n,this.min),this._tableRange=To(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,a=[],s=[];let o,i,l,c,d;for(o=0,i=e.length;o<i;++o)c=e[o],c>=n&&c<=r&&a.push(c);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,i=a.length;o<i;++o)d=a[o+1],l=a[o-1],c=a[o],Math.round((d+l)/2)!==c&&s.push({time:c,pos:o/(i-1)});return s}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((a,s)=>a-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(To(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return To(this._table,r*this._tableRange+this._minPos,!0)}}J(Em,"id","timeseries"),J(Em,"defaults",Eo.defaults);const Tm="label";function Pm(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function fO(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function Nm(t,e){t.labels=e}function jm(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tm;const r=[];t.datasets=e.map(a=>{const s=t.datasets.find(o=>o[n]===a[n]);return!s||!a.data||r.includes(s)?{...a}:(r.push(s),Object.assign(s,a),s)})}function hO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tm;const n={labels:[],datasets:[]};return Nm(n,t.labels),jm(n,t.datasets,e),n}function gO(t,e){const{height:n=150,width:r=300,redraw:a=!1,datasetIdKey:s,type:o,data:i,options:l,plugins:c=[],fallbackContent:d,updateMode:u,...f}=t,h=_.useRef(null),m=_.useRef(null),p=()=>{h.current&&(m.current=new Oo(h.current,{type:o,data:hO(i,s),options:l&&{...l},plugins:c}),Pm(e,m.current))},b=()=>{Pm(e,null),m.current&&(m.current.destroy(),m.current=null)};return _.useEffect(()=>{!a&&m.current&&l&&fO(m.current,l)},[a,l]),_.useEffect(()=>{!a&&m.current&&Nm(m.current.config.data,i.labels)},[a,i.labels]),_.useEffect(()=>{!a&&m.current&&i.datasets&&jm(m.current.config.data,i.datasets,s)},[a,i.datasets]),_.useEffect(()=>{m.current&&(a?(b(),setTimeout(p)):m.current.update(u))},[a,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 mO=_.forwardRef(gO);function pO(t,e){return Oo.register(e),_.forwardRef((n,r)=>_.createElement(mO,{...n,ref:r,type:t}))}const bO=pO("doughnut",za);Oo.register(Ka,lO,eO);const Im=t=>new Intl.NumberFormat("es-CO",{style:"currency",currency:"COP",notation:"compact",maximumFractionDigits:2}).format(t),yO=({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:Im(e.datasets[0].data.reduce((s,o)=>s+o,0)),font:{size:"15"}}]}}},r={id:"textCenter",beforeDraw(s){const{ctx:o,chartArea:{top:i,width:l,height:c}}=s,d="Total",u=Im(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()}},a={id:"currencyLabel",beforeDraw(s){const{ctx:o,chartArea:{top:i,width:l}}=s;o.save(),o.font="bold 15px Arial",o.textAlign="right",o.fillText("MONEDA - COP",l+85,i+30),o.restore()}};return g.jsx("div",{children:g.jsx(bO,{data:e,options:n,plugins:[r,a]})})},cc={overlay:"modal-module__overlay__cc2Es",modal:"modal-module__modal__WAkuU",closeButton:"modal-module__closeButton__1lo1j"};function vO(t){return Pe({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 xO(t){return Pe({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 Rm=_.forwardRef(({isOpen:t,onClose:e,children:n,width:r="auto"},a)=>t?g.jsx("div",{className:cc.overlay,children:g.jsxs("div",{ref:a,className:cc.modal,style:{width:r},children:[g.jsx("button",{onClick:e,className:cc.closeButton,children:g.jsx(xO,{})}),n]})}):null);/*! *****************************************************************************
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 Ot=function(){return Ot=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Ot.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 a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function dt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function dc(){return dc=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},dc.apply(this,arguments)}function Po(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var kO=/^((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)-.*))$/,_O=Po(function(t){return kO.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function SO(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 OO(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 DO=function(){function t(n){var r=this;this._insertTag=function(a){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,s),r.tags.push(a)},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(OO(this));var a=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var s=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;s&&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||!s}if(this.isSpeedy){var o=SO(a);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 a.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}(),ut="-ms-",No="-moz-",be="-webkit-",uc="comm",fc="rule",hc="decl",MO="@import",Am="@keyframes",CO=Math.abs,jo=String.fromCharCode,EO=Object.assign;function TO(t,e){return ot(t,0)^45?(((e<<2^ot(t,0))<<2^ot(t,1))<<2^ot(t,2))<<2^ot(t,3):0}function Fm(t){return t.trim()}function PO(t,e){return(t=e.exec(t))?t[0]:t}function xe(t,e,n){return t.replace(e,n)}function gc(t,e){return t.indexOf(e)}function ot(t,e){return t.charCodeAt(e)|0}function Za(t,e,n){return t.slice(e,n)}function nn(t){return t.length}function mc(t){return t.length}function Io(t,e){return e.push(t),t}function NO(t,e){return t.map(e).join("")}var Ro=1,Zr=1,Lm=0,vt=0,Ke=0,Jr="";function Ao(t,e,n,r,a,s,o){return{value:t,root:e,parent:n,type:r,props:a,children:s,line:Ro,column:Zr,length:o,return:""}}function Ja(t,e){return EO(Ao("",null,null,"",null,null,0),t,{length:-t.length},e)}function jO(){return Ke}function IO(){return Ke=vt>0?ot(Jr,--vt):0,Zr--,Ke===10&&(Zr=1,Ro--),Ke}function Dt(){return Ke=vt<Lm?ot(Jr,vt++):0,Zr++,Ke===10&&(Zr=1,Ro++),Ke}function rn(){return ot(Jr,vt)}function Fo(){return vt}function qa(t,e){return Za(Jr,t,e)}function $a(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 Wm(t){return Ro=Zr=1,Lm=nn(Jr=t),vt=0,[]}function zm(t){return Jr="",t}function Lo(t){return Fm(qa(vt-1,pc(t===91?t+2:t===40?t+1:t)))}function RO(t){for(;(Ke=rn())&&Ke<33;)Dt();return $a(t)>2||$a(Ke)>3?"":" "}function AO(t,e){for(;--e&&Dt()&&!(Ke<48||Ke>102||Ke>57&&Ke<65||Ke>70&&Ke<97););return qa(t,Fo()+(e<6&&rn()==32&&Dt()==32))}function pc(t){for(;Dt();)switch(Ke){case t:return vt;case 34:case 39:t!==34&&t!==39&&pc(Ke);break;case 40:t===41&&pc(t);break;case 92:Dt();break}return vt}function FO(t,e){for(;Dt()&&t+Ke!==57;)if(t+Ke===84&&rn()===47)break;return"/*"+qa(e,vt-1)+"*"+jo(t===47?t:Dt())}function LO(t){for(;!$a(rn());)Dt();return qa(t,vt)}function Bm(t){return zm(Wo("",null,null,null,[""],t=Wm(t),0,[0],t))}function Wo(t,e,n,r,a,s,o,i,l){for(var c=0,d=0,u=o,f=0,h=0,m=0,p=1,b=1,x=1,w=0,k="",v=a,y=s,S=r,N=k;b;)switch(m=w,w=Dt()){case 40:if(m!=108&&ot(N,u-1)==58){gc(N+=xe(Lo(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:N+=Lo(w);break;case 9:case 10:case 13:case 32:N+=RO(m);break;case 92:N+=AO(Fo()-1,7);continue;case 47:switch(rn()){case 42:case 47:Io(WO(FO(Dt(),Fo()),e,n),l);break;default:N+="/"}break;case 123*p:i[c++]=nn(N)*x;case 125*p:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:h>0&&nn(N)-u&&Io(h>32?Ym(N+";",r,n,u-1):Ym(xe(N," ","")+";",r,n,u-2),l);break;case 59:N+=";";default:if(Io(S=Hm(N,e,n,c,d,a,i,k,v=[],y=[],u),s),w===123)if(d===0)Wo(N,e,S,S,v,s,u,i,y);else switch(f===99&&ot(N,3)===110?100:f){case 100:case 109:case 115:Wo(t,S,S,r&&Io(Hm(t,S,S,0,0,a,i,k,a,v=[],u),y),a,y,u,i,r?v:y);break;default:Wo(N,S,S,S,[""],y,0,i,y)}}c=d=h=0,p=x=1,k=N="",u=o;break;case 58:u=1+nn(N),h=m;default:if(p<1){if(w==123)--p;else if(w==125&&p++==0&&IO()==125)continue}switch(N+=jo(w),w*p){case 38:x=d>0?1:(N+="\f",-1);break;case 44:i[c++]=(nn(N)-1)*x,x=1;break;case 64:rn()===45&&(N+=Lo(Dt())),f=rn(),d=u=nn(k=N+=LO(Fo())),w++;break;case 45:m===45&&nn(N)==2&&(p=0)}}return s}function Hm(t,e,n,r,a,s,o,i,l,c,d){for(var u=a-1,f=a===0?s:[""],h=mc(f),m=0,p=0,b=0;m<r;++m)for(var x=0,w=Za(t,u+1,u=CO(p=o[m])),k=t;x<h;++x)(k=Fm(p>0?f[x]+" "+w:xe(w,/&\f/g,f[x])))&&(l[b++]=k);return Ao(t,e,n,a===0?fc:i,l,c,d)}function WO(t,e,n){return Ao(t,e,n,uc,jo(jO()),Za(t,2,-2),0)}function Ym(t,e,n,r){return Ao(t,e,n,hc,Za(t,0,r),Za(t,r+1,-1),r)}function yr(t,e){for(var n="",r=mc(t),a=0;a<r;a++)n+=e(t[a],a,t,e)||"";return n}function Vm(t,e,n,r){switch(t.type){case MO:case hc:return t.return=t.return||t.value;case uc:return"";case Am:return t.return=t.value+"{"+yr(t.children,r)+"}";case fc:t.value=t.props.join(",")}return nn(n=yr(t.children,r))?t.return=t.value+"{"+n+"}":""}function Um(t){var e=mc(t);return function(n,r,a,s){for(var o="",i=0;i<e;i++)o+=t[i](n,r,a,s)||"";return o}}function zO(t){return function(e){e.root||(e=e.return)&&t(e)}}var BO=function(e){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var a=e(r);return n.set(r,a),a}},HO=function(e,n,r){for(var a=0,s=0;a=s,s=rn(),a===38&&s===12&&(n[r]=1),!$a(s);)Dt();return qa(e,vt)},YO=function(e,n){var r=-1,a=44;do switch($a(a)){case 0:a===38&&rn()===12&&(n[r]=1),e[r]+=HO(vt-1,n,r);break;case 2:e[r]+=Lo(a);break;case 4:if(a===44){e[++r]=rn()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=jo(a)}while(a=Dt());return e},VO=function(e,n){return zm(YO(Wm(e),n))},Xm=new WeakMap,UO=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,a=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&&!Xm.get(r))&&!a){Xm.set(e,!0);for(var s=[],o=VO(n,s),i=r.props,l=0,c=0;l<o.length;l++)for(var d=0;d<i.length;d++,c++)e.props[c]=s[l]?o[l].replace(/&\f/g,i[d]):i[d]+" "+o[l]}}},XO=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},GO="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",KO=function(e){return e.type==="comm"&&e.children.indexOf(GO)>-1},QO=function(e){return function(n,r,a){if(!(n.type!=="rule"||e.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var o=n.parent===a[0],i=o?a[0].children:a,l=i.length-1;l>=0;l--){var c=i[l];if(c.line<n.line)break;if(c.column<n.column){if(KO(c))return;break}}s.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".')})}}}},Gm=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},ZO=function(e,n){for(var r=e-1;r>=0;r--)if(!Gm(n[r]))return!0;return!1},Km=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},JO=function(e,n,r){Gm(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."),Km(e)):ZO(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Km(e)))};function Qm(t,e){switch(TO(t,e)){case 5103:return be+"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 be+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return be+t+No+t+ut+t+t;case 6828:case 4268:return be+t+ut+t+t;case 6165:return be+t+ut+"flex-"+t+t;case 5187:return be+t+xe(t,/(\w+).+(:[^]+)/,be+"box-$1$2"+ut+"flex-$1$2")+t;case 5443:return be+t+ut+"flex-item-"+xe(t,/flex-|-self/,"")+t;case 4675:return be+t+ut+"flex-line-pack"+xe(t,/align-content|flex-|-self/,"")+t;case 5548:return be+t+ut+xe(t,"shrink","negative")+t;case 5292:return be+t+ut+xe(t,"basis","preferred-size")+t;case 6060:return be+"box-"+xe(t,"-grow","")+be+t+ut+xe(t,"grow","positive")+t;case 4554:return be+xe(t,/([^-])(transform)/g,"$1"+be+"$2")+t;case 6187:return xe(xe(xe(t,/(zoom-|grab)/,be+"$1"),/(image-set)/,be+"$1"),t,"")+t;case 5495:case 3959:return xe(t,/(image-set\([^]*)/,be+"$1$`$1");case 4968:return xe(xe(t,/(.+:)(flex-)?(.*)/,be+"box-pack:$3"+ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+be+t+t;case 4095:case 3583:case 4068:case 2532:return xe(t,/(.+)-inline(.+)/,be+"$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(nn(t)-1-e>6)switch(ot(t,e+1)){case 109:if(ot(t,e+4)!==45)break;case 102:return xe(t,/(.+:)(.+)-([^]+)/,"$1"+be+"$2-$3$1"+No+(ot(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~gc(t,"stretch")?Qm(xe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ot(t,e+1)!==115)break;case 6444:switch(ot(t,nn(t)-3-(~gc(t,"!important")&&10))){case 107:return xe(t,":",":"+be)+t;case 101:return xe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+be+(ot(t,14)===45?"inline-":"")+"box$3$1"+be+"$2$3$1"+ut+"$2box$3")+t}break;case 5936:switch(ot(t,e+11)){case 114:return be+t+ut+xe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return be+t+ut+xe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return be+t+ut+xe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return be+t+ut+t+t}return t}var qO=function(e,n,r,a){if(e.length>-1&&!e.return)switch(e.type){case hc:e.return=Qm(e.value,e.length);break;case Am:return yr([Ja(e,{value:xe(e.value,"@","@"+be)})],a);case fc:if(e.length)return NO(e.props,function(s){switch(PO(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yr([Ja(e,{props:[xe(s,/:(read-\w+)/,":"+No+"$1")]})],a);case"::placeholder":return yr([Ja(e,{props:[xe(s,/:(plac\w+)/,":"+be+"input-$1")]}),Ja(e,{props:[xe(s,/:(plac\w+)/,":"+No+"$1")]}),Ja(e,{props:[xe(s,/:(plac\w+)/,ut+"input-$1")]})],a)}return""})}},zo=typeof document<"u",$O=zo?void 0:BO(function(){return Po(function(){var t={};return function(e){return t[e]}})}),eD=[qO],Zm=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(zo&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var a=e.stylisPlugins||eD;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 s={},o,i=[];zo&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)s[y[S]]=!0;i.push(v)}));var l,c=[UO,XO];if(process.env.NODE_ENV!=="production"&&c.push(QO({get compat(){return k.compat}}),JO),zo){var d,u=[Vm,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?d.insert(v.return):v.value&&v.type!==uc&&d.insert(v.value+"{}"))}:zO(function(v){d.insert(v)})],f=Um(c.concat(a,u)),h=function(y){return yr(Bm(y),f)};l=function(y,S,N,C){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),C&&(k.inserted[S.name]=!0)}}else{var m=[Vm],p=Um(c.concat(a,m)),b=function(y){return yr(Bm(y),p)},x=$O(a)(n),w=function(y,S){var N=S.name;return x[N]===void 0&&(x[N]=b(y?y+"{"+S.styles+"}":S.styles)),x[N]};l=function(y,S,N,C){var P=S.name,E=w(y,S);if(k.compat===void 0)return C&&(k.inserted[P]=!0),process.env.NODE_ENV==="development"&&S.map!==void 0?E+S.map:E;if(C)k.inserted[P]=E;else return E}}var k={key:n,sheet:new DO({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return k.sheet.hydrate(i),k},bc=typeof document<"u";function tD(t,e,n){var r="";return n.split(" ").forEach(function(a){t[a]!==void 0?e.push(t[a]+";"):r+=a+" "}),r}var Jm=function(e,n,r){var a=e.key+"-"+n.name;(r===!1||bc===!1&&e.compat!==void 0)&&e.registered[a]===void 0&&(e.registered[a]=n.styles)},nD=function(e,n,r){Jm(e,n,r);var a=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s="",o=n;do{var i=e.insert(n===o?"."+a:"",o,e.sheet,!0);!bc&&i!==void 0&&(s+=i),o=o.next}while(o!==void 0);if(!bc&&s.length!==0)return s}};function rD(t){for(var e=0,n,r=0,a=t.length;a>=4;++r,a-=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(a){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 aD={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},qm=`You have illegal escape sequence in your template literal, most likely inside content's property value.
38
+ ***************************************************************************** */var Ot=function(){return Ot=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Ot.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 a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function dt(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function dc(){return dc=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},dc.apply(this,arguments)}function Po(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var wO=/^((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)-.*))$/,kO=Po(function(t){return wO.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function _O(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 SO(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 OO=function(){function t(n){var r=this;this._insertTag=function(a){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,s),r.tags.push(a)},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(SO(this));var a=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var s=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;s&&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||!s}if(this.isSpeedy){var o=_O(a);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 a.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}(),ut="-ms-",No="-moz-",be="-webkit-",uc="comm",fc="rule",hc="decl",DO="@import",Am="@keyframes",MO=Math.abs,jo=String.fromCharCode,CO=Object.assign;function EO(t,e){return ot(t,0)^45?(((e<<2^ot(t,0))<<2^ot(t,1))<<2^ot(t,2))<<2^ot(t,3):0}function Fm(t){return t.trim()}function TO(t,e){return(t=e.exec(t))?t[0]:t}function xe(t,e,n){return t.replace(e,n)}function gc(t,e){return t.indexOf(e)}function ot(t,e){return t.charCodeAt(e)|0}function Za(t,e,n){return t.slice(e,n)}function nn(t){return t.length}function mc(t){return t.length}function Io(t,e){return e.push(t),t}function PO(t,e){return t.map(e).join("")}var Ro=1,Zr=1,Lm=0,vt=0,Ke=0,Jr="";function Ao(t,e,n,r,a,s,o){return{value:t,root:e,parent:n,type:r,props:a,children:s,line:Ro,column:Zr,length:o,return:""}}function Ja(t,e){return CO(Ao("",null,null,"",null,null,0),t,{length:-t.length},e)}function NO(){return Ke}function jO(){return Ke=vt>0?ot(Jr,--vt):0,Zr--,Ke===10&&(Zr=1,Ro--),Ke}function Dt(){return Ke=vt<Lm?ot(Jr,vt++):0,Zr++,Ke===10&&(Zr=1,Ro++),Ke}function rn(){return ot(Jr,vt)}function Fo(){return vt}function qa(t,e){return Za(Jr,t,e)}function $a(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 Wm(t){return Ro=Zr=1,Lm=nn(Jr=t),vt=0,[]}function zm(t){return Jr="",t}function Lo(t){return Fm(qa(vt-1,pc(t===91?t+2:t===40?t+1:t)))}function IO(t){for(;(Ke=rn())&&Ke<33;)Dt();return $a(t)>2||$a(Ke)>3?"":" "}function RO(t,e){for(;--e&&Dt()&&!(Ke<48||Ke>102||Ke>57&&Ke<65||Ke>70&&Ke<97););return qa(t,Fo()+(e<6&&rn()==32&&Dt()==32))}function pc(t){for(;Dt();)switch(Ke){case t:return vt;case 34:case 39:t!==34&&t!==39&&pc(Ke);break;case 40:t===41&&pc(t);break;case 92:Dt();break}return vt}function AO(t,e){for(;Dt()&&t+Ke!==57;)if(t+Ke===84&&rn()===47)break;return"/*"+qa(e,vt-1)+"*"+jo(t===47?t:Dt())}function FO(t){for(;!$a(rn());)Dt();return qa(t,vt)}function Bm(t){return zm(Wo("",null,null,null,[""],t=Wm(t),0,[0],t))}function Wo(t,e,n,r,a,s,o,i,l){for(var c=0,d=0,u=o,f=0,h=0,m=0,p=1,b=1,x=1,w=0,k="",v=a,y=s,S=r,N=k;b;)switch(m=w,w=Dt()){case 40:if(m!=108&&ot(N,u-1)==58){gc(N+=xe(Lo(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:N+=Lo(w);break;case 9:case 10:case 13:case 32:N+=IO(m);break;case 92:N+=RO(Fo()-1,7);continue;case 47:switch(rn()){case 42:case 47:Io(LO(AO(Dt(),Fo()),e,n),l);break;default:N+="/"}break;case 123*p:i[c++]=nn(N)*x;case 125*p:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:h>0&&nn(N)-u&&Io(h>32?Ym(N+";",r,n,u-1):Ym(xe(N," ","")+";",r,n,u-2),l);break;case 59:N+=";";default:if(Io(S=Hm(N,e,n,c,d,a,i,k,v=[],y=[],u),s),w===123)if(d===0)Wo(N,e,S,S,v,s,u,i,y);else switch(f===99&&ot(N,3)===110?100:f){case 100:case 109:case 115:Wo(t,S,S,r&&Io(Hm(t,S,S,0,0,a,i,k,a,v=[],u),y),a,y,u,i,r?v:y);break;default:Wo(N,S,S,S,[""],y,0,i,y)}}c=d=h=0,p=x=1,k=N="",u=o;break;case 58:u=1+nn(N),h=m;default:if(p<1){if(w==123)--p;else if(w==125&&p++==0&&jO()==125)continue}switch(N+=jo(w),w*p){case 38:x=d>0?1:(N+="\f",-1);break;case 44:i[c++]=(nn(N)-1)*x,x=1;break;case 64:rn()===45&&(N+=Lo(Dt())),f=rn(),d=u=nn(k=N+=FO(Fo())),w++;break;case 45:m===45&&nn(N)==2&&(p=0)}}return s}function Hm(t,e,n,r,a,s,o,i,l,c,d){for(var u=a-1,f=a===0?s:[""],h=mc(f),m=0,p=0,b=0;m<r;++m)for(var x=0,w=Za(t,u+1,u=MO(p=o[m])),k=t;x<h;++x)(k=Fm(p>0?f[x]+" "+w:xe(w,/&\f/g,f[x])))&&(l[b++]=k);return Ao(t,e,n,a===0?fc:i,l,c,d)}function LO(t,e,n){return Ao(t,e,n,uc,jo(NO()),Za(t,2,-2),0)}function Ym(t,e,n,r){return Ao(t,e,n,hc,Za(t,0,r),Za(t,r+1,-1),r)}function yr(t,e){for(var n="",r=mc(t),a=0;a<r;a++)n+=e(t[a],a,t,e)||"";return n}function Vm(t,e,n,r){switch(t.type){case DO:case hc:return t.return=t.return||t.value;case uc:return"";case Am:return t.return=t.value+"{"+yr(t.children,r)+"}";case fc:t.value=t.props.join(",")}return nn(n=yr(t.children,r))?t.return=t.value+"{"+n+"}":""}function Um(t){var e=mc(t);return function(n,r,a,s){for(var o="",i=0;i<e;i++)o+=t[i](n,r,a,s)||"";return o}}function WO(t){return function(e){e.root||(e=e.return)&&t(e)}}var zO=function(e){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var a=e(r);return n.set(r,a),a}},BO=function(e,n,r){for(var a=0,s=0;a=s,s=rn(),a===38&&s===12&&(n[r]=1),!$a(s);)Dt();return qa(e,vt)},HO=function(e,n){var r=-1,a=44;do switch($a(a)){case 0:a===38&&rn()===12&&(n[r]=1),e[r]+=BO(vt-1,n,r);break;case 2:e[r]+=Lo(a);break;case 4:if(a===44){e[++r]=rn()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=jo(a)}while(a=Dt());return e},YO=function(e,n){return zm(HO(Wm(e),n))},Xm=new WeakMap,VO=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,a=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&&!Xm.get(r))&&!a){Xm.set(e,!0);for(var s=[],o=YO(n,s),i=r.props,l=0,c=0;l<o.length;l++)for(var d=0;d<i.length;d++,c++)e.props[c]=s[l]?o[l].replace(/&\f/g,i[d]):i[d]+" "+o[l]}}},UO=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},XO="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",GO=function(e){return e.type==="comm"&&e.children.indexOf(XO)>-1},KO=function(e){return function(n,r,a){if(!(n.type!=="rule"||e.compat)){var s=n.value.match(/(:first|:nth|:nth-last)-child/g);if(s){for(var o=n.parent===a[0],i=o?a[0].children:a,l=i.length-1;l>=0;l--){var c=i[l];if(c.line<n.line)break;if(c.column<n.column){if(GO(c))return;break}}s.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".')})}}}},Gm=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},QO=function(e,n){for(var r=e-1;r>=0;r--)if(!Gm(n[r]))return!0;return!1},Km=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},ZO=function(e,n,r){Gm(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."),Km(e)):QO(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Km(e)))};function Qm(t,e){switch(EO(t,e)){case 5103:return be+"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 be+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return be+t+No+t+ut+t+t;case 6828:case 4268:return be+t+ut+t+t;case 6165:return be+t+ut+"flex-"+t+t;case 5187:return be+t+xe(t,/(\w+).+(:[^]+)/,be+"box-$1$2"+ut+"flex-$1$2")+t;case 5443:return be+t+ut+"flex-item-"+xe(t,/flex-|-self/,"")+t;case 4675:return be+t+ut+"flex-line-pack"+xe(t,/align-content|flex-|-self/,"")+t;case 5548:return be+t+ut+xe(t,"shrink","negative")+t;case 5292:return be+t+ut+xe(t,"basis","preferred-size")+t;case 6060:return be+"box-"+xe(t,"-grow","")+be+t+ut+xe(t,"grow","positive")+t;case 4554:return be+xe(t,/([^-])(transform)/g,"$1"+be+"$2")+t;case 6187:return xe(xe(xe(t,/(zoom-|grab)/,be+"$1"),/(image-set)/,be+"$1"),t,"")+t;case 5495:case 3959:return xe(t,/(image-set\([^]*)/,be+"$1$`$1");case 4968:return xe(xe(t,/(.+:)(flex-)?(.*)/,be+"box-pack:$3"+ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+be+t+t;case 4095:case 3583:case 4068:case 2532:return xe(t,/(.+)-inline(.+)/,be+"$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(nn(t)-1-e>6)switch(ot(t,e+1)){case 109:if(ot(t,e+4)!==45)break;case 102:return xe(t,/(.+:)(.+)-([^]+)/,"$1"+be+"$2-$3$1"+No+(ot(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~gc(t,"stretch")?Qm(xe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ot(t,e+1)!==115)break;case 6444:switch(ot(t,nn(t)-3-(~gc(t,"!important")&&10))){case 107:return xe(t,":",":"+be)+t;case 101:return xe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+be+(ot(t,14)===45?"inline-":"")+"box$3$1"+be+"$2$3$1"+ut+"$2box$3")+t}break;case 5936:switch(ot(t,e+11)){case 114:return be+t+ut+xe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return be+t+ut+xe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return be+t+ut+xe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return be+t+ut+t+t}return t}var JO=function(e,n,r,a){if(e.length>-1&&!e.return)switch(e.type){case hc:e.return=Qm(e.value,e.length);break;case Am:return yr([Ja(e,{value:xe(e.value,"@","@"+be)})],a);case fc:if(e.length)return PO(e.props,function(s){switch(TO(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yr([Ja(e,{props:[xe(s,/:(read-\w+)/,":"+No+"$1")]})],a);case"::placeholder":return yr([Ja(e,{props:[xe(s,/:(plac\w+)/,":"+be+"input-$1")]}),Ja(e,{props:[xe(s,/:(plac\w+)/,":"+No+"$1")]}),Ja(e,{props:[xe(s,/:(plac\w+)/,ut+"input-$1")]})],a)}return""})}},zo=typeof document<"u",qO=zo?void 0:zO(function(){return Po(function(){var t={};return function(e){return t[e]}})}),$O=[JO],Zm=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(zo&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var y=v.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var a=e.stylisPlugins||$O;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 s={},o,i=[];zo&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var y=v.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)s[y[S]]=!0;i.push(v)}));var l,c=[VO,UO];if(process.env.NODE_ENV!=="production"&&c.push(KO({get compat(){return k.compat}}),ZO),zo){var d,u=[Vm,process.env.NODE_ENV!=="production"?function(v){v.root||(v.return?d.insert(v.return):v.value&&v.type!==uc&&d.insert(v.value+"{}"))}:WO(function(v){d.insert(v)})],f=Um(c.concat(a,u)),h=function(y){return yr(Bm(y),f)};l=function(y,S,N,C){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),C&&(k.inserted[S.name]=!0)}}else{var m=[Vm],p=Um(c.concat(a,m)),b=function(y){return yr(Bm(y),p)},x=qO(a)(n),w=function(y,S){var N=S.name;return x[N]===void 0&&(x[N]=b(y?y+"{"+S.styles+"}":S.styles)),x[N]};l=function(y,S,N,C){var P=S.name,E=w(y,S);if(k.compat===void 0)return C&&(k.inserted[P]=!0),process.env.NODE_ENV==="development"&&S.map!==void 0?E+S.map:E;if(C)k.inserted[P]=E;else return E}}var k={key:n,sheet:new OO({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return k.sheet.hydrate(i),k},bc=typeof document<"u";function eD(t,e,n){var r="";return n.split(" ").forEach(function(a){t[a]!==void 0?e.push(t[a]+";"):r+=a+" "}),r}var Jm=function(e,n,r){var a=e.key+"-"+n.name;(r===!1||bc===!1&&e.compat!==void 0)&&e.registered[a]===void 0&&(e.registered[a]=n.styles)},tD=function(e,n,r){Jm(e,n,r);var a=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s="",o=n;do{var i=e.insert(n===o?"."+a:"",o,e.sheet,!0);!bc&&i!==void 0&&(s+=i),o=o.next}while(o!==void 0);if(!bc&&s.length!==0)return s}};function nD(t){for(var e=0,n,r=0,a=t.length;a>=4;++r,a-=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(a){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 rD={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},qm=`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`,sD="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",oD=/[A-Z]|^ms/g,$m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yc=function(e){return e.charCodeAt(1)===45},e0=function(e){return e!=null&&typeof e!="boolean"},vc=Po(function(t){return yc(t)?t:t.replace(oD,"-$&").toLowerCase()}),Bo=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace($m,function(r,a,s){return Ht={name:a,styles:s,next:Ht},a})}return aD[e]!==1&&!yc(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var iD=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,lD=["normal","none","initial","inherit","unset"],cD=Bo,dD=/^-ms-/,uD=/-(.)/g,t0={};Bo=function(e,n){if(e==="content"&&(typeof n!="string"||lD.indexOf(n)===-1&&!iD.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=cD(e,n);return r!==""&&!yc(e)&&e.indexOf("-")!==-1&&t0[e]===void 0&&(t0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(dD,"ms-").replace(uD,function(a,s){return s.toUpperCase()})+"?")),r}}var n0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function es(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(n0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ht={name:n.name,styles:n.styles,next:Ht},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ht={name:r.name,styles:r.styles,next:Ht},r=r.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return fD(t,e,n)}case"function":{if(t!==void 0){var s=Ht,o=n(t);return Ht=s,es(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($m,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`,aD="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",sD=/[A-Z]|^ms/g,$m=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yc=function(e){return e.charCodeAt(1)===45},e0=function(e){return e!=null&&typeof e!="boolean"},vc=Po(function(t){return yc(t)?t:t.replace(sD,"-$&").toLowerCase()}),Bo=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace($m,function(r,a,s){return Ht={name:a,styles:s,next:Ht},a})}return rD[e]!==1&&!yc(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var oD=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,iD=["normal","none","initial","inherit","unset"],lD=Bo,cD=/^-ms-/,dD=/-(.)/g,t0={};Bo=function(e,n){if(e==="content"&&(typeof n!="string"||iD.indexOf(n)===-1&&!oD.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!==""&&!yc(e)&&e.indexOf("-")!==-1&&t0[e]===void 0&&(t0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(cD,"ms-").replace(dD,function(a,s){return s.toUpperCase()})+"?")),r}}var n0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function es(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(n0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ht={name:n.name,styles:n.styles,next:Ht},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ht={name:r.name,styles:r.styles,next:Ht},r=r.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return uD(t,e,n)}case"function":{if(t!==void 0){var s=Ht,o=n(t);return Ht=s,es(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($m,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 fD(t,e,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=es(t,e,n[a])+";";else for(var s in n){var o=n[s];if(typeof o!="object")e0(o)&&(r+=vc(s)+":"+Bo(s,o)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(n0);if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var i=0;i<o.length;i++)e0(o[i])&&(r+=vc(s)+":"+Bo(s,o[i])+";");else{var l=es(t,e,o);switch(s){case"animation":case"animationName":{r+=vc(s)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(sD),r+=s+"{"+l+"}"}}}}return r}var r0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,a0;process.env.NODE_ENV!=="production"&&(a0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Ht,s0=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,s="";Ht=void 0;var o=e[0];o==null||o.raw===void 0?(a=!1,s+=es(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(qm),s+=o[0]);for(var i=1;i<e.length;i++)s+=es(r,n,e[i]),a&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(qm),s+=o[i]);var l;process.env.NODE_ENV!=="production"&&(s=s.replace(a0,function(f){return l=f,""})),r0.lastIndex=0;for(var c="",d;(d=r0.exec(s))!==null;)c+="-"+d[1];var u=rD(s)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:s,map:l,next:Ht,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:s,next:Ht}},hD=typeof document<"u",o0=function(e){return e()},gD=z.useInsertionEffect?z.useInsertionEffect:!1,i0=hD&&gD||o0,l0=typeof document<"u",mD={}.hasOwnProperty,ts=_.createContext(typeof HTMLElement<"u"?Zm({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ts.displayName="EmotionCacheContext"),ts.Provider;var xc=function(e){return _.forwardRef(function(n,r){var a=_.useContext(ts);return e(n,a,r)})};l0||(xc=function(e){return function(n){var r=_.useContext(ts);return r===null?(r=Zm({key:"css"}),_.createElement(ts.Provider,{value:r},e(n,r))):e(n,r)}});var wc=_.createContext({});process.env.NODE_ENV!=="production"&&(wc.displayName="EmotionThemeContext");var c0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",d0="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",pD=function(e){var n=e.cache,r=e.serialized,a=e.isStringTag;Jm(n,r,a);var s=i0(function(){return nD(n,r,a)});if(!l0&&s!==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:s},o.nonce=n.sheet.nonce,o))}return null},bD=xc(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var a=t[c0],s=[r],o="";typeof t.className=="string"?o=tD(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var i=s0(s,void 0,_.useContext(wc));if(process.env.NODE_ENV!=="production"&&i.name.indexOf("-")===-1){var l=t[d0];l&&(i=s0([i,"label:"+l+";"]))}o+=e.key+"-"+i.name;var c={};for(var d in t)mD.call(t,d)&&d!=="css"&&d!==c0&&(process.env.NODE_ENV==="production"||d!==d0)&&(c[d]=t[d]);return c.ref=n,c.className=o,_.createElement(_.Fragment,null,_.createElement(pD,{cache:e,serialized:i,isStringTag:typeof a=="string"}),_.createElement(a,c))});process.env.NODE_ENV!=="production"&&(bD.displayName="EmotionCssPropInternal");var kc=typeof document<"u";function yD(t,e,n){var r="";return n.split(" ").forEach(function(a){t[a]!==void 0?e.push(t[a]+";"):r+=a+" "}),r}var u0=function(e,n,r){var a=e.key+"-"+n.name;(r===!1||kc===!1&&e.compat!==void 0)&&e.registered[a]===void 0&&(e.registered[a]=n.styles)},vD=function(e,n,r){u0(e,n,r);var a=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s="",o=n;do{var i=e.insert(n===o?"."+a:"",o,e.sheet,!0);!kc&&i!==void 0&&(s+=i),o=o.next}while(o!==void 0);if(!kc&&s.length!==0)return s}};function xD(t){for(var e=0,n,r=0,a=t.length;a>=4;++r,a-=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(a){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 wD={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 uD(t,e,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=es(t,e,n[a])+";";else for(var s in n){var o=n[s];if(typeof o!="object")e0(o)&&(r+=vc(s)+":"+Bo(s,o)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(n0);if(Array.isArray(o)&&typeof o[0]=="string"&&e==null)for(var i=0;i<o.length;i++)e0(o[i])&&(r+=vc(s)+":"+Bo(s,o[i])+";");else{var l=es(t,e,o);switch(s){case"animation":case"animationName":{r+=vc(s)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(aD),r+=s+"{"+l+"}"}}}}return r}var r0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,a0;process.env.NODE_ENV!=="production"&&(a0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Ht,s0=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,s="";Ht=void 0;var o=e[0];o==null||o.raw===void 0?(a=!1,s+=es(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(qm),s+=o[0]);for(var i=1;i<e.length;i++)s+=es(r,n,e[i]),a&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(qm),s+=o[i]);var l;process.env.NODE_ENV!=="production"&&(s=s.replace(a0,function(f){return l=f,""})),r0.lastIndex=0;for(var c="",d;(d=r0.exec(s))!==null;)c+="-"+d[1];var u=nD(s)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:s,map:l,next:Ht,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:s,next:Ht}},fD=typeof document<"u",o0=function(e){return e()},hD=z.useInsertionEffect?z.useInsertionEffect:!1,i0=fD&&hD||o0,l0=typeof document<"u",gD={}.hasOwnProperty,ts=_.createContext(typeof HTMLElement<"u"?Zm({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ts.displayName="EmotionCacheContext"),ts.Provider;var xc=function(e){return _.forwardRef(function(n,r){var a=_.useContext(ts);return e(n,a,r)})};l0||(xc=function(e){return function(n){var r=_.useContext(ts);return r===null?(r=Zm({key:"css"}),_.createElement(ts.Provider,{value:r},e(n,r))):e(n,r)}});var wc=_.createContext({});process.env.NODE_ENV!=="production"&&(wc.displayName="EmotionThemeContext");var c0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",d0="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",mD=function(e){var n=e.cache,r=e.serialized,a=e.isStringTag;Jm(n,r,a);var s=i0(function(){return tD(n,r,a)});if(!l0&&s!==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:s},o.nonce=n.sheet.nonce,o))}return null},pD=xc(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var a=t[c0],s=[r],o="";typeof t.className=="string"?o=eD(e.registered,s,t.className):t.className!=null&&(o=t.className+" ");var i=s0(s,void 0,_.useContext(wc));if(process.env.NODE_ENV!=="production"&&i.name.indexOf("-")===-1){var l=t[d0];l&&(i=s0([i,"label:"+l+";"]))}o+=e.key+"-"+i.name;var c={};for(var d in t)gD.call(t,d)&&d!=="css"&&d!==c0&&(process.env.NODE_ENV==="production"||d!==d0)&&(c[d]=t[d]);return c.ref=n,c.className=o,_.createElement(_.Fragment,null,_.createElement(mD,{cache:e,serialized:i,isStringTag:typeof a=="string"}),_.createElement(a,c))});process.env.NODE_ENV!=="production"&&(pD.displayName="EmotionCssPropInternal");var kc=typeof document<"u";function bD(t,e,n){var r="";return n.split(" ").forEach(function(a){t[a]!==void 0?e.push(t[a]+";"):r+=a+" "}),r}var u0=function(e,n,r){var a=e.key+"-"+n.name;(r===!1||kc===!1&&e.compat!==void 0)&&e.registered[a]===void 0&&(e.registered[a]=n.styles)},yD=function(e,n,r){u0(e,n,r);var a=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s="",o=n;do{var i=e.insert(n===o?"."+a:"",o,e.sheet,!0);!kc&&i!==void 0&&(s+=i),o=o.next}while(o!==void 0);if(!kc&&s.length!==0)return s}};function vD(t){for(var e=0,n,r=0,a=t.length;a>=4;++r,a-=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(a){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 xD={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.
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`,kD="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",_D=/[A-Z]|^ms/g,h0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_c=function(e){return e.charCodeAt(1)===45},g0=function(e){return e!=null&&typeof e!="boolean"},Sc=Po(function(t){return _c(t)?t:t.replace(_D,"-$&").toLowerCase()}),Ho=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(h0,function(r,a,s){return Yt={name:a,styles:s,next:Yt},a})}return wD[e]!==1&&!_c(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var SD=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,OD=["normal","none","initial","inherit","unset"],DD=Ho,MD=/^-ms-/,CD=/-(.)/g,m0={};Ho=function(e,n){if(e==="content"&&(typeof n!="string"||OD.indexOf(n)===-1&&!SD.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=DD(e,n);return r!==""&&!_c(e)&&e.indexOf("-")!==-1&&m0[e]===void 0&&(m0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(MD,"ms-").replace(CD,function(a,s){return s.toUpperCase()})+"?")),r}}var p0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ns(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(p0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Yt={name:n.name,styles:n.styles,next:Yt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Yt={name:r.name,styles:r.styles,next:Yt},r=r.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return ED(t,e,n)}case"function":{if(t!==void 0){var s=Yt,o=n(t);return Yt=s,ns(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(`
51
+ 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).",kD=/[A-Z]|^ms/g,h0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_c=function(e){return e.charCodeAt(1)===45},g0=function(e){return e!=null&&typeof e!="boolean"},Sc=Po(function(t){return _c(t)?t:t.replace(kD,"-$&").toLowerCase()}),Ho=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(h0,function(r,a,s){return Yt={name:a,styles:s,next:Yt},a})}return xD[e]!==1&&!_c(e)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var _D=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,SD=["normal","none","initial","inherit","unset"],OD=Ho,DD=/^-ms-/,MD=/-(.)/g,m0={};Ho=function(e,n){if(e==="content"&&(typeof n!="string"||SD.indexOf(n)===-1&&!_D.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=OD(e,n);return r!==""&&!_c(e)&&e.indexOf("-")!==-1&&m0[e]===void 0&&(m0[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(DD,"ms-").replace(MD,function(a,s){return s.toUpperCase()})+"?")),r}}var p0="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ns(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(p0);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Yt={name:n.name,styles:n.styles,next:Yt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Yt={name:r.name,styles:r.styles,next:Yt},r=r.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return CD(t,e,n)}case"function":{if(t!==void 0){var s=Yt,o=n(t);return Yt=s,ns(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 ED(t,e,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=ns(t,e,n[a])+";";else for(var s in n){var o=n[s];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=s+"{"+e[o]+"}":g0(o)&&(r+=Sc(s)+":"+Ho(s,o)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(p0);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var i=0;i<o.length;i++)g0(o[i])&&(r+=Sc(s)+":"+Ho(s,o[i])+";");else{var l=ns(t,e,o);switch(s){case"animation":case"animationName":{r+=Sc(s)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(kD),r+=s+"{"+l+"}"}}}}return r}var b0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,y0;process.env.NODE_ENV!=="production"&&(y0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Yt,TD=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,s="";Yt=void 0;var o=e[0];o==null||o.raw===void 0?(a=!1,s+=ns(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(f0),s+=o[0]);for(var i=1;i<e.length;i++)s+=ns(r,n,e[i]),a&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(f0),s+=o[i]);var l;process.env.NODE_ENV!=="production"&&(s=s.replace(y0,function(f){return l=f,""})),b0.lastIndex=0;for(var c="",d;(d=b0.exec(s))!==null;)c+="-"+d[1];var u=xD(s)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:s,map:l,next:Yt,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:s,next:Yt}},PD=_O,ND=function(e){return e!=="theme"},v0=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?PD:ND},x0=function(e,n,r){var a;if(n){var s=n.shouldForwardProp;a=e.__emotion_forwardProp&&s?function(o){return e.__emotion_forwardProp(o)&&s(o)}:s}return typeof a!="function"&&r&&(a=e.__emotion_forwardProp),a},w0=`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 CD(t,e,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=ns(t,e,n[a])+";";else for(var s in n){var o=n[s];if(typeof o!="object")e!=null&&e[o]!==void 0?r+=s+"{"+e[o]+"}":g0(o)&&(r+=Sc(s)+":"+Ho(s,o)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(p0);if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var i=0;i<o.length;i++)g0(o[i])&&(r+=Sc(s)+":"+Ho(s,o[i])+";");else{var l=ns(t,e,o);switch(s){case"animation":case"animationName":{r+=Sc(s)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(wD),r+=s+"{"+l+"}"}}}}return r}var b0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,y0;process.env.NODE_ENV!=="production"&&(y0=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Yt,ED=function(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,s="";Yt=void 0;var o=e[0];o==null||o.raw===void 0?(a=!1,s+=ns(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(f0),s+=o[0]);for(var i=1;i<e.length;i++)s+=ns(r,n,e[i]),a&&(process.env.NODE_ENV!=="production"&&o[i]===void 0&&console.error(f0),s+=o[i]);var l;process.env.NODE_ENV!=="production"&&(s=s.replace(y0,function(f){return l=f,""})),b0.lastIndex=0;for(var c="",d;(d=b0.exec(s))!==null;)c+="-"+d[1];var u=vD(s)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:s,map:l,next:Yt,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:s,next:Yt}},TD=kO,PD=function(e){return e!=="theme"},v0=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?TD:PD},x0=function(e,n,r){var a;if(n){var s=n.shouldForwardProp;a=e.__emotion_forwardProp&&s?function(o){return e.__emotion_forwardProp(o)&&s(o)}:s}return typeof a!="function"&&r&&(a=e.__emotion_forwardProp),a},w0=`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`,jD=typeof document<"u",ID=function(e){var n=e.cache,r=e.serialized,a=e.isStringTag;u0(n,r,a);var s=i0(function(){return vD(n,r,a)});if(!jD&&s!==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:s},o.nonce=n.sheet.nonce,o))}return null},RD=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,a=r&&e.__emotion_base||e,s,o;n!==void 0&&(s=n.label,o=n.target);var i=x0(e,n,r),l=i||v0(a),c=!l("as");return function(){var d=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&u.push("label:"+s+";"),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(w0),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(w0),u.push(d[h],d[0][h])}var m=xc(function(p,b,x){var w=c&&p.as||a,k="",v=[],y=p;if(p.theme==null){y={};for(var S in p)y[S]=p[S];y.theme=_.useContext(wc)}typeof p.className=="string"?k=yD(b.registered,v,p.className):p.className!=null&&(k=p.className+" ");var N=TD(u.concat(v),b.registered,y);k+=b.key+"-"+N.name,o!==void 0&&(k+=" "+o);var C=c&&i===void 0?v0(w):l,P={};for(var E in p)c&&E==="as"||C(E)&&(P[E]=p[E]);return P.className=k,P.ref=x,_.createElement(_.Fragment,null,_.createElement(ID,{cache:b,serialized:N,isStringTag:typeof w=="string"}),_.createElement(w,P))});return m.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",m.defaultProps=e.defaultProps,m.__emotion_real=m,m.__emotion_base=a,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,dc({},n,b,{shouldForwardProp:x0(m,b,!0)})).apply(void 0,u)},m}},AD=["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"],tt=RD.bind();AD.forEach(function(t){tt[t]=tt(t)});var k0={exports:{}};/*!
59
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,ND=typeof document<"u",jD=function(e){var n=e.cache,r=e.serialized,a=e.isStringTag;u0(n,r,a);var s=i0(function(){return yD(n,r,a)});if(!ND&&s!==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:s},o.nonce=n.sheet.nonce,o))}return null},ID=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,a=r&&e.__emotion_base||e,s,o;n!==void 0&&(s=n.label,o=n.target);var i=x0(e,n,r),l=i||v0(a),c=!l("as");return function(){var d=arguments,u=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&u.push("label:"+s+";"),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(w0),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(w0),u.push(d[h],d[0][h])}var m=xc(function(p,b,x){var w=c&&p.as||a,k="",v=[],y=p;if(p.theme==null){y={};for(var S in p)y[S]=p[S];y.theme=_.useContext(wc)}typeof p.className=="string"?k=bD(b.registered,v,p.className):p.className!=null&&(k=p.className+" ");var N=ED(u.concat(v),b.registered,y);k+=b.key+"-"+N.name,o!==void 0&&(k+=" "+o);var C=c&&i===void 0?v0(w):l,P={};for(var E in p)c&&E==="as"||C(E)&&(P[E]=p[E]);return P.className=k,P.ref=x,_.createElement(_.Fragment,null,_.createElement(jD,{cache:b,serialized:N,isStringTag:typeof w=="string"}),_.createElement(w,P))});return m.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",m.defaultProps=e.defaultProps,m.__emotion_real=m,m.__emotion_base=a,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,dc({},n,b,{shouldForwardProp:x0(m,b,!0)})).apply(void 0,u)},m}},RD=["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"],tt=ID.bind();RD.forEach(function(t){tt[t]=tt(t)});var k0={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=[],a=0;a<arguments.length;a++){var s=arguments[a];if(s){var o=typeof s;if(o==="string"||o==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var i=n.apply(null,s);i&&r.push(i)}}else if(o==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){r.push(s.toString());continue}for(var l in s)e.call(s,l)&&s[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(k0);var $e=k0.exports,FD=_.createContext(void 0),LD=function(){var t=_.useContext(FD);return t},WD=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 a=window.matchMedia(t),s=function(){a.matches!==n&&r(a.matches)};return s(),a.addEventListener("change",s),function(){return a.removeEventListener("change",s)}}},[n,t]),n},We={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"},ye={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"},zD=tt.div(_0||(_0=dt([`
64
+ */(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],a=0;a<arguments.length;a++){var s=arguments[a];if(s){var o=typeof s;if(o==="string"||o==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var i=n.apply(null,s);i&&r.push(i)}}else if(o==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){r.push(s.toString());continue}for(var l in s)e.call(s,l)&&s[l]&&r.push(l)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(k0);var $e=k0.exports,AD=_.createContext(void 0),FD=function(){var t=_.useContext(AD);return t},LD=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 a=window.matchMedia(t),s=function(){a.matches!==n&&r(a.matches)};return s(),a.addEventListener("change",s),function(){return a.removeEventListener("change",s)}}},[n,t]),n},We={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"},ye={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"},WD=tt.div(_0||(_0=dt([`
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,a=r&&e.__emoti
77
77
  left: 0px;
78
78
  z-index: 1;
79
79
  background-color: rgb(0, 0, 0, 0.3);
80
- `]))),_0,BD={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},HD=tt.aside(S0||(S0=dt([`
80
+ `]))),_0,zD={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always",all:"all"},BD=tt.aside(S0||(S0=dt([`
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,a=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},We.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},We.rtl,We.broken,function(t){var e=t.rtl,n=t.width;return e?"":"left: -".concat(n,";")},We.collapsed,function(t){var e=t.rtl,n=t.collapsedWidth;return e?"":"left: -".concat(n,"; ")},We.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},We.rtl,function(t){var e=t.width;return e},We.collapsed,function(t){var e=t.collapsedWidth;return e},We.toggled,function(t){var e=t.rootStyles;return e}),YD=tt.div(O0||(O0=dt([`
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},We.collapsed,function(t){var e=t.collapsedWidth;return e},function(t){var e=t.collapsedWidth;return e},We.rtl,We.broken,function(t){var e=t.rtl,n=t.width;return e?"":"left: -".concat(n,";")},We.collapsed,function(t){var e=t.rtl,n=t.collapsedWidth;return e?"":"left: -".concat(n,"; ")},We.toggled,function(t){var e=t.rtl;return e?"":"left: 0;"},We.rtl,function(t){var e=t.width;return e},We.collapsed,function(t){var e=t.collapsedWidth;return e},We.toggled,function(t){var e=t.rootStyles;return e}),HD=tt.div(O0||(O0=dt([`
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,a=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,";"):""}),VD=tt.img(D0||(D0=dt([`
204
+ `])),function(t){var e=t.backgroundColor;return e?"background-color:".concat(e,";"):""}),YD=tt.img(D0||(D0=dt([`
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,a=r&&e.__emoti
223
223
  top: 0;
224
224
  z-index: 2;
225
225
  }
226
- `])),We.image),Yo=_.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),UD=_.forwardRef(function(t,e){var n,r=t.collapsed,a=t.toggled,s=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,x=b===void 0?"rgb(249, 249, 249, 0.7)":b,w=t.transitionDuration,k=w===void 0?300:w,v=t.image,y=t.rtl,S=t.rootStyles,N=br(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),C=function(){if(p)return"(max-width: ".concat(p,")");if(m)return["xs","sm","md","lg","xl","xxl"].includes(m)?"(max-width: ".concat(BD[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,")")},P=_.useRef();P.current=function(K){o==null||o(K)};var E=WD(C()),B=_.useState(!1),F=B[0],O=B[1],D=LD(),T=r??(!F&&u?!0:D==null?void 0:D.collapsed),L=a??(D==null?void 0:D.toggled),V=function(){s==null||s(),D==null||D.updateSidebarState({toggled:!1})};return _.useEffect(function(){var K;(K=P.current)===null||K===void 0||K.call(P,E)},[E]),_.useEffect(function(){D==null||D.updateSidebarState({broken:E,rtl:y,transitionDuration:k})},[E,D==null?void 0:D.updateSidebarState,y,k]),_.useEffect(function(){F||(D==null||D.updateSidebarState({collapsed:u}),O(!0))},[u,F,D==null?void 0:D.updateSidebarState]),_.createElement(Yo.Provider,{value:{collapsed:T,toggled:L,rtl:y,transitionDuration:k}},_.createElement(HD,Ot({ref:e,"data-testid":"".concat(We.root,"-test-id"),rtl:y,rootStyles:S,width:l,collapsedWidth:d,transitionDuration:k,className:$e(We.root,(n={},n[We.collapsed]=T,n[We.toggled]=L,n[We.broken]=E,n[We.rtl]=y,n),f)},N),_.createElement(YD,{"data-testid":"".concat(We.container,"-test-id"),className:We.container,backgroundColor:x},h),v&&_.createElement(VD,{"data-testid":"".concat(We.image,"-test-id"),src:v,alt:"sidebar background",className:We.image}),E&&L&&_.createElement(zD,{"data-testid":"".concat(We.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:V,onKeyPress:V,className:We.backdrop})))}),S0,O0,D0,M0=tt.ul(C0||(C0=dt([`
226
+ `])),We.image),Yo=_.createContext({collapsed:!1,toggled:!1,rtl:!1,transitionDuration:300}),VD=_.forwardRef(function(t,e){var n,r=t.collapsed,a=t.toggled,s=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,x=b===void 0?"rgb(249, 249, 249, 0.7)":b,w=t.transitionDuration,k=w===void 0?300:w,v=t.image,y=t.rtl,S=t.rootStyles,N=br(t,["collapsed","toggled","onBackdropClick","onBreakPoint","width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),C=function(){if(p)return"(max-width: ".concat(p,")");if(m)return["xs","sm","md","lg","xl","xxl"].includes(m)?"(max-width: ".concat(zD[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,")")},P=_.useRef();P.current=function(K){o==null||o(K)};var E=LD(C()),B=_.useState(!1),F=B[0],O=B[1],D=FD(),T=r??(!F&&u?!0:D==null?void 0:D.collapsed),L=a??(D==null?void 0:D.toggled),V=function(){s==null||s(),D==null||D.updateSidebarState({toggled:!1})};return _.useEffect(function(){var K;(K=P.current)===null||K===void 0||K.call(P,E)},[E]),_.useEffect(function(){D==null||D.updateSidebarState({broken:E,rtl:y,transitionDuration:k})},[E,D==null?void 0:D.updateSidebarState,y,k]),_.useEffect(function(){F||(D==null||D.updateSidebarState({collapsed:u}),O(!0))},[u,F,D==null?void 0:D.updateSidebarState]),_.createElement(Yo.Provider,{value:{collapsed:T,toggled:L,rtl:y,transitionDuration:k}},_.createElement(BD,Ot({ref:e,"data-testid":"".concat(We.root,"-test-id"),rtl:y,rootStyles:S,width:l,collapsedWidth:d,transitionDuration:k,className:$e(We.root,(n={},n[We.collapsed]=T,n[We.toggled]=L,n[We.broken]=E,n[We.rtl]=y,n),f)},N),_.createElement(HD,{"data-testid":"".concat(We.container,"-test-id"),className:We.container,backgroundColor:x},h),v&&_.createElement(YD,{"data-testid":"".concat(We.image,"-test-id"),src:v,alt:"sidebar background",className:We.image}),E&&L&&_.createElement(WD,{"data-testid":"".concat(We.backdrop,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:V,onKeyPress:V,className:We.backdrop})))}),S0,O0,D0,M0=tt.ul(C0||(C0=dt([`
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,a=r&&e.__emoti
231
231
  list-style-type: none;
232
232
  padding: 0;
233
233
  margin: 0;
234
- `]))),C0,XD=tt.nav(T0||(T0=dt([`
234
+ `]))),C0,UD=tt.nav(T0||(T0=dt([`
235
235
  &.`,` {
236
236
  `,`
237
237
  }
@@ -239,7 +239,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,a=r&&e.__emoti
239
239
  &.`,` {
240
240
  `,`
241
241
  }
242
- `])),ye.root,function(t){var e=t.rootStyles;return e}),E0=_.createContext(void 0),Vo=_.createContext(0),GD=function(t,e){var n=t.children,r=t.className,a=t.transitionDuration,s=a===void 0?300:a,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:s,closeOnClick:i,menuItemStyles:c,renderExpandIcon:d}},[s,i,c,d]);return _.createElement(E0.Provider,{value:f},_.createElement(Vo.Provider,{value:0},_.createElement(XD,Ot({ref:e,className:$e(ye.root,r),rootStyles:l},u),_.createElement(M0,null,n))))},KD=_.forwardRef(GD),T0,Oc=function(){var t=_.useContext(E0);if(t===void 0)throw new Error("Menu Component is required!");return t},QD=tt.div(P0||(P0=dt([`
242
+ `])),ye.root,function(t){var e=t.rootStyles;return e}),E0=_.createContext(void 0),Vo=_.createContext(0),XD=function(t,e){var n=t.children,r=t.className,a=t.transitionDuration,s=a===void 0?300:a,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:s,closeOnClick:i,menuItemStyles:c,renderExpandIcon:d}},[s,i,c,d]);return _.createElement(E0.Provider,{value:f},_.createElement(Vo.Provider,{value:0},_.createElement(UD,Ot({ref:e,className:$e(ye.root,r),rootStyles:l},u),_.createElement(M0,null,n))))},GD=_.forwardRef(XD),T0,Oc=function(){var t=_.useContext(E0);if(t===void 0)throw new Error("Menu Component is required!");return t},KD=tt.div(P0||(P0=dt([`
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,a=r&&e.__emoti
284
284
  `):`
285
285
  position: static!important;
286
286
  transform: none!important;
287
- `},function(t){var e=t.rootStyles;return e}),ZD=function(t,e){var n=t.children,r=t.open,a=t.openWhenCollapsed,s=t.firstLevel,o=t.collapsed,i=t.defaultOpen,l=br(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=Oc().transitionDuration,d=_.useState(i)[0];return _.createElement(QD,Ot({"data-testid":"".concat(ye.subMenuContent,"-test-id"),ref:e,firstLevel:s,collapsed:o,open:r,openWhenCollapsed:a,transitionDuration:c,defaultOpen:d},l),_.createElement(M0,null,n))},JD=_.forwardRef(ZD),P0,N0=tt.span(j0||(j0=dt([`
287
+ `},function(t){var e=t.rootStyles;return e}),QD=function(t,e){var n=t.children,r=t.open,a=t.openWhenCollapsed,s=t.firstLevel,o=t.collapsed,i=t.defaultOpen,l=br(t,["children","open","openWhenCollapsed","firstLevel","collapsed","defaultOpen"]),c=Oc().transitionDuration,d=_.useState(i)[0];return _.createElement(KD,Ot({"data-testid":"".concat(ye.subMenuContent,"-test-id"),ref:e,firstLevel:s,collapsed:o,open:r,openWhenCollapsed:a,transitionDuration:c,defaultOpen:d},l),_.createElement(M0,null,n))},ZD=_.forwardRef(QD),P0,N0=tt.span(j0||(j0=dt([`
288
288
  flex-grow: 1;
289
289
  overflow: hidden;
290
290
  text-overflow: ellipsis;
@@ -354,7 +354,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,a=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}),W0,qD=tt.span(z0||(z0=dt([`
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}),W0,JD=tt.span(z0||(z0=dt([`
358
358
  `,`
359
359
 
360
360
  `,`;
@@ -368,7 +368,7 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,a=r&&e.__emoti
368
368
  top: 50%;
369
369
  transform: translateY(-50%);
370
370
 
371
- `)},function(t){var e=t.rootStyles;return e}),$D=tt.span(B0||(B0=dt([`
371
+ `)},function(t){var e=t.rootStyles;return e}),qD=tt.span(B0||(B0=dt([`
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,a=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"}),eM=tt.span(H0||(H0=dt([`
392
+ `},function(t){var e=t.open,n=t.rtl;return e?n?"-135deg":"45deg":"-45deg"}),$D=tt.span(H0||(H0=dt([`
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,a=r&&e.__emoti
401
401
  background-color: currentcolor;
402
402
  border-radius: 50%;
403
403
  display: inline-block;
404
- `]))),z0,B0,H0,xt="top",At="bottom",Ft="right",wt="left",Uo="auto",rs=[xt,At,Ft,wt],qr="start",as="end",tM="clippingParents",Y0="viewport",ss="popper",nM="reference",V0=rs.reduce(function(t,e){return t.concat([e+"-"+qr,e+"-"+as])},[]),U0=[].concat(rs,[Uo]).reduce(function(t,e){return t.concat([e,e+"-"+qr,e+"-"+as])},[]),rM="beforeRead",aM="read",sM="afterRead",oM="beforeMain",iM="main",lM="afterMain",cM="beforeWrite",dM="write",uM="afterWrite",Dc=[rM,aM,sM,oM,iM,lM,cM,dM,uM];function an(t){return t?(t.nodeName||"").toLowerCase():null}function Lt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function vr(t){var e=Lt(t).Element;return t instanceof e||t instanceof Element}function Mt(t){var e=Lt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Mc(t){if(typeof ShadowRoot>"u")return!1;var e=Lt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function fM(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},a=e.attributes[n]||{},s=e.elements[n];!Mt(s)||!an(s)||(Object.assign(s.style,r),Object.keys(a).forEach(function(o){var i=a[o];i===!1?s.removeAttribute(o):s.setAttribute(o,i===!0?"":i)}))})}function hM(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 a=e.elements[r],s=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},{});!Mt(a)||!an(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(l){a.removeAttribute(l)}))})}}var gM={name:"applyStyles",enabled:!0,phase:"write",fn:fM,effect:hM,requires:["computeStyles"]};function Vt(t){return t.split("-")[0]}var xr=Math.max,Xo=Math.min,$r=Math.round;function Cc(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function X0(){return!/^((?!chrome|android).)*safari/i.test(Cc())}function ea(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),a=1,s=1;e&&Mt(t)&&(a=t.offsetWidth>0&&$r(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&$r(r.height)/t.offsetHeight||1);var o=vr(t)?Lt(t):window,i=o.visualViewport,l=!X0()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/a,d=(r.top+(l&&i?i.offsetTop:0))/s,u=r.width/a,f=r.height/s;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function Ec(t){var e=ea(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 G0(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Mc(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ut(t){return Lt(t).getComputedStyle(t)}function mM(t){return["table","td","th"].indexOf(an(t))>=0}function Un(t){return((vr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Go(t){return an(t)==="html"?t:t.assignedSlot||t.parentNode||(Mc(t)?t.host:null)||Un(t)}function K0(t){return!Mt(t)||Ut(t).position==="fixed"?null:t.offsetParent}function pM(t){var e=/firefox/i.test(Cc()),n=/Trident/i.test(Cc());if(n&&Mt(t)){var r=Ut(t);if(r.position==="fixed")return null}var a=Go(t);for(Mc(a)&&(a=a.host);Mt(a)&&["html","body"].indexOf(an(a))<0;){var s=Ut(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function os(t){for(var e=Lt(t),n=K0(t);n&&mM(n)&&Ut(n).position==="static";)n=K0(n);return n&&(an(n)==="html"||an(n)==="body"&&Ut(n).position==="static")?e:n||pM(t)||e}function Tc(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function is(t,e,n){return xr(t,Xo(e,n))}function bM(t,e,n){var r=is(t,e,n);return r>n?n:r}function Q0(){return{top:0,right:0,bottom:0,left:0}}function Z0(t){return Object.assign({},Q0(),t)}function J0(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var yM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Z0(typeof e!="number"?e:J0(e,rs))};function vM(t){var e,n=t.state,r=t.name,a=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,i=Vt(n.placement),l=Tc(i),c=[wt,Ft].indexOf(i)>=0,d=c?"height":"width";if(!(!s||!o)){var u=yM(a.padding,n),f=Ec(s),h=l==="y"?xt:wt,m=l==="y"?At:Ft,p=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],b=o[l]-n.rects.reference[l],x=os(s),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,k=p/2-b/2,v=u[h],y=w-f[d]-u[m],S=w/2-f[d]/2+k,N=is(v,S,y),C=l;n.modifiersData[r]=(e={},e[C]=N,e.centerOffset=N-S,e)}}function xM(t){var e=t.state,n=t.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;if(a!=null&&!(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a))){if(process.env.NODE_ENV!=="production"&&(Mt(a)||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(" "))),!G0(e.elements.popper,a)){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=a}}var wM={name:"arrow",enabled:!0,phase:"main",fn:vM,effect:xM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ta(t){return t.split("-")[1]}var kM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _M(t){var e=t.x,n=t.y,r=window,a=r.devicePixelRatio||1;return{x:$r(e*a)/a||0,y:$r(n*a)/a||0}}function q0(t){var e,n=t.popper,r=t.popperRect,a=t.placement,s=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 x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),k=wt,v=xt,y=window;if(c){var S=os(n),N="clientHeight",C="clientWidth";if(S===Lt(n)&&(S=Un(n),Ut(S).position!=="static"&&i==="absolute"&&(N="scrollHeight",C="scrollWidth")),S=S,a===xt||(a===wt||a===Ft)&&s===as){v=At;var P=u&&S===y&&y.visualViewport?y.visualViewport.height:S[N];p-=P-r.height,p*=l?1:-1}if(a===wt||(a===xt||a===At)&&s===as){k=Ft;var E=u&&S===y&&y.visualViewport?y.visualViewport.width:S[C];h-=E-r.width,h*=l?1:-1}}var B=Object.assign({position:i},c&&kM),F=d===!0?_M({x:h,y:p}):{x:h,y:p};if(h=F.x,p=F.y,l){var O;return Object.assign({},B,(O={},O[v]=w?"0":"",O[k]=x?"0":"",O.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",O))}return Object.assign({},B,(e={},e[v]=w?p+"px":"",e[k]=x?h+"px":"",e.transform="",e))}function SM(t){var e=t.state,n=t.options,r=n.gpuAcceleration,a=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,i=n.roundOffsets,l=i===void 0?!0:i;if(process.env.NODE_ENV!=="production"){var c=Ut(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
+ `]))),z0,B0,H0,xt="top",At="bottom",Ft="right",wt="left",Uo="auto",rs=[xt,At,Ft,wt],qr="start",as="end",eM="clippingParents",Y0="viewport",ss="popper",tM="reference",V0=rs.reduce(function(t,e){return t.concat([e+"-"+qr,e+"-"+as])},[]),U0=[].concat(rs,[Uo]).reduce(function(t,e){return t.concat([e,e+"-"+qr,e+"-"+as])},[]),nM="beforeRead",rM="read",aM="afterRead",sM="beforeMain",oM="main",iM="afterMain",lM="beforeWrite",cM="write",dM="afterWrite",Dc=[nM,rM,aM,sM,oM,iM,lM,cM,dM];function an(t){return t?(t.nodeName||"").toLowerCase():null}function Lt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function vr(t){var e=Lt(t).Element;return t instanceof e||t instanceof Element}function Mt(t){var e=Lt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Mc(t){if(typeof ShadowRoot>"u")return!1;var e=Lt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function uM(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},a=e.attributes[n]||{},s=e.elements[n];!Mt(s)||!an(s)||(Object.assign(s.style,r),Object.keys(a).forEach(function(o){var i=a[o];i===!1?s.removeAttribute(o):s.setAttribute(o,i===!0?"":i)}))})}function fM(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 a=e.elements[r],s=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},{});!Mt(a)||!an(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(l){a.removeAttribute(l)}))})}}var hM={name:"applyStyles",enabled:!0,phase:"write",fn:uM,effect:fM,requires:["computeStyles"]};function Vt(t){return t.split("-")[0]}var xr=Math.max,Xo=Math.min,$r=Math.round;function Cc(){var t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function X0(){return!/^((?!chrome|android).)*safari/i.test(Cc())}function ea(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),a=1,s=1;e&&Mt(t)&&(a=t.offsetWidth>0&&$r(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&$r(r.height)/t.offsetHeight||1);var o=vr(t)?Lt(t):window,i=o.visualViewport,l=!X0()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/a,d=(r.top+(l&&i?i.offsetTop:0))/s,u=r.width/a,f=r.height/s;return{width:u,height:f,top:d,right:c+u,bottom:d+f,left:c,x:c,y:d}}function Ec(t){var e=ea(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 G0(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Mc(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ut(t){return Lt(t).getComputedStyle(t)}function gM(t){return["table","td","th"].indexOf(an(t))>=0}function Vn(t){return((vr(t)?t.ownerDocument:t.document)||window.document).documentElement}function Go(t){return an(t)==="html"?t:t.assignedSlot||t.parentNode||(Mc(t)?t.host:null)||Vn(t)}function K0(t){return!Mt(t)||Ut(t).position==="fixed"?null:t.offsetParent}function mM(t){var e=/firefox/i.test(Cc()),n=/Trident/i.test(Cc());if(n&&Mt(t)){var r=Ut(t);if(r.position==="fixed")return null}var a=Go(t);for(Mc(a)&&(a=a.host);Mt(a)&&["html","body"].indexOf(an(a))<0;){var s=Ut(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function os(t){for(var e=Lt(t),n=K0(t);n&&gM(n)&&Ut(n).position==="static";)n=K0(n);return n&&(an(n)==="html"||an(n)==="body"&&Ut(n).position==="static")?e:n||mM(t)||e}function Tc(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function is(t,e,n){return xr(t,Xo(e,n))}function pM(t,e,n){var r=is(t,e,n);return r>n?n:r}function Q0(){return{top:0,right:0,bottom:0,left:0}}function Z0(t){return Object.assign({},Q0(),t)}function J0(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var bM=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Z0(typeof e!="number"?e:J0(e,rs))};function yM(t){var e,n=t.state,r=t.name,a=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,i=Vt(n.placement),l=Tc(i),c=[wt,Ft].indexOf(i)>=0,d=c?"height":"width";if(!(!s||!o)){var u=bM(a.padding,n),f=Ec(s),h=l==="y"?xt:wt,m=l==="y"?At:Ft,p=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],b=o[l]-n.rects.reference[l],x=os(s),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,k=p/2-b/2,v=u[h],y=w-f[d]-u[m],S=w/2-f[d]/2+k,N=is(v,S,y),C=l;n.modifiersData[r]=(e={},e[C]=N,e.centerOffset=N-S,e)}}function vM(t){var e=t.state,n=t.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;if(a!=null&&!(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a))){if(process.env.NODE_ENV!=="production"&&(Mt(a)||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(" "))),!G0(e.elements.popper,a)){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=a}}var xM={name:"arrow",enabled:!0,phase:"main",fn:yM,effect:vM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ta(t){return t.split("-")[1]}var wM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kM(t){var e=t.x,n=t.y,r=window,a=r.devicePixelRatio||1;return{x:$r(e*a)/a||0,y:$r(n*a)/a||0}}function q0(t){var e,n=t.popper,r=t.popperRect,a=t.placement,s=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 x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),k=wt,v=xt,y=window;if(c){var S=os(n),N="clientHeight",C="clientWidth";if(S===Lt(n)&&(S=Vn(n),Ut(S).position!=="static"&&i==="absolute"&&(N="scrollHeight",C="scrollWidth")),S=S,a===xt||(a===wt||a===Ft)&&s===as){v=At;var P=u&&S===y&&y.visualViewport?y.visualViewport.height:S[N];p-=P-r.height,p*=l?1:-1}if(a===wt||(a===xt||a===At)&&s===as){k=Ft;var E=u&&S===y&&y.visualViewport?y.visualViewport.width:S[C];h-=E-r.width,h*=l?1:-1}}var B=Object.assign({position:i},c&&wM),F=d===!0?kM({x:h,y:p}):{x:h,y:p};if(h=F.x,p=F.y,l){var O;return Object.assign({},B,(O={},O[v]=w?"0":"",O[k]=x?"0":"",O.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",O))}return Object.assign({},B,(e={},e[v]=w?p+"px":"",e[k]=x?h+"px":"",e.transform="",e))}function _M(t){var e=t.state,n=t.options,r=n.gpuAcceleration,a=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,i=n.roundOffsets,l=i===void 0?!0:i;if(process.env.NODE_ENV!=="production"){var c=Ut(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:Vt(e.placement),variation:ta(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,q0(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,q0(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 OM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SM,data:{}},Ko={passive:!0};function DM(t){var e=t.state,n=t.instance,r=t.options,a=r.scroll,s=a===void 0?!0:a,o=r.resize,i=o===void 0?!0:o,l=Lt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",n.update,Ko)}),i&&l.addEventListener("resize",n.update,Ko),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Ko)}),i&&l.removeEventListener("resize",n.update,Ko)}}var MM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:DM,data:{}},CM={left:"right",right:"left",bottom:"top",top:"bottom"};function Qo(t){return t.replace(/left|right|bottom|top/g,function(e){return CM[e]})}var EM={start:"end",end:"start"};function $0(t){return t.replace(/start|end/g,function(e){return EM[e]})}function Pc(t){var e=Lt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nc(t){return ea(Un(t)).left+Pc(t).scrollLeft}function TM(t,e){var n=Lt(t),r=Un(t),a=n.visualViewport,s=r.clientWidth,o=r.clientHeight,i=0,l=0;if(a){s=a.width,o=a.height;var c=X0();(c||!c&&e==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:s,height:o,x:i+Nc(t),y:l}}function PM(t){var e,n=Un(t),r=Pc(t),a=(e=t.ownerDocument)==null?void 0:e.body,s=xr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=xr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+Nc(t),l=-r.scrollTop;return Ut(a||n).direction==="rtl"&&(i+=xr(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:o,x:i,y:l}}function jc(t){var e=Ut(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function ep(t){return["html","body","#document"].indexOf(an(t))>=0?t.ownerDocument.body:Mt(t)&&jc(t)?t:ep(Go(t))}function ls(t,e){var n;e===void 0&&(e=[]);var r=ep(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),s=Lt(r),o=a?[s].concat(s.visualViewport||[],jc(r)?r:[]):r,i=e.concat(o);return a?i:i.concat(ls(Go(o)))}function Ic(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function NM(t,e){var n=ea(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 tp(t,e,n){return e===Y0?Ic(TM(t,n)):vr(e)?NM(e,n):Ic(PM(Un(t)))}function jM(t){var e=ls(Go(t)),n=["absolute","fixed"].indexOf(Ut(t).position)>=0,r=n&&Mt(t)?os(t):t;return vr(r)?e.filter(function(a){return vr(a)&&G0(a,r)&&an(a)!=="body"}):[]}function IM(t,e,n,r){var a=e==="clippingParents"?jM(t):[].concat(e),s=[].concat(a,[n]),o=s[0],i=s.reduce(function(l,c){var d=tp(t,c,r);return l.top=xr(d.top,l.top),l.right=Xo(d.right,l.right),l.bottom=Xo(d.bottom,l.bottom),l.left=xr(d.left,l.left),l},tp(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 np(t){var e=t.reference,n=t.element,r=t.placement,a=r?Vt(r):null,s=r?ta(r):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,l;switch(a){case xt:l={x:o,y:e.y-n.height};break;case At:l={x:o,y:e.y+e.height};break;case Ft:l={x:e.x+e.width,y:i};break;case wt:l={x:e.x-n.width,y:i};break;default:l={x:e.x,y:e.y}}var c=a?Tc(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case qr:l[c]=l[c]-(e[d]/2-n[d]/2);break;case as:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function cs(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=r===void 0?t.placement:r,s=n.strategy,o=s===void 0?t.strategy:s,i=n.boundary,l=i===void 0?tM:i,c=n.rootBoundary,d=c===void 0?Y0:c,u=n.elementContext,f=u===void 0?ss:u,h=n.altBoundary,m=h===void 0?!1:h,p=n.padding,b=p===void 0?0:p,x=Z0(typeof b!="number"?b:J0(b,rs)),w=f===ss?nM:ss,k=t.rects.popper,v=t.elements[m?w:f],y=IM(vr(v)?v:v.contextElement||Un(t.elements.popper),l,d,o),S=ea(t.elements.reference),N=np({reference:S,element:k,placement:a}),C=Ic(Object.assign({},k,N)),P=f===ss?C:S,E={top:y.top-P.top+x.top,bottom:P.bottom-y.bottom+x.bottom,left:y.left-P.left+x.left,right:P.right-y.right+x.right},B=t.modifiersData.offset;if(f===ss&&B){var F=B[a];Object.keys(E).forEach(function(O){var D=[Ft,At].indexOf(O)>=0?1:-1,T=[xt,At].indexOf(O)>=0?"y":"x";E[O]+=F[T]*D})}return E}function RM(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=n.boundary,s=n.rootBoundary,o=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?U0:l,d=ta(r),u=d?i?V0:V0.filter(function(m){return ta(m)===d}):rs,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]=cs(t,{placement:p,boundary:a,rootBoundary:s,padding:o})[Vt(p)],m},{});return Object.keys(h).sort(function(m,p){return h[m]-h[p]})}function AM(t){if(Vt(t)===Uo)return[];var e=Qo(t);return[$0(t),e,$0(e)]}function FM(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,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,x=Vt(b),w=x===b,k=l||(w||!m?[Qo(b)]:AM(b)),v=[b].concat(k).reduce(function(I,M){return I.concat(Vt(M)===Uo?RM(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,C=!0,P=v[0],E=0;E<v.length;E++){var B=v[E],F=Vt(B),O=ta(B)===qr,D=[xt,At].indexOf(F)>=0,T=D?"width":"height",L=cs(e,{placement:B,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),V=D?O?Ft:wt:O?At:xt;y[T]>S[T]&&(V=Qo(V));var K=Qo(V),q=[];if(s&&q.push(L[F]<=0),i&&q.push(L[V]<=0,L[K]<=0),q.every(function(I){return I})){P=B,C=!1;break}N.set(B,q)}if(C)for(var j=m?3:1,H=function(M){var W=v.find(function(Q){var G=N.get(Q);if(G)return G.slice(0,M).every(function(Z){return Z})});if(W)return P=W,"break"},A=j;A>0;A--){var R=H(A);if(R==="break")break}e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}}var LM={name:"flip",enabled:!0,phase:"main",fn:FM,requiresIfExists:["offset"],data:{_skip:!1}};function rp(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 ap(t){return[xt,Ft,At,wt].some(function(e){return t[e]>=0})}function WM(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,s=e.modifiersData.preventOverflow,o=cs(e,{elementContext:"reference"}),i=cs(e,{altBoundary:!0}),l=rp(o,r),c=rp(i,a,s),d=ap(l),u=ap(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 zM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WM};function BM(t,e,n){var r=Vt(t),a=[wt,xt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=s[0],i=s[1];return o=o||0,i=(i||0)*a,[wt,Ft].indexOf(r)>=0?{x:i,y:o}:{x:o,y:i}}function HM(t){var e=t.state,n=t.options,r=t.name,a=n.offset,s=a===void 0?[0,0]:a,o=U0.reduce(function(d,u){return d[u]=BM(u,e.rects,s),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 YM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HM};function VM(t){var e=t.state,n=t.name;e.modifiersData[n]=np({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var UM={name:"popperOffsets",enabled:!0,phase:"read",fn:VM,data:{}};function XM(t){return t==="x"?"y":"x"}function GM(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,s=a===void 0?!0:a,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=cs(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),x=Vt(e.placement),w=ta(e.placement),k=!w,v=Tc(x),y=XM(v),S=e.modifiersData.popperOffsets,N=e.rects.reference,C=e.rects.popper,P=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,E=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(S){if(s){var O,D=v==="y"?xt:wt,T=v==="y"?At:Ft,L=v==="y"?"height":"width",V=S[v],K=V+b[D],q=V-b[T],j=h?-C[L]/2:0,H=w===qr?N[L]:C[L],A=w===qr?-C[L]:-N[L],R=e.elements.arrow,I=h&&R?Ec(R):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Q0(),W=M[D],Q=M[T],G=is(0,N[L],I[L]),Z=k?N[L]/2-j-G-W-E.mainAxis:H-G-W-E.mainAxis,$=k?-N[L]/2+j+G+Q+E.mainAxis:A+G+Q+E.mainAxis,ne=e.elements.arrow&&os(e.elements.arrow),Y=ne?v==="y"?ne.clientTop||0:ne.clientLeft||0:0,re=(O=B==null?void 0:B[v])!=null?O:0,te=V+Z-re-Y,ie=V+$-re,fe=is(h?Xo(K,te):K,V,h?xr(q,ie):q);S[v]=fe,F[v]=fe-V}if(i){var ce,ae=v==="x"?xt:wt,Le=v==="x"?At:Ft,ge=S[y],Ae=y==="y"?"height":"width",Be=ge+b[ae],Ue=ge-b[Le],Et=[xt,wt].indexOf(x)!==-1,Tt=(ce=B==null?void 0:B[y])!=null?ce:0,Pt=Et?Be:ge-N[Ae]-C[Ae]-Tt+E.altAxis,er=Et?ge+N[Ae]+C[Ae]-Tt-E.altAxis:Ue,Nt=h&&Et?bM(Pt,ge,er):is(h?Pt:Be,ge,h?er:Ue);S[y]=Nt,F[y]=Nt-ge}e.modifiersData[r]=F}}var KM={name:"preventOverflow",enabled:!0,phase:"main",fn:GM,requiresIfExists:["offset"]};function QM(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function ZM(t){return t===Lt(t)||!Mt(t)?Pc(t):QM(t)}function JM(t){var e=t.getBoundingClientRect(),n=$r(e.width)/t.offsetWidth||1,r=$r(e.height)/t.offsetHeight||1;return n!==1||r!==1}function qM(t,e,n){n===void 0&&(n=!1);var r=Mt(e),a=Mt(e)&&JM(e),s=Un(e),o=ea(t,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((an(e)!=="body"||jc(s))&&(i=ZM(e)),Mt(e)?(l=ea(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=Nc(s))),{x:o.left+i.scrollLeft-l.x,y:o.top+i.scrollTop-l.y,width:o.width,height:o.height}}function $M(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function a(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var l=e.get(i);l&&a(l)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||a(s)}),r}function e2(t){var e=$M(t);return Dc.reduce(function(n,r){return n.concat(e.filter(function(a){return a.phase===r}))},[])}function t2(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Xn(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(a,s){return a.replace(/%s/,s)},t)}var wr='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',n2='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',sp=["name","enabled","phase","fn","effect","requires","options"];function r2(t){t.forEach(function(e){[].concat(Object.keys(e),sp).filter(function(n,r,a){return a.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Xn(wr,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Xn(wr,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Dc.indexOf(e.phase)<0&&console.error(Xn(wr,e.name,'"phase"',"either "+Dc.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Xn(wr,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Xn(wr,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Xn(wr,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Xn(wr,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 '+sp.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(a){return a.name===r})==null&&console.error(Xn(n2,String(e.name),r,r))})})})}function a2(t,e){var n=new Set;return t.filter(function(r){var a=e(r);if(!n.has(a))return n.add(a),!0})}function s2(t){var e=t.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var op="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",o2="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",ip={placement:"bottom",modifiers:[],strategy:"absolute"};function lp(){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 i2(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,a=e.defaultOptions,s=a===void 0?ip:a;return function(i,l,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ip,s),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(x){var w=typeof x=="function"?x(d.options):x;p(),d.options=Object.assign({},s,d.options,w),d.scrollParents={reference:vr(i)?ls(i):i.contextElement?ls(i.contextElement):[],popper:ls(l)};var k=e2(s2([].concat(r,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(B){return B.enabled}),process.env.NODE_ENV!=="production"){var v=a2([].concat(k,d.options.modifiers),function(B){var F=B.name;return F});if(r2(v),Vt(d.options.placement)===Uo){var y=d.orderedModifiers.find(function(B){var F=B.name;return F==="flip"});y||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=Ut(l),N=S.marginTop,C=S.marginRight,P=S.marginBottom,E=S.marginLeft;[N,C,P,E].some(function(B){return parseFloat(B)})&&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 x=d.elements,w=x.reference,k=x.popper;if(!lp(w,k)){process.env.NODE_ENV!=="production"&&console.error(op);return}d.rects={reference:qM(w,os(k),d.options.strategy==="fixed"),popper:Ec(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(B){return d.modifiersData[B.name]=Object.assign({},B.data)});for(var v=0,y=0;y<d.orderedModifiers.length;y++){if(process.env.NODE_ENV!=="production"&&(v+=1,v>100)){console.error(o2);break}if(d.reset===!0){d.reset=!1,y=-1;continue}var S=d.orderedModifiers[y],N=S.fn,C=S.options,P=C===void 0?{}:C,E=S.name;typeof N=="function"&&(d=N({state:d,options:P,name:E,instance:h})||d)}}},update:t2(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){p(),f=!0}};if(!lp(i,l))return process.env.NODE_ENV!=="production"&&console.error(op),h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var x=b.name,w=b.options,k=w===void 0?{}:w,v=b.effect;if(typeof v=="function"){var y=v({state:d,name:x,instance:h,options:k}),S=function(){};u.push(y||S)}})}function p(){u.forEach(function(b){return b()}),u=[]}return h}}var l2=[MM,UM,OM,gM,YM,LM,KM,wM,zM],c2=i2({defaultModifiers:l2}),d2=function(t){var e=t.level,n=t.buttonRef,r=t.contentRef,a=_.useContext(Yo),s=a.collapsed,o=a.toggled,i=a.transitionDuration,l=_.useRef();return _.useEffect(function(){return e===0&&s&&r.current&&n.current&&(l.current=c2(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,s,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}},cp=function(t){var e=t.rtl,n=t.level,r=t.collapsed,a=t.disabled,s=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:Vt(e.placement),variation:ta(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,q0(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,q0(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 SM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_M,data:{}},Ko={passive:!0};function OM(t){var e=t.state,n=t.instance,r=t.options,a=r.scroll,s=a===void 0?!0:a,o=r.resize,i=o===void 0?!0:o,l=Lt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",n.update,Ko)}),i&&l.addEventListener("resize",n.update,Ko),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Ko)}),i&&l.removeEventListener("resize",n.update,Ko)}}var DM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:OM,data:{}},MM={left:"right",right:"left",bottom:"top",top:"bottom"};function Qo(t){return t.replace(/left|right|bottom|top/g,function(e){return MM[e]})}var CM={start:"end",end:"start"};function $0(t){return t.replace(/start|end/g,function(e){return CM[e]})}function Pc(t){var e=Lt(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nc(t){return ea(Vn(t)).left+Pc(t).scrollLeft}function EM(t,e){var n=Lt(t),r=Vn(t),a=n.visualViewport,s=r.clientWidth,o=r.clientHeight,i=0,l=0;if(a){s=a.width,o=a.height;var c=X0();(c||!c&&e==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:s,height:o,x:i+Nc(t),y:l}}function TM(t){var e,n=Vn(t),r=Pc(t),a=(e=t.ownerDocument)==null?void 0:e.body,s=xr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=xr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+Nc(t),l=-r.scrollTop;return Ut(a||n).direction==="rtl"&&(i+=xr(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:o,x:i,y:l}}function jc(t){var e=Ut(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function ep(t){return["html","body","#document"].indexOf(an(t))>=0?t.ownerDocument.body:Mt(t)&&jc(t)?t:ep(Go(t))}function ls(t,e){var n;e===void 0&&(e=[]);var r=ep(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),s=Lt(r),o=a?[s].concat(s.visualViewport||[],jc(r)?r:[]):r,i=e.concat(o);return a?i:i.concat(ls(Go(o)))}function Ic(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function PM(t,e){var n=ea(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 tp(t,e,n){return e===Y0?Ic(EM(t,n)):vr(e)?PM(e,n):Ic(TM(Vn(t)))}function NM(t){var e=ls(Go(t)),n=["absolute","fixed"].indexOf(Ut(t).position)>=0,r=n&&Mt(t)?os(t):t;return vr(r)?e.filter(function(a){return vr(a)&&G0(a,r)&&an(a)!=="body"}):[]}function jM(t,e,n,r){var a=e==="clippingParents"?NM(t):[].concat(e),s=[].concat(a,[n]),o=s[0],i=s.reduce(function(l,c){var d=tp(t,c,r);return l.top=xr(d.top,l.top),l.right=Xo(d.right,l.right),l.bottom=Xo(d.bottom,l.bottom),l.left=xr(d.left,l.left),l},tp(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 np(t){var e=t.reference,n=t.element,r=t.placement,a=r?Vt(r):null,s=r?ta(r):null,o=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2,l;switch(a){case xt:l={x:o,y:e.y-n.height};break;case At:l={x:o,y:e.y+e.height};break;case Ft:l={x:e.x+e.width,y:i};break;case wt:l={x:e.x-n.width,y:i};break;default:l={x:e.x,y:e.y}}var c=a?Tc(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case qr:l[c]=l[c]-(e[d]/2-n[d]/2);break;case as:l[c]=l[c]+(e[d]/2-n[d]/2);break}}return l}function cs(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=r===void 0?t.placement:r,s=n.strategy,o=s===void 0?t.strategy:s,i=n.boundary,l=i===void 0?eM:i,c=n.rootBoundary,d=c===void 0?Y0:c,u=n.elementContext,f=u===void 0?ss:u,h=n.altBoundary,m=h===void 0?!1:h,p=n.padding,b=p===void 0?0:p,x=Z0(typeof b!="number"?b:J0(b,rs)),w=f===ss?tM:ss,k=t.rects.popper,v=t.elements[m?w:f],y=jM(vr(v)?v:v.contextElement||Vn(t.elements.popper),l,d,o),S=ea(t.elements.reference),N=np({reference:S,element:k,placement:a}),C=Ic(Object.assign({},k,N)),P=f===ss?C:S,E={top:y.top-P.top+x.top,bottom:P.bottom-y.bottom+x.bottom,left:y.left-P.left+x.left,right:P.right-y.right+x.right},B=t.modifiersData.offset;if(f===ss&&B){var F=B[a];Object.keys(E).forEach(function(O){var D=[Ft,At].indexOf(O)>=0?1:-1,T=[xt,At].indexOf(O)>=0?"y":"x";E[O]+=F[T]*D})}return E}function IM(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=n.boundary,s=n.rootBoundary,o=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?U0:l,d=ta(r),u=d?i?V0:V0.filter(function(m){return ta(m)===d}):rs,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]=cs(t,{placement:p,boundary:a,rootBoundary:s,padding:o})[Vt(p)],m},{});return Object.keys(h).sort(function(m,p){return h[m]-h[p]})}function RM(t){if(Vt(t)===Uo)return[];var e=Qo(t);return[$0(t),e,$0(e)]}function AM(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,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,x=Vt(b),w=x===b,k=l||(w||!m?[Qo(b)]:RM(b)),v=[b].concat(k).reduce(function(I,M){return I.concat(Vt(M)===Uo?IM(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,C=!0,P=v[0],E=0;E<v.length;E++){var B=v[E],F=Vt(B),O=ta(B)===qr,D=[xt,At].indexOf(F)>=0,T=D?"width":"height",L=cs(e,{placement:B,boundary:d,rootBoundary:u,altBoundary:f,padding:c}),V=D?O?Ft:wt:O?At:xt;y[T]>S[T]&&(V=Qo(V));var K=Qo(V),q=[];if(s&&q.push(L[F]<=0),i&&q.push(L[V]<=0,L[K]<=0),q.every(function(I){return I})){P=B,C=!1;break}N.set(B,q)}if(C)for(var j=m?3:1,H=function(M){var W=v.find(function(Q){var G=N.get(Q);if(G)return G.slice(0,M).every(function(Z){return Z})});if(W)return P=W,"break"},A=j;A>0;A--){var R=H(A);if(R==="break")break}e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}}var FM={name:"flip",enabled:!0,phase:"main",fn:AM,requiresIfExists:["offset"],data:{_skip:!1}};function rp(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 ap(t){return[xt,Ft,At,wt].some(function(e){return t[e]>=0})}function LM(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,s=e.modifiersData.preventOverflow,o=cs(e,{elementContext:"reference"}),i=cs(e,{altBoundary:!0}),l=rp(o,r),c=rp(i,a,s),d=ap(l),u=ap(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 WM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:LM};function zM(t,e,n){var r=Vt(t),a=[wt,xt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=s[0],i=s[1];return o=o||0,i=(i||0)*a,[wt,Ft].indexOf(r)>=0?{x:i,y:o}:{x:o,y:i}}function BM(t){var e=t.state,n=t.options,r=t.name,a=n.offset,s=a===void 0?[0,0]:a,o=U0.reduce(function(d,u){return d[u]=zM(u,e.rects,s),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 HM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:BM};function YM(t){var e=t.state,n=t.name;e.modifiersData[n]=np({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}var VM={name:"popperOffsets",enabled:!0,phase:"read",fn:YM,data:{}};function UM(t){return t==="x"?"y":"x"}function XM(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,s=a===void 0?!0:a,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=cs(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),x=Vt(e.placement),w=ta(e.placement),k=!w,v=Tc(x),y=UM(v),S=e.modifiersData.popperOffsets,N=e.rects.reference,C=e.rects.popper,P=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,E=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(S){if(s){var O,D=v==="y"?xt:wt,T=v==="y"?At:Ft,L=v==="y"?"height":"width",V=S[v],K=V+b[D],q=V-b[T],j=h?-C[L]/2:0,H=w===qr?N[L]:C[L],A=w===qr?-C[L]:-N[L],R=e.elements.arrow,I=h&&R?Ec(R):{width:0,height:0},M=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Q0(),W=M[D],Q=M[T],G=is(0,N[L],I[L]),Z=k?N[L]/2-j-G-W-E.mainAxis:H-G-W-E.mainAxis,$=k?-N[L]/2+j+G+Q+E.mainAxis:A+G+Q+E.mainAxis,ne=e.elements.arrow&&os(e.elements.arrow),Y=ne?v==="y"?ne.clientTop||0:ne.clientLeft||0:0,re=(O=B==null?void 0:B[v])!=null?O:0,te=V+Z-re-Y,ie=V+$-re,fe=is(h?Xo(K,te):K,V,h?xr(q,ie):q);S[v]=fe,F[v]=fe-V}if(i){var ce,ae=v==="x"?xt:wt,Le=v==="x"?At:Ft,ge=S[y],Ae=y==="y"?"height":"width",Be=ge+b[ae],Ue=ge-b[Le],Et=[xt,wt].indexOf(x)!==-1,Tt=(ce=B==null?void 0:B[y])!=null?ce:0,Pt=Et?Be:ge-N[Ae]-C[Ae]-Tt+E.altAxis,$n=Et?ge+N[Ae]+C[Ae]-Tt-E.altAxis:Ue,Nt=h&&Et?pM(Pt,ge,$n):is(h?Pt:Be,ge,h?$n:Ue);S[y]=Nt,F[y]=Nt-ge}e.modifiersData[r]=F}}var GM={name:"preventOverflow",enabled:!0,phase:"main",fn:XM,requiresIfExists:["offset"]};function KM(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function QM(t){return t===Lt(t)||!Mt(t)?Pc(t):KM(t)}function ZM(t){var e=t.getBoundingClientRect(),n=$r(e.width)/t.offsetWidth||1,r=$r(e.height)/t.offsetHeight||1;return n!==1||r!==1}function JM(t,e,n){n===void 0&&(n=!1);var r=Mt(e),a=Mt(e)&&ZM(e),s=Vn(e),o=ea(t,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((an(e)!=="body"||jc(s))&&(i=QM(e)),Mt(e)?(l=ea(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=Nc(s))),{x:o.left+i.scrollLeft-l.x,y:o.top+i.scrollTop-l.y,width:o.width,height:o.height}}function qM(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function a(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(i){if(!n.has(i)){var l=e.get(i);l&&a(l)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||a(s)}),r}function $M(t){var e=qM(t);return Dc.reduce(function(n,r){return n.concat(e.filter(function(a){return a.phase===r}))},[])}function e2(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Un(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(a,s){return a.replace(/%s/,s)},t)}var wr='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',t2='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',sp=["name","enabled","phase","fn","effect","requires","options"];function n2(t){t.forEach(function(e){[].concat(Object.keys(e),sp).filter(function(n,r,a){return a.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Un(wr,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Un(wr,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Dc.indexOf(e.phase)<0&&console.error(Un(wr,e.name,'"phase"',"either "+Dc.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Un(wr,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Un(wr,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Un(wr,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Un(wr,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 '+sp.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(a){return a.name===r})==null&&console.error(Un(t2,String(e.name),r,r))})})})}function r2(t,e){var n=new Set;return t.filter(function(r){var a=e(r);if(!n.has(a))return n.add(a),!0})}function a2(t){var e=t.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var op="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",s2="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",ip={placement:"bottom",modifiers:[],strategy:"absolute"};function lp(){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 o2(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,a=e.defaultOptions,s=a===void 0?ip:a;return function(i,l,c){c===void 0&&(c=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ip,s),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},u=[],f=!1,h={state:d,setOptions:function(x){var w=typeof x=="function"?x(d.options):x;p(),d.options=Object.assign({},s,d.options,w),d.scrollParents={reference:vr(i)?ls(i):i.contextElement?ls(i.contextElement):[],popper:ls(l)};var k=$M(a2([].concat(r,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(B){return B.enabled}),process.env.NODE_ENV!=="production"){var v=r2([].concat(k,d.options.modifiers),function(B){var F=B.name;return F});if(n2(v),Vt(d.options.placement)===Uo){var y=d.orderedModifiers.find(function(B){var F=B.name;return F==="flip"});y||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var S=Ut(l),N=S.marginTop,C=S.marginRight,P=S.marginBottom,E=S.marginLeft;[N,C,P,E].some(function(B){return parseFloat(B)})&&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 x=d.elements,w=x.reference,k=x.popper;if(!lp(w,k)){process.env.NODE_ENV!=="production"&&console.error(op);return}d.rects={reference:JM(w,os(k),d.options.strategy==="fixed"),popper:Ec(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(B){return d.modifiersData[B.name]=Object.assign({},B.data)});for(var v=0,y=0;y<d.orderedModifiers.length;y++){if(process.env.NODE_ENV!=="production"&&(v+=1,v>100)){console.error(s2);break}if(d.reset===!0){d.reset=!1,y=-1;continue}var S=d.orderedModifiers[y],N=S.fn,C=S.options,P=C===void 0?{}:C,E=S.name;typeof N=="function"&&(d=N({state:d,options:P,name:E,instance:h})||d)}}},update:e2(function(){return new Promise(function(b){h.forceUpdate(),b(d)})}),destroy:function(){p(),f=!0}};if(!lp(i,l))return process.env.NODE_ENV!=="production"&&console.error(op),h;h.setOptions(c).then(function(b){!f&&c.onFirstUpdate&&c.onFirstUpdate(b)});function m(){d.orderedModifiers.forEach(function(b){var x=b.name,w=b.options,k=w===void 0?{}:w,v=b.effect;if(typeof v=="function"){var y=v({state:d,name:x,instance:h,options:k}),S=function(){};u.push(y||S)}})}function p(){u.forEach(function(b){return b()}),u=[]}return h}}var i2=[DM,VM,SM,hM,HM,FM,GM,xM,WM],l2=o2({defaultModifiers:i2}),c2=function(t){var e=t.level,n=t.buttonRef,r=t.contentRef,a=_.useContext(Yo),s=a.collapsed,o=a.toggled,i=a.transitionDuration,l=_.useRef();return _.useEffect(function(){return e===0&&s&&r.current&&n.current&&(l.current=l2(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,s,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}},cp=function(t){var e=t.rtl,n=t.level,r=t.collapsed,a=t.disabled,s=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,a=r&&e.__emoti
432
432
 
433
433
  `).concat(s&&"background-color: #e2eef9;",`
434
434
 
435
- `)},u2=function(t,e){var n=t.className,r=t.component,a=t.children,s=br(t,["className","component","children"]);if(r){if(typeof r=="string")return _.createElement(r,Ot(Ot({className:$e(n)},s),{ref:e}),a);var o=r.props,i=o.className,l=br(o,["className"]);return _.cloneElement(r,Ot(Ot(Ot({className:$e(n,i)},s),l),{ref:e}),a)}else return _.createElement("a",Ot({ref:e,className:$e(n)},s),a)},dp=_.forwardRef(u2),f2=tt.li(up||(up=dt([`
435
+ `)},d2=function(t,e){var n=t.className,r=t.component,a=t.children,s=br(t,["className","component","children"]);if(r){if(typeof r=="string")return _.createElement(r,Ot(Ot({className:$e(n)},s),{ref:e}),a);var o=r.props,i=o.className,l=br(o,["className"]);return _.cloneElement(r,Ot(Ot(Ot({className:$e(n,i)},s),l),{ref:e}),a)}else return _.createElement("a",Ot({ref:e,className:$e(n)},s),a)},dp=_.forwardRef(d2),u2=tt.li(up||(up=dt([`
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,a=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},ye.button,function(t){var e=t.level,n=t.disabled,r=t.active,a=t.collapsed,s=t.rtl;return cp({level:e,disabled:n,active:r,collapsed:a,rtl:s})},function(t){var e=t.buttonStyles;return e}),h2=function(t,e){var n,r=t.children,a=t.className,s=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,x=t.component,w=t.onOpenChange,k=t.onClick,v=t.onKeyUp,y=br(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=_.useContext(Vo),N=_.useContext(Yo),C=N.collapsed,P=N.rtl,E=N.transitionDuration,B=Oc(),F=B.renderExpandIcon,O=B.closeOnClick,D=B.menuItemStyles,T=B.transitionDuration,L=_.useState(!!u),V=L[0],K=L[1],q=_.useState(!1),j=q[0],H=q[1],A=_.useState(!1),R=A[0],I=A[1],M=_.useRef(null),W=_.useRef(null),Q=_.useRef(),G=d2({level:S,buttonRef:M,contentRef:W}).popperInstance,Z=_.useCallback(function(){var fe,ce=W.current;if(ce){var ae=(fe=ce==null?void 0:ce.querySelector(".".concat(ye.subMenuContent," > ul")))===null||fe===void 0?void 0:fe.clientHeight;ce.style.overflow="hidden",ce.style.height="".concat(ae,"px"),Q.current=setTimeout(function(){ce.style.overflow="auto",ce.style.height="auto"},T)}},[T]),$=function(){var fe,ce=W.current;if(ce){var ae=(fe=ce==null?void 0:ce.querySelector(".".concat(ye.subMenuContent," > ul")))===null||fe===void 0?void 0:fe.clientHeight;ce.style.overflow="hidden",ce.style.height="".concat(ae,"px"),ce.offsetHeight,ce.style.height="0px"}},ne=function(){S===0&&C||(typeof d>"u"?(clearTimeout(Number(Q.current)),V?$():Z(),w==null||w(!V),K(!V)):w==null||w(!d))};_.useEffect(function(){!(S===0&&C)&&typeof d<"u"&&R&&(clearTimeout(Number(Q.current)),d?Z():$())},[C,Z,s,S,w,d]);var Y=function(fe){k==null||k(fe),ne()},re=function(fe){v==null||v(fe),fe.key==="Enter"&&ne()},te=function(fe){if(D){var ce={level:S,disabled:p,active:h,isSubmenu:!0,open:d??V},ae=D.root,Le=D.button,ge=D.label,Ae=D.icon,Be=D.prefix,Ue=D.suffix,Et=D.subMenuContent,Tt=D.SubMenuExpandIcon;switch(fe){case"root":return typeof ae=="function"?ae(ce):ae;case"button":return typeof Le=="function"?Le(ce):Le;case"label":return typeof ge=="function"?ge(ce):ge;case"icon":return typeof Ae=="function"?Ae(ce):Ae;case"prefix":return typeof Be=="function"?Be(ce):Be;case"suffix":return typeof Ue=="function"?Ue(ce):Ue;case"SubMenuExpandIcon":return typeof Tt=="function"?Tt(ce):Tt;case"subMenuContent":return typeof Et=="function"?Et(ce):Et;default:return}}};_.useEffect(function(){setTimeout(function(){return G==null?void 0:G.update()},E),C&&S===0&&H(!1)},[C,S,P,E,G]),_.useEffect(function(){var fe=function(ge){var Ae,Be,Ue;!j&&(!((Ae=M.current)===null||Ae===void 0)&&Ae.contains(ge))?H(!0):(O&&!(!((Be=ge.closest(".".concat(ye.menuItemRoot)))===null||Be===void 0)&&Be.classList.contains(ye.subMenuRoot))||!(!((Ue=W.current)===null||Ue===void 0)&&Ue.contains(ge))&&j)&&H(!1)},ce=function(ge){fe(ge.target)},ae=function(ge){ge.key==="Enter"?fe(ge.target):ge.key==="Escape"&&H(!1)},Le=function(){document.removeEventListener("click",ce),document.removeEventListener("keyup",ae)};return Le(),C&&S===0&&(document.addEventListener("click",ce,!1),document.addEventListener("keyup",ae,!1)),function(){Le()}},[C,S,O,j]),_.useEffect(function(){I(!0)},[]);var ie=(n={},n[ye.active]=h,n[ye.disabled]=p,n[ye.open]=d??V,n);return _.createElement(f2,{ref:e,className:$e(ye.menuItemRoot,ye.subMenuRoot,ie,a),menuItemStyles:te("root"),level:S,collapsed:C,rtl:P,disabled:p,active:h,buttonStyles:te("button"),rootStyles:b},_.createElement(dp,Ot({"data-testid":"".concat(ye.button,"-test-id"),ref:M,title:i,className:$e(ye.button,ie),onClick:Y,onKeyUp:re,component:x,tabIndex:0},y),o&&_.createElement(I0,{rtl:P,className:$e(ye.icon,ie),rootStyles:te("icon")},o),l&&_.createElement(A0,{collapsed:C,transitionDuration:E,firstLevel:S===0,className:$e(ye.prefix,ie),rtl:P,rootStyles:te("prefix")},l),_.createElement(N0,{className:$e(ye.label,ie),rootStyles:te("label")},s),c&&_.createElement(L0,{collapsed:C,transitionDuration:E,firstLevel:S===0,className:$e(ye.suffix,ie),rootStyles:te("suffix")},c),_.createElement(qD,{rtl:P,className:$e(ye.SubMenuExpandIcon,ie),collapsed:C,level:S,rootStyles:te("SubMenuExpandIcon")},F?F({level:S,disabled:p,active:h,open:d??V}):C&&S===0?_.createElement(eM,null):_.createElement($D,{rtl:P,open:d??V}))),_.createElement(JD,{ref:W,openWhenCollapsed:j,open:d??V,firstLevel:S===0,collapsed:C,defaultOpen:d&&!R||u,className:$e(ye.subMenuContent,ie),rootStyles:te("subMenuContent")},_.createElement(Vo.Provider,{value:S+1},r)))};_.forwardRef(h2);var up,g2=tt.li(fp||(fp=dt([`
461
+ `])),function(t){var e=t.menuItemStyles;return e},function(t){var e=t.rootStyles;return e},ye.button,function(t){var e=t.level,n=t.disabled,r=t.active,a=t.collapsed,s=t.rtl;return cp({level:e,disabled:n,active:r,collapsed:a,rtl:s})},function(t){var e=t.buttonStyles;return e}),f2=function(t,e){var n,r=t.children,a=t.className,s=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,x=t.component,w=t.onOpenChange,k=t.onClick,v=t.onKeyUp,y=br(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),S=_.useContext(Vo),N=_.useContext(Yo),C=N.collapsed,P=N.rtl,E=N.transitionDuration,B=Oc(),F=B.renderExpandIcon,O=B.closeOnClick,D=B.menuItemStyles,T=B.transitionDuration,L=_.useState(!!u),V=L[0],K=L[1],q=_.useState(!1),j=q[0],H=q[1],A=_.useState(!1),R=A[0],I=A[1],M=_.useRef(null),W=_.useRef(null),Q=_.useRef(),G=c2({level:S,buttonRef:M,contentRef:W}).popperInstance,Z=_.useCallback(function(){var fe,ce=W.current;if(ce){var ae=(fe=ce==null?void 0:ce.querySelector(".".concat(ye.subMenuContent," > ul")))===null||fe===void 0?void 0:fe.clientHeight;ce.style.overflow="hidden",ce.style.height="".concat(ae,"px"),Q.current=setTimeout(function(){ce.style.overflow="auto",ce.style.height="auto"},T)}},[T]),$=function(){var fe,ce=W.current;if(ce){var ae=(fe=ce==null?void 0:ce.querySelector(".".concat(ye.subMenuContent," > ul")))===null||fe===void 0?void 0:fe.clientHeight;ce.style.overflow="hidden",ce.style.height="".concat(ae,"px"),ce.offsetHeight,ce.style.height="0px"}},ne=function(){S===0&&C||(typeof d>"u"?(clearTimeout(Number(Q.current)),V?$():Z(),w==null||w(!V),K(!V)):w==null||w(!d))};_.useEffect(function(){!(S===0&&C)&&typeof d<"u"&&R&&(clearTimeout(Number(Q.current)),d?Z():$())},[C,Z,s,S,w,d]);var Y=function(fe){k==null||k(fe),ne()},re=function(fe){v==null||v(fe),fe.key==="Enter"&&ne()},te=function(fe){if(D){var ce={level:S,disabled:p,active:h,isSubmenu:!0,open:d??V},ae=D.root,Le=D.button,ge=D.label,Ae=D.icon,Be=D.prefix,Ue=D.suffix,Et=D.subMenuContent,Tt=D.SubMenuExpandIcon;switch(fe){case"root":return typeof ae=="function"?ae(ce):ae;case"button":return typeof Le=="function"?Le(ce):Le;case"label":return typeof ge=="function"?ge(ce):ge;case"icon":return typeof Ae=="function"?Ae(ce):Ae;case"prefix":return typeof Be=="function"?Be(ce):Be;case"suffix":return typeof Ue=="function"?Ue(ce):Ue;case"SubMenuExpandIcon":return typeof Tt=="function"?Tt(ce):Tt;case"subMenuContent":return typeof Et=="function"?Et(ce):Et;default:return}}};_.useEffect(function(){setTimeout(function(){return G==null?void 0:G.update()},E),C&&S===0&&H(!1)},[C,S,P,E,G]),_.useEffect(function(){var fe=function(ge){var Ae,Be,Ue;!j&&(!((Ae=M.current)===null||Ae===void 0)&&Ae.contains(ge))?H(!0):(O&&!(!((Be=ge.closest(".".concat(ye.menuItemRoot)))===null||Be===void 0)&&Be.classList.contains(ye.subMenuRoot))||!(!((Ue=W.current)===null||Ue===void 0)&&Ue.contains(ge))&&j)&&H(!1)},ce=function(ge){fe(ge.target)},ae=function(ge){ge.key==="Enter"?fe(ge.target):ge.key==="Escape"&&H(!1)},Le=function(){document.removeEventListener("click",ce),document.removeEventListener("keyup",ae)};return Le(),C&&S===0&&(document.addEventListener("click",ce,!1),document.addEventListener("keyup",ae,!1)),function(){Le()}},[C,S,O,j]),_.useEffect(function(){I(!0)},[]);var ie=(n={},n[ye.active]=h,n[ye.disabled]=p,n[ye.open]=d??V,n);return _.createElement(u2,{ref:e,className:$e(ye.menuItemRoot,ye.subMenuRoot,ie,a),menuItemStyles:te("root"),level:S,collapsed:C,rtl:P,disabled:p,active:h,buttonStyles:te("button"),rootStyles:b},_.createElement(dp,Ot({"data-testid":"".concat(ye.button,"-test-id"),ref:M,title:i,className:$e(ye.button,ie),onClick:Y,onKeyUp:re,component:x,tabIndex:0},y),o&&_.createElement(I0,{rtl:P,className:$e(ye.icon,ie),rootStyles:te("icon")},o),l&&_.createElement(A0,{collapsed:C,transitionDuration:E,firstLevel:S===0,className:$e(ye.prefix,ie),rtl:P,rootStyles:te("prefix")},l),_.createElement(N0,{className:$e(ye.label,ie),rootStyles:te("label")},s),c&&_.createElement(L0,{collapsed:C,transitionDuration:E,firstLevel:S===0,className:$e(ye.suffix,ie),rootStyles:te("suffix")},c),_.createElement(JD,{rtl:P,className:$e(ye.SubMenuExpandIcon,ie),collapsed:C,level:S,rootStyles:te("SubMenuExpandIcon")},F?F({level:S,disabled:p,active:h,open:d??V}):C&&S===0?_.createElement($D,null):_.createElement(qD,{rtl:P,open:d??V}))),_.createElement(ZD,{ref:W,openWhenCollapsed:j,open:d??V,firstLevel:S===0,collapsed:C,defaultOpen:d&&!R||u,className:$e(ye.subMenuContent,ie),rootStyles:te("subMenuContent")},_.createElement(Vo.Provider,{value:S+1},r)))};_.forwardRef(f2);var up,h2=tt.li(fp||(fp=dt([`
462
462
  width: 100%;
463
463
  position: relative;
464
464
 
@@ -484,36 +484,36 @@ You may have forgotten to import it.`);var r=e.__emotion_real===e,a=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},ye.button,function(t){var e=t.level,n=t.disabled,r=t.active,a=t.collapsed,s=t.rtl;return cp({level:e,disabled:n,active:r,collapsed:a,rtl:s})},function(t){var e=t.buttonStyles;return e}),m2=function(t,e){var n,r=t.children,a=t.icon,s=t.className,o=t.prefix,i=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,f=t.component,h=t.rootStyles,m=br(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),p=_.useContext(Vo),b=_.useContext(Yo),x=b.collapsed,w=b.rtl,k=b.transitionDuration,v=Oc().menuItemStyles,y=function(N){if(v){var C={level:p,disabled:u,active:c,isSubmenu:!1},P=v.root,E=v.button,B=v.label,F=v.icon,O=v.prefix,D=v.suffix;switch(N){case"root":return typeof P=="function"?P(C):P;case"button":return typeof E=="function"?E(C):E;case"label":return typeof B=="function"?B(C):B;case"icon":return typeof F=="function"?F(C):F;case"prefix":return typeof O=="function"?O(C):O;case"suffix":return typeof D=="function"?D(C):D;default:return}}},S=(n={},n[ye.active]=c,n[ye.disabled]=u,n);return _.createElement(g2,{ref:e,className:$e(ye.menuItemRoot,S,s),menuItemStyles:y("root"),level:p,collapsed:x,rtl:w,disabled:u,active:c,buttonStyles:y("button"),rootStyles:h},_.createElement(dp,Ot({className:$e(ye.button,S),"data-testid":"".concat(ye.button,"-test-id"),component:f,tabIndex:0},m),a&&_.createElement(I0,{rtl:w,className:$e(ye.icon,S),rootStyles:y("icon")},a),o&&_.createElement(A0,{collapsed:x,transitionDuration:k,firstLevel:p===0,className:$e(ye.prefix,S),rtl:w,rootStyles:y("prefix")},o),_.createElement(N0,{className:$e(ye.label,S),rootStyles:y("label")},r),i&&_.createElement(L0,{collapsed:x,transitionDuration:k,firstLevel:p===0,className:$e(ye.suffix,S),rootStyles:y("suffix")},i)))},p2=_.forwardRef(m2),fp;const Rc=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:a,description:s}=t;return g.jsxs("div",{className:`${Gh.Card} border px-3.5 py-7`,ref:e,children:[n?g.jsx(jn,{classIm:"mx-auto",src:n,alt:a,width:74,height:74}):r?g.jsx("div",{className:"flex justify-center",children:g.jsx(r,{size:74})}):null,g.jsx("h3",{className:"my-3 font-bold",children:a}),g.jsx("p",{children:s})]})});Rc.displayName="Card";const b2=({aHref:t,logo:e,menuItems:n,campaignCards:r=[],onLogout:a,defaultCollapsed:s=!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(s),[u,f]=_.useState(null),[h,m]=_.useState(new Set),[p,b]=_.useState(null),[x,w]=_.useState(null),k=n.filter(O=>O.position!=="bottom"),v=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,D=!1)=>({background:c?"transparent":D?"#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,D=!1,T)=>{const L=D?x===O.id:p===O.id;return g.jsx(p2,{icon:y(O.icon),onClick:()=>B(O,T),className:"mx-auto mb-1 rounded-md",rootStyles:S(D,L),children:D?O.label:g.jsxs("div",{className:"flex w-full items-center justify-between",children:[g.jsx("span",{children:O.label}),O.subMenuSection&&g.jsx(xO,{className:`text-lg transition-transform duration-200 ${h.has(O.id)?"rotate-180":""}`})]})},O.id)},C=O=>O.map(D=>g.jsxs("div",{children:[N(D),D.subMenuSection&&h.has(D.id)&&g.jsx("div",{className:"ml-4 space-y-1 mb-2",children:D.subMenuSection.items.map(T=>N(T,!0,D.id))})]},D.id)),P=()=>{u||d(!1)},E=()=>{u||(d(!0),m(new Set))},B=(O,D)=>{if(D?(b(D),w(O.id)):(b(O.id),w(null)),O.subMenuSection){const T=new Set(h);T.has(O.id)?T.delete(O.id):T.add(O.id),m(T)}else O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)},F=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:P,onMouseLeave:E,children:[g.jsxs(UD,{collapsed:c,rootStyles:{[`.${We.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(jn,{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(KD,{className:"mx-2 flex-1 relative",children:[g.jsx("div",{className:"flex flex-col",children:C(k)}),g.jsx("div",{className:` ${h.size===0?"absolute bottom-0":""} w-full`,children:C(v)})]}),a&&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:a,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(Rm,{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:()=>F(O),children:g.jsx(Rc,{imageUrl:O.imageUrl,title:O.title,description:O.description})},O.id))})]})})]})})},Ac={"mth-color-primary":"pagination-module__mth-color-primary__hNTQd","mth-input-number":"pagination-module__mth-input-number__2TY-u"};function y2(t){return Pe({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 v2(t){return Pe({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 hp=({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 ${Ac["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(y2,{className:`w-6 h-6 ${Ac["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(v2,{className:`w-6 h-6 ${Ac["mth-color-primary"]}`})})]}),x2={mth_toggle:"toggle-module__mth_toggle__8NB4F"};function gp({labelIzquierda:t,labelDerecha:e,checkedLabel:n,uncheckedLabel:r,checked:a=!1,disabled:s=!1,onChange:o,colors:i={},labelPosition:l="right",boldWhenActive:c=!1}){const[d,u]=_.useState(a),h={...{offBackgroundColor:"#EEEEEE",offCircleColor:"#BBBBBB",offCircleBorderColor:"#BBBBBB",onBackgroundColor:"#DEE9FF",onCircleColor:"#191960",onCircleBorderColor:"#191960"},...i},m=C=>{if(s)return;const P=C.target.checked;u(P),o==null||o(P)},p=d?h.onBackgroundColor:h.offBackgroundColor,b=d?h.onCircleColor:h.offCircleColor,x=d?h.onCircleBorderColor:h.offCircleBorderColor,w=t||n||r||e,k=`text-sm ${s?"text-gray-500":"text-gray-700"}`,v=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 ${s?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[g.jsx("input",{type:"checkbox",className:"peer sr-only",checked:d,onChange:m,disabled:s}),g.jsx("div",{className:`${x2.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},ye.button,function(t){var e=t.level,n=t.disabled,r=t.active,a=t.collapsed,s=t.rtl;return cp({level:e,disabled:n,active:r,collapsed:a,rtl:s})},function(t){var e=t.buttonStyles;return e}),g2=function(t,e){var n,r=t.children,a=t.icon,s=t.className,o=t.prefix,i=t.suffix,l=t.active,c=l===void 0?!1:l,d=t.disabled,u=d===void 0?!1:d,f=t.component,h=t.rootStyles,m=br(t,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),p=_.useContext(Vo),b=_.useContext(Yo),x=b.collapsed,w=b.rtl,k=b.transitionDuration,v=Oc().menuItemStyles,y=function(N){if(v){var C={level:p,disabled:u,active:c,isSubmenu:!1},P=v.root,E=v.button,B=v.label,F=v.icon,O=v.prefix,D=v.suffix;switch(N){case"root":return typeof P=="function"?P(C):P;case"button":return typeof E=="function"?E(C):E;case"label":return typeof B=="function"?B(C):B;case"icon":return typeof F=="function"?F(C):F;case"prefix":return typeof O=="function"?O(C):O;case"suffix":return typeof D=="function"?D(C):D;default:return}}},S=(n={},n[ye.active]=c,n[ye.disabled]=u,n);return _.createElement(h2,{ref:e,className:$e(ye.menuItemRoot,S,s),menuItemStyles:y("root"),level:p,collapsed:x,rtl:w,disabled:u,active:c,buttonStyles:y("button"),rootStyles:h},_.createElement(dp,Ot({className:$e(ye.button,S),"data-testid":"".concat(ye.button,"-test-id"),component:f,tabIndex:0},m),a&&_.createElement(I0,{rtl:w,className:$e(ye.icon,S),rootStyles:y("icon")},a),o&&_.createElement(A0,{collapsed:x,transitionDuration:k,firstLevel:p===0,className:$e(ye.prefix,S),rtl:w,rootStyles:y("prefix")},o),_.createElement(N0,{className:$e(ye.label,S),rootStyles:y("label")},r),i&&_.createElement(L0,{collapsed:x,transitionDuration:k,firstLevel:p===0,className:$e(ye.suffix,S),rootStyles:y("suffix")},i)))},m2=_.forwardRef(g2),fp;const Rc=_.forwardRef((t,e)=>{const{imageUrl:n,icon:r,title:a,description:s}=t;return g.jsxs("div",{className:`${Gh.Card} border px-3.5 py-7`,ref:e,children:[n?g.jsx(er,{classIm:"mx-auto",src:n,alt:a,width:74,height:74}):r?g.jsx("div",{className:"flex justify-center",children:g.jsx(r,{size:74})}):null,g.jsx("h3",{className:"my-3 font-bold",children:a}),g.jsx("p",{children:s})]})});Rc.displayName="Card";const p2=({aHref:t,logo:e,menuItems:n,campaignCards:r=[],onLogout:a,defaultCollapsed:s=!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(s),[u,f]=_.useState(null),[h,m]=_.useState(new Set),[p,b]=_.useState(null),[x,w]=_.useState(null),k=n.filter(O=>O.position!=="bottom"),v=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,D=!1)=>({background:c?"transparent":D?"#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,D=!1,T)=>{const L=D?x===O.id:p===O.id;return g.jsx(m2,{icon:y(O.icon),onClick:()=>B(O,T),className:"mx-auto mb-1 rounded-md",rootStyles:S(D,L),children:D?O.label:g.jsxs("div",{className:"flex w-full items-center justify-between",children:[g.jsx("span",{children:O.label}),O.subMenuSection&&g.jsx(vO,{className:`text-lg transition-transform duration-200 ${h.has(O.id)?"rotate-180":""}`})]})},O.id)},C=O=>O.map(D=>g.jsxs("div",{children:[N(D),D.subMenuSection&&h.has(D.id)&&g.jsx("div",{className:"ml-4 space-y-1 mb-2",children:D.subMenuSection.items.map(T=>N(T,!0,D.id))})]},D.id)),P=()=>{u||d(!1)},E=()=>{u||(d(!0),m(new Set))},B=(O,D)=>{if(D?(b(D),w(O.id)):(b(O.id),w(null)),O.subMenuSection){const T=new Set(h);T.has(O.id)?T.delete(O.id):T.add(O.id),m(T)}else O.action?O.action():O.href&&(O.target==="_blank"?window.open(O.href,"_blank"):window.location.href=O.href)},F=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:P,onMouseLeave:E,children:[g.jsxs(VD,{collapsed:c,rootStyles:{[`.${We.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(er,{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(GD,{className:"mx-2 flex-1 relative",children:[g.jsx("div",{className:"flex flex-col",children:C(k)}),g.jsx("div",{className:` ${h.size===0?"absolute bottom-0":""} w-full`,children:C(v)})]}),a&&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:a,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(Rm,{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:()=>F(O),children:g.jsx(Rc,{imageUrl:O.imageUrl,title:O.title,description:O.description})},O.id))})]})})]})})},Ac={"mth-color-primary":"pagination-module__mth-color-primary__hNTQd","mth-input-number":"pagination-module__mth-input-number__2TY-u"};function b2(t){return Pe({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 y2(t){return Pe({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 hp=({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 ${Ac["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(b2,{className:`w-6 h-6 ${Ac["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(y2,{className:`w-6 h-6 ${Ac["mth-color-primary"]}`})})]}),v2={mth_toggle:"toggle-module__mth_toggle__8NB4F"};function gp({labelIzquierda:t,labelDerecha:e,checkedLabel:n,uncheckedLabel:r,checked:a=!1,disabled:s=!1,onChange:o,colors:i={},labelPosition:l="right",boldWhenActive:c=!1}){const[d,u]=_.useState(a),h={...{offBackgroundColor:"#EEEEEE",offCircleColor:"#BBBBBB",offCircleBorderColor:"#BBBBBB",onBackgroundColor:"#DEE9FF",onCircleColor:"#191960",onCircleBorderColor:"#191960"},...i},m=C=>{if(s)return;const P=C.target.checked;u(P),o==null||o(P)},p=d?h.onBackgroundColor:h.offBackgroundColor,b=d?h.onCircleColor:h.offCircleColor,x=d?h.onCircleBorderColor:h.offCircleBorderColor,w=t||n||r||e,k=`text-sm ${s?"text-gray-500":"text-gray-700"}`,v=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 ${s?"cursor-not-allowed opacity-60":"cursor-pointer"}`,children:[g.jsx("input",{type:"checkbox",className:"peer sr-only",checked:d,onChange:m,disabled:s}),g.jsx("div",{className:`${v2.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":x}})]}),N=w&&g.jsx("span",{className:k,children:w});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,y||N]}):g.jsxs("div",{className:"flex items-center gap-2",children:[S,y||N]})}const w2=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:a,classesHeadTable:s,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),[x,w]=z.useState(null),k=z.useMemo(()=>x?[...e].sort((O,D)=>{const T=O[x.key],L=D[x.key];return T==null||L==null?0:typeof T=="string"&&typeof L=="string"?x.direction==="asc"?T.localeCompare(L):L.localeCompare(T):x.direction==="asc"?Number(T)-Number(L):Number(L)-Number(T)}):e,[e,x]),v=z.useMemo(()=>h.trim()?k.filter(O=>t.some(D=>{const T=O[D.relation];return T!=null&&String(T).toLowerCase().includes(h.toLowerCase().trim())})):k,[k,h,t]),y=z.useMemo(()=>{const O=(p-1)*r,D=O+r;return v.slice(O,D)},[v,p,r]),S=Math.ceil(v.length/r),N=()=>{if(f){const O=y.length>0&&y.every(D=>c.has(D.id));f(!O)}},C=O=>{if(u){const D=c.has(O);u(O,!D)}},P=y.length>0&&y.every(O=>c.has(O.id)),E=c.size>0&&c.size<y.length,B=O=>{w(D=>!D||D.key!==O?{key:O,direction:"asc"}:{key:O,direction:D.direction==="asc"?"desc":"asc"})},F=(O,D)=>{const T=D[O.relation];if(O.isToggle){const L=!!T;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(gp,{checked:L,onChange:V=>d==null?void 0:d({rowId:D.id,checked:V,row:D,columnKey:O.relation}),disabled:!1}),O.toggleText&&g.jsx("span",{className:"text-sm text-gray-600",children:L?O.toggleText.active:O.toggleText.inactive})]})}if(O.cell)return O.cell(D);if(O.component){const L=O.component;return z.createElement(L,{row:D,value:T,...O.cellProps||{}})}return T??""};return g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-2 flex items-center justify-between",children:a&&g.jsx("h2",{className:"text-base font-bold",children:a})}),g.jsx("div",{className:"flex",children:n&&g.jsx("div",{className:"w-1/2",children:g.jsx(ya,{rightIcon:By,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(zn,{children:[g.jsxs(zn.Head,{className:`mth_head_table ${s}`,children:[l&&g.jsx(zn.HeadCell,{children:g.jsx(Bi,{checked:P,ref:O=>{O&&(O.indeterminate=E)},onChange:N})},`${l}-checkbox`),t.map((O,D)=>g.jsx(zn.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>O.sortable!==!1&&B(O.relation),children:g.jsxs("div",{className:"flex items-center",children:[O.header,O.sortable!==!1&&g.jsx("span",{children:(x==null?void 0:x.key)===O.relation?x.direction==="desc"?g.jsx(Ri,{className:"size-4"}):g.jsx(zd,{className:"size-4"}):g.jsx(Ri,{className:"size-4 opacity-50"})})]})},`column-${D}-${O.relation}`))]}),g.jsx(zn.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:y.map(O=>g.jsxs(zn.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[l&&g.jsx(zn.Cell,{children:g.jsx(Bi,{checked:c.has(O.id),onChange:()=>C(O.id)})},`${O.id}-checkbox`),t.map((D,T)=>g.jsx(zn.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:F(D,O)},`${O.id}-${T}`))]},O.id))})]})}),i&&S>1&&g.jsx("div",{className:"mt-2 flex w-full justify-end",children:g.jsx(hp,{currentPage:p,totalPages:S,onPageChange:b})})]})]})},mp={"m-image-container":"layoutOutside-module__m-image-container__sCvFu","m-image":"layoutOutside-module__m-image__kZHyH"},k2=()=>g.jsxs("div",{className:"mt-32",children:[g.jsx(jn,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/151-41415c0c026df82dbb391c09db474cfa.png",alt:"Logo Mathilde ads",width:400,height:250}),g.jsx("div",{className:mp["m-image-container"],children:g.jsx(jn,{classIm:mp["m-image"],src:"https://ftp.mathilde-ads.com/151-3f28d319ba5adbe318c58ef38b858e50.png",alt:"Logo Mathilde ads",width:400,height:300})})]}),_2=({onOpenModal:t,checked:e,onChange:n,label:r,...a})=>{const s=()=>{e||t(),n(!1)};return g.jsx("div",{className:"mb-5",children:g.jsxs("label",{className:Ss["checkbox-container"],children:[g.jsx("input",{type:"checkbox",...a,checked:e,onChange:s,required:!0}),g.jsx("span",{className:Ss.checkmark}),r&&g.jsx("span",{children:r})]})})},pp=({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:a})=>g.jsxs("li",{className:"flex items-center",children:[g.jsx(e,{isValid:t[r]}),a]},r))})},S2=()=>{const[t,e]=_.useState(""),[n,r]=_.useState(""),[a,s]=_.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});_.useEffect(()=>{s({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(a).every(l=>l);return{password:t,setPassword:e,confirmPassword:n,setConfirmPassword:r,showError:()=>!o()&&t.trim()&&n.trim(),validations:a}},O2=({formik:t})=>{const{password:e,setPassword:n,confirmPassword:r,setConfirmPassword:a,validations:s}=S2();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"block",children:[g.jsx(Nl,{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(Nl,{placeholder:"Confirmar contraseña",value:r,onChange:o=>{a(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(pp,{validations:s})]})},D2=({items:t})=>{const[e,n]=_.useState([]),r=s=>{n(o=>o.includes(s)?o.filter(i=>i!==s):[...o,s])},a=(s,o=0)=>g.jsx("ul",{className:"list-none space-y-2",children:s.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:p,borderColor:p,"--circle-color":b,"--circle-border-color":x}})]}),N=w&&g.jsx("span",{className:k,children:w});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,y||N]}):g.jsxs("div",{className:"flex items-center gap-2",children:[S,y||N]})}const x2=({columns:t,data:e,showSearch:n=!1,itemsPerPage:r=5,title:a,classesHeadTable:s,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),[x,w]=z.useState(null),k=z.useMemo(()=>x?[...e].sort((O,D)=>{const T=O[x.key],L=D[x.key];return T==null||L==null?0:typeof T=="string"&&typeof L=="string"?x.direction==="asc"?T.localeCompare(L):L.localeCompare(T):x.direction==="asc"?Number(T)-Number(L):Number(L)-Number(T)}):e,[e,x]),v=z.useMemo(()=>h.trim()?k.filter(O=>t.some(D=>{const T=O[D.relation];return T!=null&&String(T).toLowerCase().includes(h.toLowerCase().trim())})):k,[k,h,t]),y=z.useMemo(()=>{const O=(p-1)*r,D=O+r;return v.slice(O,D)},[v,p,r]),S=Math.ceil(v.length/r),N=()=>{if(f){const O=y.length>0&&y.every(D=>c.has(D.id));f(!O)}},C=O=>{if(u){const D=c.has(O);u(O,!D)}},P=y.length>0&&y.every(O=>c.has(O.id)),E=c.size>0&&c.size<y.length,B=O=>{w(D=>!D||D.key!==O?{key:O,direction:"asc"}:{key:O,direction:D.direction==="asc"?"desc":"asc"})},F=(O,D)=>{const T=D[O.relation];if(O.isToggle){const L=!!T;return g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(gp,{checked:L,onChange:V=>d==null?void 0:d({rowId:D.id,checked:V,row:D,columnKey:O.relation}),disabled:!1}),O.toggleText&&g.jsx("span",{className:"text-sm text-gray-600",children:L?O.toggleText.active:O.toggleText.inactive})]})}if(O.cell)return O.cell(D);if(O.component){const L=O.component;return z.createElement(L,{row:D,value:T,...O.cellProps||{}})}return T??""};return g.jsxs("div",{className:"w-full",children:[g.jsx("div",{className:"mb-2 flex items-center justify-between",children:a&&g.jsx("h2",{className:"text-base font-bold",children:a})}),g.jsx("div",{className:"flex",children:n&&g.jsx("div",{className:"w-1/2",children:g.jsx(ya,{rightIcon:zy,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(Wn,{children:[g.jsxs(Wn.Head,{className:`mth_head_table ${s}`,children:[l&&g.jsx(Wn.HeadCell,{children:g.jsx(Bi,{checked:P,ref:O=>{O&&(O.indeterminate=E)},onChange:N})},`${l}-checkbox`),t.map((O,D)=>g.jsx(Wn.HeadCell,{className:"cursor-pointer text-xs",onClick:()=>O.sortable!==!1&&B(O.relation),children:g.jsxs("div",{className:"flex items-center",children:[O.header,O.sortable!==!1&&g.jsx("span",{children:(x==null?void 0:x.key)===O.relation?x.direction==="desc"?g.jsx(Ri,{className:"size-4"}):g.jsx(zd,{className:"size-4"}):g.jsx(Ri,{className:"size-4 opacity-50"})})]})},`column-${D}-${O.relation}`))]}),g.jsx(Wn.Body,{className:`divide-y text-xs md:text-base lg:text-base mth_body_table ${o}`,children:y.map(O=>g.jsxs(Wn.Row,{className:"bg-white dark:border-gray-700 dark:bg-gray-800",children:[l&&g.jsx(Wn.Cell,{children:g.jsx(Bi,{checked:c.has(O.id),onChange:()=>C(O.id)})},`${O.id}-checkbox`),t.map((D,T)=>g.jsx(Wn.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:F(D,O)},`${O.id}-${T}`))]},O.id))})]})}),i&&S>1&&g.jsx("div",{className:"mt-2 flex w-full justify-end",children:g.jsx(hp,{currentPage:p,totalPages:S,onPageChange:b})})]})]})},w2={"m-image-container":"layoutOutside-module__m-image-container__sCvFu"},k2=({content:t})=>g.jsxs("div",{className:"mt-32",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:w2["m-image-container"]}),g.jsx("div",{className:"mx-auto mb-4 flex justify-center",children:g.jsx(er,{classIm:"mx-auto",src:"https://ftp.mathilde-ads.com/382-769cbed25990320dc541cb445528e4b2.png",alt:"Logo Mathilde ads",width:300,height:250})}),t]}),_2=({onOpenModal:t,checked:e,onChange:n,label:r,...a})=>{const s=()=>{e||t(),n(!1)};return g.jsx("div",{className:"mb-5",children:g.jsxs("label",{className:Ss["checkbox-container"],children:[g.jsx("input",{type:"checkbox",...a,checked:e,onChange:s,required:!0}),g.jsx("span",{className:Ss.checkmark}),r&&g.jsx("span",{children:r})]})})},mp=({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:a})=>g.jsxs("li",{className:"flex items-center",children:[g.jsx(e,{isValid:t[r]}),a]},r))})},S2=()=>{const[t,e]=_.useState(""),[n,r]=_.useState(""),[a,s]=_.useState({hasMinLength:!1,hasNumber:!1,hasUpperCase:!1,hasLowerCase:!1,hasSpecialChar:!1});_.useEffect(()=>{s({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(a).every(l=>l);return{password:t,setPassword:e,confirmPassword:n,setConfirmPassword:r,showError:()=>!o()&&t.trim()&&n.trim(),validations:a}},O2=({formik:t})=>{const{password:e,setPassword:n,confirmPassword:r,setConfirmPassword:a,validations:s}=S2();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"block",children:[g.jsx(Nl,{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(Nl,{placeholder:"Confirmar contraseña",value:r,onChange:o=>{a(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(mp,{validations:s})]})},D2=({items:t})=>{const[e,n]=_.useState([]),r=s=>{n(o=>o.includes(s)?o.filter(i=>i!==s):[...o,s])},a=(s,o=0)=>g.jsx("ul",{className:"list-none space-y-2",children:s.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
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(zd,{className:"text-sm text-gray-500"}):g.jsx(Ri,{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&&a(i.subItems||[],o+1)]},i.id)})});return g.jsx("nav",{id:"TableOfContents",children:a(t)})},bp={"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"},M2=({onChange:t,accept:e="application/pdf",maxSize:n=10,multiple:r=!1,helperText:a=""})=>{const[s,o]=_.useState(!1),i=Array.isArray(e)?e.join(","):e,l=()=>Array.isArray(e)?e.map(m=>bp[m]||m).join(", "):bp[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(x=>Array.isArray(e)?e.some(w=>w==="image/*"?x.type.startsWith("image/"):x.type===w):e==="image/*"?x.type.startsWith("image/"):x.type===e);if(p.length===0){alert(`Tipo de archivo no permitido. Tipos permitidos: ${l()}`);return}const b=p.filter(x=>x.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(kl,{htmlFor:"dropzone-file",className:`flex h-64 w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed ${s?"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.jsxs("div",{className:"flex w-2/4 items-center justify-center pb-6 pt-5",children:[g.jsx(jn,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-e44e2ee2d56e5997506c6365eb4d87d3.svg",alt:"icon dropzone",width:74,height:74}),g.jsxs("div",{className:"flex flex-col",children:[g.jsxs("p",{className:"mb-2 text-sm font-light text-gray-400 dark:text-gray-400",children:[g.jsx("span",{className:"font-bold text-gray-500",children:"Arrastra"})," el feed de datos de tu campaña o"," ",g.jsx("span",{className:"font-bold text-gray-500",children:"selecciona el archivo de tu computadora"})," ",a]}),g.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:[g.jsx("span",{className:"font-semibold",children:"Tipos permitidos:"})," ",l()," |"," ",g.jsx("span",{className:"font-semibold",children:"Tamaño máximo:"})," ",n," MB"]})]})]}),g.jsx(If,{id:"dropzone-file",className:"hidden",onChange:f,accept:i,multiple:r})]})})};function C2(t){return Pe({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 5v10c0 0.55 0.45 1 1 1h9c0.55 0 1-0.45 1-1v-10h-11zM5 14h-1v-7h1v7zM7 14h-1v-7h1v7zM9 14h-1v-7h1v7zM11 14h-1v-7h1v7z"},child:[]},{tag:"path",attr:{d:"M13.25 2h-3.25v-1.25c0-0.412-0.338-0.75-0.75-0.75h-3.5c-0.412 0-0.75 0.338-0.75 0.75v1.25h-3.25c-0.413 0-0.75 0.337-0.75 0.75v1.25h13v-1.25c0-0.413-0.338-0.75-0.75-0.75zM9 2h-3v-0.987h3v0.987z"},child:[]}]})(t)}const E2=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]}`},T2=({files:t,onDelete:e})=>g.jsx("div",{className:"mt-4",children:g.jsx("ul",{className:"list-disc",children:t.map((n,r)=>g.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 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(jn,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:50}),g.jsx("li",{className:"text-base font-semibold text-gray-700",children:n.name})]}),g.jsxs("div",{className:"mx-4 flex items-center",children:[g.jsx("span",{className:"flex text-sm",children:E2(n.size)}),g.jsx(C2,{className:"ml-2 cursor-pointer text-4xl text-gray-400",onClick:()=>e(n)})]})]},r))})}),P2=({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}})]}),yp={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 N2({tabs:t,classes:e="",classesUl:n="",tabItemClasses:r="",activeTabStyles:a,inactiveTabStyles:s,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 x=b.target.value;d(x),l==null||l(x)},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} hidden 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 x=c===b.id,w=()=>x&&a?a:!x&&s?s:{},k=()=>x?a?"":yp.mth_tabs_tab_item_active:s?"":yp.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:w(),"aria-current":x?"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 vp={},ds={},Fc={exports:{}},Zo={exports:{}},we={};/** @license React v16.13.1
498
+ `,children:i.title})]}),l&&c&&a(i.subItems||[],o+1)]},i.id)})});return g.jsx("nav",{id:"TableOfContents",children:a(t)})},pp={"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"},M2=({onChange:t,accept:e="application/pdf",maxSize:n=10,multiple:r=!1,helperText:a=""})=>{const[s,o]=_.useState(!1),i=Array.isArray(e)?e.join(","):e,l=()=>Array.isArray(e)?e.map(m=>pp[m]||m).join(", "):pp[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(x=>Array.isArray(e)?e.some(w=>w==="image/*"?x.type.startsWith("image/"):x.type===w):e==="image/*"?x.type.startsWith("image/"):x.type===e);if(p.length===0){alert(`Tipo de archivo no permitido. Tipos permitidos: ${l()}`);return}const b=p.filter(x=>x.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(kl,{htmlFor:"dropzone-file",className:`flex h-64 w-full cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed ${s?"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.jsxs("div",{className:"flex w-2/4 items-center justify-center pb-6 pt-5",children:[g.jsx(er,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-e44e2ee2d56e5997506c6365eb4d87d3.svg",alt:"icon dropzone",width:74,height:74}),g.jsxs("div",{className:"flex flex-col",children:[g.jsxs("p",{className:"mb-2 text-sm font-light text-gray-400 dark:text-gray-400",children:[g.jsx("span",{className:"font-bold text-gray-500",children:"Arrastra"})," el feed de datos de tu campaña o"," ",g.jsx("span",{className:"font-bold text-gray-500",children:"selecciona el archivo de tu computadora"})," ",a]}),g.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:[g.jsx("span",{className:"font-semibold",children:"Tipos permitidos:"})," ",l()," |"," ",g.jsx("span",{className:"font-semibold",children:"Tamaño máximo:"})," ",n," MB"]})]})]}),g.jsx(If,{id:"dropzone-file",className:"hidden",onChange:f,accept:i,multiple:r})]})})};function C2(t){return Pe({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 5v10c0 0.55 0.45 1 1 1h9c0.55 0 1-0.45 1-1v-10h-11zM5 14h-1v-7h1v7zM7 14h-1v-7h1v7zM9 14h-1v-7h1v7zM11 14h-1v-7h1v7z"},child:[]},{tag:"path",attr:{d:"M13.25 2h-3.25v-1.25c0-0.412-0.338-0.75-0.75-0.75h-3.5c-0.412 0-0.75 0.338-0.75 0.75v1.25h-3.25c-0.413 0-0.75 0.337-0.75 0.75v1.25h13v-1.25c0-0.413-0.338-0.75-0.75-0.75zM9 2h-3v-0.987h3v0.987z"},child:[]}]})(t)}const E2=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]}`},T2=({files:t,onDelete:e})=>g.jsx("div",{className:"mt-4",children:g.jsx("ul",{className:"list-disc",children:t.map((n,r)=>g.jsxs("div",{className:"mb-5 flex w-full items-center justify-between rounded-lg border-2 border-dashed border-gray-300 bg-gray-50 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(er,{classIm:"mr-3",src:"https://ftp.mathilde-ads.com/151-1dcc25481e8c72ed21c720c94adfdec6.svg",alt:"icon dropzone",width:50}),g.jsx("li",{className:"text-base font-semibold text-gray-700",children:n.name})]}),g.jsxs("div",{className:"mx-4 flex items-center",children:[g.jsx("span",{className:"flex text-sm",children:E2(n.size)}),g.jsx(C2,{className:"ml-2 cursor-pointer text-4xl text-gray-400",onClick:()=>e(n)})]})]},r))})}),P2=({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}})]}),bp={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 N2({tabs:t,classes:e="",classesUl:n="",tabItemClasses:r="",activeTabStyles:a,inactiveTabStyles:s,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 x=b.target.value;d(x),l==null||l(x)},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} hidden 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 x=c===b.id,w=()=>x&&a?a:!x&&s?s:{},k=()=>x?a?"":bp.mth_tabs_tab_item_active:s?"":bp.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:w(),"aria-current":x?"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 yp={},ds={},Fc={exports:{}},Zo={exports:{}},we={};/** @license React v16.13.1
499
499
  * react-is.production.min.js
500
500
  *
501
501
  * Copyright (c) Facebook, Inc. and its affiliates.
502
502
  *
503
503
  * This source code is licensed under the MIT license found in the
504
504
  * LICENSE file in the root directory of this source tree.
505
- */var xp;function j2(){if(xp)return we;xp=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,a=t?Symbol.for("react.strict_mode"):60108,s=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,x=t?Symbol.for("react.responder"):60118,w=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 s:case a: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 v(y){return k(y)===c}return we.AsyncMode=l,we.ConcurrentMode=c,we.ContextConsumer=i,we.ContextProvider=o,we.Element=e,we.ForwardRef=d,we.Fragment=r,we.Lazy=m,we.Memo=h,we.Portal=n,we.Profiler=s,we.StrictMode=a,we.Suspense=u,we.isAsyncMode=function(y){return v(y)||k(y)===l},we.isConcurrentMode=v,we.isContextConsumer=function(y){return k(y)===i},we.isContextProvider=function(y){return k(y)===o},we.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},we.isForwardRef=function(y){return k(y)===d},we.isFragment=function(y){return k(y)===r},we.isLazy=function(y){return k(y)===m},we.isMemo=function(y){return k(y)===h},we.isPortal=function(y){return k(y)===n},we.isProfiler=function(y){return k(y)===s},we.isStrictMode=function(y){return k(y)===a},we.isSuspense=function(y){return k(y)===u},we.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===c||y===s||y===a||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===x||y.$$typeof===w||y.$$typeof===p)},we.typeOf=k,we}var ke={};/** @license React v16.13.1
505
+ */var vp;function j2(){if(vp)return we;vp=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,a=t?Symbol.for("react.strict_mode"):60108,s=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,x=t?Symbol.for("react.responder"):60118,w=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 s:case a: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 v(y){return k(y)===c}return we.AsyncMode=l,we.ConcurrentMode=c,we.ContextConsumer=i,we.ContextProvider=o,we.Element=e,we.ForwardRef=d,we.Fragment=r,we.Lazy=m,we.Memo=h,we.Portal=n,we.Profiler=s,we.StrictMode=a,we.Suspense=u,we.isAsyncMode=function(y){return v(y)||k(y)===l},we.isConcurrentMode=v,we.isContextConsumer=function(y){return k(y)===i},we.isContextProvider=function(y){return k(y)===o},we.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},we.isForwardRef=function(y){return k(y)===d},we.isFragment=function(y){return k(y)===r},we.isLazy=function(y){return k(y)===m},we.isMemo=function(y){return k(y)===h},we.isPortal=function(y){return k(y)===n},we.isProfiler=function(y){return k(y)===s},we.isStrictMode=function(y){return k(y)===a},we.isSuspense=function(y){return k(y)===u},we.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===c||y===s||y===a||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===x||y.$$typeof===w||y.$$typeof===p)},we.typeOf=k,we}var ke={};/** @license React v16.13.1
506
506
  * react-is.development.js
507
507
  *
508
508
  * Copyright (c) Facebook, Inc. and its affiliates.
509
509
  *
510
510
  * This source code is licensed under the MIT license found in the
511
511
  * LICENSE file in the root directory of this source tree.
512
- */var wp;function I2(){return wp||(wp=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,a=t?Symbol.for("react.strict_mode"):60108,s=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,x=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function k(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===c||Y===s||Y===a||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===x||Y.$$typeof===w||Y.$$typeof===p)}function v(Y){if(typeof Y=="object"&&Y!==null){var re=Y.$$typeof;switch(re){case e:var te=Y.type;switch(te){case l:case c:case r:case s:case a:case u:return te;default:var ie=te&&te.$$typeof;switch(ie){case i:case d:case m:case h:case o:return ie;default:return re}}case n:return re}}}var y=l,S=c,N=i,C=o,P=e,E=d,B=r,F=m,O=h,D=n,T=s,L=a,V=u,K=!1;function q(Y){return K||(K=!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(Y)||v(Y)===l}function j(Y){return v(Y)===c}function H(Y){return v(Y)===i}function A(Y){return v(Y)===o}function R(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function I(Y){return v(Y)===d}function M(Y){return v(Y)===r}function W(Y){return v(Y)===m}function Q(Y){return v(Y)===h}function G(Y){return v(Y)===n}function Z(Y){return v(Y)===s}function $(Y){return v(Y)===a}function ne(Y){return v(Y)===u}ke.AsyncMode=y,ke.ConcurrentMode=S,ke.ContextConsumer=N,ke.ContextProvider=C,ke.Element=P,ke.ForwardRef=E,ke.Fragment=B,ke.Lazy=F,ke.Memo=O,ke.Portal=D,ke.Profiler=T,ke.StrictMode=L,ke.Suspense=V,ke.isAsyncMode=q,ke.isConcurrentMode=j,ke.isContextConsumer=H,ke.isContextProvider=A,ke.isElement=R,ke.isForwardRef=I,ke.isFragment=M,ke.isLazy=W,ke.isMemo=Q,ke.isPortal=G,ke.isProfiler=Z,ke.isStrictMode=$,ke.isSuspense=ne,ke.isValidElementType=k,ke.typeOf=v}()),ke}var kp;function _p(){return kp||(kp=1,process.env.NODE_ENV==="production"?Zo.exports=j2():Zo.exports=I2()),Zo.exports}/*
512
+ */var xp;function I2(){return xp||(xp=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,a=t?Symbol.for("react.strict_mode"):60108,s=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,x=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function k(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===c||Y===s||Y===a||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===x||Y.$$typeof===w||Y.$$typeof===p)}function v(Y){if(typeof Y=="object"&&Y!==null){var re=Y.$$typeof;switch(re){case e:var te=Y.type;switch(te){case l:case c:case r:case s:case a:case u:return te;default:var ie=te&&te.$$typeof;switch(ie){case i:case d:case m:case h:case o:return ie;default:return re}}case n:return re}}}var y=l,S=c,N=i,C=o,P=e,E=d,B=r,F=m,O=h,D=n,T=s,L=a,V=u,K=!1;function q(Y){return K||(K=!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(Y)||v(Y)===l}function j(Y){return v(Y)===c}function H(Y){return v(Y)===i}function A(Y){return v(Y)===o}function R(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function I(Y){return v(Y)===d}function M(Y){return v(Y)===r}function W(Y){return v(Y)===m}function Q(Y){return v(Y)===h}function G(Y){return v(Y)===n}function Z(Y){return v(Y)===s}function $(Y){return v(Y)===a}function ne(Y){return v(Y)===u}ke.AsyncMode=y,ke.ConcurrentMode=S,ke.ContextConsumer=N,ke.ContextProvider=C,ke.Element=P,ke.ForwardRef=E,ke.Fragment=B,ke.Lazy=F,ke.Memo=O,ke.Portal=D,ke.Profiler=T,ke.StrictMode=L,ke.Suspense=V,ke.isAsyncMode=q,ke.isConcurrentMode=j,ke.isContextConsumer=H,ke.isContextProvider=A,ke.isElement=R,ke.isForwardRef=I,ke.isFragment=M,ke.isLazy=W,ke.isMemo=Q,ke.isPortal=G,ke.isProfiler=Z,ke.isStrictMode=$,ke.isSuspense=ne,ke.isValidElementType=k,ke.typeOf=v}()),ke}var wp;function kp(){return wp||(wp=1,process.env.NODE_ENV==="production"?Zo.exports=j2():Zo.exports=I2()),Zo.exports}/*
513
513
  object-assign
514
514
  (c) Sindre Sorhus
515
515
  @license MIT
516
- */var Lc,Sp;function R2(){if(Sp)return Lc;Sp=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[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 Lc=a()?Object.assign:function(s,o){for(var i,l=r(s),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},Lc}var Wc,Op;function zc(){if(Op)return Wc;Op=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wc=t,Wc}var Bc,Dp;function Mp(){return Dp||(Dp=1,Bc=Function.call.bind(Object.prototype.hasOwnProperty)),Bc}var Hc,Cp;function A2(){if(Cp)return Hc;Cp=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=zc(),n={},r=Mp();t=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(s,o,i,l,c){if(process.env.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var u;try{if(typeof s[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 s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=s[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 a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Hc=a,Hc}var Yc,Ep;function F2(){if(Ep)return Yc;Ep=1;var t=_p(),e=R2(),n=zc(),r=Mp(),a=A2(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Yc=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(j){var H=j&&(c&&j[c]||j[d]);if(typeof H=="function")return H}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:k,element:v(),elementType:y(),instanceOf:S,node:E(),objectOf:C,oneOf:N,oneOfType:P,shape:F,exact:O};function m(j,H){return j===H?j!==0||1/j===1/H:j!==j&&H!==H}function p(j,H){this.message=j,this.data=H&&typeof H=="object"?H:{},this.stack=""}p.prototype=Error.prototype;function b(j){if(process.env.NODE_ENV!=="production")var H={},A=0;function R(M,W,Q,G,Z,$,ne){if(G=G||f,$=$||Q,ne!==n){if(l){var Y=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 Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var re=G+":"+Q;!H[re]&&A<3&&(s("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+G+"`. 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."),H[re]=!0,A++)}}return W[Q]==null?M?W[Q]===null?new p("The "+Z+" `"+$+"` is marked as required "+("in `"+G+"`, but its value is `null`.")):new p("The "+Z+" `"+$+"` is marked as required in "+("`"+G+"`, but its value is `undefined`.")):null:j(W,Q,G,Z,$)}var I=R.bind(null,!1);return I.isRequired=R.bind(null,!0),I}function x(j){function H(A,R,I,M,W,Q){var G=A[R],Z=L(G);if(Z!==j){var $=V(G);return new p("Invalid "+M+" `"+W+"` of type "+("`"+$+"` supplied to `"+I+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return b(H)}function w(){return b(o)}function k(j){function H(A,R,I,M,W){if(typeof j!="function")return new p("Property `"+W+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var Q=A[R];if(!Array.isArray(Q)){var G=L(Q);return new p("Invalid "+M+" `"+W+"` of type "+("`"+G+"` supplied to `"+I+"`, expected an array."))}for(var Z=0;Z<Q.length;Z++){var $=j(Q,Z,I,M,W+"["+Z+"]",n);if($ instanceof Error)return $}return null}return b(H)}function v(){function j(H,A,R,I,M){var W=H[A];if(!i(W)){var Q=L(W);return new p("Invalid "+I+" `"+M+"` of type "+("`"+Q+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return b(j)}function y(){function j(H,A,R,I,M){var W=H[A];if(!t.isValidElementType(W)){var Q=L(W);return new p("Invalid "+I+" `"+M+"` of type "+("`"+Q+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return b(j)}function S(j){function H(A,R,I,M,W){if(!(A[R]instanceof j)){var Q=j.name||f,G=q(A[R]);return new p("Invalid "+M+" `"+W+"` of type "+("`"+G+"` supplied to `"+I+"`, expected ")+("instance of `"+Q+"`."))}return null}return b(H)}function N(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),o;function H(A,R,I,M,W){for(var Q=A[R],G=0;G<j.length;G++)if(m(Q,j[G]))return null;var Z=JSON.stringify(j,function(ne,Y){var re=V(Y);return re==="symbol"?String(Y):Y});return new p("Invalid "+M+" `"+W+"` of value `"+String(Q)+"` "+("supplied to `"+I+"`, expected one of "+Z+"."))}return b(H)}function C(j){function H(A,R,I,M,W){if(typeof j!="function")return new p("Property `"+W+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var Q=A[R],G=L(Q);if(G!=="object")return new p("Invalid "+M+" `"+W+"` of type "+("`"+G+"` supplied to `"+I+"`, expected an object."));for(var Z in Q)if(r(Q,Z)){var $=j(Q,Z,I,M,W+"."+Z,n);if($ instanceof Error)return $}return null}return b(H)}function P(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var H=0;H<j.length;H++){var A=j[H];if(typeof A!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(A)+" at index "+H+"."),o}function R(I,M,W,Q,G){for(var Z=[],$=0;$<j.length;$++){var ne=j[$],Y=ne(I,M,W,Q,G,n);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&Z.push(Y.data.expectedType)}var re=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new p("Invalid "+Q+" `"+G+"` supplied to "+("`"+W+"`"+re+"."))}return b(R)}function E(){function j(H,A,R,I,M){return D(H[A])?null:new p("Invalid "+I+" `"+M+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return b(j)}function B(j,H,A,R,I){return new p((j||"React class")+": "+H+" type `"+A+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function F(j){function H(A,R,I,M,W){var Q=A[R],G=L(Q);if(G!=="object")return new p("Invalid "+M+" `"+W+"` of type `"+G+"` "+("supplied to `"+I+"`, expected `object`."));for(var Z in j){var $=j[Z];if(typeof $!="function")return B(I,M,W,Z,V($));var ne=$(Q,Z,I,M,W+"."+Z,n);if(ne)return ne}return null}return b(H)}function O(j){function H(A,R,I,M,W){var Q=A[R],G=L(Q);if(G!=="object")return new p("Invalid "+M+" `"+W+"` of type `"+G+"` "+("supplied to `"+I+"`, expected `object`."));var Z=e({},A[R],j);for(var $ in Z){var ne=j[$];if(r(j,$)&&typeof ne!="function")return B(I,M,W,$,V(ne));if(!ne)return new p("Invalid "+M+" `"+W+"` key `"+$+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(A[R],null," ")+`
517
- Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Y=ne(Q,$,I,M,W+"."+$,n);if(Y)return Y}return null}return b(H)}function D(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(D);if(j===null||i(j))return!0;var H=u(j);if(H){var A=H.call(j),R;if(H!==j.entries){for(;!(R=A.next()).done;)if(!D(R.value))return!1}else for(;!(R=A.next()).done;){var I=R.value;if(I&&!D(I[1]))return!1}}else return!1;return!0;default:return!1}}function T(j,H){return j==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function L(j){var H=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":T(H,j)?"symbol":H}function V(j){if(typeof j>"u"||j===null)return""+j;var H=L(j);if(H==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return H}function K(j){var H=V(j);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function q(j){return!j.constructor||!j.constructor.name?f:j.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},Yc}var Vc,Tp;function L2(){if(Tp)return Vc;Tp=1;var t=zc();function e(){}function n(){}return n.resetWarningCache=e,Vc=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 a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:e};return s.PropTypes=s,s},Vc}if(process.env.NODE_ENV!=="production"){var W2=_p(),z2=!0;Fc.exports=F2()(W2.isElement,z2)}else Fc.exports=L2()();var Sn=Fc.exports,us={},On={};const Pp=7,Jo=365.2425,fs=6048e5,Np=864e5,Dn=6e4,kr=36e5,Uc=1e3,jp=525600,na=43200,qo=1440,Ip=60,Rp=3,Ap=12,Fp=4,$o=3600,Xc=60,Gc=$o*24,B2=Gc*7,Lp=Gc*Jo,Wp=Lp/12,H2=Wp*3,zp=Symbol.for("constructDateFrom");function se(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&zp in t?t[zp](e):t instanceof Date?new t.constructor(e):new Date(e)}function X(t,e){return se(e||t,t)}function Wt(t,e,n){const r=X(t,n==null?void 0:n.in);return isNaN(e)?se((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function hs(t,e,n){const r=X(t,n==null?void 0:n.in);if(isNaN(e))return se((n==null?void 0:n.in)||t,NaN);if(!e)return r;const a=r.getDate(),s=se((n==null?void 0:n.in)||t,r.getTime());s.setMonth(r.getMonth()+e+1,0);const o=s.getDate();return a>=o?s:(r.setFullYear(s.getFullYear(),s.getMonth(),a),r)}function ra(t,e,n){const{years:r=0,months:a=0,weeks:s=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=X(t,n==null?void 0:n.in),u=a||r?hs(d,a+r*12):d,f=o||s?Wt(u,o+s*7):u,h=l+i*60,p=(c+h*60)*1e3;return se((n==null?void 0:n.in)||t,+f+p)}function Bp(t,e){return X(t,e==null?void 0:e.in).getDay()===6}function Hp(t,e){return X(t,e==null?void 0:e.in).getDay()===0}function aa(t,e){const n=X(t,e==null?void 0:e.in).getDay();return n===0||n===6}function Yp(t,e,n){const r=X(t,n==null?void 0:n.in),a=aa(r,n);if(isNaN(e))return se(n==null?void 0:n.in,NaN);const s=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),aa(r,n)||(l-=1);return a&&aa(r,n)&&e!==0&&(Bp(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),Hp(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(s),r}function ei(t,e,n){return se((n==null?void 0:n.in)||t,+X(t)+e)}function Vp(t,e,n){return ei(t,e*kr,n)}let Up={};function ht(){return Up}function Y2(t){Up=t}function it(t,e){var i,l,c,d;const n=ht(),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,a=X(t,e==null?void 0:e.in),s=a.getDay(),o=(s<r?7:0)+s-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Xt(t,e){return it(t,{...e,weekStartsOn:1})}function Gn(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=se(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const s=Xt(a),o=se(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=Xt(o);return n.getTime()>=s.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function kt(t){const e=X(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 De(t,...e){const n=se.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function sa(t,e){const n=X(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function sn(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=sa(r),o=sa(a),i=+s-kt(s),l=+o-kt(o);return Math.round((i-l)/Np)}function Kn(t,e){const n=Gn(t,e),r=se((e==null?void 0:e.in)||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xt(r)}function Xp(t,e,n){let r=X(t,n==null?void 0:n.in);const a=sn(r,Kn(r,n)),s=se((n==null?void 0:n.in)||t,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),r=Kn(s),r.setDate(r.getDate()+a),r}function Gp(t,e,n){return Xp(t,Gn(t,n)+e,n)}function Kc(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setTime(r.getTime()+e*Dn),r}function Qc(t,e,n){return hs(t,e*3,n)}function Kp(t,e,n){return ei(t,e*1e3,n)}function ti(t,e,n){return Wt(t,e*7,n)}function Qp(t,e,n){return hs(t,e*12,n)}function V2(t,e,n){const[r,a]=[+X(t.start,n==null?void 0:n.in),+X(t.end,n==null?void 0:n.in)].sort((i,l)=>i-l),[s,o]=[+X(e.start,n==null?void 0:n.in),+X(e.end,n==null?void 0:n.in)].sort((i,l)=>i-l);return n!=null&&n.inclusive?r<=o&&s<=a:r<o&&s<a}function Zp(t,e){let n,r=e==null?void 0:e.in;return t.forEach(a=>{!r&&typeof a=="object"&&(r=se.bind(null,a));const s=X(a,r);(!n||n<s||isNaN(+s))&&(n=s)}),se(r,n||NaN)}function Jp(t,e){let n,r=e==null?void 0:e.in;return t.forEach(a=>{!r&&typeof a=="object"&&(r=se.bind(null,a));const s=X(a,r);(!n||n>s||isNaN(+s))&&(n=s)}),se(r,n||NaN)}function U2(t,e,n){const[r,a,s]=De(n==null?void 0:n.in,t,e.start,e.end);return Jp([Zp([r,a],n),s],n)}function qp(t,e){const n=+X(t);if(isNaN(n))return NaN;let r,a;return e.forEach((s,o)=>{const i=X(s);if(isNaN(+i)){r=NaN,a=NaN;return}const l=Math.abs(n-+i);(r==null||l<a)&&(r=o,a=l)}),r}function X2(t,e,n){const[r,...a]=De(n==null?void 0:n.in,t,...e),s=qp(r,a);if(typeof s=="number"&&isNaN(s))return se(r,NaN);if(s!==void 0)return a[s]}function on(t,e){const n=+X(t)-+X(e);return n<0?-1:n>0?1:n}function G2(t,e){const n=+X(t)-+X(e);return n>0?-1:n<0?1:n}function Qe(t){return se(t,Date.now())}function K2(t){const e=Math.trunc(t/Pp);return e===0?0:e}function gs(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+sa(r)==+sa(a)}function $p(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Mn(t){return!(!$p(t)&&typeof t!="number"||isNaN(+X(t)))}function Q2(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);if(!Mn(r)||!Mn(a))return NaN;const s=sn(r,a),o=s<0?-1:1,i=Math.trunc(s/7);let l=i*5,c=Wt(a,i*7);for(;!gs(r,c);)l+=aa(c,n)?0:o,c=Wt(c,o);return l===0?0:l}function eb(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return Gn(r,n)-Gn(a,n)}function Z2(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=Xt(r),o=Xt(a),i=+s-kt(s),l=+o-kt(o);return Math.round((i-l)/fs)}function ni(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=r.getFullYear()-a.getFullYear(),o=r.getMonth()-a.getMonth();return s*12+o}function Zc(t,e){const n=X(t,e==null?void 0:e.in);return Math.trunc(n.getMonth()/3)+1}function ri(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=r.getFullYear()-a.getFullYear(),o=Zc(r)-Zc(a);return s*4+o}function ai(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=it(r,n),o=it(a,n),i=+s-kt(s),l=+o-kt(o);return Math.round((i-l)/fs)}function ms(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return r.getFullYear()-a.getFullYear()}function Jc(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=tb(r,a),o=Math.abs(sn(r,a));r.setDate(r.getDate()-s*o);const i=+(tb(r,a)===-s),l=s*(o-i);return l===0?0:l}function tb(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 Qn(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function si(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=(+r-+a)/kr;return Qn(n==null?void 0:n.roundingMethod)(s)}function nb(t,e,n){return Gp(t,-e,n)}function J2(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=on(r,a),o=Math.abs(eb(r,a,n)),i=nb(r,s*o,n),l=+(on(i,a)===-s),c=s*(o-l);return c===0?0:c}function qc(t,e){return+X(t)-+X(e)}function oi(t,e,n){const r=qc(t,e)/Dn;return Qn(n==null?void 0:n.roundingMethod)(r)}function $c(t,e){const n=X(t,e==null?void 0:e.in);return n.setHours(23,59,59,999),n}function ed(t,e){const n=X(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 rb(t,e){const n=X(t,e==null?void 0:e.in);return+$c(n,e)==+ed(n,e)}function ii(t,e,n){const[r,a,s]=De(n==null?void 0:n.in,t,t,e),o=on(a,s),i=Math.abs(ni(a,s));if(i<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-o*i);let l=on(a,s)===-o;rb(r)&&i===1&&on(r,s)===1&&(l=!1);const c=o*(i-+l);return c===0?0:c}function q2(t,e,n){const r=ii(t,e,n)/3;return Qn(n==null?void 0:n.roundingMethod)(r)}function oa(t,e,n){const r=qc(t,e)/1e3;return Qn(n==null?void 0:n.roundingMethod)(r)}function $2(t,e,n){const r=Jc(t,e,n)/7;return Qn(n==null?void 0:n.roundingMethod)(r)}function ab(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=on(r,a),o=Math.abs(ms(r,a));r.setFullYear(1584),a.setFullYear(1584);const i=on(r,a)===-s,l=s*(o-+i);return l===0?0:l}function Cn(t,e){const[n,r]=De(t,e.start,e.end);return{start:n,end:r}}function sb(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+n:+r,o=a?r:n;o.setHours(0,0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o.setDate(o.getDate()+i),o.setHours(0,0,0,0);return a?l.reverse():l}function eC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+n:+r,o=a?r:n;o.setMinutes(0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o.setHours(o.getHours()+i);return a?l.reverse():l}function tC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);n.setSeconds(0,0);let a=+n>+r;const s=a?+n:+r;let o=a?r:n,i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o=Kc(o,i);return a?l.reverse():l}function nC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+n:+r,o=a?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,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o.setMonth(o.getMonth()+i);return a?l.reverse():l}function _r(t,e){const n=X(t,e==null?void 0:e.in),r=n.getMonth(),a=r-r%3;return n.setMonth(a,1),n.setHours(0,0,0,0),n}function rC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+_r(n):+_r(r);let o=_r(a?r:n),i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o=Qc(o,i);return a?l.reverse():l}function aC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=it(a?r:n,e),o=it(a?n:r,e);s.setHours(15),o.setHours(15);const i=+o.getTime();let l=s,c=(e==null?void 0:e.step)??1;if(!c)return[];c<0&&(c=-c,a=!a);const d=[];for(;+l<=i;)l.setHours(0),d.push(se(n,l)),l=ti(l,c),l.setHours(15);return a?d.reverse():d}function td(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t),a=sb({start:n,end:r},e),s=[];let o=0;for(;o<a.length;){const i=a[o++];aa(i)&&s.push(se(n,i))}return s}function li(t,e){const n=X(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function sC(t,e){const n=li(t,e),r=ed(t,e);return td({start:n,end:r},e)}function ob(t,e){const n=X(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 nd(t,e){const n=X(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function oC(t,e){const n=nd(t,e),r=ob(t,e);return td({start:n,end:r},e)}function iC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+n:+r,o=a?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,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o.setFullYear(o.getFullYear()+i);return a?l.reverse():l}function lC(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=9+Math.floor(r/10)*10;return n.setFullYear(a,11,31),n.setHours(23,59,59,999),n}function cC(t,e){const n=X(t,e==null?void 0:e.in);return n.setMinutes(59,59,999),n}function ib(t,e){var i,l,c,d;const n=ht(),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,a=X(t,e==null?void 0:e.in),s=a.getDay(),o=(s<r?-7:0)+6-(s-r);return a.setDate(a.getDate()+o),a.setHours(23,59,59,999),a}function dC(t,e){return ib(t,{...e,weekStartsOn:1})}function uC(t,e){const n=Gn(t,e),r=se((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Xt(r,e);return a.setMilliseconds(a.getMilliseconds()-1),a}function fC(t,e){const n=X(t,e==null?void 0:e.in);return n.setSeconds(59,999),n}function hC(t,e){const n=X(t,e==null?void 0:e.in),r=n.getMonth(),a=r-r%3+3;return n.setMonth(a,0),n.setHours(23,59,59,999),n}function gC(t,e){const n=X(t,e==null?void 0:e.in);return n.setMilliseconds(999),n}function mC(t){return $c(Date.now(),t)}function pC(t){const e=Qe(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),a=e.getDate(),s=Qe(t==null?void 0:t.in);return s.setFullYear(n,r,a+1),s.setHours(23,59,59,999),t!=null&&t.in?t.in(s):s}function bC(t){const e=Qe(t==null?void 0:t.in),n=se(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 yC={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"}},vC=(t,e,n)=>{let r;const a=yC[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ia(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const xC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_C={date:ia({formats:xC,defaultWidth:"full"}),time:ia({formats:wC,defaultWidth:"full"}),dateTime:ia({formats:kC,defaultWidth:"full"})},SC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},OC=(t,e,n,r)=>SC[t];function ln(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;a=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;a=t.values[i]||t.values[o]}const s=t.argumentCallback?t.argumentCallback(e):e;return a[s]}}const DC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},MC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},CC={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"]},EC={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"]},TC={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"}},PC={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"}},NC={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:ln({values:DC,defaultWidth:"wide"}),quarter:ln({values:MC,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ln({values:CC,defaultWidth:"wide"}),day:ln({values:EC,defaultWidth:"wide"}),dayPeriod:ln({values:TC,defaultWidth:"wide",formattingValues:PC,defaultFormattingWidth:"wide"})};function cn(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(a);if(!s)return null;const o=s[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?IC(i,u=>u.test(o)):jC(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 jC(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function IC(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function lb(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(a.length);return{value:o,rest:i}}}const RC=/^(\d+)(th|st|nd|rd)?/i,AC=/\d+/i,FC={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},LC={any:[/^b/i,/^(a|c)/i]},WC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zC={any:[/1/i,/2/i,/3/i,/4/i]},BC={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},HC={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]},YC={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},VC={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]},UC={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},XC={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}},GC={ordinalNumber:lb({matchPattern:RC,parsePattern:AC,valueCallback:t=>parseInt(t,10)}),era:cn({matchPatterns:FC,defaultMatchWidth:"wide",parsePatterns:LC,defaultParseWidth:"any"}),quarter:cn({matchPatterns:WC,defaultMatchWidth:"wide",parsePatterns:zC,defaultParseWidth:"any",valueCallback:t=>t+1}),month:cn({matchPatterns:BC,defaultMatchWidth:"wide",parsePatterns:HC,defaultParseWidth:"any"}),day:cn({matchPatterns:YC,defaultMatchWidth:"wide",parsePatterns:VC,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:UC,defaultMatchWidth:"any",parsePatterns:XC,defaultParseWidth:"any"})},la={code:"en-US",formatDistance:vC,formatLong:_C,formatRelative:OC,localize:NC,match:GC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cb(t,e){const n=X(t,e==null?void 0:e.in);return sn(n,nd(n))+1}function rd(t,e){const n=X(t,e==null?void 0:e.in),r=+Xt(n)-+Kn(n);return Math.round(r/fs)+1}function ci(t,e){var d,u,f,h;const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=ht(),s=(e==null?void 0:e.firstWeekContainsDate)??((u=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??a.firstWeekContainsDate??((h=(f=a.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=se((e==null?void 0:e.in)||t,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const i=it(o,e),l=se((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const c=it(l,e);return+n>=+i?r+1:+n>=+c?r:r-1}function di(t,e){var i,l,c,d;const n=ht(),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,a=ci(t,e),s=se((e==null?void 0:e.in)||t,0);return s.setFullYear(a,0,r),s.setHours(0,0,0,0),it(s,e)}function ad(t,e){const n=X(t,e==null?void 0:e.in),r=+it(n,e)-+di(n,e);return Math.round(r/fs)+1}function oe(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 oe(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):oe(n+1,2)},d(t,e){return oe(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 oe(t.getHours()%12||12,e.length)},H(t,e){return oe(t.getHours(),e.length)},m(t,e){return oe(t.getMinutes(),e.length)},s(t,e){return oe(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return oe(a,e.length)}},ca={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sd={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(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return dn.y(t,e)},Y:function(t,e,n,r){const a=ci(t,r),s=a>0?a:1-a;if(e==="YY"){const o=s%100;return oe(o,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):oe(s,e.length)},R:function(t,e){const n=Gn(t);return oe(n,e.length)},u:function(t,e){const n=t.getFullYear();return oe(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 oe(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 oe(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 oe(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 a=ad(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):oe(a,e.length)},I:function(t,e,n){const r=rd(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):oe(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=cb(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):oe(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 a=t.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return oe(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return oe(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return oe(a,e.length);case"io":return n.ordinalNumber(a,{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 a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=ca.noon:r===0?a=ca.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=ca.evening:r>=12?a=ca.afternoon:r>=4?a=ca.morning:a=ca.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{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"}):oe(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):oe(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 ub(r);case"XXXX":case"XX":return Sr(r);case"XXXXX":case"XXX":default:return Sr(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return ub(r);case"xxxx":case"xx":return Sr(r);case"xxxxx":case"xxx":default:return Sr(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+db(r,":");case"OOOO":default:return"GMT"+Sr(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+db(r,":");case"zzzz":default:return"GMT"+Sr(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return oe(r,e.length)},T:function(t,e,n){return oe(+t,e.length)}};function db(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),s=r%60;return s===0?n+String(a):n+String(a)+e+oe(s,2)}function ub(t,e){return t%60===0?(t>0?"-":"+")+oe(Math.abs(t)/60,2):Sr(t,e)}function Sr(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=oe(Math.trunc(r/60),2),s=oe(r%60,2);return n+a+e+s}const fb=(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"})}},hb=(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"})}},ui={p:hb,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return fb(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",fb(r,e)).replace("{{time}}",hb(a,e))}},KC=/^D+$/,QC=/^Y+$/,ZC=["D","DD","YY","YYYY"];function gb(t){return KC.test(t)}function mb(t){return QC.test(t)}function od(t,e,n){const r=JC(t,e,n);if(console.warn(r),ZC.includes(t))throw new RangeError(r)}function JC(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 qC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eE=/^'([^]*?)'?$/,tE=/''/g,nE=/[a-zA-Z]/;function fi(t,e,n){var d,u,f,h,m,p,b,x;const r=ht(),a=(n==null?void 0:n.locale)??r.locale??la,s=(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??((x=(b=r.locale)==null?void 0:b.options)==null?void 0:x.weekStartsOn)??0,i=X(t,n==null?void 0:n.in);if(!Mn(i))throw new RangeError("Invalid time value");let l=e.match($C).map(w=>{const k=w[0];if(k==="p"||k==="P"){const v=ui[k];return v(w,a.formatLong)}return w}).join("").match(qC).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const k=w[0];if(k==="'")return{isToken:!1,value:rE(w)};if(sd[k])return{isToken:!0,value:w};if(k.match(nE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:w}});a.localize.preprocessor&&(l=a.localize.preprocessor(i,l));const c={firstWeekContainsDate:s,weekStartsOn:o,locale:a};return l.map(w=>{if(!w.isToken)return w.value;const k=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&mb(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&gb(k))&&od(k,e,String(t));const v=sd[k[0]];return v(i,k,a.localize,c)}).join("")}function rE(t){const e=t.match(eE);return e?e[1].replace(tE,"'"):t}function pb(t,e,n){const r=ht(),a=(n==null?void 0:n.locale)??r.locale??la,s=2520,o=on(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]=De(n==null?void 0:n.in,...o>0?[e,t]:[t,e]),d=oa(c,l),u=(kt(c)-kt(l))/1e3,f=Math.round((d-u)/60);let h;if(f<2)return n!=null&&n.includeSeconds?d<5?a.formatDistance("lessThanXSeconds",5,i):d<10?a.formatDistance("lessThanXSeconds",10,i):d<20?a.formatDistance("lessThanXSeconds",20,i):d<40?a.formatDistance("halfAMinute",0,i):d<60?a.formatDistance("lessThanXMinutes",1,i):a.formatDistance("xMinutes",1,i):f===0?a.formatDistance("lessThanXMinutes",1,i):a.formatDistance("xMinutes",f,i);if(f<45)return a.formatDistance("xMinutes",f,i);if(f<90)return a.formatDistance("aboutXHours",1,i);if(f<qo){const m=Math.round(f/60);return a.formatDistance("aboutXHours",m,i)}else{if(f<s)return a.formatDistance("xDays",1,i);if(f<na){const m=Math.round(f/qo);return a.formatDistance("xDays",m,i)}else if(f<na*2)return h=Math.round(f/na),a.formatDistance("aboutXMonths",h,i)}if(h=ii(c,l),h<12){const m=Math.round(f/na);return a.formatDistance("xMonths",m,i)}else{const m=h%12,p=Math.trunc(h/12);return m<3?a.formatDistance("aboutXYears",p,i):m<9?a.formatDistance("overXYears",p,i):a.formatDistance("almostXYears",p+1,i)}}function bb(t,e,n){const r=ht(),a=(n==null?void 0:n.locale)??r.locale??la,s=on(t,e);if(isNaN(s))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:s}),[i,l]=De(n==null?void 0:n.in,...s>0?[e,t]:[t,e]),c=Qn((n==null?void 0:n.roundingMethod)??"round"),d=l.getTime()-i.getTime(),u=d/Dn,f=kt(l)-kt(i),h=(d-f)/Dn,m=n==null?void 0:n.unit;let p;if(m?p=m:u<1?p="second":u<60?p="minute":u<qo?p="hour":h<na?p="day":h<jp?p="month":p="year",p==="second"){const b=c(d/1e3);return a.formatDistance("xSeconds",b,o)}else if(p==="minute"){const b=c(u);return a.formatDistance("xMinutes",b,o)}else if(p==="hour"){const b=c(u/60);return a.formatDistance("xHours",b,o)}else if(p==="day"){const b=c(h/qo);return a.formatDistance("xDays",b,o)}else if(p==="month"){const b=c(h/na);return b===12&&m!=="month"?a.formatDistance("xYears",1,o):a.formatDistance("xMonths",b,o)}else{const b=c(h/jp);return a.formatDistance("xYears",b,o)}}function aE(t,e){return pb(t,Qe(t),e)}function sE(t,e){return bb(t,Qe(t),e)}const oE=["years","months","weeks","days","hours","minutes","seconds"];function iE(t,e){const n=ht(),r=(e==null?void 0:e.locale)??n.locale??la,a=(e==null?void 0:e.format)??oE,s=(e==null?void 0:e.zero)??!1,o=(e==null?void 0:e.delimiter)??" ";return r.formatDistance?a.reduce((l,c)=>{const d=`x${c.replace(/(^.)/,f=>f.toUpperCase())}`,u=t[c];return u!==void 0&&(s||t[c])?l.concat(r.formatDistance(d,u)):l},[]).join(o):""}function lE(t,e){const n=X(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",a=(e==null?void 0:e.representation)??"complete";let s="",o="";const i=r==="extended"?"-":"",l=r==="extended"?":":"";if(a!=="time"){const c=oe(n.getDate(),2),d=oe(n.getMonth()+1,2);s=`${oe(n.getFullYear(),4)}${i}${d}${i}${c}`}if(a!=="date"){const c=n.getTimezoneOffset();if(c!==0){const p=Math.abs(c),b=oe(Math.trunc(p/60),2),x=oe(p%60,2);o=`${c<0?"+":"-"}${b}:${x}`}else o="Z";const d=oe(n.getHours(),2),u=oe(n.getMinutes(),2),f=oe(n.getSeconds(),2),h=s===""?"":"T",m=[d,u,f].join(l);s=`${s}${h}${m}${o}`}return s}function cE(t,e){const n=X(t,e==null?void 0:e.in);if(!Mn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",a=(e==null?void 0:e.representation)??"complete";let s="";const o=r==="extended"?"-":"",i=r==="extended"?":":"";if(a!=="time"){const l=oe(n.getDate(),2),c=oe(n.getMonth()+1,2);s=`${oe(n.getFullYear(),4)}${o}${c}${o}${l}`}if(a!=="date"){const l=oe(n.getHours(),2),c=oe(n.getMinutes(),2),d=oe(n.getSeconds(),2);s=`${s}${s===""?"":" "}${l}${i}${c}${i}${d}`}return s}function dE(t){const{years:e=0,months:n=0,days:r=0,hours:a=0,minutes:s=0,seconds:o=0}=t;return`P${e}Y${n}M${r}DT${a}H${s}M${o}S`}function uE(t,e){const n=X(t,e==null?void 0:e.in);if(!Mn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.fractionDigits)??0,a=oe(n.getDate(),2),s=oe(n.getMonth()+1,2),o=n.getFullYear(),i=oe(n.getHours(),2),l=oe(n.getMinutes(),2),c=oe(n.getSeconds(),2);let d="";if(r>0){const h=n.getMilliseconds(),m=Math.trunc(h*Math.pow(10,r-3));d="."+oe(m,r)}let u="";const f=n.getTimezoneOffset();if(f!==0){const h=Math.abs(f),m=oe(Math.trunc(h/60),2),p=oe(h%60,2);u=`${f<0?"+":"-"}${m}:${p}`}else u="Z";return`${o}-${s}-${a}T${i}:${l}:${c}${d}${u}`}const fE=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],hE=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gE(t){const e=X(t);if(!Mn(e))throw new RangeError("Invalid time value");const n=fE[e.getUTCDay()],r=oe(e.getUTCDate(),2),a=hE[e.getUTCMonth()],s=e.getUTCFullYear(),o=oe(e.getUTCHours(),2),i=oe(e.getUTCMinutes(),2),l=oe(e.getUTCSeconds(),2);return`${n}, ${r} ${a} ${s} ${o}:${i}:${l} GMT`}function mE(t,e,n){var u,f,h,m;const[r,a]=De(n==null?void 0:n.in,t,e),s=ht(),o=(n==null?void 0:n.locale)??s.locale??la,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)??s.weekStartsOn??((m=(h=s.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,l=sn(r,a);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,a,{locale:o,weekStartsOn:i});return fi(r,d,{locale:o,weekStartsOn:i})}function pE(t,e){return X(t*1e3,e==null?void 0:e.in)}function yb(t,e){return X(t,e==null?void 0:e.in).getDate()}function hi(t,e){return X(t,e==null?void 0:e.in).getDay()}function vb(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=n.getMonth(),s=se(n,0);return s.setFullYear(r,a+1,0),s.setHours(0,0,0,0),s.getDate()}function xb(t,e){const r=X(t,e==null?void 0:e.in).getFullYear();return r%400===0||r%4===0&&r%100!==0}function bE(t,e){const n=X(t,e==null?void 0:e.in);return Number.isNaN(+n)?NaN:xb(n)?366:365}function yE(t,e){const r=X(t,e==null?void 0:e.in).getFullYear();return Math.floor(r/10)*10}function wb(){return Object.assign({},ht())}function vE(t,e){return X(t,e==null?void 0:e.in).getHours()}function kb(t,e){const n=X(t,e==null?void 0:e.in).getDay();return n===0?7:n}function xE(t,e){const n=Kn(t,e),a=+Kn(ti(n,60))-+n;return Math.round(a/fs)}function wE(t){return X(t).getMilliseconds()}function kE(t,e){return X(t,e==null?void 0:e.in).getMinutes()}function _E(t,e){return X(t,e==null?void 0:e.in).getMonth()}function SE(t,e){const[n,r]=[+X(t.start),+X(t.end)].sort((u,f)=>u-f),[a,s]=[+X(e.start),+X(e.end)].sort((u,f)=>u-f);if(!(n<s&&a<r))return 0;const i=a<n?n:a,l=i-kt(i),c=s>r?r:s,d=c-kt(c);return Math.ceil((d-l)/Np)}function OE(t){return X(t).getSeconds()}function DE(t){return+X(t)}function ME(t){return Math.trunc(+X(t)/1e3)}function CE(t,e){var l,c,d,u;const n=ht(),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,a=yb(X(t,e==null?void 0:e.in));if(isNaN(a))return NaN;const s=hi(li(t,e));let o=r-s;o<=0&&(o+=7);const i=a-o;return Math.ceil(i/7)+1}function _b(t,e){const n=X(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),X(n,e==null?void 0:e.in)}function EE(t,e){const n=X(t,e==null?void 0:e.in);return ai(_b(n,e),li(n,e),e)+1}function TE(t,e){return X(t,e==null?void 0:e.in).getFullYear()}function PE(t){return Math.trunc(t*kr)}function NE(t){return Math.trunc(t*Ip)}function jE(t){return Math.trunc(t*$o)}function IE(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);if(isNaN(+r))throw new TypeError("Start date is invalid");if(isNaN(+a))throw new TypeError("End date is invalid");if(n!=null&&n.assertPositive&&+r>+a)throw new TypeError("End date must be after start date");return{start:r,end:a}}function RE(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t),a={},s=ab(r,n);s&&(a.years=s);const o=ra(n,{years:a.years}),i=ii(r,o);i&&(a.months=i);const l=ra(o,{months:a.months}),c=Jc(r,l);c&&(a.days=c);const d=ra(l,{days:a.days}),u=si(r,d);u&&(a.hours=u);const f=ra(d,{hours:a.hours}),h=oi(r,f);h&&(a.minutes=h);const m=ra(f,{minutes:a.minutes}),p=oa(r,m);return p&&(a.seconds=p),a}function AE(t,e,n){let r;return FE(e)?r=e:n=e,new Intl.DateTimeFormat(n==null?void 0:n.locale,r).format(X(t))}function FE(t){return t!==void 0&&!("locale"in t)}function LE(t,e,n){let r=0,a;const[s,o]=De(n==null?void 0:n.in,t,e);if(n!=null&&n.unit)a=n==null?void 0:n.unit,a==="second"?r=oa(s,o):a==="minute"?r=oi(s,o):a==="hour"?r=si(s,o):a==="day"?r=sn(s,o):a==="week"?r=ai(s,o):a==="month"?r=ni(s,o):a==="quarter"?r=ri(s,o):a==="year"&&(r=ms(s,o));else{const l=oa(s,o);Math.abs(l)<Xc?(r=oa(s,o),a="second"):Math.abs(l)<$o?(r=oi(s,o),a="minute"):Math.abs(l)<Gc&&Math.abs(sn(s,o))<1?(r=si(s,o),a="hour"):Math.abs(l)<B2&&(r=sn(s,o))&&Math.abs(r)<7?a="day":Math.abs(l)<Wp?(r=ai(s,o),a="week"):Math.abs(l)<H2?(r=ni(s,o),a="month"):Math.abs(l)<Lp&&ri(s,o)<4?(r=ri(s,o),a="quarter"):(r=ms(s,o),a="year")}return new Intl.RelativeTimeFormat(n==null?void 0:n.locale,{numeric:"auto",...n}).format(r,a)}function WE(t,e){return+X(t)>+X(e)}function zE(t,e){return+X(t)<+X(e)}function BE(t,e){return+X(t)==+X(e)}function HE(t,e,n){const r=new Date(t,e,n);return r.getFullYear()===t&&r.getMonth()===e&&r.getDate()===n}function YE(t,e){return X(t,e==null?void 0:e.in).getDate()===1}function VE(t,e){return X(t,e==null?void 0:e.in).getDay()===5}function UE(t){return+X(t)>Date.now()}function Sb(t,e){const n=XE(e)?new e(0):se(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function XE(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const GE=10;class Ob{constructor(){J(this,"subPriority",0)}validate(e,n){return!0}}class KE extends Ob{constructor(e,n,r,a,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=a,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class QE extends Ob{constructor(n,r){super();J(this,"priority",GE);J(this,"subPriority",-1);this.context=n||(a=>se(r,a))}set(n,r){return r.timestampIsSet?n:se(n,Sb(n,this.context))}}class ve{run(e,n,r,a){const s=this.parse(e,n,r,a);return s?{setter:new KE(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class ZE extends ve{constructor(){super(...arguments);J(this,"priority",140);J(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,a){switch(r){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"})||a.era(n,{width:"narrow"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})||a.era(n,{width:"abbreviated"})||a.era(n,{width:"narrow"})}}set(n,r,a){return r.era=a,n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}}const Ye={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}/},un={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 Ve(t,e){return t&&{value:e(t.value),rest:t.rest}}function Fe(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function fn(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,a=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(a*kr+s*Dn+o*Uc),rest:e.slice(n[0].length)}}function Db(t){return Fe(Ye.anyDigitsSigned,t)}function ze(t,e){switch(t){case 1:return Fe(Ye.singleDigit,e);case 2:return Fe(Ye.twoDigits,e);case 3:return Fe(Ye.threeDigits,e);case 4:return Fe(Ye.fourDigits,e);default:return Fe(new RegExp("^\\d{1,"+t+"}"),e)}}function gi(t,e){switch(t){case 1:return Fe(Ye.singleDigitSigned,e);case 2:return Fe(Ye.twoDigitsSigned,e);case 3:return Fe(Ye.threeDigitsSigned,e);case 4:return Fe(Ye.fourDigitsSigned,e);default:return Fe(new RegExp("^-?\\d{1,"+t+"}"),e)}}function id(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 Mb(t,e){const n=e>0,r=n?e:1-e;let a;if(r<=50)a=t||100;else{const s=r+50,o=Math.trunc(s/100)*100,i=t>=s%100;a=t+o-(i?100:0)}return n?a:1-a}function Cb(t){return t%400===0||t%4===0&&t%100!==0}class JE extends ve{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,a){const s=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Ve(ze(4,n),s);case"yo":return Ve(a.ordinalNumber(n,{unit:"year"}),s);default:return Ve(ze(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,a){const s=n.getFullYear();if(a.isTwoDigitYear){const i=Mb(a.year,s);return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?a.year:1-a.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class qE extends ve{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,a){const s=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Ve(ze(4,n),s);case"Yo":return Ve(a.ordinalNumber(n,{unit:"year"}),s);default:return Ve(ze(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,a,s){const o=ci(n,s);if(a.isTwoDigitYear){const l=Mb(a.year,o);return n.setFullYear(l,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),it(n,s)}const i=!("era"in r)||r.era===1?a.year:1-a.year;return n.setFullYear(i,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),it(n,s)}}class $E extends ve{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return gi(r==="R"?4:r.length,n)}set(n,r,a){const s=se(n,0);return s.setFullYear(a,0,4),s.setHours(0,0,0,0),Xt(s)}}class eT extends ve{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return gi(r==="u"?4:r.length,n)}set(n,r,a){return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}}class tT extends ve{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"Q":case"QQ":return ze(r.length,n);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"})||a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})||a.quarter(n,{width:"abbreviated",context:"formatting"})||a.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,a){return n.setMonth((a-1)*3,1),n.setHours(0,0,0,0),n}}class nT extends ve{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"q":case"qq":return ze(r.length,n);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"})||a.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})||a.quarter(n,{width:"abbreviated",context:"standalone"})||a.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,a){return n.setMonth((a-1)*3,1),n.setHours(0,0,0,0),n}}class rT extends ve{constructor(){super(...arguments);J(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);J(this,"priority",110)}parse(n,r,a){const s=o=>o-1;switch(r){case"M":return Ve(Fe(Ye.month,n),s);case"MM":return Ve(ze(2,n),s);case"Mo":return Ve(a.ordinalNumber(n,{unit:"month"}),s);case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"})||a.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})||a.month(n,{width:"abbreviated",context:"formatting"})||a.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,a){return n.setMonth(a,1),n.setHours(0,0,0,0),n}}class aT extends ve{constructor(){super(...arguments);J(this,"priority",110);J(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,a){const s=o=>o-1;switch(r){case"L":return Ve(Fe(Ye.month,n),s);case"LL":return Ve(ze(2,n),s);case"Lo":return Ve(a.ordinalNumber(n,{unit:"month"}),s);case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"})||a.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})||a.month(n,{width:"abbreviated",context:"standalone"})||a.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,a){return n.setMonth(a,1),n.setHours(0,0,0,0),n}}function Eb(t,e,n){const r=X(t,n==null?void 0:n.in),a=ad(r,n)-e;return r.setDate(r.getDate()-a*7),X(r,n==null?void 0:n.in)}class sT extends ve{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,a){switch(r){case"w":return Fe(Ye.week,n);case"wo":return a.ordinalNumber(n,{unit:"week"});default:return ze(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,a,s){return it(Eb(n,a,s),s)}}function Tb(t,e,n){const r=X(t,n==null?void 0:n.in),a=rd(r,n)-e;return r.setDate(r.getDate()-a*7),r}class oT extends ve{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,a){switch(r){case"I":return Fe(Ye.week,n);case"Io":return a.ordinalNumber(n,{unit:"week"});default:return ze(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,a){return Xt(Tb(n,a))}}const iT=[31,28,31,30,31,30,31,31,30,31,30,31],lT=[31,29,31,30,31,30,31,31,30,31,30,31];class cT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"subPriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"d":return Fe(Ye.date,n);case"do":return a.ordinalNumber(n,{unit:"date"});default:return ze(r.length,n)}}validate(n,r){const a=n.getFullYear(),s=Cb(a),o=n.getMonth();return s?r>=1&&r<=lT[o]:r>=1&&r<=iT[o]}set(n,r,a){return n.setDate(a),n.setHours(0,0,0,0),n}}class dT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"subpriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,a){switch(r){case"D":case"DD":return Fe(Ye.dayOfYear,n);case"Do":return a.ordinalNumber(n,{unit:"date"});default:return ze(r.length,n)}}validate(n,r){const a=n.getFullYear();return Cb(a)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,a){return n.setMonth(0,a),n.setHours(0,0,0,0),n}}function mi(t,e,n){var u,f,h,m;const r=ht(),a=(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,s=X(t,n==null?void 0:n.in),o=s.getDay(),l=(e%7+7)%7,c=7-a,d=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return Wt(s,d,n)}class uT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})||a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,a,s){return n=mi(n,a,s),n.setHours(0,0,0,0),n}}class fT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,a,s){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+s.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return Ve(ze(r.length,n),o);case"eo":return Ve(a.ordinalNumber(n,{unit:"day"}),o);case"eee":return a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"eeeee":return a.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(n,{width:"wide",context:"formatting"})||a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,a,s){return n=mi(n,a,s),n.setHours(0,0,0,0),n}}class hT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,a,s){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+s.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return Ve(ze(r.length,n),o);case"co":return Ve(a.ordinalNumber(n,{unit:"day"}),o);case"ccc":return a.day(n,{width:"abbreviated",context:"standalone"})||a.day(n,{width:"short",context:"standalone"})||a.day(n,{width:"narrow",context:"standalone"});case"ccccc":return a.day(n,{width:"narrow",context:"standalone"});case"cccccc":return a.day(n,{width:"short",context:"standalone"})||a.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(n,{width:"wide",context:"standalone"})||a.day(n,{width:"abbreviated",context:"standalone"})||a.day(n,{width:"short",context:"standalone"})||a.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,a,s){return n=mi(n,a,s),n.setHours(0,0,0,0),n}}function Pb(t,e,n){const r=X(t,n==null?void 0:n.in),a=kb(r,n),s=e-a;return Wt(r,s,n)}class gT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,a){const s=o=>o===0?7:o;switch(r){case"i":case"ii":return ze(r.length,n);case"io":return a.ordinalNumber(n,{unit:"day"});case"iii":return Ve(a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return Ve(a.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Ve(a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Ve(a.day(n,{width:"wide",context:"formatting"})||a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"}),s)}}validate(n,r){return r>=1&&r<=7}set(n,r,a){return n=Pb(n,a),n.setHours(0,0,0,0),n}}class mT extends ve{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,a){switch(r){case"a":case"aa":case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})||a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,a){return n.setHours(id(a),0,0,0),n}}class pT extends ve{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,a){switch(r){case"b":case"bb":case"bbb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})||a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,a){return n.setHours(id(a),0,0,0),n}}class bT extends ve{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,a){switch(r){case"B":case"BB":case"BBB":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})||a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,a){return n.setHours(id(a),0,0,0),n}}class yT extends ve{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,a){switch(r){case"h":return Fe(Ye.hour12h,n);case"ho":return a.ordinalNumber(n,{unit:"hour"});default:return ze(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,a){const s=n.getHours()>=12;return s&&a<12?n.setHours(a+12,0,0,0):!s&&a===12?n.setHours(0,0,0,0):n.setHours(a,0,0,0),n}}class vT extends ve{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,a){switch(r){case"H":return Fe(Ye.hour23h,n);case"Ho":return a.ordinalNumber(n,{unit:"hour"});default:return ze(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,a){return n.setHours(a,0,0,0),n}}class xT extends ve{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,a){switch(r){case"K":return Fe(Ye.hour11h,n);case"Ko":return a.ordinalNumber(n,{unit:"hour"});default:return ze(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,a){return n.getHours()>=12&&a<12?n.setHours(a+12,0,0,0):n.setHours(a,0,0,0),n}}class wT extends ve{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,a){switch(r){case"k":return Fe(Ye.hour24h,n);case"ko":return a.ordinalNumber(n,{unit:"hour"});default:return ze(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,a){const s=a<=24?a%24:a;return n.setHours(s,0,0,0),n}}class kT extends ve{constructor(){super(...arguments);J(this,"priority",60);J(this,"incompatibleTokens",["t","T"])}parse(n,r,a){switch(r){case"m":return Fe(Ye.minute,n);case"mo":return a.ordinalNumber(n,{unit:"minute"});default:return ze(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,a){return n.setMinutes(a,0,0),n}}class _T extends ve{constructor(){super(...arguments);J(this,"priority",50);J(this,"incompatibleTokens",["t","T"])}parse(n,r,a){switch(r){case"s":return Fe(Ye.second,n);case"so":return a.ordinalNumber(n,{unit:"second"});default:return ze(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,a){return n.setSeconds(a,0),n}}class ST extends ve{constructor(){super(...arguments);J(this,"priority",30);J(this,"incompatibleTokens",["t","T"])}parse(n,r){const a=s=>Math.trunc(s*Math.pow(10,-r.length+3));return Ve(ze(r.length,n),a)}set(n,r,a){return n.setMilliseconds(a),n}}class OT extends ve{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return fn(un.basicOptionalMinutes,n);case"XX":return fn(un.basic,n);case"XXXX":return fn(un.basicOptionalSeconds,n);case"XXXXX":return fn(un.extendedOptionalSeconds,n);case"XXX":default:return fn(un.extended,n)}}set(n,r,a){return r.timestampIsSet?n:se(n,n.getTime()-kt(n)-a)}}class DT extends ve{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return fn(un.basicOptionalMinutes,n);case"xx":return fn(un.basic,n);case"xxxx":return fn(un.basicOptionalSeconds,n);case"xxxxx":return fn(un.extendedOptionalSeconds,n);case"xxx":default:return fn(un.extended,n)}}set(n,r,a){return r.timestampIsSet?n:se(n,n.getTime()-kt(n)-a)}}class MT extends ve{constructor(){super(...arguments);J(this,"priority",40);J(this,"incompatibleTokens","*")}parse(n){return Db(n)}set(n,r,a){return[se(n,a*1e3),{timestampIsSet:!0}]}}class CT extends ve{constructor(){super(...arguments);J(this,"priority",20);J(this,"incompatibleTokens","*")}parse(n){return Db(n)}set(n,r,a){return[se(n,a),{timestampIsSet:!0}]}}const Nb={G:new ZE,y:new JE,Y:new qE,R:new $E,u:new eT,Q:new tT,q:new nT,M:new rT,L:new aT,w:new sT,I:new oT,d:new cT,D:new dT,E:new uT,e:new fT,c:new hT,i:new gT,a:new mT,b:new pT,B:new bT,h:new yT,H:new vT,K:new xT,k:new wT,m:new kT,s:new _T,S:new ST,X:new OT,x:new DT,t:new MT,T:new CT},ET=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PT=/^'([^]*?)'?$/,NT=/''/g,jT=/\S/,IT=/[a-zA-Z]/;function jb(t,e,n,r){var b,x,w,k,v,y,S,N;const a=()=>se((r==null?void 0:r.in)||n,NaN),s=wb(),o=(r==null?void 0:r.locale)??s.locale??la,i=(r==null?void 0:r.firstWeekContainsDate)??((x=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:x.firstWeekContainsDate)??s.firstWeekContainsDate??((k=(w=s.locale)==null?void 0:w.options)==null?void 0:k.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((y=(v=r==null?void 0:r.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??s.weekStartsOn??((N=(S=s.locale)==null?void 0:S.options)==null?void 0:N.weekStartsOn)??0;if(!e)return t?a():X(n,r==null?void 0:r.in);const c={firstWeekContainsDate:i,weekStartsOn:l,locale:o},d=[new QE(r==null?void 0:r.in,n)],u=e.match(TT).map(C=>{const P=C[0];if(P in ui){const E=ui[P];return E(C,o.formatLong)}return C}).join("").match(ET),f=[];for(let C of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&mb(C)&&od(C,e,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&gb(C)&&od(C,e,t);const P=C[0],E=Nb[P];if(E){const{incompatibleTokens:B}=E;if(Array.isArray(B)){const O=f.find(D=>B.includes(D.token)||D.token===P);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${C}\` at the same time`)}else if(E.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);f.push({token:P,fullToken:C});const F=E.run(t,C,o.match,c);if(!F)return a();d.push(F.setter),t=F.rest}else{if(P.match(IT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");if(C==="''"?C="'":P==="'"&&(C=RT(C)),t.indexOf(C)===0)t=t.slice(C.length);else return a()}}if(t.length>0&&jT.test(t))return a();const h=d.map(C=>C.priority).sort((C,P)=>P-C).filter((C,P,E)=>E.indexOf(C)===P).map(C=>d.filter(P=>P.priority===C).sort((P,E)=>E.subPriority-P.subPriority)).map(C=>C[0]);let m=X(n,r==null?void 0:r.in);if(isNaN(+m))return a();const p={};for(const C of h){if(!C.validate(m,c))return a();const P=C.set(m,p,c);Array.isArray(P)?(m=P[0],Object.assign(p,P[1])):m=P}return m}function RT(t){return t.match(PT)[1].replace(NT,"'")}function AT(t,e,n){return Mn(jb(t,e,new Date,n))}function FT(t,e){return X(t,e==null?void 0:e.in).getDay()===1}function LT(t){return+X(t)<Date.now()}function ld(t,e){const n=X(t,e==null?void 0:e.in);return n.setMinutes(0,0,0),n}function Ib(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+ld(r)==+ld(a)}function cd(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+it(r,n)==+it(a,n)}function Rb(t,e,n){return cd(t,e,{...n,weekStartsOn:1})}function WT(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+Kn(r)==+Kn(a)}function dd(t,e){const n=X(t,e==null?void 0:e.in);return n.setSeconds(0,0),n}function Ab(t,e){return+dd(t)==+dd(e)}function Fb(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function Lb(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+_r(r)==+_r(a)}function ud(t,e){const n=X(t,e==null?void 0:e.in);return n.setMilliseconds(0),n}function Wb(t,e){return+ud(t)==+ud(e)}function zb(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return r.getFullYear()===a.getFullYear()}function zT(t,e){return Ib(X(t,e==null?void 0:e.in),Qe((e==null?void 0:e.in)||t))}function BT(t,e){return Rb(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function HT(t){return Ab(t,Qe(t))}function YT(t,e){return Fb(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function VT(t,e){return Lb(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function UT(t){return Wb(t,Qe(t))}function XT(t,e){return cd(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t),e)}function GT(t,e){return zb(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function KT(t,e){return X(t,e==null?void 0:e.in).getDay()===4}function QT(t,e){return gs(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function ZT(t,e){return gs(t,Wt(Qe((e==null?void 0:e.in)||t),1),e)}function JT(t,e){return X(t,e==null?void 0:e.in).getDay()===2}function qT(t,e){return X(t,e==null?void 0:e.in).getDay()===3}function $T(t,e,n){const r=+X(t,n==null?void 0:n.in),[a,s]=[+X(e.start,n==null?void 0:n.in),+X(e.end,n==null?void 0:n.in)].sort((o,i)=>o-i);return r>=a&&r<=s}function pi(t,e,n){return Wt(t,-e,n)}function eP(t,e){return gs(se((e==null?void 0:e.in)||t,t),pi(Qe((e==null?void 0:e.in)||t),1))}function tP(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=9+Math.floor(r/10)*10;return n.setFullYear(a+1,0,0),n.setHours(0,0,0,0),X(n,e==null?void 0:e.in)}function Bb(t,e){var i,l,c,d;const n=ht(),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,a=X(t,e==null?void 0:e.in),s=a.getDay(),o=(s<r?-7:0)+6-(s-r);return a.setHours(0,0,0,0),a.setDate(a.getDate()+o),a}function nP(t,e){return Bb(t,{...e,weekStartsOn:1})}function rP(t,e){const n=Gn(t,e),r=se((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Xt(r,e);return a.setDate(a.getDate()-1),a}function aP(t,e){const n=X(t,e==null?void 0:e.in),r=n.getMonth(),a=r-r%3+3;return n.setMonth(a,0),n.setHours(0,0,0,0),n}function sP(t,e){const n=X(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 oP=/(\w)\1*|''|'(''|[^'])+('|$)|./g,iP=/^'([^]*?)'?$/,lP=/''/g,cP=/[a-zA-Z]/;function dP(t,e){const n=X(t);if(!Mn(n))throw new RangeError("Invalid time value");const r=e.match(oP);return r?r.map(s=>{if(s==="''")return"'";const o=s[0];if(o==="'")return uP(s);const i=dn[o];if(i)return i(n,s);if(o.match(cP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return s}).join(""):""}function uP(t){const e=t.match(iP);return e?e[1].replace(lP,"'"):t}function fP({years:t,months:e,weeks:n,days:r,hours:a,minutes:s,seconds:o}){let i=0;t&&(i+=t*Jo),e&&(i+=e*(Jo/12)),n&&(i+=n*7),r&&(i+=r);let l=i*24*60*60;return a&&(l+=a*60*60),s&&(l+=s*60),o&&(l+=o),Math.trunc(l*1e3)}function hP(t){const e=t/kr;return Math.trunc(e)}function gP(t){const e=t/Dn;return Math.trunc(e)}function mP(t){const e=t/Uc;return Math.trunc(e)}function pP(t){const e=t/Ip;return Math.trunc(e)}function bP(t){return Math.trunc(t*Dn)}function yP(t){return Math.trunc(t*Xc)}function vP(t){const e=t/Rp;return Math.trunc(e)}function xP(t){const e=t/Ap;return Math.trunc(e)}function Zn(t,e,n){let r=e-hi(t,n);return r<=0&&(r+=7),Wt(t,r,n)}function wP(t,e){return Zn(t,5,e)}function kP(t,e){return Zn(t,1,e)}function _P(t,e){return Zn(t,6,e)}function SP(t,e){return Zn(t,0,e)}function OP(t,e){return Zn(t,4,e)}function DP(t,e){return Zn(t,2,e)}function MP(t,e){return Zn(t,3,e)}function CP(t,e){const n=()=>se(e==null?void 0:e.in,NaN),r=(e==null?void 0:e.additionalDigits)??2,a=NP(t);let s;if(a.date){const c=jP(a.date,r);s=IP(c.restDateString,c.year)}if(!s||isNaN(+s))return n();const o=+s;let i=0,l;if(a.time&&(i=RP(a.time),isNaN(i)))return n();if(a.timezone){if(l=AP(a.timezone),isNaN(l))return n()}else{const c=new Date(o+i),d=X(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 X(o+i+l,e==null?void 0:e.in)}const bi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},EP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,TP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,PP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function NP(t){const e={},n=t.split(bi.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],bi.timeZoneDelimiter.test(e.date)&&(e.date=t.split(bi.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const a=bi.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function jP(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 a=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?a:s*100,restDateString:t.slice((r[1]||r[2]).length)}}function IP(t,e){if(e===null)return new Date(NaN);const n=t.match(EP);if(!n)return new Date(NaN);const r=!!n[4],a=ps(n[1]),s=ps(n[2])-1,o=ps(n[3]),i=ps(n[4]),l=ps(n[5])-1;if(r)return BP(e,i,l)?FP(e,i,l):new Date(NaN);{const c=new Date(0);return!WP(e,s,o)||!zP(e,a)?new Date(NaN):(c.setUTCFullYear(e,s,Math.max(a,o)),c)}}function ps(t){return t?parseInt(t):1}function RP(t){const e=t.match(TP);if(!e)return NaN;const n=fd(e[1]),r=fd(e[2]),a=fd(e[3]);return HP(n,r,a)?n*kr+r*Dn+a*1e3:NaN}function fd(t){return t&&parseFloat(t.replace(",","."))||0}function AP(t){if(t==="Z")return 0;const e=t.match(PP);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return YP(r,a)?n*(r*kr+a*Dn):NaN}function FP(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const a=r.getUTCDay()||7,s=(e-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+s),r}const LP=[31,null,31,30,31,30,31,31,30,31,30,31];function Hb(t){return t%400===0||t%4===0&&t%100!==0}function WP(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(LP[e]||(Hb(t)?29:28))}function zP(t,e){return e>=1&&e<=(Hb(t)?366:365)}function BP(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function HP(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function YP(t,e){return e>=0&&e<=59}function VP(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 X(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 Jn(t,e,n){let r=hi(t,n)-e;return r<=0&&(r+=7),pi(t,r,n)}function UP(t,e){return Jn(t,5,e)}function XP(t,e){return Jn(t,1,e)}function GP(t,e){return Jn(t,6,e)}function KP(t,e){return Jn(t,0,e)}function QP(t,e){return Jn(t,4,e)}function ZP(t,e){return Jn(t,2,e)}function JP(t,e){return Jn(t,3,e)}function qP(t){return Math.trunc(t*Rp)}function $P(t){const e=t/Fp;return Math.trunc(e)}function eN(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>12)return se((e==null?void 0:e.in)||t,NaN);const r=X(t,e==null?void 0:e.in),a=r.getMinutes()/60,s=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,i=r.getHours()+a+s+o,l=(e==null?void 0:e.roundingMethod)??"round",d=Qn(l)(i/n)*n;return r.setHours(d,0,0,0),r}function tN(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>30)return se(t,NaN);const r=X(t,e==null?void 0:e.in),a=r.getSeconds()/60,s=r.getMilliseconds()/1e3/60,o=r.getMinutes()+a+s,i=(e==null?void 0:e.roundingMethod)??"round",c=Qn(i)(o/n)*n;return r.setMinutes(c,0,0),r}function nN(t){const e=t/$o;return Math.trunc(e)}function rN(t){return t*Uc}function aN(t){const e=t/Xc;return Math.trunc(e)}function hd(t,e,n){const r=X(t,n==null?void 0:n.in),a=r.getFullYear(),s=r.getDate(),o=se((n==null?void 0:n.in)||t,0);o.setFullYear(a,e,15),o.setHours(0,0,0,0);const i=vb(o);return r.setMonth(e,Math.min(s,i)),r}function sN(t,e,n){let r=X(t,n==null?void 0:n.in);return isNaN(+r)?se((n==null?void 0:n.in)||t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=hd(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 oN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setDate(e),r}function iN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setMonth(0),r.setDate(e),r}function lN(t){const e={},n=ht();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]);Y2(e)}function cN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setHours(e),r}function dN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setMilliseconds(e),r}function uN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setMinutes(e),r}function fN(t,e,n){const r=X(t,n==null?void 0:n.in),a=Math.trunc(r.getMonth()/3)+1,s=e-a;return hd(r,r.getMonth()+s*3)}function hN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setSeconds(e),r}function gN(t,e,n){var l,c,d,u;const r=ht(),a=(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,s=sn(X(t,n==null?void 0:n.in),di(t,n),n),o=se((n==null?void 0:n.in)||t,0);o.setFullYear(e,0,a),o.setHours(0,0,0,0);const i=di(o,n);return i.setDate(i.getDate()+s),i}function mN(t,e,n){const r=X(t,n==null?void 0:n.in);return isNaN(+r)?se((n==null?void 0:n.in)||t,NaN):(r.setFullYear(e),r)}function pN(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=Math.floor(r/10)*10;return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}function bN(t){return sa(Date.now(),t)}function yN(t){const e=Qe(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),a=e.getDate(),s=se(t==null?void 0:t.in,0);return s.setFullYear(n,r,a+1),s.setHours(0,0,0,0),s}function vN(t){const e=Qe(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),a=e.getDate(),s=Qe(t==null?void 0:t.in);return s.setFullYear(n,r,a-1),s.setHours(0,0,0,0),s}function Yb(t,e,n){return hs(t,-e,n)}function xN(t,e,n){const{years:r=0,months:a=0,weeks:s=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Yb(t,a+r*12,n),u=pi(d,o+s*7,n),f=l+i*60,m=(c+f*60)*1e3;return se((n==null?void 0:n.in)||t,+u-m)}function wN(t,e,n){return Yp(t,-e,n)}function kN(t,e,n){return Vp(t,-e,n)}function _N(t,e,n){return ei(t,-e,n)}function SN(t,e,n){return Kc(t,-e,n)}function ON(t,e,n){return Qc(t,-e,n)}function DN(t,e,n){return Kp(t,-e,n)}function MN(t,e,n){return ti(t,-e,n)}function CN(t,e,n){return Qp(t,-e,n)}function EN(t){return Math.trunc(t*Pp)}function TN(t){return Math.trunc(t*Jo)}function PN(t){return Math.trunc(t*Ap)}function NN(t){return Math.trunc(t*Fp)}const Or=pu(Object.freeze(Object.defineProperty({__proto__:null,add:ra,addBusinessDays:Yp,addDays:Wt,addHours:Vp,addISOWeekYears:Gp,addMilliseconds:ei,addMinutes:Kc,addMonths:hs,addQuarters:Qc,addSeconds:Kp,addWeeks:ti,addYears:Qp,areIntervalsOverlapping:V2,clamp:U2,closestIndexTo:qp,closestTo:X2,compareAsc:on,compareDesc:G2,constructFrom:se,constructNow:Qe,daysToWeeks:K2,differenceInBusinessDays:Q2,differenceInCalendarDays:sn,differenceInCalendarISOWeekYears:eb,differenceInCalendarISOWeeks:Z2,differenceInCalendarMonths:ni,differenceInCalendarQuarters:ri,differenceInCalendarWeeks:ai,differenceInCalendarYears:ms,differenceInDays:Jc,differenceInHours:si,differenceInISOWeekYears:J2,differenceInMilliseconds:qc,differenceInMinutes:oi,differenceInMonths:ii,differenceInQuarters:q2,differenceInSeconds:oa,differenceInWeeks:$2,differenceInYears:ab,eachDayOfInterval:sb,eachHourOfInterval:eC,eachMinuteOfInterval:tC,eachMonthOfInterval:nC,eachQuarterOfInterval:rC,eachWeekOfInterval:aC,eachWeekendOfInterval:td,eachWeekendOfMonth:sC,eachWeekendOfYear:oC,eachYearOfInterval:iC,endOfDay:$c,endOfDecade:lC,endOfHour:cC,endOfISOWeek:dC,endOfISOWeekYear:uC,endOfMinute:fC,endOfMonth:ed,endOfQuarter:hC,endOfSecond:gC,endOfToday:mC,endOfTomorrow:pC,endOfWeek:ib,endOfYear:ob,endOfYesterday:bC,format:fi,formatDate:fi,formatDistance:pb,formatDistanceStrict:bb,formatDistanceToNow:aE,formatDistanceToNowStrict:sE,formatDuration:iE,formatISO:lE,formatISO9075:cE,formatISODuration:dE,formatRFC3339:uE,formatRFC7231:gE,formatRelative:mE,formatters:sd,fromUnixTime:pE,getDate:yb,getDay:hi,getDayOfYear:cb,getDaysInMonth:vb,getDaysInYear:bE,getDecade:yE,getDefaultOptions:wb,getHours:vE,getISODay:kb,getISOWeek:rd,getISOWeekYear:Gn,getISOWeeksInYear:xE,getMilliseconds:wE,getMinutes:kE,getMonth:_E,getOverlappingDaysInIntervals:SE,getQuarter:Zc,getSeconds:OE,getTime:DE,getUnixTime:ME,getWeek:ad,getWeekOfMonth:CE,getWeekYear:ci,getWeeksInMonth:EE,getYear:TE,hoursToMilliseconds:PE,hoursToMinutes:NE,hoursToSeconds:jE,interval:IE,intervalToDuration:RE,intlFormat:AE,intlFormatDistance:LE,isAfter:WE,isBefore:zE,isDate:$p,isEqual:BE,isExists:HE,isFirstDayOfMonth:YE,isFriday:VE,isFuture:UE,isLastDayOfMonth:rb,isLeapYear:xb,isMatch:AT,isMonday:FT,isPast:LT,isSameDay:gs,isSameHour:Ib,isSameISOWeek:Rb,isSameISOWeekYear:WT,isSameMinute:Ab,isSameMonth:Fb,isSameQuarter:Lb,isSameSecond:Wb,isSameWeek:cd,isSameYear:zb,isSaturday:Bp,isSunday:Hp,isThisHour:zT,isThisISOWeek:BT,isThisMinute:HT,isThisMonth:YT,isThisQuarter:VT,isThisSecond:UT,isThisWeek:XT,isThisYear:GT,isThursday:KT,isToday:QT,isTomorrow:ZT,isTuesday:JT,isValid:Mn,isWednesday:qT,isWeekend:aa,isWithinInterval:$T,isYesterday:eP,lastDayOfDecade:tP,lastDayOfISOWeek:nP,lastDayOfISOWeekYear:rP,lastDayOfMonth:_b,lastDayOfQuarter:aP,lastDayOfWeek:Bb,lastDayOfYear:sP,lightFormat:dP,lightFormatters:dn,longFormatters:ui,max:Zp,milliseconds:fP,millisecondsToHours:hP,millisecondsToMinutes:gP,millisecondsToSeconds:mP,min:Jp,minutesToHours:pP,minutesToMilliseconds:bP,minutesToSeconds:yP,monthsToQuarters:vP,monthsToYears:xP,nextDay:Zn,nextFriday:wP,nextMonday:kP,nextSaturday:_P,nextSunday:SP,nextThursday:OP,nextTuesday:DP,nextWednesday:MP,parse:jb,parseISO:CP,parseJSON:VP,parsers:Nb,previousDay:Jn,previousFriday:UP,previousMonday:XP,previousSaturday:GP,previousSunday:KP,previousThursday:QP,previousTuesday:ZP,previousWednesday:JP,quartersToMonths:qP,quartersToYears:$P,roundToNearestHours:eN,roundToNearestMinutes:tN,secondsToHours:nN,secondsToMilliseconds:rN,secondsToMinutes:aN,set:sN,setDate:oN,setDay:mi,setDayOfYear:iN,setDefaultOptions:lN,setHours:cN,setISODay:Pb,setISOWeek:Tb,setISOWeekYear:Xp,setMilliseconds:dN,setMinutes:uN,setMonth:hd,setQuarter:fN,setSeconds:hN,setWeek:Eb,setWeekYear:gN,setYear:mN,startOfDay:sa,startOfDecade:pN,startOfHour:ld,startOfISOWeek:Xt,startOfISOWeekYear:Kn,startOfMinute:dd,startOfMonth:li,startOfQuarter:_r,startOfSecond:ud,startOfToday:bN,startOfTomorrow:yN,startOfWeek:it,startOfWeekYear:di,startOfYear:nd,startOfYesterday:vN,sub:xN,subBusinessDays:wN,subDays:pi,subHours:kN,subISOWeekYears:nb,subMilliseconds:_N,subMinutes:SN,subMonths:Yb,subQuarters:ON,subSeconds:DN,subWeeks:MN,subYears:CN,toDate:X,transpose:Sb,weeksToDays:EN,yearsToDays:TN,yearsToMonths:PN,yearsToQuarters:NN},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(On,"__esModule",{value:!0}),On.rangeShape=On.default=void 0;var Dr=jN(_),me=Vb(Sn),gd=Vb(An),gt=Or;function Vb(t){return t&&t.__esModule?t:{default:t}}function Ub(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Ub=function(r){return r?n:e})(t)}function jN(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Ub(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}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 bs(t,e,n){return e=IN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IN(t){var e=RN(t,"string");return typeof e=="symbol"?e:String(e)}function RN(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 pd extends Dr.Component{constructor(e,n){super(e,n),bs(this,"handleKeyEvent",r=>{const{day:a,onMouseDown:s,onMouseUp:o}=this.props;[13,32].includes(r.keyCode)&&(r.type==="keydown"?s(a):o(a))}),bs(this,"handleMouseEvent",r=>{const{day:a,disabled:s,onPreviewChange:o,onMouseEnter:i,onMouseDown:l,onMouseUp:c}=this.props,d={};if(s){o();return}switch(r.type){case"mouseenter":i(a),o(a),d.hover=!0;break;case"blur":case"mouseleave":d.hover=!1;break;case"mousedown":d.active=!0,l(a);break;case"mouseup":r.stopPropagation(),d.active=!1,c(a);break;case"focus":o(a);break}Object.keys(d).length&&this.setState(d)}),bs(this,"getClassNames",()=>{const{isPassive:r,isToday:a,isWeekend:s,isStartOfWeek:o,isEndOfWeek:i,isStartOfMonth:l,isEndOfMonth:c,disabled:d,styles:u}=this.props;return(0,gd.default)(u.day,{[u.dayPassive]:r,[u.dayDisabled]:d,[u.dayToday]:a,[u.dayWeekend]:s,[u.dayStartOfWeek]:o,[u.dayEndOfWeek]:i,[u.dayStartOfMonth]:l,[u.dayEndOfMonth]:c,[u.dayHovered]:this.state.hover,[u.dayActive]:this.state.active})}),bs(this,"renderPreviewPlaceholder",()=>{const{preview:r,day:a,styles:s}=this.props;if(!r)return null;const o=r.startDate?(0,gt.endOfDay)(r.startDate):null,i=r.endDate?(0,gt.startOfDay)(r.endDate):null,l=(!o||(0,gt.isAfter)(a,o))&&(!i||(0,gt.isBefore)(a,i)),c=!l&&(0,gt.isSameDay)(a,o),d=!l&&(0,gt.isSameDay)(a,i);return Dr.default.createElement("span",{className:(0,gd.default)({[s.dayStartPreview]:c,[s.dayInPreview]:l,[s.dayEndPreview]:d}),style:{color:r.color}})}),bs(this,"renderSelectionPlaceholders",()=>{const{styles:r,ranges:a,day:s}=this.props;return this.props.displayMode==="date"?(0,gt.isSameDay)(this.props.day,this.props.date)?Dr.default.createElement("span",{className:r.selected,style:{color:this.props.color}}):null:a.reduce((i,l)=>{let c=l.startDate,d=l.endDate;c&&d&&(0,gt.isBefore)(d,c)&&([c,d]=[d,c]),c=c?(0,gt.endOfDay)(c):null,d=d?(0,gt.startOfDay)(d):null;const u=(!c||(0,gt.isAfter)(s,c))&&(!d||(0,gt.isBefore)(s,d)),f=!u&&(0,gt.isSameDay)(s,c),h=!u&&(0,gt.isSameDay)(s,d);return u||f||h?[...i,{isStartEdge:f,isEndEdge:h,isInRange:u,...l}]:i},[]).map((i,l)=>Dr.default.createElement("span",{key:l,className:(0,gd.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 Dr.default.createElement("button",md({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(),Dr.default.createElement("span",{className:this.props.styles.dayNumber},(e==null?void 0:e(this.props.day))||Dr.default.createElement("span",null,(0,gt.format)(this.props.day,this.props.dayDisplayFormat))))}}pd.defaultProps={};const AN=On.rangeShape=me.default.shape({startDate:me.default.object,endDate:me.default.object,color:me.default.string,key:me.default.string,autoFocus:me.default.bool,disabled:me.default.bool,showDateDisplay:me.default.bool});pd.propTypes={day:me.default.object.isRequired,dayDisplayFormat:me.default.string,date:me.default.object,ranges:me.default.arrayOf(AN),preview:me.default.shape({startDate:me.default.object,endDate:me.default.object,color:me.default.string}),onPreviewChange:me.default.func,previewColor:me.default.string,disabled:me.default.bool,isPassive:me.default.bool,isToday:me.default.bool,isWeekend:me.default.bool,isStartOfWeek:me.default.bool,isEndOfWeek:me.default.bool,isStartOfMonth:me.default.bool,isEndOfMonth:me.default.bool,color:me.default.string,displayMode:me.default.oneOf(["dateRange","date"]),styles:me.default.object,onMouseDown:me.default.func,onMouseUp:me.default.func,onMouseEnter:me.default.func,dayContentRenderer:me.default.func},On.default=pd;var yi={},En={};Object.defineProperty(En,"__esModule",{value:!0}),En.calcFocusDate=WN,En.findNextRangeIndex=zN,En.generateStyles=HN,En.getMonthDisplayRange=BN;var FN=LN(An),Tn=Or;function LN(t){return t&&t.__esModule?t:{default:t}}function WN(t,e){const{shownDate:n,date:r,months:a,ranges:s,focusedRange:o,displayMode:i}=e;let l;if(i==="dateRange"){const d=s[o[0]]||{};l={start:d.startDate,end:d.endDate}}else l={start:r,end:r};l.start=(0,Tn.startOfMonth)(l.start||new Date),l.end=(0,Tn.endOfMonth)(l.end||l.start);const c=l.start||l.end||n||new Date;return t?(0,Tn.differenceInCalendarMonths)(l.start,l.end)>a?t:c:n||c}function zN(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const n=t.findIndex((r,a)=>a>e&&r.autoFocus!==!1&&!r.disabled);return n!==-1?n:t.findIndex(r=>r.autoFocus!==!1&&!r.disabled)}function BN(t,e,n){const r=(0,Tn.startOfMonth)(t,e),a=(0,Tn.endOfMonth)(t,e),s=(0,Tn.startOfWeek)(r,e);let o=(0,Tn.endOfWeek)(a,e);return n&&(0,Tn.differenceInCalendarDays)(o,s)<=34&&(o=(0,Tn.addDays)(o,7)),{start:s,end:o,startDateOfMonth:r,endDateOfMonth:a}}function HN(t){return t.length?t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(a=>{n[a]=(0,FN.default)(n[a],r[a])}),n),{}):{}}Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=void 0;var Mr=Kb(_),Ce=VN(Sn),Xb=Kb(On),Ze=Or,YN=En;function VN(t){return t&&t.__esModule?t:{default:t}}function Gb(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Gb=function(r){return r?n:e})(t)}function Kb(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Gb(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function bd(){return bd=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},bd.apply(this,arguments)}function UN(t,e,n){const r=new Date;return Mr.default.createElement("div",{className:t.weekDays},(0,Ze.eachDayOfInterval)({start:(0,Ze.startOfWeek)(r,e),end:(0,Ze.endOfWeek)(r,e)}).map((a,s)=>Mr.default.createElement("span",{className:t.weekDay,key:s},(0,Ze.format)(a,n,e))))}class yd extends Mr.PureComponent{render(){const e=new Date,{displayMode:n,focusedRange:r,drag:a,styles:s,disabledDates:o,disabledDay:i}=this.props,l=this.props.minDate&&(0,Ze.startOfDay)(this.props.minDate),c=this.props.maxDate&&(0,Ze.endOfDay)(this.props.maxDate),d=(0,YN.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let u=this.props.ranges;if(n==="dateRange"&&a.status){let{startDate:h,endDate:m}=a.range;u=u.map((p,b)=>b!==r[0]?p:{...p,startDate:h,endDate:m})}const f=this.props.showPreview&&!a.disablePreview;return Mr.default.createElement("div",{className:s.month,style:this.props.style},this.props.showMonthName?Mr.default.createElement("div",{className:s.monthName},(0,Ze.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&UN(s,this.props.dateOptions,this.props.weekdayDisplayFormat),Mr.default.createElement("div",{className:s.days,onMouseLeave:this.props.onMouseLeave},(0,Ze.eachDayOfInterval)({start:d.start,end:d.end}).map((h,m)=>{const p=(0,Ze.isSameDay)(h,d.startDateOfMonth),b=(0,Ze.isSameDay)(h,d.endDateOfMonth),x=l&&(0,Ze.isBefore)(h,l)||c&&(0,Ze.isAfter)(h,c),w=o.some(v=>(0,Ze.isSameDay)(v,h)),k=i(h);return Mr.default.createElement(Xb.default,bd({},this.props,{ranges:u,day:h,preview:f?this.props.preview:null,isWeekend:(0,Ze.isWeekend)(h,this.props.dateOptions),isToday:(0,Ze.isSameDay)(h,e),isStartOfWeek:(0,Ze.isSameDay)(h,(0,Ze.startOfWeek)(h,this.props.dateOptions)),isEndOfWeek:(0,Ze.isSameDay)(h,(0,Ze.endOfWeek)(h,this.props.dateOptions)),isStartOfMonth:p,isEndOfMonth:b,key:m,disabled:x||w||k,isPassive:!(0,Ze.isWithinInterval)(h,{start:d.startDateOfMonth,end:d.endDateOfMonth}),styles:s,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:a.range,drag:a.status}))})))}}yd.defaultProps={},yd.propTypes={style:Ce.default.object,styles:Ce.default.object,month:Ce.default.object,drag:Ce.default.object,dateOptions:Ce.default.object,disabledDates:Ce.default.array,disabledDay:Ce.default.func,preview:Ce.default.shape({startDate:Ce.default.object,endDate:Ce.default.object}),showPreview:Ce.default.bool,displayMode:Ce.default.oneOf(["dateRange","date"]),minDate:Ce.default.object,maxDate:Ce.default.object,ranges:Ce.default.arrayOf(Xb.rangeShape),focusedRange:Ce.default.arrayOf(Ce.default.number),onDragSelectionStart:Ce.default.func,onDragSelectionEnd:Ce.default.func,onDragSelectionMove:Ce.default.func,onMouseLeave:Ce.default.func,monthDisplayFormat:Ce.default.string,weekdayDisplayFormat:Ce.default.string,dayDisplayFormat:Ce.default.string,showWeekDays:Ce.default.bool,showMonthName:Ce.default.bool,fixedHeight:Ce.default.bool},yi.default=yd;var vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=void 0;var xi=GN(_),hn=Qb(Sn),XN=Qb(An),ys=Or;function Qb(t){return t&&t.__esModule?t:{default:t}}function Zb(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Zb=function(r){return r?n:e})(t)}function GN(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Zb(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function vd(t,e,n){return e=KN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KN(t){var e=QN(t,"string");return typeof e=="symbol"?e:String(e)}function QN(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 xd extends xi.PureComponent{constructor(e,n){super(e,n),vd(this,"onKeyDown",r=>{const{value:a}=this.state;r.key==="Enter"&&this.update(a)}),vd(this,"onChange",r=>{this.setState({value:r.target.value,changed:!0,invalid:!1})}),vd(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,ys.isEqual)(n,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(e){let{value:n,dateDisplayFormat:r,dateOptions:a}=e;return n&&(0,ys.isValid)(n)?(0,ys.format)(n,r,a):""}update(e){const{invalid:n,changed:r}=this.state;if(n||!r||!e)return;const{onChange:a,dateDisplayFormat:s,dateOptions:o}=this.props,i=(0,ys.parse)(e,s,new Date,o);(0,ys.isValid)(i)?this.setState({changed:!1},()=>a(i)):this.setState({invalid:!0})}render(){const{className:e,readOnly:n,placeholder:r,ariaLabel:a,disabled:s,onFocus:o}=this.props,{value:i,invalid:l}=this.state;return xi.default.createElement("span",{className:(0,XN.default)("rdrDateInput",e)},xi.default.createElement("input",{readOnly:n,disabled:s,value:i,placeholder:r,"aria-label":a,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:o}),l&&xi.default.createElement("span",{className:"rdrWarning"},"⚠"))}}xd.propTypes={value:hn.default.object,placeholder:hn.default.string,disabled:hn.default.bool,readOnly:hn.default.bool,dateOptions:hn.default.object,dateDisplayFormat:hn.default.string,ariaLabel:hn.default.string,className:hn.default.string,onFocus:hn.default.func.isRequired,onChange:hn.default.func.isRequired},xd.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},vi.default=xd;var Jb={};(function(t){(function(e,n){n(t,_,g)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:hx,function(e,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function a(A){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},a(A)}function s(A,R){if(!(A instanceof R))throw new TypeError("Cannot call a class as a function")}function o(A,R){for(var I=0;I<R.length;I++){var M=R[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(A,w(M.key),M)}}function i(A,R,I){return R&&o(A.prototype,R),I&&o(A,I),Object.defineProperty(A,"prototype",{writable:!1}),A}function l(A,R,I){return R=f(R),c(A,u()?Reflect.construct(R,I||[],f(A).constructor):R.apply(A,I))}function c(A,R){if(R&&(a(R)=="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(A)}function d(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function u(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!A})()}function f(A){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},f(A)}function h(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(R&&R.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),R&&m(A,R)}function m(A,R){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,M){return I.__proto__=M,I},m(A,R)}function p(A,R){var I=Object.keys(A);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(A);R&&(M=M.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),I.push.apply(I,M)}return I}function b(A){for(var R=1;R<arguments.length;R++){var I=arguments[R]!=null?arguments[R]:{};R%2?p(Object(I),!0).forEach(function(M){x(A,M,I[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(I)):p(Object(I)).forEach(function(M){Object.defineProperty(A,M,Object.getOwnPropertyDescriptor(I,M))})}return A}function x(A,R,I){return(R=w(R))in A?Object.defineProperty(A,R,{value:I,enumerable:!0,configurable:!0,writable:!0}):A[R]=I,A}function w(A){var R=k(A,"string");return a(R)=="symbol"?R:R+""}function k(A,R){if(a(A)!="object"||!A)return A;var I=A[Symbol.toPrimitive];if(I!==void 0){var M=I.call(A,R);if(a(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(A)}var v={x:"clientWidth",y:"clientHeight"},y={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},N={x:"offsetWidth",y:"offsetHeight"},C={x:"offsetLeft",y:"offsetTop"},P={x:"overflowX",y:"overflowY"},E={x:"scrollWidth",y:"scrollHeight"},B={x:"scrollLeft",y:"scrollTop"},F={x:"width",y:"height"},O=function(){},D=function(){if(typeof window>"u")return!1;var A=!1;try{document.createElement("div").addEventListener("test",O,{get passive(){return A=!0,!1}})}catch{}return A}()?{passive:!0}:!1,T="ReactList failed to reach a stable state.",L=40,V=function(R,I){for(var M in I)if(R[M]!==I[M])return!1;return!0},K=function(R){for(var I=R.props.axis,M=R.getEl(),W=P[I];M=M.parentElement;)switch(window.getComputedStyle(M)[W]){case"auto":case"scroll":case"overlay":return M}return window},q=function(R){var I=R.props.axis,M=R.scrollParent;return M===window?window[S[I]]:M[v[I]]},j=function(R,I){var M=R.length,W=R.minSize,Q=R.type,G=I.from,Z=I.size,$=I.itemsPerRow;Z=Math.max(Z,W);var ne=Z%$;return ne&&(Z+=$-ne),Z>M&&(Z=M),G=Q==="simple"||!G?0:Math.max(Math.min(G,M-Z),0),(ne=G%$)&&(G-=ne,Z+=ne),G===I.from&&Z===I.size?I:b(b({},I),{},{from:G,size:Z})},H=e.default=function(A){function R(I){var M;return s(this,R),M=l(this,R,[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(R,A),i(R,[{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 W=this;if(this.props.axis!==M.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>L)return this.unstable=!0,console.error(T);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){W.updateCounter=0,delete W.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(M,W){if(V(this.state,M))return W();this.setState(M,W)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,D),this.scrollParent.removeEventListener("mousewheel",O,D)}},{key:"getOffset",value:function(M){var W=this.props.axis,Q=M[y[W]]||0,G=C[W];do Q+=M[G]||0;while(M=M.offsetParent);return Q}},{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,W=this.props.axis,Q=B[W],G=M===window?document.body[Q]||document.documentElement[Q]:M[Q],Z=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),$=Math.max(0,Math.min(G,Z)),ne=this.getEl();return this.cachedScrollPosition=this.getOffset(M)+$-this.getOffset(ne),this.cachedScrollPosition}},{key:"setScroll",value:function(M){var W=this.scrollParent,Q=this.props.axis;if(M+=this.getOffset(this.getEl()),W===window)return window.scrollTo(0,M);M-=this.getOffset(this.scrollParent),W[B[Q]]=M}},{key:"getScrollSize",value:function(){var M=this.scrollParent,W=document,Q=W.body,G=W.documentElement,Z=E[this.props.axis];return M===window?Math.max(Q[Z],G[Z]):M[Z]}},{key:"hasDeterminateSize",value:function(){var M=this.props,W=M.itemSizeGetter,Q=M.type;return Q==="uniform"||W}},{key:"getStartAndEnd",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,W=this.getScrollPosition(),Q=Math.max(0,W-M),G=W+this.props.scrollParentViewportSizeGetter(this)+M;return this.hasDeterminateSize()&&(G=Math.min(G,this.getSpaceBefore(this.props.length))),{start:Q,end:G}}},{key:"getItemSizeAndItemsPerRow",value:function(){var M=this.props,W=M.axis,Q=M.useStaticSize,G=this.state,Z=G.itemSize,$=G.itemsPerRow;if(Q&&Z&&$)return{itemSize:Z,itemsPerRow:$};var ne=this.items.children;if(!ne.length)return{};var Y=ne[0],re=Y[N[W]],te=Math.abs(re-Z);if((isNaN(te)||te>=1)&&(Z=re),!Z)return{};var ie=C[W],fe=Y[ie];$=1;for(var ce=ne[$];ce&&ce[ie]===fe;ce=ne[$])++$;return{itemSize:Z,itemsPerRow:$}}},{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,D),this.scrollParent.addEventListener("mousewheel",O,D))}},{key:"updateSimpleFrame",value:function(M){var W=this.getStartAndEnd(),Q=W.end,G=this.items.children,Z=0;if(G.length){var $=this.props.axis,ne=G[0],Y=G[G.length-1];Z=this.getOffset(Y)+Y[N[$]]-this.getOffset(ne)}if(Z>Q)return M();var re=this.props,te=re.pageSize,ie=re.length,fe=Math.min(this.state.size+te,ie);this.maybeSetState({size:fe},M)}},{key:"updateVariableFrame",value:function(M){this.props.itemSizeGetter||this.cacheSizes();for(var W=this.getStartAndEnd(),Q=W.start,G=W.end,Z=this.props,$=Z.length,ne=Z.pageSize,Y=0,re=0,te=0,ie=$-1;re<ie;){var fe=this.getSizeOfItem(re);if(fe==null||Y+fe>Q)break;Y+=fe,++re}for(var ce=$-re;te<ce&&Y<G;){var ae=this.getSizeOfItem(re+te);if(ae==null){te=Math.min(te+ne,ce);break}Y+=ae,++te}this.maybeSetState(j(this.props,{from:re,itemsPerRow:1,size:te}),M)}},{key:"updateUniformFrame",value:function(M){var W=this.getItemSizeAndItemsPerRow(),Q=W.itemSize,G=W.itemsPerRow;if(!Q||!G)return M();var Z=this.getStartAndEnd(),$=Z.start,ne=Z.end,Y=j(this.props,{from:Math.floor($/Q)*G,size:(Math.ceil((ne-$)/Q)+1)*G,itemsPerRow:G}),re=Y.from,te=Y.size;return this.maybeSetState({itemsPerRow:G,from:re,itemSize:Q,size:te},M)}},{key:"getSpaceBefore",value:function(M){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(W[M]!=null)return W[M];var Q=this.state,G=Q.itemSize,Z=Q.itemsPerRow;if(G)return W[M]=Math.floor(M/Z)*G;for(var $=M;$>0&&W[--$]==null;);for(var ne=W[$]||0,Y=$;Y<M;++Y){W[Y]=ne;var re=this.getSizeOfItem(Y);if(re==null)break;ne+=re}return W[M]=ne}},{key:"cacheSizes",value:function(){for(var M=this.cache,W=this.state.from,Q=this.items.children,G=N[this.props.axis],Z=0,$=Q.length;Z<$;++Z)M[W+Z]=Q[Z][G]}},{key:"getSizeOfItem",value:function(M){var W=this.cache,Q=this.items,G=this.props,Z=G.axis,$=G.itemSizeGetter,ne=G.itemSizeEstimator,Y=G.type,re=this.state,te=re.from,ie=re.itemSize,fe=re.size;if(ie)return ie;if($)return $(M);if(M in W)return W[M];if(Y==="simple"&&M>=te&&M<te+fe&&Q){var ce=Q.children[M-te];if(ce)return ce[N[Z]]}if(ne)return ne(M,W)}},{key:"scrollTo",value:function(M){M!=null&&this.setScroll(this.getSpaceBefore(M))}},{key:"scrollAround",value:function(M){var W=this.getScrollPosition(),Q=this.getSpaceBefore(M),G=Q-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(M),Z=Math.min(G,Q),$=Math.max(G,Q);if(W<=Z)return this.setScroll(Z);if(W>$)return this.setScroll($)}},{key:"getVisibleRange",value:function(){for(var M=this.state,W=M.from,Q=M.size,G=this.getStartAndEnd(0),Z=G.start,$=G.end,ne={},Y,re,te=W;te<W+Q;++te){var ie=this.getSpaceBefore(te,ne),fe=ie+this.getSizeOfItem(te);Y==null&&fe>Z&&(Y=te),Y!=null&&ie<$&&(re=te)}return[Y,re]}},{key:"renderItems",value:function(){for(var M=this,W=this.props,Q=W.itemRenderer,G=W.itemsRenderer,Z=this.state,$=Z.from,ne=Z.size,Y=[],re=0;re<ne;++re)Y.push(Q($+re,re));return G(Y,function(te){return M.items=te})}},{key:"render",value:function(){var M=this,W=this.props,Q=W.axis,G=W.length,Z=W.type,$=W.useTranslate3d,ne=this.state,Y=ne.from,re=ne.itemsPerRow,te=this.renderItems();if(Z==="simple")return te;var ie={position:"relative"},fe={},ce=Math.ceil(G/re)*re,ae=this.getSpaceBefore(ce,fe);ae&&(ie[F[Q]]=ae,Q==="x"&&(ie.overflowX="hidden"));var Le=this.getSpaceBefore(Y,fe),ge=Q==="x"?Le:0,Ae=Q==="y"?Le:0,Be=$?"translate3d(".concat(ge,"px, ").concat(Ae,"px, 0)"):"translate(".concat(ge,"px, ").concat(Ae,"px)"),Ue={msTransform:Be,WebkitTransform:Be,transform:Be};return(0,r.jsx)("div",{style:ie,ref:function(Tt){return M.el=Tt},children:(0,r.jsx)("div",{style:Ue,children:te})})}}],[{key:"getDerivedStateFromProps",value:function(M,W){var Q=j(M,W);return Q===W?null:Q}}])}(n.Component);x(H,"displayName","ReactList"),x(H,"defaultProps",{axis:"y",itemRenderer:function(R,I){return(0,r.jsx)("div",{children:R},I)},itemsRenderer:function(R,I){return(0,r.jsx)("div",{ref:I,children:R})},length:0,minSize:1,pageSize:10,scrollParentGetter:K,scrollParentViewportSizeGetter:q,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})})})(Jb);function ZN(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),a=n.length;if(r.length!==a)return!1;for(var s=0;s<a;s++){var o=n[s];if(t[o]!==e[o]||!Object.prototype.hasOwnProperty.call(e,o))return!1}return!0}function JN(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 qN=pu(Object.freeze(Object.defineProperty({__proto__:null,shallowEqualArrays:JN,shallowEqualObjects:ZN},Symbol.toStringTag,{value:"Module"})));var wd={},kd={};kd.formatDistance=void 0;const $N={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"}},e5=(t,e,n)=>{let r;const a=$N[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};kd.formatDistance=e5;var _d={},qb={};qb.buildFormatLongFn=t5;function t5(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}_d.formatLong=void 0;var Sd=qb;const n5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},r5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};_d.formatLong={date:(0,Sd.buildFormatLongFn)({formats:n5,defaultWidth:"full"}),time:(0,Sd.buildFormatLongFn)({formats:r5,defaultWidth:"full"}),dateTime:(0,Sd.buildFormatLongFn)({formats:a5,defaultWidth:"full"})};var Od={};Od.formatRelative=void 0;const s5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o5=(t,e,n,r)=>s5[t];Od.formatRelative=o5;var Dd={},$b={};$b.buildLocalizeFn=i5;function i5(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;a=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;a=t.values[i]||t.values[o]}const s=t.argumentCallback?t.argumentCallback(e):e;return a[s]}}Dd.localize=void 0;var vs=$b;const l5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d5={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"]},u5={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"]},f5={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"}},h5={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"}},g5=(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"};Dd.localize={ordinalNumber:g5,era:(0,vs.buildLocalizeFn)({values:l5,defaultWidth:"wide"}),quarter:(0,vs.buildLocalizeFn)({values:c5,defaultWidth:"wide",argumentCallback:t=>t-1}),month:(0,vs.buildLocalizeFn)({values:d5,defaultWidth:"wide"}),day:(0,vs.buildLocalizeFn)({values:u5,defaultWidth:"wide"}),dayPeriod:(0,vs.buildLocalizeFn)({values:f5,defaultWidth:"wide",formattingValues:h5,defaultFormattingWidth:"wide"})};var Md={},ey={};ey.buildMatchFn=m5;function m5(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(a);if(!s)return null;const o=s[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?b5(i,u=>u.test(o)):p5(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 p5(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function b5(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}var ty={};ty.buildMatchPatternFn=y5;function y5(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(a.length);return{value:o,rest:i}}}Md.match=void 0;var xs=ey,v5=ty;const x5=/^(\d+)(th|st|nd|rd)?/i,w5=/\d+/i,k5={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},_5={any:[/^b/i,/^(a|c)/i]},S5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},O5={any:[/1/i,/2/i,/3/i,/4/i]},D5={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},M5={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]},C5={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},E5={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]},T5={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},P5={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}};Md.match={ordinalNumber:(0,v5.buildMatchPatternFn)({matchPattern:x5,parsePattern:w5,valueCallback:t=>parseInt(t,10)}),era:(0,xs.buildMatchFn)({matchPatterns:k5,defaultMatchWidth:"wide",parsePatterns:_5,defaultParseWidth:"any"}),quarter:(0,xs.buildMatchFn)({matchPatterns:S5,defaultMatchWidth:"wide",parsePatterns:O5,defaultParseWidth:"any",valueCallback:t=>t+1}),month:(0,xs.buildMatchFn)({matchPatterns:D5,defaultMatchWidth:"wide",parsePatterns:M5,defaultParseWidth:"any"}),day:(0,xs.buildMatchFn)({matchPatterns:C5,defaultMatchWidth:"wide",parsePatterns:E5,defaultParseWidth:"any"}),dayPeriod:(0,xs.buildMatchFn)({matchPatterns:T5,defaultMatchWidth:"any",parsePatterns:P5,defaultParseWidth:"any"})},wd.enUS=void 0;var N5=kd,j5=_d,I5=Od,R5=Dd,A5=Md;wd.enUS={code:"en-US",formatDistance:N5.formatDistance,formatLong:j5.formatLong,formatRelative:I5.formatRelative,localize:R5.localize,match:A5.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=void 0,Cr.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 wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.ariaLabelsShape=void 0;var Pn=F5(Sn);function F5(t){return t&&t.__esModule?t:{default:t}}wi.ariaLabelsShape=Pn.default.shape({dateInput:Pn.default.objectOf(Pn.default.shape({startDate:Pn.default.string,endDate:Pn.default.string})),monthPicker:Pn.default.string,yearPicker:Pn.default.string,prevButton:Pn.default.string,nextButton:Pn.default.string}),Object.defineProperty(us,"__esModule",{value:!0}),us.default=void 0;var Me=V5(_),le=da(Sn),L5=On,ny=da(yi),ry=da(vi),ki=En,Er=da(An),W5=da(Jb),z5=qN,Ie=Or,B5=wd,H5=da(Cr),Y5=wi;function da(t){return t&&t.__esModule?t:{default:t}}function ay(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ay=function(r){return r?n:e})(t)}function V5(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ay(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function _i(){return _i=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},_i.apply(this,arguments)}function zt(t,e,n){return e=U5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U5(t){var e=X5(t,"string");return typeof e=="symbol"?e:String(e)}function X5(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 ua extends Me.PureComponent{constructor(e,n){var r;super(e,n),r=this,zt(this,"focusToDate",function(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.props,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!s.scroll.enabled){if(o&&s.preventSnapRefocus){const c=(0,Ie.differenceInCalendarMonths)(a,r.state.focusedDate),d=s.calendarFocus==="forwards"&&c>=0,u=s.calendarFocus==="backwards"&&c<=0;if((d||u)&&Math.abs(c)<s.months)return}r.setState({focusedDate:a});return}const i=(0,Ie.differenceInCalendarMonths)(a,s.minDate,r.dateOptions),l=r.list.getVisibleRange();o&&l.includes(i)||(r.isFirstRender=!0,r.list.scrollTo(i),r.setState({focusedDate:a}))}),zt(this,"updateShownDate",function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.props;const s=a.scroll.enabled?{...a,months:r.list.getVisibleRange().length}:a,o=(0,ki.calcFocusDate)(r.state.focusedDate,s);r.focusToDate(o,s)}),zt(this,"updatePreview",a=>{if(!a){this.setState({preview:null});return}const s={startDate:a,endDate:a,color:this.props.color};this.setState({preview:s})}),zt(this,"changeShownDate",function(a){let s=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,Ie.addMonths)(o,a),setMonth:()=>(0,Ie.setMonth)(o,a),setYear:()=>(0,Ie.setYear)(o,a),set:()=>a},u=(0,Ie.min)([(0,Ie.max)([d[s](),l]),c]);r.focusToDate(u,r.props,!1),i&&i(u)}),zt(this,"handleRangeFocusChange",(a,s)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([a,s])}),zt(this,"handleScroll",()=>{const{onShownDateChange:a,minDate:s}=this.props,{focusedDate:o}=this.state,{isFirstRender:i}=this,l=this.list.getVisibleRange();if(l[0]===void 0)return;const c=(0,Ie.addMonths)(s,l[0]||0);!(0,Ie.isSameMonth)(c,o)&&!i&&(this.setState({focusedDate:c}),a&&a(c)),this.isFirstRender=!1}),zt(this,"renderMonthAndYear",(a,s,o)=>{const{showMonthArrow:i,minDate:l,maxDate:c,showMonthAndYearPickers:d,ariaLabels:u}=o,f=(c||ua.defaultProps.maxDate).getFullYear(),h=(l||ua.defaultProps.minDate).getFullYear(),m=this.styles;return Me.default.createElement("div",{onMouseUp:p=>p.stopPropagation(),className:m.monthAndYearWrapper},i?Me.default.createElement("button",{type:"button",className:(0,Er.default)(m.nextPrevButton,m.prevButton),onClick:()=>s(-1,"monthOffset"),"aria-label":u.prevButton},Me.default.createElement("i",null)):null,d?Me.default.createElement("span",{className:m.monthAndYearPickers},Me.default.createElement("span",{className:m.monthPicker},Me.default.createElement("select",{value:a.getMonth(),onChange:p=>s(p.target.value,"setMonth"),"aria-label":u.monthPicker},this.state.monthNames.map((p,b)=>Me.default.createElement("option",{key:b,value:b},p)))),Me.default.createElement("span",{className:m.monthAndYearDivider}),Me.default.createElement("span",{className:m.yearPicker},Me.default.createElement("select",{value:a.getFullYear(),onChange:p=>s(p.target.value,"setYear"),"aria-label":u.yearPicker},new Array(f-h+1).fill(f).map((p,b)=>{const x=p-b;return Me.default.createElement("option",{key:x,value:x},x)})))):Me.default.createElement("span",{className:m.monthAndYearPickers},this.state.monthNames[a.getMonth()]," ",a.getFullYear()),i?Me.default.createElement("button",{type:"button",className:(0,Er.default)(m.nextPrevButton,m.nextButton),onClick:()=>s(1,"monthOffset"),"aria-label":u.nextButton},Me.default.createElement("i",null)):null)}),zt(this,"renderDateDisplay",()=>{const{focusedRange:a,color:s,ranges:o,rangeColors:i,dateDisplayFormat:l,editableDateInputs:c,startDatePlaceholder:d,endDatePlaceholder:u,ariaLabels:f}=this.props,h=i[a[0]]||s,m=this.styles;return Me.default.createElement("div",{className:m.dateDisplayWrapper},o.map((p,b)=>p.showDateDisplay===!1||p.disabled&&!p.showDateDisplay?null:Me.default.createElement("div",{className:m.dateDisplay,key:b,style:{color:p.color||h}},Me.default.createElement(ry.default,{className:(0,Er.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:a[0]===b&&a[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)}),Me.default.createElement(ry.default,{className:(0,Er.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:a[0]===b&&a[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)}))))}),zt(this,"onDragSelectionStart",a=>{const{onChange:s,dragSelectionEnabled:o}=this.props;o?this.setState({drag:{status:!0,range:{startDate:a,endDate:a},disablePreview:!0}}):s&&s(a)}),zt(this,"onDragSelectionEnd",a=>{const{updateRange:s,displayMode:o,onChange:i,dragSelectionEnabled:l}=this.props;if(!l)return;if(o==="date"||!this.state.drag.status){i&&i(a);return}const c={startDate:this.state.drag.range.startDate,endDate:a};o!=="dateRange"||(0,Ie.isSameDay)(c.startDate,a)?this.setState({drag:{status:!1,range:{}}},()=>i&&i(a)):this.setState({drag:{status:!1,range:{}}},()=>{s&&s(c)})}),zt(this,"onDragSelectionMove",a=>{const{drag:s}=this.state;!s.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:s.status,range:{startDate:s.range.startDate,endDate:a},disablePreview:!0}})}),zt(this,"estimateMonthSize",(a,s)=>{const{direction:o,minDate:i}=this.props,{scrollArea:l}=this.state;if(s&&(this.listSizeCache=s,s[a]))return s[a];if(o==="horizontal")return l.monthWidth;const c=(0,Ie.addMonths)(i,a),{start:d,end:u}=(0,ki.getMonthDisplayRange)(c,this.dateOptions);return(0,Ie.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,ki.generateStyles)([H5.default,e.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,ki.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:a}=e;if(!a.enabled)return{enabled:!1};const s=a.longMonthHeight||a.monthHeight;return n==="vertical"?{enabled:!0,monthHeight:a.monthHeight||220,longMonthHeight:s||260,calendarWidth:"auto",calendarHeight:(a.calendarHeight||s||240)*r}:{enabled:!0,monthWidth:a.monthWidth||332,calendarWidth:(a.calendarWidth||a.monthWidth||332)*r,monthHeight:s||300,calendarHeight:s||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,z5.shallowEqualObjects)(e.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const e=new Date;return Me.default.createElement("div",{className:this.styles.weekDays},(0,Ie.eachDayOfInterval)({start:(0,Ie.startOfWeek)(e,this.dateOptions),end:(0,Ie.endOfWeek)(e,this.dateOptions)}).map((n,r)=>Me.default.createElement("span",{className:this.styles.weekDay,key:r},(0,Ie.format)(n,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:e,onPreviewChange:n,scroll:r,direction:a,disabledDates:s,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=a==="vertical",x=u||this.renderMonthAndYear,w=this.props.ranges.map((k,v)=>({...k,color:k.color||c[v]||d}));return Me.default.createElement("div",{className:(0,Er.default)(this.styles.calendarWrapper,f),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},e&&this.renderDateDisplay(),x(p,this.changeShownDate,this.props),r.enabled?Me.default.createElement("div",null,b&&this.renderWeekdays(this.dateOptions),Me.default.createElement("div",{className:(0,Er.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},Me.default.createElement(W5.default,{length:(0,Ie.differenceInCalendarMonths)((0,Ie.endOfMonth)(i),(0,Ie.addDays)((0,Ie.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 y=(0,Ie.addMonths)(l,k);return Me.default.createElement(ny.default,_i({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:w,key:v,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:s,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}))}}))):Me.default.createElement("div",{className:(0,Er.default)(this.styles.months,b?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((k,v)=>{let y=(0,Ie.addMonths)(this.state.focusedDate,v);return this.props.calendarFocus==="backwards"&&(y=(0,Ie.subMonths)(this.state.focusedDate,this.props.months-1-v)),Me.default.createElement(ny.default,_i({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:w,key:v,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:s,disabledDay:o,month:y,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,showWeekDays:!b||v===0,showMonthName:!b||v>0}))})))}}ua.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:B5.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,Ie.addYears)(new Date,20),minDate:(0,Ie.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},ua.propTypes={showMonthArrow:le.default.bool,showMonthAndYearPickers:le.default.bool,disabledDates:le.default.array,disabledDay:le.default.func,minDate:le.default.object,maxDate:le.default.object,date:le.default.object,onChange:le.default.func,onPreviewChange:le.default.func,onRangeFocusChange:le.default.func,classNames:le.default.object,locale:le.default.object,shownDate:le.default.object,onShownDateChange:le.default.func,ranges:le.default.arrayOf(L5.rangeShape),preview:le.default.shape({startDate:le.default.object,endDate:le.default.object,color:le.default.string}),dateDisplayFormat:le.default.string,monthDisplayFormat:le.default.string,weekdayDisplayFormat:le.default.string,weekStartsOn:le.default.number,dayDisplayFormat:le.default.string,focusedRange:le.default.arrayOf(le.default.number),initialFocusedRange:le.default.arrayOf(le.default.number),months:le.default.number,className:le.default.string,showDateDisplay:le.default.bool,showPreview:le.default.bool,displayMode:le.default.oneOf(["dateRange","date"]),color:le.default.string,updateRange:le.default.func,scroll:le.default.shape({enabled:le.default.bool,monthHeight:le.default.number,longMonthHeight:le.default.number,monthWidth:le.default.number,calendarWidth:le.default.number,calendarHeight:le.default.number}),direction:le.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:le.default.string,endDatePlaceholder:le.default.string,navigatorRenderer:le.default.func,rangeColors:le.default.arrayOf(le.default.string),editableDateInputs:le.default.bool,dragSelectionEnabled:le.default.bool,fixedHeight:le.default.bool,calendarFocus:le.default.string,preventSnapRefocus:le.default.bool,ariaLabels:Y5.ariaLabelsShape},us.default=ua,Object.defineProperty(ds,"__esModule",{value:!0}),ds.default=void 0;var sy=Z5(_),fa=Si(Sn),oy=Si(us),G5=On,Cd=En,gn=Or,K5=Si(An),Q5=Si(Cr);function Si(t){return t&&t.__esModule?t:{default:t}}function iy(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(iy=function(r){return r?n:e})(t)}function Z5(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=iy(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function Ed(){return Ed=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},Ed.apply(this,arguments)}function Oi(t,e,n){return e=J5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J5(t){var e=q5(t,"string");return typeof e=="symbol"?e:String(e)}function q5(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 Td extends sy.Component{constructor(e,n){var r;super(e,n),r=this,Oi(this,"calcNewSelection",function(a){let s=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 x=new Date;let w;if(!s)p=a.startDate,b=a.endDate;else if(o[1]===0){const y=(0,gn.differenceInCalendarDays)(b||x,p),S=()=>d?(0,gn.addDays)(a,y):u?!b||(0,gn.isBefore)(a,b)?b:a:a||x;p=a,b=S(),c&&(b=(0,gn.min)([b,c])),w=[o[0],1]}else b=a;let k=o[1]===0;(0,gn.isBefore)(b,p)&&(k=!k,[p,b]=[b,p]);const v=f.filter(y=>(0,gn.isWithinInterval)(y,{start:p,end:b}));return v.length>0&&(k?p=(0,gn.addDays)((0,gn.max)(v),1):b=(0,gn.addDays)((0,gn.min)(v),-1)),w||(w=[(0,Cd.findNextRangeIndex)(r.props.ranges,o[0]),0]),{wasValid:!(v.length>0),range:{startDate:p,endDate:b},nextFocusRange:w}}),Oi(this,"setSelection",(a,s)=>{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(a,s);o({[u.key||`range${d+1}`]:{...u,...f.range}}),this.setState({focusedRange:f.nextFocusRange,preview:null}),l&&l(f.nextFocusRange)}),Oi(this,"handleRangeFocusChange",a=>{this.setState({focusedRange:a}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(a)}),Oi(this,"updatePreview",a=>{var c;if(!a){this.setState({preview:null});return}const{rangeColors:s,ranges:o}=this.props,i=this.props.focusedRange||this.state.focusedRange,l=((c=o[i[0]])==null?void 0:c.color)||s[i[0]]||l;this.setState({preview:{...a.range,color:l}})}),this.state={focusedRange:e.initialFocusedRange||[(0,Cd.findNextRangeIndex)(e.ranges),0],preview:null},this.styles=(0,Cd.generateStyles)([Q5.default,e.classNames])}render(){return sy.default.createElement(oy.default,Ed({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,K5.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:e=>this.setSelection(e,!1),ref:e=>{this.calendar=e}}))}}Td.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},Td.propTypes={...oy.default.propTypes,onChange:fa.default.func,onRangeFocusChange:fa.default.func,className:fa.default.string,ranges:fa.default.arrayOf(G5.rangeShape),moveRangeOnFirstSelection:fa.default.bool,retainEndDateOnFirstSelection:fa.default.bool},ds.default=Td;var Di={},ws={},qn={};Object.defineProperty(qn,"__esModule",{value:!0}),qn.createStaticRanges=ly,qn.defaultStaticRanges=qn.defaultInputRanges=void 0;var Te=Or;const nt={startOfWeek:(0,Te.startOfWeek)(new Date),endOfWeek:(0,Te.endOfWeek)(new Date),startOfLastWeek:(0,Te.startOfWeek)((0,Te.addDays)(new Date,-7)),endOfLastWeek:(0,Te.endOfWeek)((0,Te.addDays)(new Date,-7)),startOfToday:(0,Te.startOfDay)(new Date),endOfToday:(0,Te.endOfDay)(new Date),startOfYesterday:(0,Te.startOfDay)((0,Te.addDays)(new Date,-1)),endOfYesterday:(0,Te.endOfDay)((0,Te.addDays)(new Date,-1)),startOfMonth:(0,Te.startOfMonth)(new Date),endOfMonth:(0,Te.endOfMonth)(new Date),startOfLastMonth:(0,Te.startOfMonth)((0,Te.addMonths)(new Date,-1)),endOfLastMonth:(0,Te.endOfMonth)((0,Te.addMonths)(new Date,-1))},$5={range:{},isSelected(t){const e=this.range();return(0,Te.isSameDay)(t.startDate,e.startDate)&&(0,Te.isSameDay)(t.endDate,e.endDate)}};function ly(t){return t.map(e=>({...$5,...e}))}qn.defaultStaticRanges=ly([{label:"Today",range:()=>({startDate:nt.startOfToday,endDate:nt.endOfToday})},{label:"Yesterday",range:()=>({startDate:nt.startOfYesterday,endDate:nt.endOfYesterday})},{label:"This Week",range:()=>({startDate:nt.startOfWeek,endDate:nt.endOfWeek})},{label:"Last Week",range:()=>({startDate:nt.startOfLastWeek,endDate:nt.endOfLastWeek})},{label:"This Month",range:()=>({startDate:nt.startOfMonth,endDate:nt.endOfMonth})},{label:"Last Month",range:()=>({startDate:nt.startOfLastMonth,endDate:nt.endOfLastMonth})}]),qn.defaultInputRanges=[{label:"days up to today",range(t){return{startDate:(0,Te.addDays)(nt.startOfToday,(Math.max(Number(t),1)-1)*-1),endDate:nt.endOfToday}},getCurrentValue(t){return(0,Te.isSameDay)(t.endDate,nt.endOfToday)?t.startDate?(0,Te.differenceInCalendarDays)(nt.endOfToday,t.startDate)+1:"∞":"-"}},{label:"days starting today",range(t){const e=new Date;return{startDate:e,endDate:(0,Te.addDays)(e,Math.max(Number(t),1)-1)}},getCurrentValue(t){return(0,Te.isSameDay)(t.startDate,nt.startOfToday)?t.endDate?(0,Te.differenceInCalendarDays)(t.endDate,nt.startOfToday)+1:"∞":"-"}}];var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0;var Ci=tj(_),_t=ej(Sn);function ej(t){return t&&t.__esModule?t:{default:t}}function cy(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(cy=function(r){return r?n:e})(t)}function tj(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=cy(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function nj(t,e,n){return e=rj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rj(t){var e=aj(t,"string");return typeof e=="symbol"?e:String(e)}function aj(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 dy=0,uy=99999;class Pd extends Ci.Component{constructor(e,n){super(e,n),nj(this,"onChange",r=>{const{onChange:a}=this.props;let s=parseInt(r.target.value,10);s=isNaN(s)?0:Math.max(Math.min(uy,s),dy),a(s)})}shouldComponentUpdate(e){const{value:n,label:r,placeholder:a}=this.props;return n!==e.value||r!==e.label||a!==e.placeholder}render(){const{label:e,placeholder:n,value:r,styles:a,onBlur:s,onFocus:o}=this.props;return Ci.default.createElement("div",{className:a.inputRange},Ci.default.createElement("input",{className:a.inputRangeInput,placeholder:n,value:r,min:dy,max:uy,onChange:this.onChange,onFocus:o,onBlur:s}),Ci.default.createElement("span",{className:a.inputRangeLabel},e))}}Pd.propTypes={value:_t.default.oneOfType([_t.default.string,_t.default.number]),label:_t.default.oneOfType([_t.default.element,_t.default.node]).isRequired,placeholder:_t.default.string,styles:_t.default.shape({inputRange:_t.default.string,inputRangeInput:_t.default.string,inputRangeLabel:_t.default.string}).isRequired,onBlur:_t.default.func.isRequired,onFocus:_t.default.func.isRequired,onChange:_t.default.func.isRequired},Pd.defaultProps={value:"",placeholder:"-"},Mi.default=Pd,Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var Tr=ij(_),Ct=Ei(Sn),Pr=Ei(Cr),fy=qn,sj=On,oj=Ei(Mi),hy=Ei(An);function Ei(t){return t&&t.__esModule?t:{default:t}}function gy(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(gy=function(r){return r?n:e})(t)}function ij(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=gy(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function lj(t,e,n){return e=cj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cj(t){var e=dj(t,"string");return typeof e=="symbol"?e:String(e)}function dj(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 Nd extends Tr.Component{constructor(e){super(e),lj(this,"handleRangeChange",n=>{const{onChange:r,ranges:a,focusedRange:s}=this.props,o=a[s[0]];!r||!o||r({[o.key||`range${s[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 a=n[r[0]]||{};return e.getCurrentValue(a)||""}getSelectedRange(e,n){const r=e.findIndex(s=>!s.startDate||!s.endDate||s.disabled?!1:n.isSelected(s));return{selectedRange:e[r],focusedRangeIndex:r}}render(){const{headerContent:e,footerContent:n,onPreviewChange:r,inputRanges:a,staticRanges:s,ranges:o,renderStaticRangeLabel:i,rangeColors:l,className:c}=this.props;return Tr.default.createElement("div",{className:(0,hy.default)(Pr.default.definedRangesWrapper,c)},e,Tr.default.createElement("div",{className:Pr.default.staticRanges},s.map((d,u)=>{const{selectedRange:f,focusedRangeIndex:h}=this.getSelectedRange(o,d);let m;return d.hasCustomRendering?m=i(d):m=d.label,Tr.default.createElement("button",{type:"button",className:(0,hy.default)(Pr.default.staticRange,{[Pr.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()}},Tr.default.createElement("span",{tabIndex:-1,className:Pr.default.staticRangeLabel},m))})),Tr.default.createElement("div",{className:Pr.default.inputRanges},a.map((d,u)=>Tr.default.createElement(oj.default,{key:u,styles:Pr.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)}}Nd.propTypes={inputRanges:Ct.default.array,staticRanges:Ct.default.array,ranges:Ct.default.arrayOf(sj.rangeShape),focusedRange:Ct.default.arrayOf(Ct.default.number),onPreviewChange:Ct.default.func,onChange:Ct.default.func,footerContent:Ct.default.any,headerContent:Ct.default.any,rangeColors:Ct.default.arrayOf(Ct.default.string),className:Ct.default.string,renderStaticRangeLabel:Ct.default.func},Nd.defaultProps={inputRanges:fy.defaultInputRanges,staticRanges:fy.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},ws.default=Nd,Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=void 0;var Ti=gj(_),uj=ks(Sn),my=ks(ds),py=ks(ws),by=En,fj=ks(An),hj=ks(Cr);function ks(t){return t&&t.__esModule?t:{default:t}}function yy(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(yy=function(r){return r?n:e})(t)}function gj(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=yy(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function Pi(){return Pi=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},Pi.apply(this,arguments)}let jd=class extends Ti.Component{constructor(e){super(e),this.state={focusedRange:[(0,by.findNextRangeIndex)(e.ranges),0]},this.styles=(0,by.generateStyles)([hj.default,e.classNames])}render(){const{focusedRange:e}=this.state;return Ti.default.createElement("div",{className:(0,fj.default)(this.styles.dateRangePickerWrapper,this.props.className)},Ti.default.createElement(py.default,Pi({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})),Ti.default.createElement(my.default,Pi({onRangeFocusChange:n=>this.setState({focusedRange:n}),focusedRange:e},this.props,{ref:n=>this.dateRange=n,className:void 0})))}};jd.defaultProps={},jd.propTypes={...my.default.propTypes,...py.default.propTypes,className:uj.default.string},Di.default=jd,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 a.default}}),Object.defineProperty(t,"createStaticRanges",{enumerable:!0,get:function(){return s.createStaticRanges}}),Object.defineProperty(t,"defaultInputRanges",{enumerable:!0,get:function(){return s.defaultInputRanges}}),Object.defineProperty(t,"defaultStaticRanges",{enumerable:!0,get:function(){return s.defaultStaticRanges}});var e=o(ds),n=o(us),r=o(Di),a=o(ws),s=qn;function o(i){return i&&i.__esModule?i:{default:i}}}(vp);const mj={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"}},pj=(t,e,n)=>{let r;const a=mj[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},bj={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},yj={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},vj={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xj={date:ia({formats:bj,defaultWidth:"full"}),time:ia({formats:yj,defaultWidth:"full"}),dateTime:ia({formats:vj,defaultWidth:"full"})},wj={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"},kj={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"},_j=(t,e,n,r)=>e.getHours()!==1?kj[t]:wj[t],Sj={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Oj={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Dj={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"]},Mj={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"]},Cj={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"}},Ej={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"}},Tj={ordinalNumber:(t,e)=>Number(t)+"º",era:ln({values:Sj,defaultWidth:"wide"}),quarter:ln({values:Oj,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:ln({values:Dj,defaultWidth:"wide"}),day:ln({values:Mj,defaultWidth:"wide"}),dayPeriod:ln({values:Cj,defaultWidth:"wide",formattingValues:Ej,defaultFormattingWidth:"wide"})},Pj=/^(\d+)(º)?/i,Nj=/\d+/i,jj={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},Ij={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]},Rj={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Aj={any:[/1/i,/2/i,/3/i,/4/i]},Fj={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},Lj={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]},Wj={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},zj={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]},Bj={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},Hj={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}},Yj={ordinalNumber:lb({matchPattern:Pj,parsePattern:Nj,valueCallback:function(t){return parseInt(t,10)}}),era:cn({matchPatterns:jj,defaultMatchWidth:"wide",parsePatterns:Ij,defaultParseWidth:"any"}),quarter:cn({matchPatterns:Rj,defaultMatchWidth:"wide",parsePatterns:Aj,defaultParseWidth:"any",valueCallback:t=>t+1}),month:cn({matchPatterns:Fj,defaultMatchWidth:"wide",parsePatterns:Lj,defaultParseWidth:"any"}),day:cn({matchPatterns:Wj,defaultMatchWidth:"wide",parsePatterns:zj,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:Bj,defaultMatchWidth:"any",parsePatterns:Hj,defaultParseWidth:"any"})},Vj={code:"es",formatDistance:pj,formatLong:xj,formatRelative:_j,localize:Tj,match:Yj,options:{weekStartsOn:1,firstWeekContainsDate:1}},Nn={"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"},Uj=[{label:"Ayer",range:()=>{const t=new Date;return t.setDate(t.getDate()-1),{startDate:t,endDate:t}}},{label:"La semana pasada",range:()=>({startDate:Wt(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}}}],Xj=({value:t,onChange:e,minData:n,maxData:r,quickRanges:a,className:s})=>{const[o,i]=_.useState([{startDate:Wt(new Date,-6),endDate:new Date,key:"selection"}]),[l,c]=_.useState(!1),[d,u]=_.useState({}),f=_.useRef(null),h=_.useRef(null),m=a??Uj,p=t?[{...t,key:"selection"}]:o;_.useEffect(()=>{if(l&&h.current&&f.current){const v=h.current.getBoundingClientRect(),y=f.current.offsetWidth||700,S=window.innerWidth-v.right,N=v.left,C={right:0,left:"auto"};S<y&&N>=y&&(C.left=0,C.right="auto"),window.innerWidth<y&&(C.left=0,C.right=0,C.width="100vw",C.maxWidth="100vw"),u(C)}},[l]);const b=v=>{t||i([v.selection]),e==null||e(v.selection.startDate,v.selection.endDate)},x=v=>{const{startDate:y,endDate:S}=v();t||i([{startDate:y,endDate:S,key:"selection"}]),e==null||e(y,S),c(!1)},w=()=>{const v=new Date;t||i([{startDate:v,endDate:v,key:"selection"}]),e==null||e(v,v),c(!1)},k=v=>fi(v,"dd MMM yy");return _.useEffect(()=>{if(!l)return;const v=y=>{f.current&&!f.current.contains(y.target)&&h.current&&!h.current.contains(y.target)&&c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[l]),g.jsxs("div",{className:Nn["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:`${Nn["date-input"]} ${s}`}),l&&g.jsxs("div",{ref:f,className:Nn["date-popup"],style:d,children:[g.jsxs("div",{className:Nn["date-menu"],children:[m.map((v,y)=>g.jsx("div",{className:Nn["date-menuItem"]+(y===2?" "+Nn["date-menuItemActive"]:""),onClick:()=>x(v.range),children:v.label},v.label)),g.jsx("div",{className:Nn["date-menuItem"]+" "+Nn["date-menuItemReset"],onClick:w,children:"Reset"})]}),g.jsx("div",{className:Nn["date-calendar"],children:g.jsx(vp.DateRange,{editableDateInputs:!1,onChange:b,moveRangeOnFirstSelection:!1,ranges:p,rangeColors:["#C0D4FF99"],minDate:n,maxDate:r,locale:Vj,dayContentRenderer:v=>{const y=v.getDay(),S={opacity:y===0||y===6?.5:1,color:y===0||y===6?"#999":"inherit"};return g.jsx("span",{style:S,children:v.getDate()})},navigationButtonsPosition:"center"})})]})]})},Gj=({minDate:t,maxDate:e})=>g.jsx(wu,{minDate:t,maxDate:e,className:"custom-datepicker"}),Nr={"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"},Kj=function(){return g.jsx("div",{className:`mth_loader ${Nr["loader-wrapper"]}`,children:g.jsx("div",{className:Nr.container,children:g.jsxs("div",{className:Nr["mathilde-loading"],children:[g.jsx("img",{className:Nr.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:Nr["loading-1"],children:g.jsx("circle",{cx:"50",cy:"50",r:"40"})}),g.jsx("div",{className:Nr["ball-container"],children:g.jsx("div",{className:Nr.ball})})]})})})},Qj=({label:t,dismissOnClick:e,items:n,size:r,className:a,styles:s,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,v)=>{const y=v?[...h,k]:h.filter(S=>S!==k);m(y),l==null||l(y)},b=()=>n.map(k=>g.jsx(wl,{...k,href:k.href,children:k.label},k.value||k.label)),x=()=>{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 y=v.value||v.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: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})]},y)})})},w=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(jk,{label:t,dismissOnClick:o==="simple"?e:!1,size:r,renderTrigger:()=>g.jsx("button",{className:a,style:s,type:"button",children:g.jsxs("span",{className:"flex items-center gap-2",children:[w(u),t,d&&w(Ai)]})}),className:"left-0",children:o==="simple"?b():x()})})},Zj=function({steps:t=[],initialStep:e=1,activeStep:n,onStepChange:r,renderControls:a,onNext:s,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 x=u+1;l?(r==null||r(x),s==null||s()):(d(x),s==null||s())}else i==null||i()},h=()=>{if(u>1){const x=u-1;l?(r==null||r(x),o==null||o()):(d(x),o==null||o())}},m=x=>{x!==u&&(x<1||x>t.length||(l?r==null||r(x):d(x)))},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((x,w)=>{const k=w===t.length-1,v=w+1===u,y=w+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
516
+ */var Lc,_p;function R2(){if(_p)return Lc;_p=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[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 Lc=a()?Object.assign:function(s,o){for(var i,l=r(s),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},Lc}var Wc,Sp;function zc(){if(Sp)return Wc;Sp=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wc=t,Wc}var Bc,Op;function Dp(){return Op||(Op=1,Bc=Function.call.bind(Object.prototype.hasOwnProperty)),Bc}var Hc,Mp;function A2(){if(Mp)return Hc;Mp=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=zc(),n={},r=Dp();t=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(s,o,i,l,c){if(process.env.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var u;try{if(typeof s[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 s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}u=s[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 a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Hc=a,Hc}var Yc,Cp;function F2(){if(Cp)return Yc;Cp=1;var t=kp(),e=R2(),n=zc(),r=Dp(),a=A2(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Yc=function(i,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(j){var H=j&&(c&&j[c]||j[d]);if(typeof H=="function")return H}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:k,element:v(),elementType:y(),instanceOf:S,node:E(),objectOf:C,oneOf:N,oneOfType:P,shape:F,exact:O};function m(j,H){return j===H?j!==0||1/j===1/H:j!==j&&H!==H}function p(j,H){this.message=j,this.data=H&&typeof H=="object"?H:{},this.stack=""}p.prototype=Error.prototype;function b(j){if(process.env.NODE_ENV!=="production")var H={},A=0;function R(M,W,Q,G,Z,$,ne){if(G=G||f,$=$||Q,ne!==n){if(l){var Y=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 Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var re=G+":"+Q;!H[re]&&A<3&&(s("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+G+"`. 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."),H[re]=!0,A++)}}return W[Q]==null?M?W[Q]===null?new p("The "+Z+" `"+$+"` is marked as required "+("in `"+G+"`, but its value is `null`.")):new p("The "+Z+" `"+$+"` is marked as required in "+("`"+G+"`, but its value is `undefined`.")):null:j(W,Q,G,Z,$)}var I=R.bind(null,!1);return I.isRequired=R.bind(null,!0),I}function x(j){function H(A,R,I,M,W,Q){var G=A[R],Z=L(G);if(Z!==j){var $=V(G);return new p("Invalid "+M+" `"+W+"` of type "+("`"+$+"` supplied to `"+I+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return b(H)}function w(){return b(o)}function k(j){function H(A,R,I,M,W){if(typeof j!="function")return new p("Property `"+W+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var Q=A[R];if(!Array.isArray(Q)){var G=L(Q);return new p("Invalid "+M+" `"+W+"` of type "+("`"+G+"` supplied to `"+I+"`, expected an array."))}for(var Z=0;Z<Q.length;Z++){var $=j(Q,Z,I,M,W+"["+Z+"]",n);if($ instanceof Error)return $}return null}return b(H)}function v(){function j(H,A,R,I,M){var W=H[A];if(!i(W)){var Q=L(W);return new p("Invalid "+I+" `"+M+"` of type "+("`"+Q+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return b(j)}function y(){function j(H,A,R,I,M){var W=H[A];if(!t.isValidElementType(W)){var Q=L(W);return new p("Invalid "+I+" `"+M+"` of type "+("`"+Q+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return b(j)}function S(j){function H(A,R,I,M,W){if(!(A[R]instanceof j)){var Q=j.name||f,G=q(A[R]);return new p("Invalid "+M+" `"+W+"` of type "+("`"+G+"` supplied to `"+I+"`, expected ")+("instance of `"+Q+"`."))}return null}return b(H)}function N(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),o;function H(A,R,I,M,W){for(var Q=A[R],G=0;G<j.length;G++)if(m(Q,j[G]))return null;var Z=JSON.stringify(j,function(ne,Y){var re=V(Y);return re==="symbol"?String(Y):Y});return new p("Invalid "+M+" `"+W+"` of value `"+String(Q)+"` "+("supplied to `"+I+"`, expected one of "+Z+"."))}return b(H)}function C(j){function H(A,R,I,M,W){if(typeof j!="function")return new p("Property `"+W+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var Q=A[R],G=L(Q);if(G!=="object")return new p("Invalid "+M+" `"+W+"` of type "+("`"+G+"` supplied to `"+I+"`, expected an object."));for(var Z in Q)if(r(Q,Z)){var $=j(Q,Z,I,M,W+"."+Z,n);if($ instanceof Error)return $}return null}return b(H)}function P(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var H=0;H<j.length;H++){var A=j[H];if(typeof A!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(A)+" at index "+H+"."),o}function R(I,M,W,Q,G){for(var Z=[],$=0;$<j.length;$++){var ne=j[$],Y=ne(I,M,W,Q,G,n);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&Z.push(Y.data.expectedType)}var re=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new p("Invalid "+Q+" `"+G+"` supplied to "+("`"+W+"`"+re+"."))}return b(R)}function E(){function j(H,A,R,I,M){return D(H[A])?null:new p("Invalid "+I+" `"+M+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return b(j)}function B(j,H,A,R,I){return new p((j||"React class")+": "+H+" type `"+A+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function F(j){function H(A,R,I,M,W){var Q=A[R],G=L(Q);if(G!=="object")return new p("Invalid "+M+" `"+W+"` of type `"+G+"` "+("supplied to `"+I+"`, expected `object`."));for(var Z in j){var $=j[Z];if(typeof $!="function")return B(I,M,W,Z,V($));var ne=$(Q,Z,I,M,W+"."+Z,n);if(ne)return ne}return null}return b(H)}function O(j){function H(A,R,I,M,W){var Q=A[R],G=L(Q);if(G!=="object")return new p("Invalid "+M+" `"+W+"` of type `"+G+"` "+("supplied to `"+I+"`, expected `object`."));var Z=e({},A[R],j);for(var $ in Z){var ne=j[$];if(r(j,$)&&typeof ne!="function")return B(I,M,W,$,V(ne));if(!ne)return new p("Invalid "+M+" `"+W+"` key `"+$+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(A[R],null," ")+`
517
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Y=ne(Q,$,I,M,W+"."+$,n);if(Y)return Y}return null}return b(H)}function D(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(D);if(j===null||i(j))return!0;var H=u(j);if(H){var A=H.call(j),R;if(H!==j.entries){for(;!(R=A.next()).done;)if(!D(R.value))return!1}else for(;!(R=A.next()).done;){var I=R.value;if(I&&!D(I[1]))return!1}}else return!1;return!0;default:return!1}}function T(j,H){return j==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function L(j){var H=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":T(H,j)?"symbol":H}function V(j){if(typeof j>"u"||j===null)return""+j;var H=L(j);if(H==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return H}function K(j){var H=V(j);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function q(j){return!j.constructor||!j.constructor.name?f:j.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},Yc}var Vc,Ep;function L2(){if(Ep)return Vc;Ep=1;var t=zc();function e(){}function n(){}return n.resetWarningCache=e,Vc=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 a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:e};return s.PropTypes=s,s},Vc}if(process.env.NODE_ENV!=="production"){var W2=kp(),z2=!0;Fc.exports=F2()(W2.isElement,z2)}else Fc.exports=L2()();var Sn=Fc.exports,us={},On={};const Tp=7,Jo=365.2425,fs=6048e5,Pp=864e5,Dn=6e4,kr=36e5,Uc=1e3,Np=525600,na=43200,qo=1440,jp=60,Ip=3,Rp=12,Ap=4,$o=3600,Xc=60,Gc=$o*24,B2=Gc*7,Fp=Gc*Jo,Lp=Fp/12,H2=Lp*3,Wp=Symbol.for("constructDateFrom");function se(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Wp in t?t[Wp](e):t instanceof Date?new t.constructor(e):new Date(e)}function X(t,e){return se(e||t,t)}function Wt(t,e,n){const r=X(t,n==null?void 0:n.in);return isNaN(e)?se((n==null?void 0:n.in)||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function hs(t,e,n){const r=X(t,n==null?void 0:n.in);if(isNaN(e))return se((n==null?void 0:n.in)||t,NaN);if(!e)return r;const a=r.getDate(),s=se((n==null?void 0:n.in)||t,r.getTime());s.setMonth(r.getMonth()+e+1,0);const o=s.getDate();return a>=o?s:(r.setFullYear(s.getFullYear(),s.getMonth(),a),r)}function ra(t,e,n){const{years:r=0,months:a=0,weeks:s=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=X(t,n==null?void 0:n.in),u=a||r?hs(d,a+r*12):d,f=o||s?Wt(u,o+s*7):u,h=l+i*60,p=(c+h*60)*1e3;return se((n==null?void 0:n.in)||t,+f+p)}function zp(t,e){return X(t,e==null?void 0:e.in).getDay()===6}function Bp(t,e){return X(t,e==null?void 0:e.in).getDay()===0}function aa(t,e){const n=X(t,e==null?void 0:e.in).getDay();return n===0||n===6}function Hp(t,e,n){const r=X(t,n==null?void 0:n.in),a=aa(r,n);if(isNaN(e))return se(n==null?void 0:n.in,NaN);const s=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),aa(r,n)||(l-=1);return a&&aa(r,n)&&e!==0&&(zp(r,n)&&r.setDate(r.getDate()+(o<0?2:-1)),Bp(r,n)&&r.setDate(r.getDate()+(o<0?1:-2))),r.setHours(s),r}function ei(t,e,n){return se((n==null?void 0:n.in)||t,+X(t)+e)}function Yp(t,e,n){return ei(t,e*kr,n)}let Vp={};function ht(){return Vp}function Y2(t){Vp=t}function it(t,e){var i,l,c,d;const n=ht(),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,a=X(t,e==null?void 0:e.in),s=a.getDay(),o=(s<r?7:0)+s-r;return a.setDate(a.getDate()-o),a.setHours(0,0,0,0),a}function Xt(t,e){return it(t,{...e,weekStartsOn:1})}function Xn(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=se(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const s=Xt(a),o=se(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const i=Xt(o);return n.getTime()>=s.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function kt(t){const e=X(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 De(t,...e){const n=se.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function sa(t,e){const n=X(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function sn(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=sa(r),o=sa(a),i=+s-kt(s),l=+o-kt(o);return Math.round((i-l)/Pp)}function Gn(t,e){const n=Xn(t,e),r=se((e==null?void 0:e.in)||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Xt(r)}function Up(t,e,n){let r=X(t,n==null?void 0:n.in);const a=sn(r,Gn(r,n)),s=se((n==null?void 0:n.in)||t,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),r=Gn(s),r.setDate(r.getDate()+a),r}function Xp(t,e,n){return Up(t,Xn(t,n)+e,n)}function Kc(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setTime(r.getTime()+e*Dn),r}function Qc(t,e,n){return hs(t,e*3,n)}function Gp(t,e,n){return ei(t,e*1e3,n)}function ti(t,e,n){return Wt(t,e*7,n)}function Kp(t,e,n){return hs(t,e*12,n)}function V2(t,e,n){const[r,a]=[+X(t.start,n==null?void 0:n.in),+X(t.end,n==null?void 0:n.in)].sort((i,l)=>i-l),[s,o]=[+X(e.start,n==null?void 0:n.in),+X(e.end,n==null?void 0:n.in)].sort((i,l)=>i-l);return n!=null&&n.inclusive?r<=o&&s<=a:r<o&&s<a}function Qp(t,e){let n,r=e==null?void 0:e.in;return t.forEach(a=>{!r&&typeof a=="object"&&(r=se.bind(null,a));const s=X(a,r);(!n||n<s||isNaN(+s))&&(n=s)}),se(r,n||NaN)}function Zp(t,e){let n,r=e==null?void 0:e.in;return t.forEach(a=>{!r&&typeof a=="object"&&(r=se.bind(null,a));const s=X(a,r);(!n||n>s||isNaN(+s))&&(n=s)}),se(r,n||NaN)}function U2(t,e,n){const[r,a,s]=De(n==null?void 0:n.in,t,e.start,e.end);return Zp([Qp([r,a],n),s],n)}function Jp(t,e){const n=+X(t);if(isNaN(n))return NaN;let r,a;return e.forEach((s,o)=>{const i=X(s);if(isNaN(+i)){r=NaN,a=NaN;return}const l=Math.abs(n-+i);(r==null||l<a)&&(r=o,a=l)}),r}function X2(t,e,n){const[r,...a]=De(n==null?void 0:n.in,t,...e),s=Jp(r,a);if(typeof s=="number"&&isNaN(s))return se(r,NaN);if(s!==void 0)return a[s]}function on(t,e){const n=+X(t)-+X(e);return n<0?-1:n>0?1:n}function G2(t,e){const n=+X(t)-+X(e);return n>0?-1:n<0?1:n}function Qe(t){return se(t,Date.now())}function K2(t){const e=Math.trunc(t/Tp);return e===0?0:e}function gs(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+sa(r)==+sa(a)}function qp(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Mn(t){return!(!qp(t)&&typeof t!="number"||isNaN(+X(t)))}function Q2(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);if(!Mn(r)||!Mn(a))return NaN;const s=sn(r,a),o=s<0?-1:1,i=Math.trunc(s/7);let l=i*5,c=Wt(a,i*7);for(;!gs(r,c);)l+=aa(c,n)?0:o,c=Wt(c,o);return l===0?0:l}function $p(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return Xn(r,n)-Xn(a,n)}function Z2(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=Xt(r),o=Xt(a),i=+s-kt(s),l=+o-kt(o);return Math.round((i-l)/fs)}function ni(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=r.getFullYear()-a.getFullYear(),o=r.getMonth()-a.getMonth();return s*12+o}function Zc(t,e){const n=X(t,e==null?void 0:e.in);return Math.trunc(n.getMonth()/3)+1}function ri(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=r.getFullYear()-a.getFullYear(),o=Zc(r)-Zc(a);return s*4+o}function ai(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=it(r,n),o=it(a,n),i=+s-kt(s),l=+o-kt(o);return Math.round((i-l)/fs)}function ms(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return r.getFullYear()-a.getFullYear()}function Jc(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=eb(r,a),o=Math.abs(sn(r,a));r.setDate(r.getDate()-s*o);const i=+(eb(r,a)===-s),l=s*(o-i);return l===0?0:l}function eb(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 Kn(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function si(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=(+r-+a)/kr;return Kn(n==null?void 0:n.roundingMethod)(s)}function tb(t,e,n){return Xp(t,-e,n)}function J2(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=on(r,a),o=Math.abs($p(r,a,n)),i=tb(r,s*o,n),l=+(on(i,a)===-s),c=s*(o-l);return c===0?0:c}function qc(t,e){return+X(t)-+X(e)}function oi(t,e,n){const r=qc(t,e)/Dn;return Kn(n==null?void 0:n.roundingMethod)(r)}function $c(t,e){const n=X(t,e==null?void 0:e.in);return n.setHours(23,59,59,999),n}function ed(t,e){const n=X(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 nb(t,e){const n=X(t,e==null?void 0:e.in);return+$c(n,e)==+ed(n,e)}function ii(t,e,n){const[r,a,s]=De(n==null?void 0:n.in,t,t,e),o=on(a,s),i=Math.abs(ni(a,s));if(i<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-o*i);let l=on(a,s)===-o;nb(r)&&i===1&&on(r,s)===1&&(l=!1);const c=o*(i-+l);return c===0?0:c}function q2(t,e,n){const r=ii(t,e,n)/3;return Kn(n==null?void 0:n.roundingMethod)(r)}function oa(t,e,n){const r=qc(t,e)/1e3;return Kn(n==null?void 0:n.roundingMethod)(r)}function $2(t,e,n){const r=Jc(t,e,n)/7;return Kn(n==null?void 0:n.roundingMethod)(r)}function rb(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e),s=on(r,a),o=Math.abs(ms(r,a));r.setFullYear(1584),a.setFullYear(1584);const i=on(r,a)===-s,l=s*(o-+i);return l===0?0:l}function Cn(t,e){const[n,r]=De(t,e.start,e.end);return{start:n,end:r}}function ab(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+n:+r,o=a?r:n;o.setHours(0,0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o.setDate(o.getDate()+i),o.setHours(0,0,0,0);return a?l.reverse():l}function eC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+n:+r,o=a?r:n;o.setMinutes(0,0,0);let i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o.setHours(o.getHours()+i);return a?l.reverse():l}function tC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);n.setSeconds(0,0);let a=+n>+r;const s=a?+n:+r;let o=a?r:n,i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o=Kc(o,i);return a?l.reverse():l}function nC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+n:+r,o=a?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,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o.setMonth(o.getMonth()+i);return a?l.reverse():l}function _r(t,e){const n=X(t,e==null?void 0:e.in),r=n.getMonth(),a=r-r%3;return n.setMonth(a,1),n.setHours(0,0,0,0),n}function rC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+_r(n):+_r(r);let o=_r(a?r:n),i=(e==null?void 0:e.step)??1;if(!i)return[];i<0&&(i=-i,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o=Qc(o,i);return a?l.reverse():l}function aC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=it(a?r:n,e),o=it(a?n:r,e);s.setHours(15),o.setHours(15);const i=+o.getTime();let l=s,c=(e==null?void 0:e.step)??1;if(!c)return[];c<0&&(c=-c,a=!a);const d=[];for(;+l<=i;)l.setHours(0),d.push(se(n,l)),l=ti(l,c),l.setHours(15);return a?d.reverse():d}function td(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t),a=ab({start:n,end:r},e),s=[];let o=0;for(;o<a.length;){const i=a[o++];aa(i)&&s.push(se(n,i))}return s}function li(t,e){const n=X(t,e==null?void 0:e.in);return n.setDate(1),n.setHours(0,0,0,0),n}function sC(t,e){const n=li(t,e),r=ed(t,e);return td({start:n,end:r},e)}function sb(t,e){const n=X(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 nd(t,e){const n=X(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function oC(t,e){const n=nd(t,e),r=sb(t,e);return td({start:n,end:r},e)}function iC(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t);let a=+n>+r;const s=a?+n:+r,o=a?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,a=!a);const l=[];for(;+o<=s;)l.push(se(n,o)),o.setFullYear(o.getFullYear()+i);return a?l.reverse():l}function lC(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=9+Math.floor(r/10)*10;return n.setFullYear(a,11,31),n.setHours(23,59,59,999),n}function cC(t,e){const n=X(t,e==null?void 0:e.in);return n.setMinutes(59,59,999),n}function ob(t,e){var i,l,c,d;const n=ht(),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,a=X(t,e==null?void 0:e.in),s=a.getDay(),o=(s<r?-7:0)+6-(s-r);return a.setDate(a.getDate()+o),a.setHours(23,59,59,999),a}function dC(t,e){return ob(t,{...e,weekStartsOn:1})}function uC(t,e){const n=Xn(t,e),r=se((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Xt(r,e);return a.setMilliseconds(a.getMilliseconds()-1),a}function fC(t,e){const n=X(t,e==null?void 0:e.in);return n.setSeconds(59,999),n}function hC(t,e){const n=X(t,e==null?void 0:e.in),r=n.getMonth(),a=r-r%3+3;return n.setMonth(a,0),n.setHours(23,59,59,999),n}function gC(t,e){const n=X(t,e==null?void 0:e.in);return n.setMilliseconds(999),n}function mC(t){return $c(Date.now(),t)}function pC(t){const e=Qe(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),a=e.getDate(),s=Qe(t==null?void 0:t.in);return s.setFullYear(n,r,a+1),s.setHours(23,59,59,999),t!=null&&t.in?t.in(s):s}function bC(t){const e=Qe(t==null?void 0:t.in),n=se(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 yC={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"}},vC=(t,e,n)=>{let r;const a=yC[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ia(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const xC={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wC={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kC={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_C={date:ia({formats:xC,defaultWidth:"full"}),time:ia({formats:wC,defaultWidth:"full"}),dateTime:ia({formats:kC,defaultWidth:"full"})},SC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},OC=(t,e,n,r)=>SC[t];function ln(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;a=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;a=t.values[i]||t.values[o]}const s=t.argumentCallback?t.argumentCallback(e):e;return a[s]}}const DC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},MC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},CC={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"]},EC={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"]},TC={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"}},PC={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"}},NC={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:ln({values:DC,defaultWidth:"wide"}),quarter:ln({values:MC,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ln({values:CC,defaultWidth:"wide"}),day:ln({values:EC,defaultWidth:"wide"}),dayPeriod:ln({values:TC,defaultWidth:"wide",formattingValues:PC,defaultFormattingWidth:"wide"})};function cn(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(a);if(!s)return null;const o=s[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?IC(i,u=>u.test(o)):jC(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 jC(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function IC(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function ib(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(a.length);return{value:o,rest:i}}}const RC=/^(\d+)(th|st|nd|rd)?/i,AC=/\d+/i,FC={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},LC={any:[/^b/i,/^(a|c)/i]},WC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zC={any:[/1/i,/2/i,/3/i,/4/i]},BC={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},HC={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]},YC={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},VC={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]},UC={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},XC={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}},GC={ordinalNumber:ib({matchPattern:RC,parsePattern:AC,valueCallback:t=>parseInt(t,10)}),era:cn({matchPatterns:FC,defaultMatchWidth:"wide",parsePatterns:LC,defaultParseWidth:"any"}),quarter:cn({matchPatterns:WC,defaultMatchWidth:"wide",parsePatterns:zC,defaultParseWidth:"any",valueCallback:t=>t+1}),month:cn({matchPatterns:BC,defaultMatchWidth:"wide",parsePatterns:HC,defaultParseWidth:"any"}),day:cn({matchPatterns:YC,defaultMatchWidth:"wide",parsePatterns:VC,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:UC,defaultMatchWidth:"any",parsePatterns:XC,defaultParseWidth:"any"})},la={code:"en-US",formatDistance:vC,formatLong:_C,formatRelative:OC,localize:NC,match:GC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function lb(t,e){const n=X(t,e==null?void 0:e.in);return sn(n,nd(n))+1}function rd(t,e){const n=X(t,e==null?void 0:e.in),r=+Xt(n)-+Gn(n);return Math.round(r/fs)+1}function ci(t,e){var d,u,f,h;const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=ht(),s=(e==null?void 0:e.firstWeekContainsDate)??((u=(d=e==null?void 0:e.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??a.firstWeekContainsDate??((h=(f=a.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,o=se((e==null?void 0:e.in)||t,0);o.setFullYear(r+1,0,s),o.setHours(0,0,0,0);const i=it(o,e),l=se((e==null?void 0:e.in)||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const c=it(l,e);return+n>=+i?r+1:+n>=+c?r:r-1}function di(t,e){var i,l,c,d;const n=ht(),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,a=ci(t,e),s=se((e==null?void 0:e.in)||t,0);return s.setFullYear(a,0,r),s.setHours(0,0,0,0),it(s,e)}function ad(t,e){const n=X(t,e==null?void 0:e.in),r=+it(n,e)-+di(n,e);return Math.round(r/fs)+1}function oe(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 oe(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):oe(n+1,2)},d(t,e){return oe(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 oe(t.getHours()%12||12,e.length)},H(t,e){return oe(t.getHours(),e.length)},m(t,e){return oe(t.getMinutes(),e.length)},s(t,e){return oe(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return oe(a,e.length)}},ca={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sd={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(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return dn.y(t,e)},Y:function(t,e,n,r){const a=ci(t,r),s=a>0?a:1-a;if(e==="YY"){const o=s%100;return oe(o,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):oe(s,e.length)},R:function(t,e){const n=Xn(t);return oe(n,e.length)},u:function(t,e){const n=t.getFullYear();return oe(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 oe(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 oe(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 oe(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 a=ad(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):oe(a,e.length)},I:function(t,e,n){const r=rd(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):oe(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=lb(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):oe(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 a=t.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return oe(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),s=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return oe(s,e.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return oe(a,e.length);case"io":return n.ordinalNumber(a,{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 a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=ca.noon:r===0?a=ca.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=ca.evening:r>=12?a=ca.afternoon:r>=4?a=ca.morning:a=ca.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{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"}):oe(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):oe(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 db(r);case"XXXX":case"XX":return Sr(r);case"XXXXX":case"XXX":default:return Sr(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return db(r);case"xxxx":case"xx":return Sr(r);case"xxxxx":case"xxx":default:return Sr(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+cb(r,":");case"OOOO":default:return"GMT"+Sr(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+cb(r,":");case"zzzz":default:return"GMT"+Sr(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return oe(r,e.length)},T:function(t,e,n){return oe(+t,e.length)}};function cb(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),s=r%60;return s===0?n+String(a):n+String(a)+e+oe(s,2)}function db(t,e){return t%60===0?(t>0?"-":"+")+oe(Math.abs(t)/60,2):Sr(t,e)}function Sr(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=oe(Math.trunc(r/60),2),s=oe(r%60,2);return n+a+e+s}const ub=(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"})}},fb=(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"})}},ui={p:fb,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return ub(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",ub(r,e)).replace("{{time}}",fb(a,e))}},KC=/^D+$/,QC=/^Y+$/,ZC=["D","DD","YY","YYYY"];function hb(t){return KC.test(t)}function gb(t){return QC.test(t)}function od(t,e,n){const r=JC(t,e,n);if(console.warn(r),ZC.includes(t))throw new RangeError(r)}function JC(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 qC=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eE=/^'([^]*?)'?$/,tE=/''/g,nE=/[a-zA-Z]/;function fi(t,e,n){var d,u,f,h,m,p,b,x;const r=ht(),a=(n==null?void 0:n.locale)??r.locale??la,s=(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??((x=(b=r.locale)==null?void 0:b.options)==null?void 0:x.weekStartsOn)??0,i=X(t,n==null?void 0:n.in);if(!Mn(i))throw new RangeError("Invalid time value");let l=e.match($C).map(w=>{const k=w[0];if(k==="p"||k==="P"){const v=ui[k];return v(w,a.formatLong)}return w}).join("").match(qC).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const k=w[0];if(k==="'")return{isToken:!1,value:rE(w)};if(sd[k])return{isToken:!0,value:w};if(k.match(nE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");return{isToken:!1,value:w}});a.localize.preprocessor&&(l=a.localize.preprocessor(i,l));const c={firstWeekContainsDate:s,weekStartsOn:o,locale:a};return l.map(w=>{if(!w.isToken)return w.value;const k=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&gb(k)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&hb(k))&&od(k,e,String(t));const v=sd[k[0]];return v(i,k,a.localize,c)}).join("")}function rE(t){const e=t.match(eE);return e?e[1].replace(tE,"'"):t}function mb(t,e,n){const r=ht(),a=(n==null?void 0:n.locale)??r.locale??la,s=2520,o=on(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]=De(n==null?void 0:n.in,...o>0?[e,t]:[t,e]),d=oa(c,l),u=(kt(c)-kt(l))/1e3,f=Math.round((d-u)/60);let h;if(f<2)return n!=null&&n.includeSeconds?d<5?a.formatDistance("lessThanXSeconds",5,i):d<10?a.formatDistance("lessThanXSeconds",10,i):d<20?a.formatDistance("lessThanXSeconds",20,i):d<40?a.formatDistance("halfAMinute",0,i):d<60?a.formatDistance("lessThanXMinutes",1,i):a.formatDistance("xMinutes",1,i):f===0?a.formatDistance("lessThanXMinutes",1,i):a.formatDistance("xMinutes",f,i);if(f<45)return a.formatDistance("xMinutes",f,i);if(f<90)return a.formatDistance("aboutXHours",1,i);if(f<qo){const m=Math.round(f/60);return a.formatDistance("aboutXHours",m,i)}else{if(f<s)return a.formatDistance("xDays",1,i);if(f<na){const m=Math.round(f/qo);return a.formatDistance("xDays",m,i)}else if(f<na*2)return h=Math.round(f/na),a.formatDistance("aboutXMonths",h,i)}if(h=ii(c,l),h<12){const m=Math.round(f/na);return a.formatDistance("xMonths",m,i)}else{const m=h%12,p=Math.trunc(h/12);return m<3?a.formatDistance("aboutXYears",p,i):m<9?a.formatDistance("overXYears",p,i):a.formatDistance("almostXYears",p+1,i)}}function pb(t,e,n){const r=ht(),a=(n==null?void 0:n.locale)??r.locale??la,s=on(t,e);if(isNaN(s))throw new RangeError("Invalid time value");const o=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:s}),[i,l]=De(n==null?void 0:n.in,...s>0?[e,t]:[t,e]),c=Kn((n==null?void 0:n.roundingMethod)??"round"),d=l.getTime()-i.getTime(),u=d/Dn,f=kt(l)-kt(i),h=(d-f)/Dn,m=n==null?void 0:n.unit;let p;if(m?p=m:u<1?p="second":u<60?p="minute":u<qo?p="hour":h<na?p="day":h<Np?p="month":p="year",p==="second"){const b=c(d/1e3);return a.formatDistance("xSeconds",b,o)}else if(p==="minute"){const b=c(u);return a.formatDistance("xMinutes",b,o)}else if(p==="hour"){const b=c(u/60);return a.formatDistance("xHours",b,o)}else if(p==="day"){const b=c(h/qo);return a.formatDistance("xDays",b,o)}else if(p==="month"){const b=c(h/na);return b===12&&m!=="month"?a.formatDistance("xYears",1,o):a.formatDistance("xMonths",b,o)}else{const b=c(h/Np);return a.formatDistance("xYears",b,o)}}function aE(t,e){return mb(t,Qe(t),e)}function sE(t,e){return pb(t,Qe(t),e)}const oE=["years","months","weeks","days","hours","minutes","seconds"];function iE(t,e){const n=ht(),r=(e==null?void 0:e.locale)??n.locale??la,a=(e==null?void 0:e.format)??oE,s=(e==null?void 0:e.zero)??!1,o=(e==null?void 0:e.delimiter)??" ";return r.formatDistance?a.reduce((l,c)=>{const d=`x${c.replace(/(^.)/,f=>f.toUpperCase())}`,u=t[c];return u!==void 0&&(s||t[c])?l.concat(r.formatDistance(d,u)):l},[]).join(o):""}function lE(t,e){const n=X(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",a=(e==null?void 0:e.representation)??"complete";let s="",o="";const i=r==="extended"?"-":"",l=r==="extended"?":":"";if(a!=="time"){const c=oe(n.getDate(),2),d=oe(n.getMonth()+1,2);s=`${oe(n.getFullYear(),4)}${i}${d}${i}${c}`}if(a!=="date"){const c=n.getTimezoneOffset();if(c!==0){const p=Math.abs(c),b=oe(Math.trunc(p/60),2),x=oe(p%60,2);o=`${c<0?"+":"-"}${b}:${x}`}else o="Z";const d=oe(n.getHours(),2),u=oe(n.getMinutes(),2),f=oe(n.getSeconds(),2),h=s===""?"":"T",m=[d,u,f].join(l);s=`${s}${h}${m}${o}`}return s}function cE(t,e){const n=X(t,e==null?void 0:e.in);if(!Mn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.format)??"extended",a=(e==null?void 0:e.representation)??"complete";let s="";const o=r==="extended"?"-":"",i=r==="extended"?":":"";if(a!=="time"){const l=oe(n.getDate(),2),c=oe(n.getMonth()+1,2);s=`${oe(n.getFullYear(),4)}${o}${c}${o}${l}`}if(a!=="date"){const l=oe(n.getHours(),2),c=oe(n.getMinutes(),2),d=oe(n.getSeconds(),2);s=`${s}${s===""?"":" "}${l}${i}${c}${i}${d}`}return s}function dE(t){const{years:e=0,months:n=0,days:r=0,hours:a=0,minutes:s=0,seconds:o=0}=t;return`P${e}Y${n}M${r}DT${a}H${s}M${o}S`}function uE(t,e){const n=X(t,e==null?void 0:e.in);if(!Mn(n))throw new RangeError("Invalid time value");const r=(e==null?void 0:e.fractionDigits)??0,a=oe(n.getDate(),2),s=oe(n.getMonth()+1,2),o=n.getFullYear(),i=oe(n.getHours(),2),l=oe(n.getMinutes(),2),c=oe(n.getSeconds(),2);let d="";if(r>0){const h=n.getMilliseconds(),m=Math.trunc(h*Math.pow(10,r-3));d="."+oe(m,r)}let u="";const f=n.getTimezoneOffset();if(f!==0){const h=Math.abs(f),m=oe(Math.trunc(h/60),2),p=oe(h%60,2);u=`${f<0?"+":"-"}${m}:${p}`}else u="Z";return`${o}-${s}-${a}T${i}:${l}:${c}${d}${u}`}const fE=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],hE=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gE(t){const e=X(t);if(!Mn(e))throw new RangeError("Invalid time value");const n=fE[e.getUTCDay()],r=oe(e.getUTCDate(),2),a=hE[e.getUTCMonth()],s=e.getUTCFullYear(),o=oe(e.getUTCHours(),2),i=oe(e.getUTCMinutes(),2),l=oe(e.getUTCSeconds(),2);return`${n}, ${r} ${a} ${s} ${o}:${i}:${l} GMT`}function mE(t,e,n){var u,f,h,m;const[r,a]=De(n==null?void 0:n.in,t,e),s=ht(),o=(n==null?void 0:n.locale)??s.locale??la,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)??s.weekStartsOn??((m=(h=s.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,l=sn(r,a);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,a,{locale:o,weekStartsOn:i});return fi(r,d,{locale:o,weekStartsOn:i})}function pE(t,e){return X(t*1e3,e==null?void 0:e.in)}function bb(t,e){return X(t,e==null?void 0:e.in).getDate()}function hi(t,e){return X(t,e==null?void 0:e.in).getDay()}function yb(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=n.getMonth(),s=se(n,0);return s.setFullYear(r,a+1,0),s.setHours(0,0,0,0),s.getDate()}function vb(t,e){const r=X(t,e==null?void 0:e.in).getFullYear();return r%400===0||r%4===0&&r%100!==0}function bE(t,e){const n=X(t,e==null?void 0:e.in);return Number.isNaN(+n)?NaN:vb(n)?366:365}function yE(t,e){const r=X(t,e==null?void 0:e.in).getFullYear();return Math.floor(r/10)*10}function xb(){return Object.assign({},ht())}function vE(t,e){return X(t,e==null?void 0:e.in).getHours()}function wb(t,e){const n=X(t,e==null?void 0:e.in).getDay();return n===0?7:n}function xE(t,e){const n=Gn(t,e),a=+Gn(ti(n,60))-+n;return Math.round(a/fs)}function wE(t){return X(t).getMilliseconds()}function kE(t,e){return X(t,e==null?void 0:e.in).getMinutes()}function _E(t,e){return X(t,e==null?void 0:e.in).getMonth()}function SE(t,e){const[n,r]=[+X(t.start),+X(t.end)].sort((u,f)=>u-f),[a,s]=[+X(e.start),+X(e.end)].sort((u,f)=>u-f);if(!(n<s&&a<r))return 0;const i=a<n?n:a,l=i-kt(i),c=s>r?r:s,d=c-kt(c);return Math.ceil((d-l)/Pp)}function OE(t){return X(t).getSeconds()}function DE(t){return+X(t)}function ME(t){return Math.trunc(+X(t)/1e3)}function CE(t,e){var l,c,d,u;const n=ht(),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,a=bb(X(t,e==null?void 0:e.in));if(isNaN(a))return NaN;const s=hi(li(t,e));let o=r-s;o<=0&&(o+=7);const i=a-o;return Math.ceil(i/7)+1}function kb(t,e){const n=X(t,e==null?void 0:e.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),X(n,e==null?void 0:e.in)}function EE(t,e){const n=X(t,e==null?void 0:e.in);return ai(kb(n,e),li(n,e),e)+1}function TE(t,e){return X(t,e==null?void 0:e.in).getFullYear()}function PE(t){return Math.trunc(t*kr)}function NE(t){return Math.trunc(t*jp)}function jE(t){return Math.trunc(t*$o)}function IE(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);if(isNaN(+r))throw new TypeError("Start date is invalid");if(isNaN(+a))throw new TypeError("End date is invalid");if(n!=null&&n.assertPositive&&+r>+a)throw new TypeError("End date must be after start date");return{start:r,end:a}}function RE(t,e){const{start:n,end:r}=Cn(e==null?void 0:e.in,t),a={},s=rb(r,n);s&&(a.years=s);const o=ra(n,{years:a.years}),i=ii(r,o);i&&(a.months=i);const l=ra(o,{months:a.months}),c=Jc(r,l);c&&(a.days=c);const d=ra(l,{days:a.days}),u=si(r,d);u&&(a.hours=u);const f=ra(d,{hours:a.hours}),h=oi(r,f);h&&(a.minutes=h);const m=ra(f,{minutes:a.minutes}),p=oa(r,m);return p&&(a.seconds=p),a}function AE(t,e,n){let r;return FE(e)?r=e:n=e,new Intl.DateTimeFormat(n==null?void 0:n.locale,r).format(X(t))}function FE(t){return t!==void 0&&!("locale"in t)}function LE(t,e,n){let r=0,a;const[s,o]=De(n==null?void 0:n.in,t,e);if(n!=null&&n.unit)a=n==null?void 0:n.unit,a==="second"?r=oa(s,o):a==="minute"?r=oi(s,o):a==="hour"?r=si(s,o):a==="day"?r=sn(s,o):a==="week"?r=ai(s,o):a==="month"?r=ni(s,o):a==="quarter"?r=ri(s,o):a==="year"&&(r=ms(s,o));else{const l=oa(s,o);Math.abs(l)<Xc?(r=oa(s,o),a="second"):Math.abs(l)<$o?(r=oi(s,o),a="minute"):Math.abs(l)<Gc&&Math.abs(sn(s,o))<1?(r=si(s,o),a="hour"):Math.abs(l)<B2&&(r=sn(s,o))&&Math.abs(r)<7?a="day":Math.abs(l)<Lp?(r=ai(s,o),a="week"):Math.abs(l)<H2?(r=ni(s,o),a="month"):Math.abs(l)<Fp&&ri(s,o)<4?(r=ri(s,o),a="quarter"):(r=ms(s,o),a="year")}return new Intl.RelativeTimeFormat(n==null?void 0:n.locale,{numeric:"auto",...n}).format(r,a)}function WE(t,e){return+X(t)>+X(e)}function zE(t,e){return+X(t)<+X(e)}function BE(t,e){return+X(t)==+X(e)}function HE(t,e,n){const r=new Date(t,e,n);return r.getFullYear()===t&&r.getMonth()===e&&r.getDate()===n}function YE(t,e){return X(t,e==null?void 0:e.in).getDate()===1}function VE(t,e){return X(t,e==null?void 0:e.in).getDay()===5}function UE(t){return+X(t)>Date.now()}function _b(t,e){const n=XE(e)?new e(0):se(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function XE(t){var e;return typeof t=="function"&&((e=t.prototype)==null?void 0:e.constructor)===t}const GE=10;class Sb{constructor(){J(this,"subPriority",0)}validate(e,n){return!0}}class KE extends Sb{constructor(e,n,r,a,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=a,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class QE extends Sb{constructor(n,r){super();J(this,"priority",GE);J(this,"subPriority",-1);this.context=n||(a=>se(r,a))}set(n,r){return r.timestampIsSet?n:se(n,_b(n,this.context))}}class ve{run(e,n,r,a){const s=this.parse(e,n,r,a);return s?{setter:new KE(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class ZE extends ve{constructor(){super(...arguments);J(this,"priority",140);J(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,a){switch(r){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"})||a.era(n,{width:"narrow"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})||a.era(n,{width:"abbreviated"})||a.era(n,{width:"narrow"})}}set(n,r,a){return r.era=a,n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}}const Ye={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}/},un={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 Ve(t,e){return t&&{value:e(t.value),rest:t.rest}}function Fe(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function fn(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,a=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(a*kr+s*Dn+o*Uc),rest:e.slice(n[0].length)}}function Ob(t){return Fe(Ye.anyDigitsSigned,t)}function ze(t,e){switch(t){case 1:return Fe(Ye.singleDigit,e);case 2:return Fe(Ye.twoDigits,e);case 3:return Fe(Ye.threeDigits,e);case 4:return Fe(Ye.fourDigits,e);default:return Fe(new RegExp("^\\d{1,"+t+"}"),e)}}function gi(t,e){switch(t){case 1:return Fe(Ye.singleDigitSigned,e);case 2:return Fe(Ye.twoDigitsSigned,e);case 3:return Fe(Ye.threeDigitsSigned,e);case 4:return Fe(Ye.fourDigitsSigned,e);default:return Fe(new RegExp("^-?\\d{1,"+t+"}"),e)}}function id(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 Db(t,e){const n=e>0,r=n?e:1-e;let a;if(r<=50)a=t||100;else{const s=r+50,o=Math.trunc(s/100)*100,i=t>=s%100;a=t+o-(i?100:0)}return n?a:1-a}function Mb(t){return t%400===0||t%4===0&&t%100!==0}class JE extends ve{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,a){const s=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return Ve(ze(4,n),s);case"yo":return Ve(a.ordinalNumber(n,{unit:"year"}),s);default:return Ve(ze(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,a){const s=n.getFullYear();if(a.isTwoDigitYear){const i=Db(a.year,s);return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?a.year:1-a.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class qE extends ve{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,a){const s=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Ve(ze(4,n),s);case"Yo":return Ve(a.ordinalNumber(n,{unit:"year"}),s);default:return Ve(ze(r.length,n),s)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,a,s){const o=ci(n,s);if(a.isTwoDigitYear){const l=Db(a.year,o);return n.setFullYear(l,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),it(n,s)}const i=!("era"in r)||r.era===1?a.year:1-a.year;return n.setFullYear(i,0,s.firstWeekContainsDate),n.setHours(0,0,0,0),it(n,s)}}class $E extends ve{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return gi(r==="R"?4:r.length,n)}set(n,r,a){const s=se(n,0);return s.setFullYear(a,0,4),s.setHours(0,0,0,0),Xt(s)}}class eT extends ve{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return gi(r==="u"?4:r.length,n)}set(n,r,a){return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}}class tT extends ve{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"Q":case"QQ":return ze(r.length,n);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"})||a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})||a.quarter(n,{width:"abbreviated",context:"formatting"})||a.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,a){return n.setMonth((a-1)*3,1),n.setHours(0,0,0,0),n}}class nT extends ve{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"q":case"qq":return ze(r.length,n);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"})||a.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})||a.quarter(n,{width:"abbreviated",context:"standalone"})||a.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,a){return n.setMonth((a-1)*3,1),n.setHours(0,0,0,0),n}}class rT extends ve{constructor(){super(...arguments);J(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);J(this,"priority",110)}parse(n,r,a){const s=o=>o-1;switch(r){case"M":return Ve(Fe(Ye.month,n),s);case"MM":return Ve(ze(2,n),s);case"Mo":return Ve(a.ordinalNumber(n,{unit:"month"}),s);case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"})||a.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})||a.month(n,{width:"abbreviated",context:"formatting"})||a.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,a){return n.setMonth(a,1),n.setHours(0,0,0,0),n}}class aT extends ve{constructor(){super(...arguments);J(this,"priority",110);J(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,a){const s=o=>o-1;switch(r){case"L":return Ve(Fe(Ye.month,n),s);case"LL":return Ve(ze(2,n),s);case"Lo":return Ve(a.ordinalNumber(n,{unit:"month"}),s);case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"})||a.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})||a.month(n,{width:"abbreviated",context:"standalone"})||a.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,a){return n.setMonth(a,1),n.setHours(0,0,0,0),n}}function Cb(t,e,n){const r=X(t,n==null?void 0:n.in),a=ad(r,n)-e;return r.setDate(r.getDate()-a*7),X(r,n==null?void 0:n.in)}class sT extends ve{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,a){switch(r){case"w":return Fe(Ye.week,n);case"wo":return a.ordinalNumber(n,{unit:"week"});default:return ze(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,a,s){return it(Cb(n,a,s),s)}}function Eb(t,e,n){const r=X(t,n==null?void 0:n.in),a=rd(r,n)-e;return r.setDate(r.getDate()-a*7),r}class oT extends ve{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,a){switch(r){case"I":return Fe(Ye.week,n);case"Io":return a.ordinalNumber(n,{unit:"week"});default:return ze(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,a){return Xt(Eb(n,a))}}const iT=[31,28,31,30,31,30,31,31,30,31,30,31],lT=[31,29,31,30,31,30,31,31,30,31,30,31];class cT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"subPriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"d":return Fe(Ye.date,n);case"do":return a.ordinalNumber(n,{unit:"date"});default:return ze(r.length,n)}}validate(n,r){const a=n.getFullYear(),s=Mb(a),o=n.getMonth();return s?r>=1&&r<=lT[o]:r>=1&&r<=iT[o]}set(n,r,a){return n.setDate(a),n.setHours(0,0,0,0),n}}class dT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"subpriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,a){switch(r){case"D":case"DD":return Fe(Ye.dayOfYear,n);case"Do":return a.ordinalNumber(n,{unit:"date"});default:return ze(r.length,n)}}validate(n,r){const a=n.getFullYear();return Mb(a)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,a){return n.setMonth(0,a),n.setHours(0,0,0,0),n}}function mi(t,e,n){var u,f,h,m;const r=ht(),a=(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,s=X(t,n==null?void 0:n.in),o=s.getDay(),l=(e%7+7)%7,c=7-a,d=e<0||e>6?e-(o+c)%7:(l+c)%7-(o+c)%7;return Wt(s,d,n)}class uT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,a){switch(r){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})||a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,a,s){return n=mi(n,a,s),n.setHours(0,0,0,0),n}}class fT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,a,s){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+s.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return Ve(ze(r.length,n),o);case"eo":return Ve(a.ordinalNumber(n,{unit:"day"}),o);case"eee":return a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"eeeee":return a.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(n,{width:"wide",context:"formatting"})||a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,a,s){return n=mi(n,a,s),n.setHours(0,0,0,0),n}}class hT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,a,s){const o=i=>{const l=Math.floor((i-1)/7)*7;return(i+s.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return Ve(ze(r.length,n),o);case"co":return Ve(a.ordinalNumber(n,{unit:"day"}),o);case"ccc":return a.day(n,{width:"abbreviated",context:"standalone"})||a.day(n,{width:"short",context:"standalone"})||a.day(n,{width:"narrow",context:"standalone"});case"ccccc":return a.day(n,{width:"narrow",context:"standalone"});case"cccccc":return a.day(n,{width:"short",context:"standalone"})||a.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(n,{width:"wide",context:"standalone"})||a.day(n,{width:"abbreviated",context:"standalone"})||a.day(n,{width:"short",context:"standalone"})||a.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,a,s){return n=mi(n,a,s),n.setHours(0,0,0,0),n}}function Tb(t,e,n){const r=X(t,n==null?void 0:n.in),a=wb(r,n),s=e-a;return Wt(r,s,n)}class gT extends ve{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,a){const s=o=>o===0?7:o;switch(r){case"i":case"ii":return ze(r.length,n);case"io":return a.ordinalNumber(n,{unit:"day"});case"iii":return Ve(a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"}),s);case"iiiii":return Ve(a.day(n,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Ve(a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Ve(a.day(n,{width:"wide",context:"formatting"})||a.day(n,{width:"abbreviated",context:"formatting"})||a.day(n,{width:"short",context:"formatting"})||a.day(n,{width:"narrow",context:"formatting"}),s)}}validate(n,r){return r>=1&&r<=7}set(n,r,a){return n=Tb(n,a),n.setHours(0,0,0,0),n}}class mT extends ve{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,a){switch(r){case"a":case"aa":case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})||a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,a){return n.setHours(id(a),0,0,0),n}}class pT extends ve{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,a){switch(r){case"b":case"bb":case"bbb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})||a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,a){return n.setHours(id(a),0,0,0),n}}class bT extends ve{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,a){switch(r){case"B":case"BB":case"BBB":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(n,{width:"wide",context:"formatting"})||a.dayPeriod(n,{width:"abbreviated",context:"formatting"})||a.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,a){return n.setHours(id(a),0,0,0),n}}class yT extends ve{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,a){switch(r){case"h":return Fe(Ye.hour12h,n);case"ho":return a.ordinalNumber(n,{unit:"hour"});default:return ze(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,a){const s=n.getHours()>=12;return s&&a<12?n.setHours(a+12,0,0,0):!s&&a===12?n.setHours(0,0,0,0):n.setHours(a,0,0,0),n}}class vT extends ve{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,a){switch(r){case"H":return Fe(Ye.hour23h,n);case"Ho":return a.ordinalNumber(n,{unit:"hour"});default:return ze(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,a){return n.setHours(a,0,0,0),n}}class xT extends ve{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,a){switch(r){case"K":return Fe(Ye.hour11h,n);case"Ko":return a.ordinalNumber(n,{unit:"hour"});default:return ze(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,a){return n.getHours()>=12&&a<12?n.setHours(a+12,0,0,0):n.setHours(a,0,0,0),n}}class wT extends ve{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,a){switch(r){case"k":return Fe(Ye.hour24h,n);case"ko":return a.ordinalNumber(n,{unit:"hour"});default:return ze(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,a){const s=a<=24?a%24:a;return n.setHours(s,0,0,0),n}}class kT extends ve{constructor(){super(...arguments);J(this,"priority",60);J(this,"incompatibleTokens",["t","T"])}parse(n,r,a){switch(r){case"m":return Fe(Ye.minute,n);case"mo":return a.ordinalNumber(n,{unit:"minute"});default:return ze(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,a){return n.setMinutes(a,0,0),n}}class _T extends ve{constructor(){super(...arguments);J(this,"priority",50);J(this,"incompatibleTokens",["t","T"])}parse(n,r,a){switch(r){case"s":return Fe(Ye.second,n);case"so":return a.ordinalNumber(n,{unit:"second"});default:return ze(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,a){return n.setSeconds(a,0),n}}class ST extends ve{constructor(){super(...arguments);J(this,"priority",30);J(this,"incompatibleTokens",["t","T"])}parse(n,r){const a=s=>Math.trunc(s*Math.pow(10,-r.length+3));return Ve(ze(r.length,n),a)}set(n,r,a){return n.setMilliseconds(a),n}}class OT extends ve{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return fn(un.basicOptionalMinutes,n);case"XX":return fn(un.basic,n);case"XXXX":return fn(un.basicOptionalSeconds,n);case"XXXXX":return fn(un.extendedOptionalSeconds,n);case"XXX":default:return fn(un.extended,n)}}set(n,r,a){return r.timestampIsSet?n:se(n,n.getTime()-kt(n)-a)}}class DT extends ve{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return fn(un.basicOptionalMinutes,n);case"xx":return fn(un.basic,n);case"xxxx":return fn(un.basicOptionalSeconds,n);case"xxxxx":return fn(un.extendedOptionalSeconds,n);case"xxx":default:return fn(un.extended,n)}}set(n,r,a){return r.timestampIsSet?n:se(n,n.getTime()-kt(n)-a)}}class MT extends ve{constructor(){super(...arguments);J(this,"priority",40);J(this,"incompatibleTokens","*")}parse(n){return Ob(n)}set(n,r,a){return[se(n,a*1e3),{timestampIsSet:!0}]}}class CT extends ve{constructor(){super(...arguments);J(this,"priority",20);J(this,"incompatibleTokens","*")}parse(n){return Ob(n)}set(n,r,a){return[se(n,a),{timestampIsSet:!0}]}}const Pb={G:new ZE,y:new JE,Y:new qE,R:new $E,u:new eT,Q:new tT,q:new nT,M:new rT,L:new aT,w:new sT,I:new oT,d:new cT,D:new dT,E:new uT,e:new fT,c:new hT,i:new gT,a:new mT,b:new pT,B:new bT,h:new yT,H:new vT,K:new xT,k:new wT,m:new kT,s:new _T,S:new ST,X:new OT,x:new DT,t:new MT,T:new CT},ET=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TT=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,PT=/^'([^]*?)'?$/,NT=/''/g,jT=/\S/,IT=/[a-zA-Z]/;function Nb(t,e,n,r){var b,x,w,k,v,y,S,N;const a=()=>se((r==null?void 0:r.in)||n,NaN),s=xb(),o=(r==null?void 0:r.locale)??s.locale??la,i=(r==null?void 0:r.firstWeekContainsDate)??((x=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:x.firstWeekContainsDate)??s.firstWeekContainsDate??((k=(w=s.locale)==null?void 0:w.options)==null?void 0:k.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((y=(v=r==null?void 0:r.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??s.weekStartsOn??((N=(S=s.locale)==null?void 0:S.options)==null?void 0:N.weekStartsOn)??0;if(!e)return t?a():X(n,r==null?void 0:r.in);const c={firstWeekContainsDate:i,weekStartsOn:l,locale:o},d=[new QE(r==null?void 0:r.in,n)],u=e.match(TT).map(C=>{const P=C[0];if(P in ui){const E=ui[P];return E(C,o.formatLong)}return C}).join("").match(ET),f=[];for(let C of u){!(r!=null&&r.useAdditionalWeekYearTokens)&&gb(C)&&od(C,e,t),!(r!=null&&r.useAdditionalDayOfYearTokens)&&hb(C)&&od(C,e,t);const P=C[0],E=Pb[P];if(E){const{incompatibleTokens:B}=E;if(Array.isArray(B)){const O=f.find(D=>B.includes(D.token)||D.token===P);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${C}\` at the same time`)}else if(E.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${C}\` and any other token at the same time`);f.push({token:P,fullToken:C});const F=E.run(t,C,o.match,c);if(!F)return a();d.push(F.setter),t=F.rest}else{if(P.match(IT))throw new RangeError("Format string contains an unescaped latin alphabet character `"+P+"`");if(C==="''"?C="'":P==="'"&&(C=RT(C)),t.indexOf(C)===0)t=t.slice(C.length);else return a()}}if(t.length>0&&jT.test(t))return a();const h=d.map(C=>C.priority).sort((C,P)=>P-C).filter((C,P,E)=>E.indexOf(C)===P).map(C=>d.filter(P=>P.priority===C).sort((P,E)=>E.subPriority-P.subPriority)).map(C=>C[0]);let m=X(n,r==null?void 0:r.in);if(isNaN(+m))return a();const p={};for(const C of h){if(!C.validate(m,c))return a();const P=C.set(m,p,c);Array.isArray(P)?(m=P[0],Object.assign(p,P[1])):m=P}return m}function RT(t){return t.match(PT)[1].replace(NT,"'")}function AT(t,e,n){return Mn(Nb(t,e,new Date,n))}function FT(t,e){return X(t,e==null?void 0:e.in).getDay()===1}function LT(t){return+X(t)<Date.now()}function ld(t,e){const n=X(t,e==null?void 0:e.in);return n.setMinutes(0,0,0),n}function jb(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+ld(r)==+ld(a)}function cd(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+it(r,n)==+it(a,n)}function Ib(t,e,n){return cd(t,e,{...n,weekStartsOn:1})}function WT(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+Gn(r)==+Gn(a)}function dd(t,e){const n=X(t,e==null?void 0:e.in);return n.setSeconds(0,0),n}function Rb(t,e){return+dd(t)==+dd(e)}function Ab(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return r.getFullYear()===a.getFullYear()&&r.getMonth()===a.getMonth()}function Fb(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return+_r(r)==+_r(a)}function ud(t,e){const n=X(t,e==null?void 0:e.in);return n.setMilliseconds(0),n}function Lb(t,e){return+ud(t)==+ud(e)}function Wb(t,e,n){const[r,a]=De(n==null?void 0:n.in,t,e);return r.getFullYear()===a.getFullYear()}function zT(t,e){return jb(X(t,e==null?void 0:e.in),Qe((e==null?void 0:e.in)||t))}function BT(t,e){return Ib(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function HT(t){return Rb(t,Qe(t))}function YT(t,e){return Ab(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function VT(t,e){return Fb(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function UT(t){return Lb(t,Qe(t))}function XT(t,e){return cd(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t),e)}function GT(t,e){return Wb(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function KT(t,e){return X(t,e==null?void 0:e.in).getDay()===4}function QT(t,e){return gs(se((e==null?void 0:e.in)||t,t),Qe((e==null?void 0:e.in)||t))}function ZT(t,e){return gs(t,Wt(Qe((e==null?void 0:e.in)||t),1),e)}function JT(t,e){return X(t,e==null?void 0:e.in).getDay()===2}function qT(t,e){return X(t,e==null?void 0:e.in).getDay()===3}function $T(t,e,n){const r=+X(t,n==null?void 0:n.in),[a,s]=[+X(e.start,n==null?void 0:n.in),+X(e.end,n==null?void 0:n.in)].sort((o,i)=>o-i);return r>=a&&r<=s}function pi(t,e,n){return Wt(t,-e,n)}function eP(t,e){return gs(se((e==null?void 0:e.in)||t,t),pi(Qe((e==null?void 0:e.in)||t),1))}function tP(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=9+Math.floor(r/10)*10;return n.setFullYear(a+1,0,0),n.setHours(0,0,0,0),X(n,e==null?void 0:e.in)}function zb(t,e){var i,l,c,d;const n=ht(),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,a=X(t,e==null?void 0:e.in),s=a.getDay(),o=(s<r?-7:0)+6-(s-r);return a.setHours(0,0,0,0),a.setDate(a.getDate()+o),a}function nP(t,e){return zb(t,{...e,weekStartsOn:1})}function rP(t,e){const n=Xn(t,e),r=se((e==null?void 0:e.in)||t,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Xt(r,e);return a.setDate(a.getDate()-1),a}function aP(t,e){const n=X(t,e==null?void 0:e.in),r=n.getMonth(),a=r-r%3+3;return n.setMonth(a,0),n.setHours(0,0,0,0),n}function sP(t,e){const n=X(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 oP=/(\w)\1*|''|'(''|[^'])+('|$)|./g,iP=/^'([^]*?)'?$/,lP=/''/g,cP=/[a-zA-Z]/;function dP(t,e){const n=X(t);if(!Mn(n))throw new RangeError("Invalid time value");const r=e.match(oP);return r?r.map(s=>{if(s==="''")return"'";const o=s[0];if(o==="'")return uP(s);const i=dn[o];if(i)return i(n,s);if(o.match(cP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return s}).join(""):""}function uP(t){const e=t.match(iP);return e?e[1].replace(lP,"'"):t}function fP({years:t,months:e,weeks:n,days:r,hours:a,minutes:s,seconds:o}){let i=0;t&&(i+=t*Jo),e&&(i+=e*(Jo/12)),n&&(i+=n*7),r&&(i+=r);let l=i*24*60*60;return a&&(l+=a*60*60),s&&(l+=s*60),o&&(l+=o),Math.trunc(l*1e3)}function hP(t){const e=t/kr;return Math.trunc(e)}function gP(t){const e=t/Dn;return Math.trunc(e)}function mP(t){const e=t/Uc;return Math.trunc(e)}function pP(t){const e=t/jp;return Math.trunc(e)}function bP(t){return Math.trunc(t*Dn)}function yP(t){return Math.trunc(t*Xc)}function vP(t){const e=t/Ip;return Math.trunc(e)}function xP(t){const e=t/Rp;return Math.trunc(e)}function Qn(t,e,n){let r=e-hi(t,n);return r<=0&&(r+=7),Wt(t,r,n)}function wP(t,e){return Qn(t,5,e)}function kP(t,e){return Qn(t,1,e)}function _P(t,e){return Qn(t,6,e)}function SP(t,e){return Qn(t,0,e)}function OP(t,e){return Qn(t,4,e)}function DP(t,e){return Qn(t,2,e)}function MP(t,e){return Qn(t,3,e)}function CP(t,e){const n=()=>se(e==null?void 0:e.in,NaN),r=(e==null?void 0:e.additionalDigits)??2,a=NP(t);let s;if(a.date){const c=jP(a.date,r);s=IP(c.restDateString,c.year)}if(!s||isNaN(+s))return n();const o=+s;let i=0,l;if(a.time&&(i=RP(a.time),isNaN(i)))return n();if(a.timezone){if(l=AP(a.timezone),isNaN(l))return n()}else{const c=new Date(o+i),d=X(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 X(o+i+l,e==null?void 0:e.in)}const bi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},EP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,TP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,PP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function NP(t){const e={},n=t.split(bi.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],bi.timeZoneDelimiter.test(e.date)&&(e.date=t.split(bi.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const a=bi.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function jP(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 a=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?a:s*100,restDateString:t.slice((r[1]||r[2]).length)}}function IP(t,e){if(e===null)return new Date(NaN);const n=t.match(EP);if(!n)return new Date(NaN);const r=!!n[4],a=ps(n[1]),s=ps(n[2])-1,o=ps(n[3]),i=ps(n[4]),l=ps(n[5])-1;if(r)return BP(e,i,l)?FP(e,i,l):new Date(NaN);{const c=new Date(0);return!WP(e,s,o)||!zP(e,a)?new Date(NaN):(c.setUTCFullYear(e,s,Math.max(a,o)),c)}}function ps(t){return t?parseInt(t):1}function RP(t){const e=t.match(TP);if(!e)return NaN;const n=fd(e[1]),r=fd(e[2]),a=fd(e[3]);return HP(n,r,a)?n*kr+r*Dn+a*1e3:NaN}function fd(t){return t&&parseFloat(t.replace(",","."))||0}function AP(t){if(t==="Z")return 0;const e=t.match(PP);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return YP(r,a)?n*(r*kr+a*Dn):NaN}function FP(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const a=r.getUTCDay()||7,s=(e-1)*7+n+1-a;return r.setUTCDate(r.getUTCDate()+s),r}const LP=[31,null,31,30,31,30,31,31,30,31,30,31];function Bb(t){return t%400===0||t%4===0&&t%100!==0}function WP(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(LP[e]||(Bb(t)?29:28))}function zP(t,e){return e>=1&&e<=(Bb(t)?366:365)}function BP(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function HP(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function YP(t,e){return e>=0&&e<=59}function VP(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 X(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 Zn(t,e,n){let r=hi(t,n)-e;return r<=0&&(r+=7),pi(t,r,n)}function UP(t,e){return Zn(t,5,e)}function XP(t,e){return Zn(t,1,e)}function GP(t,e){return Zn(t,6,e)}function KP(t,e){return Zn(t,0,e)}function QP(t,e){return Zn(t,4,e)}function ZP(t,e){return Zn(t,2,e)}function JP(t,e){return Zn(t,3,e)}function qP(t){return Math.trunc(t*Ip)}function $P(t){const e=t/Ap;return Math.trunc(e)}function eN(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>12)return se((e==null?void 0:e.in)||t,NaN);const r=X(t,e==null?void 0:e.in),a=r.getMinutes()/60,s=r.getSeconds()/60/60,o=r.getMilliseconds()/1e3/60/60,i=r.getHours()+a+s+o,l=(e==null?void 0:e.roundingMethod)??"round",d=Kn(l)(i/n)*n;return r.setHours(d,0,0,0),r}function tN(t,e){const n=(e==null?void 0:e.nearestTo)??1;if(n<1||n>30)return se(t,NaN);const r=X(t,e==null?void 0:e.in),a=r.getSeconds()/60,s=r.getMilliseconds()/1e3/60,o=r.getMinutes()+a+s,i=(e==null?void 0:e.roundingMethod)??"round",c=Kn(i)(o/n)*n;return r.setMinutes(c,0,0),r}function nN(t){const e=t/$o;return Math.trunc(e)}function rN(t){return t*Uc}function aN(t){const e=t/Xc;return Math.trunc(e)}function hd(t,e,n){const r=X(t,n==null?void 0:n.in),a=r.getFullYear(),s=r.getDate(),o=se((n==null?void 0:n.in)||t,0);o.setFullYear(a,e,15),o.setHours(0,0,0,0);const i=yb(o);return r.setMonth(e,Math.min(s,i)),r}function sN(t,e,n){let r=X(t,n==null?void 0:n.in);return isNaN(+r)?se((n==null?void 0:n.in)||t,NaN):(e.year!=null&&r.setFullYear(e.year),e.month!=null&&(r=hd(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 oN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setDate(e),r}function iN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setMonth(0),r.setDate(e),r}function lN(t){const e={},n=ht();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]);Y2(e)}function cN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setHours(e),r}function dN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setMilliseconds(e),r}function uN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setMinutes(e),r}function fN(t,e,n){const r=X(t,n==null?void 0:n.in),a=Math.trunc(r.getMonth()/3)+1,s=e-a;return hd(r,r.getMonth()+s*3)}function hN(t,e,n){const r=X(t,n==null?void 0:n.in);return r.setSeconds(e),r}function gN(t,e,n){var l,c,d,u;const r=ht(),a=(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,s=sn(X(t,n==null?void 0:n.in),di(t,n),n),o=se((n==null?void 0:n.in)||t,0);o.setFullYear(e,0,a),o.setHours(0,0,0,0);const i=di(o,n);return i.setDate(i.getDate()+s),i}function mN(t,e,n){const r=X(t,n==null?void 0:n.in);return isNaN(+r)?se((n==null?void 0:n.in)||t,NaN):(r.setFullYear(e),r)}function pN(t,e){const n=X(t,e==null?void 0:e.in),r=n.getFullYear(),a=Math.floor(r/10)*10;return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}function bN(t){return sa(Date.now(),t)}function yN(t){const e=Qe(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),a=e.getDate(),s=se(t==null?void 0:t.in,0);return s.setFullYear(n,r,a+1),s.setHours(0,0,0,0),s}function vN(t){const e=Qe(t==null?void 0:t.in),n=e.getFullYear(),r=e.getMonth(),a=e.getDate(),s=Qe(t==null?void 0:t.in);return s.setFullYear(n,r,a-1),s.setHours(0,0,0,0),s}function Hb(t,e,n){return hs(t,-e,n)}function xN(t,e,n){const{years:r=0,months:a=0,weeks:s=0,days:o=0,hours:i=0,minutes:l=0,seconds:c=0}=e,d=Hb(t,a+r*12,n),u=pi(d,o+s*7,n),f=l+i*60,m=(c+f*60)*1e3;return se((n==null?void 0:n.in)||t,+u-m)}function wN(t,e,n){return Hp(t,-e,n)}function kN(t,e,n){return Yp(t,-e,n)}function _N(t,e,n){return ei(t,-e,n)}function SN(t,e,n){return Kc(t,-e,n)}function ON(t,e,n){return Qc(t,-e,n)}function DN(t,e,n){return Gp(t,-e,n)}function MN(t,e,n){return ti(t,-e,n)}function CN(t,e,n){return Kp(t,-e,n)}function EN(t){return Math.trunc(t*Tp)}function TN(t){return Math.trunc(t*Jo)}function PN(t){return Math.trunc(t*Rp)}function NN(t){return Math.trunc(t*Ap)}const Or=pu(Object.freeze(Object.defineProperty({__proto__:null,add:ra,addBusinessDays:Hp,addDays:Wt,addHours:Yp,addISOWeekYears:Xp,addMilliseconds:ei,addMinutes:Kc,addMonths:hs,addQuarters:Qc,addSeconds:Gp,addWeeks:ti,addYears:Kp,areIntervalsOverlapping:V2,clamp:U2,closestIndexTo:Jp,closestTo:X2,compareAsc:on,compareDesc:G2,constructFrom:se,constructNow:Qe,daysToWeeks:K2,differenceInBusinessDays:Q2,differenceInCalendarDays:sn,differenceInCalendarISOWeekYears:$p,differenceInCalendarISOWeeks:Z2,differenceInCalendarMonths:ni,differenceInCalendarQuarters:ri,differenceInCalendarWeeks:ai,differenceInCalendarYears:ms,differenceInDays:Jc,differenceInHours:si,differenceInISOWeekYears:J2,differenceInMilliseconds:qc,differenceInMinutes:oi,differenceInMonths:ii,differenceInQuarters:q2,differenceInSeconds:oa,differenceInWeeks:$2,differenceInYears:rb,eachDayOfInterval:ab,eachHourOfInterval:eC,eachMinuteOfInterval:tC,eachMonthOfInterval:nC,eachQuarterOfInterval:rC,eachWeekOfInterval:aC,eachWeekendOfInterval:td,eachWeekendOfMonth:sC,eachWeekendOfYear:oC,eachYearOfInterval:iC,endOfDay:$c,endOfDecade:lC,endOfHour:cC,endOfISOWeek:dC,endOfISOWeekYear:uC,endOfMinute:fC,endOfMonth:ed,endOfQuarter:hC,endOfSecond:gC,endOfToday:mC,endOfTomorrow:pC,endOfWeek:ob,endOfYear:sb,endOfYesterday:bC,format:fi,formatDate:fi,formatDistance:mb,formatDistanceStrict:pb,formatDistanceToNow:aE,formatDistanceToNowStrict:sE,formatDuration:iE,formatISO:lE,formatISO9075:cE,formatISODuration:dE,formatRFC3339:uE,formatRFC7231:gE,formatRelative:mE,formatters:sd,fromUnixTime:pE,getDate:bb,getDay:hi,getDayOfYear:lb,getDaysInMonth:yb,getDaysInYear:bE,getDecade:yE,getDefaultOptions:xb,getHours:vE,getISODay:wb,getISOWeek:rd,getISOWeekYear:Xn,getISOWeeksInYear:xE,getMilliseconds:wE,getMinutes:kE,getMonth:_E,getOverlappingDaysInIntervals:SE,getQuarter:Zc,getSeconds:OE,getTime:DE,getUnixTime:ME,getWeek:ad,getWeekOfMonth:CE,getWeekYear:ci,getWeeksInMonth:EE,getYear:TE,hoursToMilliseconds:PE,hoursToMinutes:NE,hoursToSeconds:jE,interval:IE,intervalToDuration:RE,intlFormat:AE,intlFormatDistance:LE,isAfter:WE,isBefore:zE,isDate:qp,isEqual:BE,isExists:HE,isFirstDayOfMonth:YE,isFriday:VE,isFuture:UE,isLastDayOfMonth:nb,isLeapYear:vb,isMatch:AT,isMonday:FT,isPast:LT,isSameDay:gs,isSameHour:jb,isSameISOWeek:Ib,isSameISOWeekYear:WT,isSameMinute:Rb,isSameMonth:Ab,isSameQuarter:Fb,isSameSecond:Lb,isSameWeek:cd,isSameYear:Wb,isSaturday:zp,isSunday:Bp,isThisHour:zT,isThisISOWeek:BT,isThisMinute:HT,isThisMonth:YT,isThisQuarter:VT,isThisSecond:UT,isThisWeek:XT,isThisYear:GT,isThursday:KT,isToday:QT,isTomorrow:ZT,isTuesday:JT,isValid:Mn,isWednesday:qT,isWeekend:aa,isWithinInterval:$T,isYesterday:eP,lastDayOfDecade:tP,lastDayOfISOWeek:nP,lastDayOfISOWeekYear:rP,lastDayOfMonth:kb,lastDayOfQuarter:aP,lastDayOfWeek:zb,lastDayOfYear:sP,lightFormat:dP,lightFormatters:dn,longFormatters:ui,max:Qp,milliseconds:fP,millisecondsToHours:hP,millisecondsToMinutes:gP,millisecondsToSeconds:mP,min:Zp,minutesToHours:pP,minutesToMilliseconds:bP,minutesToSeconds:yP,monthsToQuarters:vP,monthsToYears:xP,nextDay:Qn,nextFriday:wP,nextMonday:kP,nextSaturday:_P,nextSunday:SP,nextThursday:OP,nextTuesday:DP,nextWednesday:MP,parse:Nb,parseISO:CP,parseJSON:VP,parsers:Pb,previousDay:Zn,previousFriday:UP,previousMonday:XP,previousSaturday:GP,previousSunday:KP,previousThursday:QP,previousTuesday:ZP,previousWednesday:JP,quartersToMonths:qP,quartersToYears:$P,roundToNearestHours:eN,roundToNearestMinutes:tN,secondsToHours:nN,secondsToMilliseconds:rN,secondsToMinutes:aN,set:sN,setDate:oN,setDay:mi,setDayOfYear:iN,setDefaultOptions:lN,setHours:cN,setISODay:Tb,setISOWeek:Eb,setISOWeekYear:Up,setMilliseconds:dN,setMinutes:uN,setMonth:hd,setQuarter:fN,setSeconds:hN,setWeek:Cb,setWeekYear:gN,setYear:mN,startOfDay:sa,startOfDecade:pN,startOfHour:ld,startOfISOWeek:Xt,startOfISOWeekYear:Gn,startOfMinute:dd,startOfMonth:li,startOfQuarter:_r,startOfSecond:ud,startOfToday:bN,startOfTomorrow:yN,startOfWeek:it,startOfWeekYear:di,startOfYear:nd,startOfYesterday:vN,sub:xN,subBusinessDays:wN,subDays:pi,subHours:kN,subISOWeekYears:tb,subMilliseconds:_N,subMinutes:SN,subMonths:Hb,subQuarters:ON,subSeconds:DN,subWeeks:MN,subYears:CN,toDate:X,transpose:_b,weeksToDays:EN,yearsToDays:TN,yearsToMonths:PN,yearsToQuarters:NN},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(On,"__esModule",{value:!0}),On.rangeShape=On.default=void 0;var Dr=jN(_),me=Yb(Sn),gd=Yb(Rn),gt=Or;function Yb(t){return t&&t.__esModule?t:{default:t}}function Vb(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Vb=function(r){return r?n:e})(t)}function jN(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Vb(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}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 bs(t,e,n){return e=IN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IN(t){var e=RN(t,"string");return typeof e=="symbol"?e:String(e)}function RN(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 pd extends Dr.Component{constructor(e,n){super(e,n),bs(this,"handleKeyEvent",r=>{const{day:a,onMouseDown:s,onMouseUp:o}=this.props;[13,32].includes(r.keyCode)&&(r.type==="keydown"?s(a):o(a))}),bs(this,"handleMouseEvent",r=>{const{day:a,disabled:s,onPreviewChange:o,onMouseEnter:i,onMouseDown:l,onMouseUp:c}=this.props,d={};if(s){o();return}switch(r.type){case"mouseenter":i(a),o(a),d.hover=!0;break;case"blur":case"mouseleave":d.hover=!1;break;case"mousedown":d.active=!0,l(a);break;case"mouseup":r.stopPropagation(),d.active=!1,c(a);break;case"focus":o(a);break}Object.keys(d).length&&this.setState(d)}),bs(this,"getClassNames",()=>{const{isPassive:r,isToday:a,isWeekend:s,isStartOfWeek:o,isEndOfWeek:i,isStartOfMonth:l,isEndOfMonth:c,disabled:d,styles:u}=this.props;return(0,gd.default)(u.day,{[u.dayPassive]:r,[u.dayDisabled]:d,[u.dayToday]:a,[u.dayWeekend]:s,[u.dayStartOfWeek]:o,[u.dayEndOfWeek]:i,[u.dayStartOfMonth]:l,[u.dayEndOfMonth]:c,[u.dayHovered]:this.state.hover,[u.dayActive]:this.state.active})}),bs(this,"renderPreviewPlaceholder",()=>{const{preview:r,day:a,styles:s}=this.props;if(!r)return null;const o=r.startDate?(0,gt.endOfDay)(r.startDate):null,i=r.endDate?(0,gt.startOfDay)(r.endDate):null,l=(!o||(0,gt.isAfter)(a,o))&&(!i||(0,gt.isBefore)(a,i)),c=!l&&(0,gt.isSameDay)(a,o),d=!l&&(0,gt.isSameDay)(a,i);return Dr.default.createElement("span",{className:(0,gd.default)({[s.dayStartPreview]:c,[s.dayInPreview]:l,[s.dayEndPreview]:d}),style:{color:r.color}})}),bs(this,"renderSelectionPlaceholders",()=>{const{styles:r,ranges:a,day:s}=this.props;return this.props.displayMode==="date"?(0,gt.isSameDay)(this.props.day,this.props.date)?Dr.default.createElement("span",{className:r.selected,style:{color:this.props.color}}):null:a.reduce((i,l)=>{let c=l.startDate,d=l.endDate;c&&d&&(0,gt.isBefore)(d,c)&&([c,d]=[d,c]),c=c?(0,gt.endOfDay)(c):null,d=d?(0,gt.startOfDay)(d):null;const u=(!c||(0,gt.isAfter)(s,c))&&(!d||(0,gt.isBefore)(s,d)),f=!u&&(0,gt.isSameDay)(s,c),h=!u&&(0,gt.isSameDay)(s,d);return u||f||h?[...i,{isStartEdge:f,isEndEdge:h,isInRange:u,...l}]:i},[]).map((i,l)=>Dr.default.createElement("span",{key:l,className:(0,gd.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 Dr.default.createElement("button",md({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(),Dr.default.createElement("span",{className:this.props.styles.dayNumber},(e==null?void 0:e(this.props.day))||Dr.default.createElement("span",null,(0,gt.format)(this.props.day,this.props.dayDisplayFormat))))}}pd.defaultProps={};const AN=On.rangeShape=me.default.shape({startDate:me.default.object,endDate:me.default.object,color:me.default.string,key:me.default.string,autoFocus:me.default.bool,disabled:me.default.bool,showDateDisplay:me.default.bool});pd.propTypes={day:me.default.object.isRequired,dayDisplayFormat:me.default.string,date:me.default.object,ranges:me.default.arrayOf(AN),preview:me.default.shape({startDate:me.default.object,endDate:me.default.object,color:me.default.string}),onPreviewChange:me.default.func,previewColor:me.default.string,disabled:me.default.bool,isPassive:me.default.bool,isToday:me.default.bool,isWeekend:me.default.bool,isStartOfWeek:me.default.bool,isEndOfWeek:me.default.bool,isStartOfMonth:me.default.bool,isEndOfMonth:me.default.bool,color:me.default.string,displayMode:me.default.oneOf(["dateRange","date"]),styles:me.default.object,onMouseDown:me.default.func,onMouseUp:me.default.func,onMouseEnter:me.default.func,dayContentRenderer:me.default.func},On.default=pd;var yi={},En={};Object.defineProperty(En,"__esModule",{value:!0}),En.calcFocusDate=WN,En.findNextRangeIndex=zN,En.generateStyles=HN,En.getMonthDisplayRange=BN;var FN=LN(Rn),Tn=Or;function LN(t){return t&&t.__esModule?t:{default:t}}function WN(t,e){const{shownDate:n,date:r,months:a,ranges:s,focusedRange:o,displayMode:i}=e;let l;if(i==="dateRange"){const d=s[o[0]]||{};l={start:d.startDate,end:d.endDate}}else l={start:r,end:r};l.start=(0,Tn.startOfMonth)(l.start||new Date),l.end=(0,Tn.endOfMonth)(l.end||l.start);const c=l.start||l.end||n||new Date;return t?(0,Tn.differenceInCalendarMonths)(l.start,l.end)>a?t:c:n||c}function zN(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const n=t.findIndex((r,a)=>a>e&&r.autoFocus!==!1&&!r.disabled);return n!==-1?n:t.findIndex(r=>r.autoFocus!==!1&&!r.disabled)}function BN(t,e,n){const r=(0,Tn.startOfMonth)(t,e),a=(0,Tn.endOfMonth)(t,e),s=(0,Tn.startOfWeek)(r,e);let o=(0,Tn.endOfWeek)(a,e);return n&&(0,Tn.differenceInCalendarDays)(o,s)<=34&&(o=(0,Tn.addDays)(o,7)),{start:s,end:o,startDateOfMonth:r,endDateOfMonth:a}}function HN(t){return t.length?t.filter(n=>!!n).reduce((n,r)=>(Object.keys(r).forEach(a=>{n[a]=(0,FN.default)(n[a],r[a])}),n),{}):{}}Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=void 0;var Mr=Gb(_),Ce=VN(Sn),Ub=Gb(On),Ze=Or,YN=En;function VN(t){return t&&t.__esModule?t:{default:t}}function Xb(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Xb=function(r){return r?n:e})(t)}function Gb(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Xb(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function bd(){return bd=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},bd.apply(this,arguments)}function UN(t,e,n){const r=new Date;return Mr.default.createElement("div",{className:t.weekDays},(0,Ze.eachDayOfInterval)({start:(0,Ze.startOfWeek)(r,e),end:(0,Ze.endOfWeek)(r,e)}).map((a,s)=>Mr.default.createElement("span",{className:t.weekDay,key:s},(0,Ze.format)(a,n,e))))}class yd extends Mr.PureComponent{render(){const e=new Date,{displayMode:n,focusedRange:r,drag:a,styles:s,disabledDates:o,disabledDay:i}=this.props,l=this.props.minDate&&(0,Ze.startOfDay)(this.props.minDate),c=this.props.maxDate&&(0,Ze.endOfDay)(this.props.maxDate),d=(0,YN.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let u=this.props.ranges;if(n==="dateRange"&&a.status){let{startDate:h,endDate:m}=a.range;u=u.map((p,b)=>b!==r[0]?p:{...p,startDate:h,endDate:m})}const f=this.props.showPreview&&!a.disablePreview;return Mr.default.createElement("div",{className:s.month,style:this.props.style},this.props.showMonthName?Mr.default.createElement("div",{className:s.monthName},(0,Ze.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&UN(s,this.props.dateOptions,this.props.weekdayDisplayFormat),Mr.default.createElement("div",{className:s.days,onMouseLeave:this.props.onMouseLeave},(0,Ze.eachDayOfInterval)({start:d.start,end:d.end}).map((h,m)=>{const p=(0,Ze.isSameDay)(h,d.startDateOfMonth),b=(0,Ze.isSameDay)(h,d.endDateOfMonth),x=l&&(0,Ze.isBefore)(h,l)||c&&(0,Ze.isAfter)(h,c),w=o.some(v=>(0,Ze.isSameDay)(v,h)),k=i(h);return Mr.default.createElement(Ub.default,bd({},this.props,{ranges:u,day:h,preview:f?this.props.preview:null,isWeekend:(0,Ze.isWeekend)(h,this.props.dateOptions),isToday:(0,Ze.isSameDay)(h,e),isStartOfWeek:(0,Ze.isSameDay)(h,(0,Ze.startOfWeek)(h,this.props.dateOptions)),isEndOfWeek:(0,Ze.isSameDay)(h,(0,Ze.endOfWeek)(h,this.props.dateOptions)),isStartOfMonth:p,isEndOfMonth:b,key:m,disabled:x||w||k,isPassive:!(0,Ze.isWithinInterval)(h,{start:d.startDateOfMonth,end:d.endDateOfMonth}),styles:s,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:a.range,drag:a.status}))})))}}yd.defaultProps={},yd.propTypes={style:Ce.default.object,styles:Ce.default.object,month:Ce.default.object,drag:Ce.default.object,dateOptions:Ce.default.object,disabledDates:Ce.default.array,disabledDay:Ce.default.func,preview:Ce.default.shape({startDate:Ce.default.object,endDate:Ce.default.object}),showPreview:Ce.default.bool,displayMode:Ce.default.oneOf(["dateRange","date"]),minDate:Ce.default.object,maxDate:Ce.default.object,ranges:Ce.default.arrayOf(Ub.rangeShape),focusedRange:Ce.default.arrayOf(Ce.default.number),onDragSelectionStart:Ce.default.func,onDragSelectionEnd:Ce.default.func,onDragSelectionMove:Ce.default.func,onMouseLeave:Ce.default.func,monthDisplayFormat:Ce.default.string,weekdayDisplayFormat:Ce.default.string,dayDisplayFormat:Ce.default.string,showWeekDays:Ce.default.bool,showMonthName:Ce.default.bool,fixedHeight:Ce.default.bool},yi.default=yd;var vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=void 0;var xi=GN(_),hn=Kb(Sn),XN=Kb(Rn),ys=Or;function Kb(t){return t&&t.__esModule?t:{default:t}}function Qb(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Qb=function(r){return r?n:e})(t)}function GN(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=Qb(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function vd(t,e,n){return e=KN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KN(t){var e=QN(t,"string");return typeof e=="symbol"?e:String(e)}function QN(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 xd extends xi.PureComponent{constructor(e,n){super(e,n),vd(this,"onKeyDown",r=>{const{value:a}=this.state;r.key==="Enter"&&this.update(a)}),vd(this,"onChange",r=>{this.setState({value:r.target.value,changed:!0,invalid:!1})}),vd(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,ys.isEqual)(n,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(e){let{value:n,dateDisplayFormat:r,dateOptions:a}=e;return n&&(0,ys.isValid)(n)?(0,ys.format)(n,r,a):""}update(e){const{invalid:n,changed:r}=this.state;if(n||!r||!e)return;const{onChange:a,dateDisplayFormat:s,dateOptions:o}=this.props,i=(0,ys.parse)(e,s,new Date,o);(0,ys.isValid)(i)?this.setState({changed:!1},()=>a(i)):this.setState({invalid:!0})}render(){const{className:e,readOnly:n,placeholder:r,ariaLabel:a,disabled:s,onFocus:o}=this.props,{value:i,invalid:l}=this.state;return xi.default.createElement("span",{className:(0,XN.default)("rdrDateInput",e)},xi.default.createElement("input",{readOnly:n,disabled:s,value:i,placeholder:r,"aria-label":a,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:o}),l&&xi.default.createElement("span",{className:"rdrWarning"},"⚠"))}}xd.propTypes={value:hn.default.object,placeholder:hn.default.string,disabled:hn.default.bool,readOnly:hn.default.bool,dateOptions:hn.default.object,dateDisplayFormat:hn.default.string,ariaLabel:hn.default.string,className:hn.default.string,onFocus:hn.default.func.isRequired,onChange:hn.default.func.isRequired},xd.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},vi.default=xd;var Zb={};(function(t){(function(e,n){n(t,_,g)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:fx,function(e,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function a(A){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},a(A)}function s(A,R){if(!(A instanceof R))throw new TypeError("Cannot call a class as a function")}function o(A,R){for(var I=0;I<R.length;I++){var M=R[I];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(A,w(M.key),M)}}function i(A,R,I){return R&&o(A.prototype,R),I&&o(A,I),Object.defineProperty(A,"prototype",{writable:!1}),A}function l(A,R,I){return R=f(R),c(A,u()?Reflect.construct(R,I||[],f(A).constructor):R.apply(A,I))}function c(A,R){if(R&&(a(R)=="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(A)}function d(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function u(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!A})()}function f(A){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)},f(A)}function h(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(R&&R.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),R&&m(A,R)}function m(A,R){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,M){return I.__proto__=M,I},m(A,R)}function p(A,R){var I=Object.keys(A);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(A);R&&(M=M.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),I.push.apply(I,M)}return I}function b(A){for(var R=1;R<arguments.length;R++){var I=arguments[R]!=null?arguments[R]:{};R%2?p(Object(I),!0).forEach(function(M){x(A,M,I[M])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(I)):p(Object(I)).forEach(function(M){Object.defineProperty(A,M,Object.getOwnPropertyDescriptor(I,M))})}return A}function x(A,R,I){return(R=w(R))in A?Object.defineProperty(A,R,{value:I,enumerable:!0,configurable:!0,writable:!0}):A[R]=I,A}function w(A){var R=k(A,"string");return a(R)=="symbol"?R:R+""}function k(A,R){if(a(A)!="object"||!A)return A;var I=A[Symbol.toPrimitive];if(I!==void 0){var M=I.call(A,R);if(a(M)!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(A)}var v={x:"clientWidth",y:"clientHeight"},y={x:"clientTop",y:"clientLeft"},S={x:"innerWidth",y:"innerHeight"},N={x:"offsetWidth",y:"offsetHeight"},C={x:"offsetLeft",y:"offsetTop"},P={x:"overflowX",y:"overflowY"},E={x:"scrollWidth",y:"scrollHeight"},B={x:"scrollLeft",y:"scrollTop"},F={x:"width",y:"height"},O=function(){},D=function(){if(typeof window>"u")return!1;var A=!1;try{document.createElement("div").addEventListener("test",O,{get passive(){return A=!0,!1}})}catch{}return A}()?{passive:!0}:!1,T="ReactList failed to reach a stable state.",L=40,V=function(R,I){for(var M in I)if(R[M]!==I[M])return!1;return!0},K=function(R){for(var I=R.props.axis,M=R.getEl(),W=P[I];M=M.parentElement;)switch(window.getComputedStyle(M)[W]){case"auto":case"scroll":case"overlay":return M}return window},q=function(R){var I=R.props.axis,M=R.scrollParent;return M===window?window[S[I]]:M[v[I]]},j=function(R,I){var M=R.length,W=R.minSize,Q=R.type,G=I.from,Z=I.size,$=I.itemsPerRow;Z=Math.max(Z,W);var ne=Z%$;return ne&&(Z+=$-ne),Z>M&&(Z=M),G=Q==="simple"||!G?0:Math.max(Math.min(G,M-Z),0),(ne=G%$)&&(G-=ne,Z+=ne),G===I.from&&Z===I.size?I:b(b({},I),{},{from:G,size:Z})},H=e.default=function(A){function R(I){var M;return s(this,R),M=l(this,R,[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(R,A),i(R,[{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 W=this;if(this.props.axis!==M.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>L)return this.unstable=!0,console.error(T);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){W.updateCounter=0,delete W.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(M,W){if(V(this.state,M))return W();this.setState(M,W)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,D),this.scrollParent.removeEventListener("mousewheel",O,D)}},{key:"getOffset",value:function(M){var W=this.props.axis,Q=M[y[W]]||0,G=C[W];do Q+=M[G]||0;while(M=M.offsetParent);return Q}},{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,W=this.props.axis,Q=B[W],G=M===window?document.body[Q]||document.documentElement[Q]:M[Q],Z=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),$=Math.max(0,Math.min(G,Z)),ne=this.getEl();return this.cachedScrollPosition=this.getOffset(M)+$-this.getOffset(ne),this.cachedScrollPosition}},{key:"setScroll",value:function(M){var W=this.scrollParent,Q=this.props.axis;if(M+=this.getOffset(this.getEl()),W===window)return window.scrollTo(0,M);M-=this.getOffset(this.scrollParent),W[B[Q]]=M}},{key:"getScrollSize",value:function(){var M=this.scrollParent,W=document,Q=W.body,G=W.documentElement,Z=E[this.props.axis];return M===window?Math.max(Q[Z],G[Z]):M[Z]}},{key:"hasDeterminateSize",value:function(){var M=this.props,W=M.itemSizeGetter,Q=M.type;return Q==="uniform"||W}},{key:"getStartAndEnd",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,W=this.getScrollPosition(),Q=Math.max(0,W-M),G=W+this.props.scrollParentViewportSizeGetter(this)+M;return this.hasDeterminateSize()&&(G=Math.min(G,this.getSpaceBefore(this.props.length))),{start:Q,end:G}}},{key:"getItemSizeAndItemsPerRow",value:function(){var M=this.props,W=M.axis,Q=M.useStaticSize,G=this.state,Z=G.itemSize,$=G.itemsPerRow;if(Q&&Z&&$)return{itemSize:Z,itemsPerRow:$};var ne=this.items.children;if(!ne.length)return{};var Y=ne[0],re=Y[N[W]],te=Math.abs(re-Z);if((isNaN(te)||te>=1)&&(Z=re),!Z)return{};var ie=C[W],fe=Y[ie];$=1;for(var ce=ne[$];ce&&ce[ie]===fe;ce=ne[$])++$;return{itemSize:Z,itemsPerRow:$}}},{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,D),this.scrollParent.addEventListener("mousewheel",O,D))}},{key:"updateSimpleFrame",value:function(M){var W=this.getStartAndEnd(),Q=W.end,G=this.items.children,Z=0;if(G.length){var $=this.props.axis,ne=G[0],Y=G[G.length-1];Z=this.getOffset(Y)+Y[N[$]]-this.getOffset(ne)}if(Z>Q)return M();var re=this.props,te=re.pageSize,ie=re.length,fe=Math.min(this.state.size+te,ie);this.maybeSetState({size:fe},M)}},{key:"updateVariableFrame",value:function(M){this.props.itemSizeGetter||this.cacheSizes();for(var W=this.getStartAndEnd(),Q=W.start,G=W.end,Z=this.props,$=Z.length,ne=Z.pageSize,Y=0,re=0,te=0,ie=$-1;re<ie;){var fe=this.getSizeOfItem(re);if(fe==null||Y+fe>Q)break;Y+=fe,++re}for(var ce=$-re;te<ce&&Y<G;){var ae=this.getSizeOfItem(re+te);if(ae==null){te=Math.min(te+ne,ce);break}Y+=ae,++te}this.maybeSetState(j(this.props,{from:re,itemsPerRow:1,size:te}),M)}},{key:"updateUniformFrame",value:function(M){var W=this.getItemSizeAndItemsPerRow(),Q=W.itemSize,G=W.itemsPerRow;if(!Q||!G)return M();var Z=this.getStartAndEnd(),$=Z.start,ne=Z.end,Y=j(this.props,{from:Math.floor($/Q)*G,size:(Math.ceil((ne-$)/Q)+1)*G,itemsPerRow:G}),re=Y.from,te=Y.size;return this.maybeSetState({itemsPerRow:G,from:re,itemSize:Q,size:te},M)}},{key:"getSpaceBefore",value:function(M){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(W[M]!=null)return W[M];var Q=this.state,G=Q.itemSize,Z=Q.itemsPerRow;if(G)return W[M]=Math.floor(M/Z)*G;for(var $=M;$>0&&W[--$]==null;);for(var ne=W[$]||0,Y=$;Y<M;++Y){W[Y]=ne;var re=this.getSizeOfItem(Y);if(re==null)break;ne+=re}return W[M]=ne}},{key:"cacheSizes",value:function(){for(var M=this.cache,W=this.state.from,Q=this.items.children,G=N[this.props.axis],Z=0,$=Q.length;Z<$;++Z)M[W+Z]=Q[Z][G]}},{key:"getSizeOfItem",value:function(M){var W=this.cache,Q=this.items,G=this.props,Z=G.axis,$=G.itemSizeGetter,ne=G.itemSizeEstimator,Y=G.type,re=this.state,te=re.from,ie=re.itemSize,fe=re.size;if(ie)return ie;if($)return $(M);if(M in W)return W[M];if(Y==="simple"&&M>=te&&M<te+fe&&Q){var ce=Q.children[M-te];if(ce)return ce[N[Z]]}if(ne)return ne(M,W)}},{key:"scrollTo",value:function(M){M!=null&&this.setScroll(this.getSpaceBefore(M))}},{key:"scrollAround",value:function(M){var W=this.getScrollPosition(),Q=this.getSpaceBefore(M),G=Q-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(M),Z=Math.min(G,Q),$=Math.max(G,Q);if(W<=Z)return this.setScroll(Z);if(W>$)return this.setScroll($)}},{key:"getVisibleRange",value:function(){for(var M=this.state,W=M.from,Q=M.size,G=this.getStartAndEnd(0),Z=G.start,$=G.end,ne={},Y,re,te=W;te<W+Q;++te){var ie=this.getSpaceBefore(te,ne),fe=ie+this.getSizeOfItem(te);Y==null&&fe>Z&&(Y=te),Y!=null&&ie<$&&(re=te)}return[Y,re]}},{key:"renderItems",value:function(){for(var M=this,W=this.props,Q=W.itemRenderer,G=W.itemsRenderer,Z=this.state,$=Z.from,ne=Z.size,Y=[],re=0;re<ne;++re)Y.push(Q($+re,re));return G(Y,function(te){return M.items=te})}},{key:"render",value:function(){var M=this,W=this.props,Q=W.axis,G=W.length,Z=W.type,$=W.useTranslate3d,ne=this.state,Y=ne.from,re=ne.itemsPerRow,te=this.renderItems();if(Z==="simple")return te;var ie={position:"relative"},fe={},ce=Math.ceil(G/re)*re,ae=this.getSpaceBefore(ce,fe);ae&&(ie[F[Q]]=ae,Q==="x"&&(ie.overflowX="hidden"));var Le=this.getSpaceBefore(Y,fe),ge=Q==="x"?Le:0,Ae=Q==="y"?Le:0,Be=$?"translate3d(".concat(ge,"px, ").concat(Ae,"px, 0)"):"translate(".concat(ge,"px, ").concat(Ae,"px)"),Ue={msTransform:Be,WebkitTransform:Be,transform:Be};return(0,r.jsx)("div",{style:ie,ref:function(Tt){return M.el=Tt},children:(0,r.jsx)("div",{style:Ue,children:te})})}}],[{key:"getDerivedStateFromProps",value:function(M,W){var Q=j(M,W);return Q===W?null:Q}}])}(n.Component);x(H,"displayName","ReactList"),x(H,"defaultProps",{axis:"y",itemRenderer:function(R,I){return(0,r.jsx)("div",{children:R},I)},itemsRenderer:function(R,I){return(0,r.jsx)("div",{ref:I,children:R})},length:0,minSize:1,pageSize:10,scrollParentGetter:K,scrollParentViewportSizeGetter:q,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})})})(Zb);function ZN(t,e){if(t===e)return!0;if(!t||!e)return!1;var n=Object.keys(t),r=Object.keys(e),a=n.length;if(r.length!==a)return!1;for(var s=0;s<a;s++){var o=n[s];if(t[o]!==e[o]||!Object.prototype.hasOwnProperty.call(e,o))return!1}return!0}function JN(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 qN=pu(Object.freeze(Object.defineProperty({__proto__:null,shallowEqualArrays:JN,shallowEqualObjects:ZN},Symbol.toStringTag,{value:"Module"})));var wd={},kd={};kd.formatDistance=void 0;const $N={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"}},e5=(t,e,n)=>{let r;const a=$N[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};kd.formatDistance=e5;var _d={},Jb={};Jb.buildFormatLongFn=t5;function t5(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}_d.formatLong=void 0;var Sd=Jb;const n5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},r5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};_d.formatLong={date:(0,Sd.buildFormatLongFn)({formats:n5,defaultWidth:"full"}),time:(0,Sd.buildFormatLongFn)({formats:r5,defaultWidth:"full"}),dateTime:(0,Sd.buildFormatLongFn)({formats:a5,defaultWidth:"full"})};var Od={};Od.formatRelative=void 0;const s5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o5=(t,e,n,r)=>s5[t];Od.formatRelative=o5;var Dd={},qb={};qb.buildLocalizeFn=i5;function i5(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,i=n!=null&&n.width?String(n.width):o;a=t.formattingValues[i]||t.formattingValues[o]}else{const o=t.defaultWidth,i=n!=null&&n.width?String(n.width):t.defaultWidth;a=t.values[i]||t.values[o]}const s=t.argumentCallback?t.argumentCallback(e):e;return a[s]}}Dd.localize=void 0;var vs=qb;const l5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},c5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d5={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"]},u5={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"]},f5={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"}},h5={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"}},g5=(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"};Dd.localize={ordinalNumber:g5,era:(0,vs.buildLocalizeFn)({values:l5,defaultWidth:"wide"}),quarter:(0,vs.buildLocalizeFn)({values:c5,defaultWidth:"wide",argumentCallback:t=>t-1}),month:(0,vs.buildLocalizeFn)({values:d5,defaultWidth:"wide"}),day:(0,vs.buildLocalizeFn)({values:u5,defaultWidth:"wide"}),dayPeriod:(0,vs.buildLocalizeFn)({values:f5,defaultWidth:"wide",formattingValues:h5,defaultFormattingWidth:"wide"})};var Md={},$b={};$b.buildMatchFn=m5;function m5(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(a);if(!s)return null;const o=s[0],i=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(i)?b5(i,u=>u.test(o)):p5(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 p5(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function b5(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}var ey={};ey.buildMatchPatternFn=y5;function y5(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],s=e.match(t.parsePattern);if(!s)return null;let o=t.valueCallback?t.valueCallback(s[0]):s[0];o=n.valueCallback?n.valueCallback(o):o;const i=e.slice(a.length);return{value:o,rest:i}}}Md.match=void 0;var xs=$b,v5=ey;const x5=/^(\d+)(th|st|nd|rd)?/i,w5=/\d+/i,k5={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},_5={any:[/^b/i,/^(a|c)/i]},S5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},O5={any:[/1/i,/2/i,/3/i,/4/i]},D5={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},M5={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]},C5={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},E5={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]},T5={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},P5={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}};Md.match={ordinalNumber:(0,v5.buildMatchPatternFn)({matchPattern:x5,parsePattern:w5,valueCallback:t=>parseInt(t,10)}),era:(0,xs.buildMatchFn)({matchPatterns:k5,defaultMatchWidth:"wide",parsePatterns:_5,defaultParseWidth:"any"}),quarter:(0,xs.buildMatchFn)({matchPatterns:S5,defaultMatchWidth:"wide",parsePatterns:O5,defaultParseWidth:"any",valueCallback:t=>t+1}),month:(0,xs.buildMatchFn)({matchPatterns:D5,defaultMatchWidth:"wide",parsePatterns:M5,defaultParseWidth:"any"}),day:(0,xs.buildMatchFn)({matchPatterns:C5,defaultMatchWidth:"wide",parsePatterns:E5,defaultParseWidth:"any"}),dayPeriod:(0,xs.buildMatchFn)({matchPatterns:T5,defaultMatchWidth:"any",parsePatterns:P5,defaultParseWidth:"any"})},wd.enUS=void 0;var N5=kd,j5=_d,I5=Od,R5=Dd,A5=Md;wd.enUS={code:"en-US",formatDistance:N5.formatDistance,formatLong:j5.formatLong,formatRelative:I5.formatRelative,localize:R5.localize,match:A5.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=void 0,Cr.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 wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.ariaLabelsShape=void 0;var Pn=F5(Sn);function F5(t){return t&&t.__esModule?t:{default:t}}wi.ariaLabelsShape=Pn.default.shape({dateInput:Pn.default.objectOf(Pn.default.shape({startDate:Pn.default.string,endDate:Pn.default.string})),monthPicker:Pn.default.string,yearPicker:Pn.default.string,prevButton:Pn.default.string,nextButton:Pn.default.string}),Object.defineProperty(us,"__esModule",{value:!0}),us.default=void 0;var Me=V5(_),le=da(Sn),L5=On,ty=da(yi),ny=da(vi),ki=En,Er=da(Rn),W5=da(Zb),z5=qN,Ie=Or,B5=wd,H5=da(Cr),Y5=wi;function da(t){return t&&t.__esModule?t:{default:t}}function ry(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ry=function(r){return r?n:e})(t)}function V5(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ry(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function _i(){return _i=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},_i.apply(this,arguments)}function zt(t,e,n){return e=U5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U5(t){var e=X5(t,"string");return typeof e=="symbol"?e:String(e)}function X5(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 ua extends Me.PureComponent{constructor(e,n){var r;super(e,n),r=this,zt(this,"focusToDate",function(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.props,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!s.scroll.enabled){if(o&&s.preventSnapRefocus){const c=(0,Ie.differenceInCalendarMonths)(a,r.state.focusedDate),d=s.calendarFocus==="forwards"&&c>=0,u=s.calendarFocus==="backwards"&&c<=0;if((d||u)&&Math.abs(c)<s.months)return}r.setState({focusedDate:a});return}const i=(0,Ie.differenceInCalendarMonths)(a,s.minDate,r.dateOptions),l=r.list.getVisibleRange();o&&l.includes(i)||(r.isFirstRender=!0,r.list.scrollTo(i),r.setState({focusedDate:a}))}),zt(this,"updateShownDate",function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:r.props;const s=a.scroll.enabled?{...a,months:r.list.getVisibleRange().length}:a,o=(0,ki.calcFocusDate)(r.state.focusedDate,s);r.focusToDate(o,s)}),zt(this,"updatePreview",a=>{if(!a){this.setState({preview:null});return}const s={startDate:a,endDate:a,color:this.props.color};this.setState({preview:s})}),zt(this,"changeShownDate",function(a){let s=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,Ie.addMonths)(o,a),setMonth:()=>(0,Ie.setMonth)(o,a),setYear:()=>(0,Ie.setYear)(o,a),set:()=>a},u=(0,Ie.min)([(0,Ie.max)([d[s](),l]),c]);r.focusToDate(u,r.props,!1),i&&i(u)}),zt(this,"handleRangeFocusChange",(a,s)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([a,s])}),zt(this,"handleScroll",()=>{const{onShownDateChange:a,minDate:s}=this.props,{focusedDate:o}=this.state,{isFirstRender:i}=this,l=this.list.getVisibleRange();if(l[0]===void 0)return;const c=(0,Ie.addMonths)(s,l[0]||0);!(0,Ie.isSameMonth)(c,o)&&!i&&(this.setState({focusedDate:c}),a&&a(c)),this.isFirstRender=!1}),zt(this,"renderMonthAndYear",(a,s,o)=>{const{showMonthArrow:i,minDate:l,maxDate:c,showMonthAndYearPickers:d,ariaLabels:u}=o,f=(c||ua.defaultProps.maxDate).getFullYear(),h=(l||ua.defaultProps.minDate).getFullYear(),m=this.styles;return Me.default.createElement("div",{onMouseUp:p=>p.stopPropagation(),className:m.monthAndYearWrapper},i?Me.default.createElement("button",{type:"button",className:(0,Er.default)(m.nextPrevButton,m.prevButton),onClick:()=>s(-1,"monthOffset"),"aria-label":u.prevButton},Me.default.createElement("i",null)):null,d?Me.default.createElement("span",{className:m.monthAndYearPickers},Me.default.createElement("span",{className:m.monthPicker},Me.default.createElement("select",{value:a.getMonth(),onChange:p=>s(p.target.value,"setMonth"),"aria-label":u.monthPicker},this.state.monthNames.map((p,b)=>Me.default.createElement("option",{key:b,value:b},p)))),Me.default.createElement("span",{className:m.monthAndYearDivider}),Me.default.createElement("span",{className:m.yearPicker},Me.default.createElement("select",{value:a.getFullYear(),onChange:p=>s(p.target.value,"setYear"),"aria-label":u.yearPicker},new Array(f-h+1).fill(f).map((p,b)=>{const x=p-b;return Me.default.createElement("option",{key:x,value:x},x)})))):Me.default.createElement("span",{className:m.monthAndYearPickers},this.state.monthNames[a.getMonth()]," ",a.getFullYear()),i?Me.default.createElement("button",{type:"button",className:(0,Er.default)(m.nextPrevButton,m.nextButton),onClick:()=>s(1,"monthOffset"),"aria-label":u.nextButton},Me.default.createElement("i",null)):null)}),zt(this,"renderDateDisplay",()=>{const{focusedRange:a,color:s,ranges:o,rangeColors:i,dateDisplayFormat:l,editableDateInputs:c,startDatePlaceholder:d,endDatePlaceholder:u,ariaLabels:f}=this.props,h=i[a[0]]||s,m=this.styles;return Me.default.createElement("div",{className:m.dateDisplayWrapper},o.map((p,b)=>p.showDateDisplay===!1||p.disabled&&!p.showDateDisplay?null:Me.default.createElement("div",{className:m.dateDisplay,key:b,style:{color:p.color||h}},Me.default.createElement(ny.default,{className:(0,Er.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:a[0]===b&&a[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)}),Me.default.createElement(ny.default,{className:(0,Er.default)(m.dateDisplayItem,{[m.dateDisplayItemActive]:a[0]===b&&a[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)}))))}),zt(this,"onDragSelectionStart",a=>{const{onChange:s,dragSelectionEnabled:o}=this.props;o?this.setState({drag:{status:!0,range:{startDate:a,endDate:a},disablePreview:!0}}):s&&s(a)}),zt(this,"onDragSelectionEnd",a=>{const{updateRange:s,displayMode:o,onChange:i,dragSelectionEnabled:l}=this.props;if(!l)return;if(o==="date"||!this.state.drag.status){i&&i(a);return}const c={startDate:this.state.drag.range.startDate,endDate:a};o!=="dateRange"||(0,Ie.isSameDay)(c.startDate,a)?this.setState({drag:{status:!1,range:{}}},()=>i&&i(a)):this.setState({drag:{status:!1,range:{}}},()=>{s&&s(c)})}),zt(this,"onDragSelectionMove",a=>{const{drag:s}=this.state;!s.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:s.status,range:{startDate:s.range.startDate,endDate:a},disablePreview:!0}})}),zt(this,"estimateMonthSize",(a,s)=>{const{direction:o,minDate:i}=this.props,{scrollArea:l}=this.state;if(s&&(this.listSizeCache=s,s[a]))return s[a];if(o==="horizontal")return l.monthWidth;const c=(0,Ie.addMonths)(i,a),{start:d,end:u}=(0,ki.getMonthDisplayRange)(c,this.dateOptions);return(0,Ie.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,ki.generateStyles)([H5.default,e.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,ki.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:a}=e;if(!a.enabled)return{enabled:!1};const s=a.longMonthHeight||a.monthHeight;return n==="vertical"?{enabled:!0,monthHeight:a.monthHeight||220,longMonthHeight:s||260,calendarWidth:"auto",calendarHeight:(a.calendarHeight||s||240)*r}:{enabled:!0,monthWidth:a.monthWidth||332,calendarWidth:(a.calendarWidth||a.monthWidth||332)*r,monthHeight:s||300,calendarHeight:s||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,z5.shallowEqualObjects)(e.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const e=new Date;return Me.default.createElement("div",{className:this.styles.weekDays},(0,Ie.eachDayOfInterval)({start:(0,Ie.startOfWeek)(e,this.dateOptions),end:(0,Ie.endOfWeek)(e,this.dateOptions)}).map((n,r)=>Me.default.createElement("span",{className:this.styles.weekDay,key:r},(0,Ie.format)(n,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:e,onPreviewChange:n,scroll:r,direction:a,disabledDates:s,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=a==="vertical",x=u||this.renderMonthAndYear,w=this.props.ranges.map((k,v)=>({...k,color:k.color||c[v]||d}));return Me.default.createElement("div",{className:(0,Er.default)(this.styles.calendarWrapper,f),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},e&&this.renderDateDisplay(),x(p,this.changeShownDate,this.props),r.enabled?Me.default.createElement("div",null,b&&this.renderWeekdays(this.dateOptions),Me.default.createElement("div",{className:(0,Er.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},Me.default.createElement(W5.default,{length:(0,Ie.differenceInCalendarMonths)((0,Ie.endOfMonth)(i),(0,Ie.addDays)((0,Ie.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 y=(0,Ie.addMonths)(l,k);return Me.default.createElement(ty.default,_i({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:w,key:v,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:s,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}))}}))):Me.default.createElement("div",{className:(0,Er.default)(this.styles.months,b?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((k,v)=>{let y=(0,Ie.addMonths)(this.state.focusedDate,v);return this.props.calendarFocus==="backwards"&&(y=(0,Ie.subMonths)(this.state.focusedDate,this.props.months-1-v)),Me.default.createElement(ty.default,_i({},this.props,{onPreviewChange:n||this.updatePreview,preview:h||this.state.preview,ranges:w,key:v,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:s,disabledDay:o,month:y,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>n&&n(),styles:this.styles,showWeekDays:!b||v===0,showMonthName:!b||v>0}))})))}}ua.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:B5.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,Ie.addYears)(new Date,20),minDate:(0,Ie.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},ua.propTypes={showMonthArrow:le.default.bool,showMonthAndYearPickers:le.default.bool,disabledDates:le.default.array,disabledDay:le.default.func,minDate:le.default.object,maxDate:le.default.object,date:le.default.object,onChange:le.default.func,onPreviewChange:le.default.func,onRangeFocusChange:le.default.func,classNames:le.default.object,locale:le.default.object,shownDate:le.default.object,onShownDateChange:le.default.func,ranges:le.default.arrayOf(L5.rangeShape),preview:le.default.shape({startDate:le.default.object,endDate:le.default.object,color:le.default.string}),dateDisplayFormat:le.default.string,monthDisplayFormat:le.default.string,weekdayDisplayFormat:le.default.string,weekStartsOn:le.default.number,dayDisplayFormat:le.default.string,focusedRange:le.default.arrayOf(le.default.number),initialFocusedRange:le.default.arrayOf(le.default.number),months:le.default.number,className:le.default.string,showDateDisplay:le.default.bool,showPreview:le.default.bool,displayMode:le.default.oneOf(["dateRange","date"]),color:le.default.string,updateRange:le.default.func,scroll:le.default.shape({enabled:le.default.bool,monthHeight:le.default.number,longMonthHeight:le.default.number,monthWidth:le.default.number,calendarWidth:le.default.number,calendarHeight:le.default.number}),direction:le.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:le.default.string,endDatePlaceholder:le.default.string,navigatorRenderer:le.default.func,rangeColors:le.default.arrayOf(le.default.string),editableDateInputs:le.default.bool,dragSelectionEnabled:le.default.bool,fixedHeight:le.default.bool,calendarFocus:le.default.string,preventSnapRefocus:le.default.bool,ariaLabels:Y5.ariaLabelsShape},us.default=ua,Object.defineProperty(ds,"__esModule",{value:!0}),ds.default=void 0;var ay=Z5(_),fa=Si(Sn),sy=Si(us),G5=On,Cd=En,gn=Or,K5=Si(Rn),Q5=Si(Cr);function Si(t){return t&&t.__esModule?t:{default:t}}function oy(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(oy=function(r){return r?n:e})(t)}function Z5(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=oy(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function Ed(){return Ed=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},Ed.apply(this,arguments)}function Oi(t,e,n){return e=J5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J5(t){var e=q5(t,"string");return typeof e=="symbol"?e:String(e)}function q5(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 Td extends ay.Component{constructor(e,n){var r;super(e,n),r=this,Oi(this,"calcNewSelection",function(a){let s=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 x=new Date;let w;if(!s)p=a.startDate,b=a.endDate;else if(o[1]===0){const y=(0,gn.differenceInCalendarDays)(b||x,p),S=()=>d?(0,gn.addDays)(a,y):u?!b||(0,gn.isBefore)(a,b)?b:a:a||x;p=a,b=S(),c&&(b=(0,gn.min)([b,c])),w=[o[0],1]}else b=a;let k=o[1]===0;(0,gn.isBefore)(b,p)&&(k=!k,[p,b]=[b,p]);const v=f.filter(y=>(0,gn.isWithinInterval)(y,{start:p,end:b}));return v.length>0&&(k?p=(0,gn.addDays)((0,gn.max)(v),1):b=(0,gn.addDays)((0,gn.min)(v),-1)),w||(w=[(0,Cd.findNextRangeIndex)(r.props.ranges,o[0]),0]),{wasValid:!(v.length>0),range:{startDate:p,endDate:b},nextFocusRange:w}}),Oi(this,"setSelection",(a,s)=>{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(a,s);o({[u.key||`range${d+1}`]:{...u,...f.range}}),this.setState({focusedRange:f.nextFocusRange,preview:null}),l&&l(f.nextFocusRange)}),Oi(this,"handleRangeFocusChange",a=>{this.setState({focusedRange:a}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(a)}),Oi(this,"updatePreview",a=>{var c;if(!a){this.setState({preview:null});return}const{rangeColors:s,ranges:o}=this.props,i=this.props.focusedRange||this.state.focusedRange,l=((c=o[i[0]])==null?void 0:c.color)||s[i[0]]||l;this.setState({preview:{...a.range,color:l}})}),this.state={focusedRange:e.initialFocusedRange||[(0,Cd.findNextRangeIndex)(e.ranges),0],preview:null},this.styles=(0,Cd.generateStyles)([Q5.default,e.classNames])}render(){return ay.default.createElement(sy.default,Ed({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,K5.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:e=>this.setSelection(e,!1),ref:e=>{this.calendar=e}}))}}Td.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},Td.propTypes={...sy.default.propTypes,onChange:fa.default.func,onRangeFocusChange:fa.default.func,className:fa.default.string,ranges:fa.default.arrayOf(G5.rangeShape),moveRangeOnFirstSelection:fa.default.bool,retainEndDateOnFirstSelection:fa.default.bool},ds.default=Td;var Di={},ws={},Jn={};Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.createStaticRanges=iy,Jn.defaultStaticRanges=Jn.defaultInputRanges=void 0;var Te=Or;const nt={startOfWeek:(0,Te.startOfWeek)(new Date),endOfWeek:(0,Te.endOfWeek)(new Date),startOfLastWeek:(0,Te.startOfWeek)((0,Te.addDays)(new Date,-7)),endOfLastWeek:(0,Te.endOfWeek)((0,Te.addDays)(new Date,-7)),startOfToday:(0,Te.startOfDay)(new Date),endOfToday:(0,Te.endOfDay)(new Date),startOfYesterday:(0,Te.startOfDay)((0,Te.addDays)(new Date,-1)),endOfYesterday:(0,Te.endOfDay)((0,Te.addDays)(new Date,-1)),startOfMonth:(0,Te.startOfMonth)(new Date),endOfMonth:(0,Te.endOfMonth)(new Date),startOfLastMonth:(0,Te.startOfMonth)((0,Te.addMonths)(new Date,-1)),endOfLastMonth:(0,Te.endOfMonth)((0,Te.addMonths)(new Date,-1))},$5={range:{},isSelected(t){const e=this.range();return(0,Te.isSameDay)(t.startDate,e.startDate)&&(0,Te.isSameDay)(t.endDate,e.endDate)}};function iy(t){return t.map(e=>({...$5,...e}))}Jn.defaultStaticRanges=iy([{label:"Today",range:()=>({startDate:nt.startOfToday,endDate:nt.endOfToday})},{label:"Yesterday",range:()=>({startDate:nt.startOfYesterday,endDate:nt.endOfYesterday})},{label:"This Week",range:()=>({startDate:nt.startOfWeek,endDate:nt.endOfWeek})},{label:"Last Week",range:()=>({startDate:nt.startOfLastWeek,endDate:nt.endOfLastWeek})},{label:"This Month",range:()=>({startDate:nt.startOfMonth,endDate:nt.endOfMonth})},{label:"Last Month",range:()=>({startDate:nt.startOfLastMonth,endDate:nt.endOfLastMonth})}]),Jn.defaultInputRanges=[{label:"days up to today",range(t){return{startDate:(0,Te.addDays)(nt.startOfToday,(Math.max(Number(t),1)-1)*-1),endDate:nt.endOfToday}},getCurrentValue(t){return(0,Te.isSameDay)(t.endDate,nt.endOfToday)?t.startDate?(0,Te.differenceInCalendarDays)(nt.endOfToday,t.startDate)+1:"∞":"-"}},{label:"days starting today",range(t){const e=new Date;return{startDate:e,endDate:(0,Te.addDays)(e,Math.max(Number(t),1)-1)}},getCurrentValue(t){return(0,Te.isSameDay)(t.startDate,nt.startOfToday)?t.endDate?(0,Te.differenceInCalendarDays)(t.endDate,nt.startOfToday)+1:"∞":"-"}}];var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0;var Ci=tj(_),_t=ej(Sn);function ej(t){return t&&t.__esModule?t:{default:t}}function ly(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(ly=function(r){return r?n:e})(t)}function tj(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=ly(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function nj(t,e,n){return e=rj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rj(t){var e=aj(t,"string");return typeof e=="symbol"?e:String(e)}function aj(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 cy=0,dy=99999;class Pd extends Ci.Component{constructor(e,n){super(e,n),nj(this,"onChange",r=>{const{onChange:a}=this.props;let s=parseInt(r.target.value,10);s=isNaN(s)?0:Math.max(Math.min(dy,s),cy),a(s)})}shouldComponentUpdate(e){const{value:n,label:r,placeholder:a}=this.props;return n!==e.value||r!==e.label||a!==e.placeholder}render(){const{label:e,placeholder:n,value:r,styles:a,onBlur:s,onFocus:o}=this.props;return Ci.default.createElement("div",{className:a.inputRange},Ci.default.createElement("input",{className:a.inputRangeInput,placeholder:n,value:r,min:cy,max:dy,onChange:this.onChange,onFocus:o,onBlur:s}),Ci.default.createElement("span",{className:a.inputRangeLabel},e))}}Pd.propTypes={value:_t.default.oneOfType([_t.default.string,_t.default.number]),label:_t.default.oneOfType([_t.default.element,_t.default.node]).isRequired,placeholder:_t.default.string,styles:_t.default.shape({inputRange:_t.default.string,inputRangeInput:_t.default.string,inputRangeLabel:_t.default.string}).isRequired,onBlur:_t.default.func.isRequired,onFocus:_t.default.func.isRequired,onChange:_t.default.func.isRequired},Pd.defaultProps={value:"",placeholder:"-"},Mi.default=Pd,Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var Tr=ij(_),Ct=Ei(Sn),Pr=Ei(Cr),uy=Jn,sj=On,oj=Ei(Mi),fy=Ei(Rn);function Ei(t){return t&&t.__esModule?t:{default:t}}function hy(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(hy=function(r){return r?n:e})(t)}function ij(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=hy(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function lj(t,e,n){return e=cj(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cj(t){var e=dj(t,"string");return typeof e=="symbol"?e:String(e)}function dj(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 Nd extends Tr.Component{constructor(e){super(e),lj(this,"handleRangeChange",n=>{const{onChange:r,ranges:a,focusedRange:s}=this.props,o=a[s[0]];!r||!o||r({[o.key||`range${s[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 a=n[r[0]]||{};return e.getCurrentValue(a)||""}getSelectedRange(e,n){const r=e.findIndex(s=>!s.startDate||!s.endDate||s.disabled?!1:n.isSelected(s));return{selectedRange:e[r],focusedRangeIndex:r}}render(){const{headerContent:e,footerContent:n,onPreviewChange:r,inputRanges:a,staticRanges:s,ranges:o,renderStaticRangeLabel:i,rangeColors:l,className:c}=this.props;return Tr.default.createElement("div",{className:(0,fy.default)(Pr.default.definedRangesWrapper,c)},e,Tr.default.createElement("div",{className:Pr.default.staticRanges},s.map((d,u)=>{const{selectedRange:f,focusedRangeIndex:h}=this.getSelectedRange(o,d);let m;return d.hasCustomRendering?m=i(d):m=d.label,Tr.default.createElement("button",{type:"button",className:(0,fy.default)(Pr.default.staticRange,{[Pr.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()}},Tr.default.createElement("span",{tabIndex:-1,className:Pr.default.staticRangeLabel},m))})),Tr.default.createElement("div",{className:Pr.default.inputRanges},a.map((d,u)=>Tr.default.createElement(oj.default,{key:u,styles:Pr.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)}}Nd.propTypes={inputRanges:Ct.default.array,staticRanges:Ct.default.array,ranges:Ct.default.arrayOf(sj.rangeShape),focusedRange:Ct.default.arrayOf(Ct.default.number),onPreviewChange:Ct.default.func,onChange:Ct.default.func,footerContent:Ct.default.any,headerContent:Ct.default.any,rangeColors:Ct.default.arrayOf(Ct.default.string),className:Ct.default.string,renderStaticRangeLabel:Ct.default.func},Nd.defaultProps={inputRanges:uy.defaultInputRanges,staticRanges:uy.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},ws.default=Nd,Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=void 0;var Ti=gj(_),uj=ks(Sn),gy=ks(ds),my=ks(ws),py=En,fj=ks(Rn),hj=ks(Cr);function ks(t){return t&&t.__esModule?t:{default:t}}function by(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(by=function(r){return r?n:e})(t)}function gj(t,e){if(t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var n=by(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=a?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(r,s,o):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}function Pi(){return Pi=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},Pi.apply(this,arguments)}let jd=class extends Ti.Component{constructor(e){super(e),this.state={focusedRange:[(0,py.findNextRangeIndex)(e.ranges),0]},this.styles=(0,py.generateStyles)([hj.default,e.classNames])}render(){const{focusedRange:e}=this.state;return Ti.default.createElement("div",{className:(0,fj.default)(this.styles.dateRangePickerWrapper,this.props.className)},Ti.default.createElement(my.default,Pi({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})),Ti.default.createElement(gy.default,Pi({onRangeFocusChange:n=>this.setState({focusedRange:n}),focusedRange:e},this.props,{ref:n=>this.dateRange=n,className:void 0})))}};jd.defaultProps={},jd.propTypes={...gy.default.propTypes,...my.default.propTypes,className:uj.default.string},Di.default=jd,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 a.default}}),Object.defineProperty(t,"createStaticRanges",{enumerable:!0,get:function(){return s.createStaticRanges}}),Object.defineProperty(t,"defaultInputRanges",{enumerable:!0,get:function(){return s.defaultInputRanges}}),Object.defineProperty(t,"defaultStaticRanges",{enumerable:!0,get:function(){return s.defaultStaticRanges}});var e=o(ds),n=o(us),r=o(Di),a=o(ws),s=Jn;function o(i){return i&&i.__esModule?i:{default:i}}}(yp);const mj={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"}},pj=(t,e,n)=>{let r;const a=mj[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},bj={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},yj={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},vj={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xj={date:ia({formats:bj,defaultWidth:"full"}),time:ia({formats:yj,defaultWidth:"full"}),dateTime:ia({formats:vj,defaultWidth:"full"})},wj={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"},kj={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"},_j=(t,e,n,r)=>e.getHours()!==1?kj[t]:wj[t],Sj={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Oj={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Dj={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"]},Mj={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"]},Cj={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"}},Ej={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"}},Tj={ordinalNumber:(t,e)=>Number(t)+"º",era:ln({values:Sj,defaultWidth:"wide"}),quarter:ln({values:Oj,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}),month:ln({values:Dj,defaultWidth:"wide"}),day:ln({values:Mj,defaultWidth:"wide"}),dayPeriod:ln({values:Cj,defaultWidth:"wide",formattingValues:Ej,defaultFormattingWidth:"wide"})},Pj=/^(\d+)(º)?/i,Nj=/\d+/i,jj={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},Ij={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]},Rj={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Aj={any:[/1/i,/2/i,/3/i,/4/i]},Fj={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},Lj={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]},Wj={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},zj={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]},Bj={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},Hj={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}},Yj={ordinalNumber:ib({matchPattern:Pj,parsePattern:Nj,valueCallback:function(t){return parseInt(t,10)}}),era:cn({matchPatterns:jj,defaultMatchWidth:"wide",parsePatterns:Ij,defaultParseWidth:"any"}),quarter:cn({matchPatterns:Rj,defaultMatchWidth:"wide",parsePatterns:Aj,defaultParseWidth:"any",valueCallback:t=>t+1}),month:cn({matchPatterns:Fj,defaultMatchWidth:"wide",parsePatterns:Lj,defaultParseWidth:"any"}),day:cn({matchPatterns:Wj,defaultMatchWidth:"wide",parsePatterns:zj,defaultParseWidth:"any"}),dayPeriod:cn({matchPatterns:Bj,defaultMatchWidth:"any",parsePatterns:Hj,defaultParseWidth:"any"})},Vj={code:"es",formatDistance:pj,formatLong:xj,formatRelative:_j,localize:Tj,match:Yj,options:{weekStartsOn:1,firstWeekContainsDate:1}},Nn={"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"},Uj=[{label:"Ayer",range:()=>{const t=new Date;return t.setDate(t.getDate()-1),{startDate:t,endDate:t}}},{label:"La semana pasada",range:()=>({startDate:Wt(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}}}],Xj=({value:t,onChange:e,minData:n,maxData:r,quickRanges:a,className:s})=>{const[o,i]=_.useState([{startDate:Wt(new Date,-6),endDate:new Date,key:"selection"}]),[l,c]=_.useState(!1),[d,u]=_.useState({}),f=_.useRef(null),h=_.useRef(null),m=a??Uj,p=t?[{...t,key:"selection"}]:o;_.useEffect(()=>{if(l&&h.current&&f.current){const v=h.current.getBoundingClientRect(),y=f.current.offsetWidth||700,S=window.innerWidth-v.right,N=v.left,C={right:0,left:"auto"};S<y&&N>=y&&(C.left=0,C.right="auto"),window.innerWidth<y&&(C.left=0,C.right=0,C.width="100vw",C.maxWidth="100vw"),u(C)}},[l]);const b=v=>{t||i([v.selection]),e==null||e(v.selection.startDate,v.selection.endDate)},x=v=>{const{startDate:y,endDate:S}=v();t||i([{startDate:y,endDate:S,key:"selection"}]),e==null||e(y,S),c(!1)},w=()=>{const v=new Date;t||i([{startDate:v,endDate:v,key:"selection"}]),e==null||e(v,v),c(!1)},k=v=>fi(v,"dd MMM yy");return _.useEffect(()=>{if(!l)return;const v=y=>{f.current&&!f.current.contains(y.target)&&h.current&&!h.current.contains(y.target)&&c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[l]),g.jsxs("div",{className:Nn["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:`${Nn["date-input"]} ${s}`}),l&&g.jsxs("div",{ref:f,className:Nn["date-popup"],style:d,children:[g.jsxs("div",{className:Nn["date-menu"],children:[m.map((v,y)=>g.jsx("div",{className:Nn["date-menuItem"]+(y===2?" "+Nn["date-menuItemActive"]:""),onClick:()=>x(v.range),children:v.label},v.label)),g.jsx("div",{className:Nn["date-menuItem"]+" "+Nn["date-menuItemReset"],onClick:w,children:"Reset"})]}),g.jsx("div",{className:Nn["date-calendar"],children:g.jsx(yp.DateRange,{editableDateInputs:!1,onChange:b,moveRangeOnFirstSelection:!1,ranges:p,rangeColors:["#C0D4FF99"],minDate:n,maxDate:r,locale:Vj,dayContentRenderer:v=>{const y=v.getDay(),S={opacity:y===0||y===6?.5:1,color:y===0||y===6?"#999":"inherit"};return g.jsx("span",{style:S,children:v.getDate()})},navigationButtonsPosition:"center"})})]})]})},Gj=({minDate:t,maxDate:e})=>g.jsx(wu,{minDate:t,maxDate:e,className:"custom-datepicker"}),Nr={"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"},Kj=function(){return g.jsx("div",{className:`mth_loader ${Nr["loader-wrapper"]}`,children:g.jsx("div",{className:Nr.container,children:g.jsxs("div",{className:Nr["mathilde-loading"],children:[g.jsx("img",{className:Nr.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:Nr["loading-1"],children:g.jsx("circle",{cx:"50",cy:"50",r:"40"})}),g.jsx("div",{className:Nr["ball-container"],children:g.jsx("div",{className:Nr.ball})})]})})})},Qj=({label:t,dismissOnClick:e,items:n,size:r,className:a,styles:s,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,v)=>{const y=v?[...h,k]:h.filter(S=>S!==k);m(y),l==null||l(y)},b=()=>n.map(k=>g.jsx(wl,{...k,href:k.href,children:k.label},k.value||k.label)),x=()=>{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 y=v.value||v.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: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})]},y)})})},w=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(Nk,{label:t,dismissOnClick:o==="simple"?e:!1,size:r,renderTrigger:()=>g.jsx("button",{className:a,style:s,type:"button",children:g.jsxs("span",{className:"flex items-center gap-2",children:[w(u),t,d&&w(Ai)]})}),className:"left-0",children:o==="simple"?b():x()})})},Zj=function({steps:t=[],initialStep:e=1,activeStep:n,onStepChange:r,renderControls:a,onNext:s,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 x=u+1;l?(r==null||r(x),s==null||s()):(d(x),s==null||s())}else i==null||i()},h=()=>{if(u>1){const x=u-1;l?(r==null||r(x),o==null||o()):(d(x),o==null||o())}},m=x=>{x!==u&&(x<1||x>t.length||(l?r==null||r(x):d(x)))},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((x,w)=>{const k=w===t.length-1,v=w+1===u,y=w+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
518
  ${y||v?"bg-[#191960] ring-[#191960]":"bg-[#C0D4FF] ring-[#C0D4FF]"}`}),g.jsx("h3",{className:`text-sm font-medium leading-tight transition-colors duration-300
519
- ${y||v?"text-black":"text-gray-600"}`,children:x.title})]},x.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:a?g.jsx("div",{className:"w-full flex justify-end",children:a(p)}):g.jsxs(g.Fragment,{children:[g.jsx(pa,{color:"gray",disabled:u===1,onClick:h,children:"Atrás"}),u<t.length?g.jsx(pa,{style:{backgroundColor:"#191960"},onClick:f,children:"Siguiente"}):g.jsx(pa,{color:"success",onClick:i,children:"Finalizar"})]})})})]})},Jj=({options:t,classNameRadio:e,classNameLabel:n,onChange:r})=>g.jsx("div",{className:"flex max-w-md flex-col gap-2",children:g.jsx("div",{className:"flex items-center gap-3",children:t==null?void 0:t.map(a=>g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(sh,{id:a.id,value:a.value,name:a.name,onChange:r,defaultChecked:a.checked,disabled:a.disabled,className:`ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] ${e}`}),g.jsx(kl,{htmlFor:a.id,className:`${n}`,children:a.label})]},a.id))})});function vy(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=vy(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ni(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=vy(t))&&(r&&(r+=" "),r+=e);return r}const xy=({id:t,title:e,children:n,isOpen:r,onToggle:a,variant:s="minimal",icon:o,iconPosition:i="right"})=>{const l=Ni({minimal:"",bordered:"border border-gray-300 dark:border-gray-600",shadow:"shadow-md",ghost:"bg-transparent"}[s]);return g.jsxs("div",{id:t,className:Ni("rounded-lg w-full",l),children:[g.jsxs("button",{onClick:a,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:Ni("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:Ni("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")]})},qj=({items:t,mode:e="multi",defaultOpen:n=[],className:r})=>{const[a,s]=_.useState(n),o=i=>{s(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(xy,{id:i.id,title:i.title,isOpen:a.includes(i.id),onToggle:()=>o(i.id),variant:i.variant,icon:i.icon,iconPosition:i.iconPosition,children:i.content})},i.id))})},$j=({onSelect:t,items:e=[],placeholder:n="Buscar país, región o ciudad",fetchItems:r,minCharsToSearch:a=3,debounceMs:s=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<a){f([]);return}const p=new AbortController,b=setTimeout(async()=>{try{const x=await r(c.trim());f(x)}catch{f([])}},s);return()=>{clearTimeout(b),p.abort()}},[c,r,s,a]);const m=p=>{t(p),d(p.label),l(!1)};return g.jsxs("div",{ref:h,className:o,children:[g.jsx(Pl,{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))})]})},eI=({items:t,title:e,onRemove:n,colors:r={},className:a="",containerClassName:s="",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:`${a}`,children:[i&&e&&g.jsx("h2",{className:`${o}`,children:e}),g.jsx("div",{className:`${s}`,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))})})]})};ue.Accordion=xy,ue.AccordionGroup=qj,ue.ButtonFormat=_y,ue.Card=Rc,ue.CardIndicator=Qk,ue.Checkbox=Sy,ue.ChipList=eI,ue.CustomPagination=hp,ue.DatePicker=Gj,ue.DateRangePicker=Xj,ue.DropdownButton=Qj,ue.DropdownList=$j,ue.Dropzone=M2,ue.ImageFormat=jn,ue.InputForm=Pl,ue.LayoutOutside=k2,ue.ListFile=T2,ue.Loader=Kj,ue.ModalFormat=Rm,ue.MyDoughnutChart=vO,ue.PasswordInput=Nl,ue.PasswordValidationList=pp,ue.ProgressBar=Uh,ue.RadioButton=Jj,ue.SelectForm=Xh,ue.SidebarPro=b2,ue.Spinner=P2,ue.Stepper=Zj,ue.TableComponent=w2,ue.TableOfContents=D2,ue.TabsComponent=N2,ue.TermsCheckbox=_2,ue.Toggle=gp,ue.ValidationPassword=O2,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
519
+ ${y||v?"text-black":"text-gray-600"}`,children:x.title})]},x.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:a?g.jsx("div",{className:"w-full flex justify-end",children:a(p)}):g.jsxs(g.Fragment,{children:[g.jsx(pa,{color:"gray",disabled:u===1,onClick:h,children:"Atrás"}),u<t.length?g.jsx(pa,{style:{backgroundColor:"#191960"},onClick:f,children:"Siguiente"}):g.jsx(pa,{color:"success",onClick:i,children:"Finalizar"})]})})})]})},Jj=({options:t,classNameRadio:e,classNameLabel:n,onChange:r})=>g.jsx("div",{className:"flex max-w-md flex-col gap-2",children:g.jsx("div",{className:"flex items-center gap-3",children:t==null?void 0:t.map(a=>g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(sh,{id:a.id,value:a.value,name:a.name,onChange:r,defaultChecked:a.checked,disabled:a.disabled,className:`ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] ${e}`}),g.jsx(kl,{htmlFor:a.id,className:`${n}`,children:a.label})]},a.id))})});function yy(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=yy(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ni(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=yy(t))&&(r&&(r+=" "),r+=e);return r}const vy=({id:t,title:e,children:n,isOpen:r,onToggle:a,variant:s="minimal",icon:o,iconPosition:i="right"})=>{const l=Ni({minimal:"",bordered:"border border-gray-300 dark:border-gray-600",shadow:"shadow-md",ghost:"bg-transparent"}[s]);return g.jsxs("div",{id:t,className:Ni("rounded-lg w-full",l),children:[g.jsxs("button",{onClick:a,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:Ni("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:Ni("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")]})},qj=({items:t,mode:e="multi",defaultOpen:n=[],className:r})=>{const[a,s]=_.useState(n),o=i=>{s(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(vy,{id:i.id,title:i.title,isOpen:a.includes(i.id),onToggle:()=>o(i.id),variant:i.variant,icon:i.icon,iconPosition:i.iconPosition,children:i.content})},i.id))})},$j=({onSelect:t,items:e=[],placeholder:n="Buscar país, región o ciudad",fetchItems:r,minCharsToSearch:a=3,debounceMs:s=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<a){f([]);return}const p=new AbortController,b=setTimeout(async()=>{try{const x=await r(c.trim());f(x)}catch{f([])}},s);return()=>{clearTimeout(b),p.abort()}},[c,r,s,a]);const m=p=>{t(p),d(p.label),l(!1)};return g.jsxs("div",{ref:h,className:o,children:[g.jsx(Pl,{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))})]})},eI=({items:t,title:e,onRemove:n,colors:r={},className:a="",containerClassName:s="",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:`${a}`,children:[i&&e&&g.jsx("h2",{className:`${o}`,children:e}),g.jsx("div",{className:`${s}`,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))})})]})};ue.Accordion=vy,ue.AccordionGroup=qj,ue.ButtonFormat=ky,ue.Card=Rc,ue.CardIndicator=Kk,ue.Checkbox=_y,ue.ChipList=eI,ue.CustomPagination=hp,ue.DatePicker=Gj,ue.DateRangePicker=Xj,ue.DropdownButton=Qj,ue.DropdownList=$j,ue.Dropzone=M2,ue.ImageFormat=er,ue.InputForm=Pl,ue.LayoutOutside=k2,ue.ListFile=T2,ue.Loader=Kj,ue.ModalFormat=Rm,ue.MyDoughnutChart=yO,ue.PasswordInput=Nl,ue.PasswordValidationList=mp,ue.ProgressBar=Uh,ue.RadioButton=Jj,ue.SelectForm=Xh,ue.SidebarPro=p2,ue.Spinner=P2,ue.Stepper=Zj,ue.TableComponent=x2,ue.TableOfContents=D2,ue.TabsComponent=N2,ue.TermsCheckbox=_2,ue.Toggle=gp,ue.ValidationPassword=O2,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});