componentes-exagono 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/componentes-exagono.css +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +16098 -0
- package/dist/index.umd.js +166 -0
- package/dist/vite.svg +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
(function(_t,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react"),require("@mui/material"),require("date-fns"),require("react-dom"),require("notistack")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","date-fns","react-dom","notistack"],b):(_t=typeof globalThis<"u"?globalThis:_t||self,b(_t.exagono={},_t.React,_t.MaterialUI,_t.dateFns,_t.ReactDOM,_t.notistack))})(this,function(_t,b,U,v,Fa,ci){"use strict";function Va(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const ne=Va(b),Od=Va(Fa);function Ad(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nn={exports:{}},Zr={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ua;function Md(){if(Ua)return Zr;Ua=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var s in o)s!=="key"&&(i[s]=o[s])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Zr.Fragment=n,Zr.jsx=t,Zr.jsxs=t,Zr}var qr={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Ha;function Pd(){return Ha||(Ha=1,process.env.NODE_ENV!=="production"&&function(){function e(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===j?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case p:return"Fragment";case k:return"Profiler";case y:return"StrictMode";case x:return"Suspense";case O:return"SuspenseList";case V:return"Activity"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case g:return"Portal";case E:return(D.displayName||"Context")+".Provider";case S:return(D._context.displayName||"Context")+".Consumer";case C:var $=D.render;return D=D.displayName,D||(D=$.displayName||$.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case N:return $=D.displayName||null,$!==null?$:e(D.type)||"Memo";case q:$=D._payload,D=D._init;try{return e(D($))}catch{}}return null}function n(D){return""+D}function t(D){try{n(D);var $=!1}catch{$=!0}if($){$=console;var te=$.error,oe=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return te.call($,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",oe),n(D)}}function r(D){if(D===p)return"<>";if(typeof D=="object"&&D!==null&&D.$$typeof===q)return"<...>";try{var $=e(D);return $?"<"+$+">":"<...>"}catch{return"<...>"}}function o(){var D=z.A;return D===null?null:D.getOwner()}function i(){return Error("react-stack-top-frame")}function a(D){if(h.call(D,"key")){var $=Object.getOwnPropertyDescriptor(D,"key").get;if($&&$.isReactWarning)return!1}return D.key!==void 0}function s(D,$){function te(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",$))}te.isReactWarning=!0,Object.defineProperty(D,"key",{get:te,configurable:!0})}function c(){var D=e(this.type);return B[D]||(B[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function l(D,$,te,oe,F,X,ce,ae){return te=X.ref,D={$$typeof:m,type:D,key:$,props:X,_owner:F},(te!==void 0?te:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:c}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ce}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function u(D,$,te,oe,F,X,ce,ae){var re=$.children;if(re!==void 0)if(oe)if(P(re)){for(oe=0;oe<re.length;oe++)d(re[oe]);Object.freeze&&Object.freeze(re)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(re);if(h.call($,"key")){re=e(D);var ue=Object.keys($).filter(function($e){return $e!=="key"});oe=0<ue.length?"{key: someKey, "+ue.join(": ..., ")+": ...}":"{key: someKey}",he[re+oe]||(ue=0<ue.length?"{"+ue.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,oe,re,ue,re),he[re+oe]=!0)}if(re=null,te!==void 0&&(t(te),re=""+te),a($)&&(t($.key),re=""+$.key),"key"in $){te={};for(var de in $)de!=="key"&&(te[de]=$[de])}else te=$;return re&&s(te,typeof D=="function"?D.displayName||D.name||"Unknown":D),l(D,re,X,F,o(),te,ce,ae)}function d(D){typeof D=="object"&&D!==null&&D.$$typeof===m&&D._store&&(D._store.validated=1)}var f=b,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),E=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),z=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h=Object.prototype.hasOwnProperty,P=Array.isArray,A=console.createTask?console.createTask:function(){return null};f={"react-stack-bottom-frame":function(D){return D()}};var Y,B={},Q=f["react-stack-bottom-frame"].bind(f,i)(),ee=A(r(i)),he={};qr.Fragment=p,qr.jsx=function(D,$,te,oe,F){var X=1e4>z.recentlyCreatedOwnerStacks++;return u(D,$,te,!1,oe,F,X?Error("react-stack-top-frame"):Q,X?A(r(D)):ee)},qr.jsxs=function(D,$,te,oe,F){var X=1e4>z.recentlyCreatedOwnerStacks++;return u(D,$,te,!0,oe,F,X?Error("react-stack-top-frame"):Q,X?A(r(D)):ee)}}()),qr}var Wa;function Id(){return Wa||(Wa=1,process.env.NODE_ENV==="production"?Nn.exports=Md():Nn.exports=Pd()),Nn.exports}var _=Id();const Zt={dashboardContainer:"_dashboardContainer_ykx6e_3",sidebar:"_sidebar_ykx6e_21",header:"_header_ykx6e_45",mainContent:"_mainContent_ykx6e_67",menuButton:"_menuButton_ykx6e_101",headerContent:"_headerContent_ykx6e_111",overlay:"_overlay_ykx6e_119",sidebarOpen:"_sidebarOpen_ykx6e_161"},Za=e=>e,Nd=(()=>{let e=Za;return{configure(n){e=n},generate(n){return e(n)},reset(){e=Za}}})();function qt(e,...n){const t=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(r=>t.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${t} for the full message.`}function ar(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":qt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Rn={exports:{}},$n={exports:{}},_e={};/** @license React v16.13.1
|
|
23
|
+
* react-is.production.min.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/var qa;function Rd(){if(qa)return _e;qa=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(x){if(typeof x=="object"&&x!==null){var O=x.$$typeof;switch(O){case n:switch(x=x.type,x){case c:case l:case r:case i:case o:case d:return x;default:switch(x=x&&x.$$typeof,x){case s:case u:case g:case m:case a:return x;default:return O}}case t:return O}}}function C(x){return E(x)===l}return _e.AsyncMode=c,_e.ConcurrentMode=l,_e.ContextConsumer=s,_e.ContextProvider=a,_e.Element=n,_e.ForwardRef=u,_e.Fragment=r,_e.Lazy=g,_e.Memo=m,_e.Portal=t,_e.Profiler=i,_e.StrictMode=o,_e.Suspense=d,_e.isAsyncMode=function(x){return C(x)||E(x)===c},_e.isConcurrentMode=C,_e.isContextConsumer=function(x){return E(x)===s},_e.isContextProvider=function(x){return E(x)===a},_e.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===n},_e.isForwardRef=function(x){return E(x)===u},_e.isFragment=function(x){return E(x)===r},_e.isLazy=function(x){return E(x)===g},_e.isMemo=function(x){return E(x)===m},_e.isPortal=function(x){return E(x)===t},_e.isProfiler=function(x){return E(x)===i},_e.isStrictMode=function(x){return E(x)===o},_e.isSuspense=function(x){return E(x)===d},_e.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===l||x===i||x===o||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===m||x.$$typeof===a||x.$$typeof===s||x.$$typeof===u||x.$$typeof===y||x.$$typeof===k||x.$$typeof===S||x.$$typeof===p)},_e.typeOf=E,_e}var we={};/** @license React v16.13.1
|
|
30
|
+
* react-is.development.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/var Ka;function $d(){return Ka||(Ka=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(W){return typeof W=="string"||typeof W=="function"||W===r||W===l||W===i||W===o||W===d||W===f||typeof W=="object"&&W!==null&&(W.$$typeof===g||W.$$typeof===m||W.$$typeof===a||W.$$typeof===s||W.$$typeof===u||W.$$typeof===y||W.$$typeof===k||W.$$typeof===S||W.$$typeof===p)}function C(W){if(typeof W=="object"&&W!==null){var Qe=W.$$typeof;switch(Qe){case n:var Sr=W.type;switch(Sr){case c:case l:case r:case i:case o:case d:return Sr;default:var In=Sr&&Sr.$$typeof;switch(In){case s:case u:case g:case m:case a:return In;default:return Qe}}case t:return Qe}}}var x=c,O=l,N=s,q=a,V=n,j=u,z=r,h=g,P=m,A=t,Y=i,B=o,Q=d,ee=!1;function he(W){return ee||(ee=!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.")),D(W)||C(W)===c}function D(W){return C(W)===l}function $(W){return C(W)===s}function te(W){return C(W)===a}function oe(W){return typeof W=="object"&&W!==null&&W.$$typeof===n}function F(W){return C(W)===u}function X(W){return C(W)===r}function ce(W){return C(W)===g}function ae(W){return C(W)===m}function re(W){return C(W)===t}function ue(W){return C(W)===i}function de(W){return C(W)===o}function $e(W){return C(W)===d}we.AsyncMode=x,we.ConcurrentMode=O,we.ContextConsumer=N,we.ContextProvider=q,we.Element=V,we.ForwardRef=j,we.Fragment=z,we.Lazy=h,we.Memo=P,we.Portal=A,we.Profiler=Y,we.StrictMode=B,we.Suspense=Q,we.isAsyncMode=he,we.isConcurrentMode=D,we.isContextConsumer=$,we.isContextProvider=te,we.isElement=oe,we.isForwardRef=F,we.isFragment=X,we.isLazy=ce,we.isMemo=ae,we.isPortal=re,we.isProfiler=ue,we.isStrictMode=de,we.isSuspense=$e,we.isValidElementType=E,we.typeOf=C}()),we}var Ga;function Qa(){return Ga||(Ga=1,process.env.NODE_ENV==="production"?$n.exports=Rd():$n.exports=$d()),$n.exports}/*
|
|
37
|
+
object-assign
|
|
38
|
+
(c) Sindre Sorhus
|
|
39
|
+
@license MIT
|
|
40
|
+
*/var li,Ja;function Ld(){if(Ja)return li;Ja=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return li=o()?Object.assign:function(i,a){for(var s,c=r(i),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)n.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)t.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},li}var ui,Xa;function di(){if(Xa)return ui;Xa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ui=e,ui}var fi,es;function ts(){return es||(es=1,fi=Function.call.bind(Object.prototype.hasOwnProperty)),fi}var pi,rs;function jd(){if(rs)return pi;rs=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=di(),t={},r=ts();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var d;try{if(typeof i[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[u](a,u,c,s,null,n)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var m=l?l():"";e("Failed "+s+" type: "+d.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},pi=o,pi}var hi,ns;function zd(){if(ns)return hi;ns=1;var e=Qa(),n=Ld(),t=di(),r=ts(),o=jd(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return hi=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(D){var $=D&&(l&&D[l]||D[u]);if(typeof $=="function")return $}var f="<<anonymous>>",m={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:S(),arrayOf:E,element:C(),elementType:x(),instanceOf:O,node:j(),objectOf:q,oneOf:N,oneOfType:V,shape:h,exact:P};function g(D,$){return D===$?D!==0||1/D===1/$:D!==D&&$!==$}function p(D,$){this.message=D,this.data=$&&typeof $=="object"?$:{},this.stack=""}p.prototype=Error.prototype;function y(D){if(process.env.NODE_ENV!=="production")var $={},te=0;function oe(X,ce,ae,re,ue,de,$e){if(re=re||f,de=de||ae,$e!==t){if(c){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Qe=re+":"+ae;!$[Qe]&&te<3&&(i("You are manually calling a React.PropTypes validation function for the `"+de+"` prop on `"+re+"`. 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."),$[Qe]=!0,te++)}}return ce[ae]==null?X?ce[ae]===null?new p("The "+ue+" `"+de+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new p("The "+ue+" `"+de+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:D(ce,ae,re,ue,de)}var F=oe.bind(null,!1);return F.isRequired=oe.bind(null,!0),F}function k(D){function $(te,oe,F,X,ce,ae){var re=te[oe],ue=B(re);if(ue!==D){var de=Q(re);return new p("Invalid "+X+" `"+ce+"` of type "+("`"+de+"` supplied to `"+F+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return y($)}function S(){return y(a)}function E(D){function $(te,oe,F,X,ce){if(typeof D!="function")return new p("Property `"+ce+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var ae=te[oe];if(!Array.isArray(ae)){var re=B(ae);return new p("Invalid "+X+" `"+ce+"` of type "+("`"+re+"` supplied to `"+F+"`, expected an array."))}for(var ue=0;ue<ae.length;ue++){var de=D(ae,ue,F,X,ce+"["+ue+"]",t);if(de instanceof Error)return de}return null}return y($)}function C(){function D($,te,oe,F,X){var ce=$[te];if(!s(ce)){var ae=B(ce);return new p("Invalid "+F+" `"+X+"` of type "+("`"+ae+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return y(D)}function x(){function D($,te,oe,F,X){var ce=$[te];if(!e.isValidElementType(ce)){var ae=B(ce);return new p("Invalid "+F+" `"+X+"` of type "+("`"+ae+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return y(D)}function O(D){function $(te,oe,F,X,ce){if(!(te[oe]instanceof D)){var ae=D.name||f,re=he(te[oe]);return new p("Invalid "+X+" `"+ce+"` of type "+("`"+re+"` supplied to `"+F+"`, expected ")+("instance of `"+ae+"`."))}return null}return y($)}function N(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function $(te,oe,F,X,ce){for(var ae=te[oe],re=0;re<D.length;re++)if(g(ae,D[re]))return null;var ue=JSON.stringify(D,function($e,W){var Qe=Q(W);return Qe==="symbol"?String(W):W});return new p("Invalid "+X+" `"+ce+"` of value `"+String(ae)+"` "+("supplied to `"+F+"`, expected one of "+ue+"."))}return y($)}function q(D){function $(te,oe,F,X,ce){if(typeof D!="function")return new p("Property `"+ce+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var ae=te[oe],re=B(ae);if(re!=="object")return new p("Invalid "+X+" `"+ce+"` of type "+("`"+re+"` supplied to `"+F+"`, expected an object."));for(var ue in ae)if(r(ae,ue)){var de=D(ae,ue,F,X,ce+"."+ue,t);if(de instanceof Error)return de}return null}return y($)}function V(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var $=0;$<D.length;$++){var te=D[$];if(typeof te!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(te)+" at index "+$+"."),a}function oe(F,X,ce,ae,re){for(var ue=[],de=0;de<D.length;de++){var $e=D[de],W=$e(F,X,ce,ae,re,t);if(W==null)return null;W.data&&r(W.data,"expectedType")&&ue.push(W.data.expectedType)}var Qe=ue.length>0?", expected one of type ["+ue.join(", ")+"]":"";return new p("Invalid "+ae+" `"+re+"` supplied to "+("`"+ce+"`"+Qe+"."))}return y(oe)}function j(){function D($,te,oe,F,X){return A($[te])?null:new p("Invalid "+F+" `"+X+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return y(D)}function z(D,$,te,oe,F){return new p((D||"React class")+": "+$+" type `"+te+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function h(D){function $(te,oe,F,X,ce){var ae=te[oe],re=B(ae);if(re!=="object")return new p("Invalid "+X+" `"+ce+"` of type `"+re+"` "+("supplied to `"+F+"`, expected `object`."));for(var ue in D){var de=D[ue];if(typeof de!="function")return z(F,X,ce,ue,Q(de));var $e=de(ae,ue,F,X,ce+"."+ue,t);if($e)return $e}return null}return y($)}function P(D){function $(te,oe,F,X,ce){var ae=te[oe],re=B(ae);if(re!=="object")return new p("Invalid "+X+" `"+ce+"` of type `"+re+"` "+("supplied to `"+F+"`, expected `object`."));var ue=n({},te[oe],D);for(var de in ue){var $e=D[de];if(r(D,de)&&typeof $e!="function")return z(F,X,ce,de,Q($e));if(!$e)return new p("Invalid "+X+" `"+ce+"` key `"+de+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(te[oe],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys(D),null," "));var W=$e(ae,de,F,X,ce+"."+de,t);if(W)return W}return null}return y($)}function A(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(A);if(D===null||s(D))return!0;var $=d(D);if($){var te=$.call(D),oe;if($!==D.entries){for(;!(oe=te.next()).done;)if(!A(oe.value))return!1}else for(;!(oe=te.next()).done;){var F=oe.value;if(F&&!A(F[1]))return!1}}else return!1;return!0;default:return!1}}function Y(D,$){return D==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function B(D){var $=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":Y($,D)?"symbol":$}function Q(D){if(typeof D>"u"||D===null)return""+D;var $=B(D);if($==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return $}function ee(D){var $=Q(D);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function he(D){return!D.constructor||!D.constructor.name?f:D.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},hi}var mi,os;function Bd(){if(os)return mi;os=1;var e=di();function n(){}function t(){}return t.resetWarningCache=n,mi=function(){function r(a,s,c,l,u,d){if(d!==e){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 o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:n};return i.PropTypes=i,i},mi}var is;function Yd(){if(is)return Rn.exports;if(is=1,process.env.NODE_ENV!=="production"){var e=Qa(),n=!0;Rn.exports=zd()(e.isElement,n)}else Rn.exports=Bd()();return Rn.exports}var Fd=Yd();const ve=Ad(Fd);function as(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(t=as(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ze(){for(var e,n,t=0,r="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=as(e))&&(r&&(r+=" "),r+=n);return r}function Vd(e,n,t=void 0){const r={};for(const o in e){const i=e[o];let a="",s=!0;for(let c=0;c<i.length;c+=1){const l=i[c];l&&(a+=(s===!0?"":" ")+n(l),s=!1,t&&t[l]&&(a+=" "+t[l]))}r[o]=a}return r}var Ln={exports:{}},Ee={};/**
|
|
42
|
+
* @license React
|
|
43
|
+
* react-is.production.js
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the MIT license found in the
|
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/var ss;function Ud(){if(ss)return Ee;ss=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case t:case o:case r:case c:case l:case f:return p;default:switch(p=p&&p.$$typeof,p){case a:case s:case d:case u:return p;case i:return p;default:return y}}case n:return y}}}return Ee.ContextConsumer=i,Ee.ContextProvider=a,Ee.Element=e,Ee.ForwardRef=s,Ee.Fragment=t,Ee.Lazy=d,Ee.Memo=u,Ee.Portal=n,Ee.Profiler=o,Ee.StrictMode=r,Ee.Suspense=c,Ee.SuspenseList=l,Ee.isContextConsumer=function(p){return g(p)===i},Ee.isContextProvider=function(p){return g(p)===a},Ee.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Ee.isForwardRef=function(p){return g(p)===s},Ee.isFragment=function(p){return g(p)===t},Ee.isLazy=function(p){return g(p)===d},Ee.isMemo=function(p){return g(p)===u},Ee.isPortal=function(p){return g(p)===n},Ee.isProfiler=function(p){return g(p)===o},Ee.isStrictMode=function(p){return g(p)===r},Ee.isSuspense=function(p){return g(p)===c},Ee.isSuspenseList=function(p){return g(p)===l},Ee.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===t||p===o||p===r||p===c||p===l||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===u||p.$$typeof===a||p.$$typeof===i||p.$$typeof===s||p.$$typeof===m||p.getModuleId!==void 0)},Ee.typeOf=g,Ee}var Te={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* react-is.development.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var cs;function Hd(){return cs||(cs=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case n:switch(p=p.type,p){case r:case i:case o:case l:case u:case m:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case f:case d:return p;case a:return p;default:return y}}case t:return y}}}var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Te.ContextConsumer=a,Te.ContextProvider=s,Te.Element=n,Te.ForwardRef=c,Te.Fragment=r,Te.Lazy=f,Te.Memo=d,Te.Portal=t,Te.Profiler=i,Te.StrictMode=o,Te.Suspense=l,Te.SuspenseList=u,Te.isContextConsumer=function(p){return e(p)===a},Te.isContextProvider=function(p){return e(p)===s},Te.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===n},Te.isForwardRef=function(p){return e(p)===c},Te.isFragment=function(p){return e(p)===r},Te.isLazy=function(p){return e(p)===f},Te.isMemo=function(p){return e(p)===d},Te.isPortal=function(p){return e(p)===t},Te.isProfiler=function(p){return e(p)===i},Te.isStrictMode=function(p){return e(p)===o},Te.isSuspense=function(p){return e(p)===l},Te.isSuspenseList=function(p){return e(p)===u},Te.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===o||p===l||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===s||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},Te.typeOf=e}()),Te}var ls;function Wd(){return ls||(ls=1,process.env.NODE_ENV==="production"?Ln.exports=Ud():Ln.exports=Hd()),Ln.exports}var jn=Wd();function Bt(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function us(e){if(ne.isValidElement(e)||jn.isValidElementType(e)||!Bt(e))return e;const n={};return Object.keys(e).forEach(t=>{n[t]=us(e[t])}),n}function ct(e,n,t={clone:!0}){const r=t.clone?{...e}:e;return Bt(e)&&Bt(n)&&Object.keys(n).forEach(o=>{ne.isValidElement(n[o])||jn.isValidElementType(n[o])?r[o]=n[o]:Bt(n[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Bt(e[o])?r[o]=ct(e[o],n[o],t):t.clone?r[o]=Bt(n[o])?us(n[o]):n[o]:r[o]=n[o]}),r}function Kr(e,n){return n?ct(e,n,{clone:!1}):e}const Kt=process.env.NODE_ENV!=="production"?ve.oneOfType([ve.number,ve.string,ve.object,ve.array]):{};function ds(e,n){if(!e.containerQueries)return n;const t=Object.keys(n).filter(r=>r.startsWith("@container")).sort((r,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(r.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return t.length?t.reduce((r,o)=>{const i=n[o];return delete r[o],r[o]=i,r},{...n}):n}function Zd(e,n){return n==="@"||n.startsWith("@")&&(e.some(t=>n.startsWith(`@${t}`))||!!n.match(/^@\d/))}function qd(e,n){const t=n.match(/^@([^/]+)?\/?(.+)?$/);if(!t){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${n})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
58
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:qt(18,`(${n})`));return null}const[,r,o]=t,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function Kd(e){const n=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function t(i,a){i.up=(...s)=>n(e.breakpoints.up(...s),a),i.down=(...s)=>n(e.breakpoints.down(...s),a),i.between=(...s)=>n(e.breakpoints.between(...s),a),i.only=(...s)=>n(e.breakpoints.only(...s),a),i.not=(...s)=>{const c=n(e.breakpoints.not(...s),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=i=>(t(r,i),r);return t(o),{...e,containerQueries:o}}const zn={xs:0,sm:600,md:900,lg:1200,xl:1536},fs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zn[e]}px)`},Gd={containerQueries:e=>({up:n=>{let t=typeof n=="number"?n:zn[n]||n;return typeof t=="number"&&(t=`${t}px`),e?`@container ${e} (min-width:${t})`:`@container (min-width:${t})`}})};function Yt(e,n,t){const r=e.theme||{};if(Array.isArray(n)){const i=r.breakpoints||fs;return n.reduce((a,s,c)=>(a[i.up(i.keys[c])]=t(n[c]),a),{})}if(typeof n=="object"){const i=r.breakpoints||fs;return Object.keys(n).reduce((a,s)=>{if(Zd(i.keys,s)){const c=qd(r.containerQueries?r:Gd,s);c&&(a[c]=t(n[s],s))}else if(Object.keys(i.values||zn).includes(s)){const c=i.up(s);a[c]=t(n[s],s)}else{const c=s;a[c]=n[c]}return a},{})}return t(n)}function Qd(e={}){return e.keys?.reduce((t,r)=>{const o=e.up(r);return t[o]={},t},{})||{}}function ps(e,n){return e.reduce((t,r)=>{const o=t[r];return(!o||Object.keys(o).length===0)&&delete t[r],t},n)}function Bn(e,n,t=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&t){const r=`vars.${n}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return n.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Yn(e,n,t,r=t){let o;return typeof e=="function"?o=e(t):Array.isArray(e)?o=e[t]||r:o=Bn(e,t)||r,n&&(o=n(o,r,e)),o}function Be(e){const{prop:n,cssProperty:t=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[n]==null)return null;const s=a[n],c=a.theme,l=Bn(c,r)||{};return Yt(a,s,d=>{let f=Yn(l,o,d);return d===f&&typeof d=="string"&&(f=Yn(l,o,`${n}${d==="default"?"":ar(d)}`,d)),t===!1?f:{[t]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[n]:Kt}:{},i.filterProps=[n],i}function Jd(e){const n={};return t=>(n[t]===void 0&&(n[t]=e(t)),n[t])}const Xd={m:"margin",p:"padding"},ef={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},tf=Jd(e=>{if(e.length>2)if(hs[e])e=hs[e];else return[e];const[n,t]=e.split(""),r=Xd[n],o=ef[t]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Fn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rf=[...Fn,...Vn];function Gr(e,n,t,r){const o=Bn(e,n,!0)??t;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
59
|
+
`)):console.error([`MUI: The \`theme.${n}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${n}\` as a number.`].join(`
|
|
60
|
+
`)));const s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${n}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
61
|
+
`)),()=>{})}function gi(e){return Gr(e,"spacing",8,"spacing")}function Qr(e,n){return typeof n=="string"||n==null?n:e(n)}function nf(e,n){return t=>e.reduce((r,o)=>(r[o]=Qr(n,t),r),{})}function of(e,n,t,r){if(!n.includes(t))return null;const o=tf(t),i=nf(o,r),a=e[t];return Yt(e,a,i)}function ms(e,n){const t=gi(e.theme);return Object.keys(e).map(r=>of(e,n,r,t)).reduce(Kr,{})}function Le(e){return ms(e,Fn)}Le.propTypes=process.env.NODE_ENV!=="production"?Fn.reduce((e,n)=>(e[n]=Kt,e),{}):{},Le.filterProps=Fn;function je(e){return ms(e,Vn)}je.propTypes=process.env.NODE_ENV!=="production"?Vn.reduce((e,n)=>(e[n]=Kt,e),{}):{},je.filterProps=Vn,process.env.NODE_ENV!=="production"&&rf.reduce((e,n)=>(e[n]=Kt,e),{});function Un(...e){const n=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),t=r=>Object.keys(r).reduce((o,i)=>n[i]?Kr(o,n[i](r)):o,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},t.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),t}function ht(e){return typeof e!="number"?e:`${e}px solid`}function mt(e,n){return Be({prop:e,themeKey:"borders",transform:n})}const af=mt("border",ht),sf=mt("borderTop",ht),cf=mt("borderRight",ht),lf=mt("borderBottom",ht),uf=mt("borderLeft",ht),df=mt("borderColor"),ff=mt("borderTopColor"),pf=mt("borderRightColor"),hf=mt("borderBottomColor"),mf=mt("borderLeftColor"),gf=mt("outline",ht),vf=mt("outlineColor"),Hn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=Gr(e.theme,"shape.borderRadius",4,"borderRadius"),t=r=>({borderRadius:Qr(n,r)});return Yt(e,e.borderRadius,t)}return null};Hn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Kt}:{},Hn.filterProps=["borderRadius"],Un(af,sf,cf,lf,uf,df,ff,pf,hf,mf,Hn,gf,vf);const Wn=e=>{if(e.gap!==void 0&&e.gap!==null){const n=Gr(e.theme,"spacing",8,"gap"),t=r=>({gap:Qr(n,r)});return Yt(e,e.gap,t)}return null};Wn.propTypes=process.env.NODE_ENV!=="production"?{gap:Kt}:{},Wn.filterProps=["gap"];const Zn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=Gr(e.theme,"spacing",8,"columnGap"),t=r=>({columnGap:Qr(n,r)});return Yt(e,e.columnGap,t)}return null};Zn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Kt}:{},Zn.filterProps=["columnGap"];const qn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=Gr(e.theme,"spacing",8,"rowGap"),t=r=>({rowGap:Qr(n,r)});return Yt(e,e.rowGap,t)}return null};qn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Kt}:{},qn.filterProps=["rowGap"];const yf=Be({prop:"gridColumn"}),bf=Be({prop:"gridRow"}),_f=Be({prop:"gridAutoFlow"}),wf=Be({prop:"gridAutoColumns"}),Sf=Be({prop:"gridAutoRows"}),xf=Be({prop:"gridTemplateColumns"}),kf=Be({prop:"gridTemplateRows"}),Df=Be({prop:"gridTemplateAreas"}),Cf=Be({prop:"gridArea"});Un(Wn,Zn,qn,yf,bf,_f,wf,Sf,xf,kf,Df,Cf);function xr(e,n){return n==="grey"?n:e}const Ef=Be({prop:"color",themeKey:"palette",transform:xr}),Tf=Be({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xr}),Of=Be({prop:"backgroundColor",themeKey:"palette",transform:xr});Un(Ef,Tf,Of);function lt(e){return e<=1&&e!==0?`${e*100}%`:e}const Af=Be({prop:"width",transform:lt}),vi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=t=>{const r=e.theme?.breakpoints?.values?.[t]||zn[t];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:lt(t)}};return Yt(e,e.maxWidth,n)}return null};vi.filterProps=["maxWidth"];const Mf=Be({prop:"minWidth",transform:lt}),Pf=Be({prop:"height",transform:lt}),If=Be({prop:"maxHeight",transform:lt}),Nf=Be({prop:"minHeight",transform:lt});Be({prop:"size",cssProperty:"width",transform:lt}),Be({prop:"size",cssProperty:"height",transform:lt});const Rf=Be({prop:"boxSizing"});Un(Af,vi,Mf,Pf,If,Nf,Rf);const Kn={border:{themeKey:"borders",transform:ht},borderTop:{themeKey:"borders",transform:ht},borderRight:{themeKey:"borders",transform:ht},borderBottom:{themeKey:"borders",transform:ht},borderLeft:{themeKey:"borders",transform:ht},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ht},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hn},color:{themeKey:"palette",transform:xr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xr},backgroundColor:{themeKey:"palette",transform:xr},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},m:{style:Le},mt:{style:Le},mr:{style:Le},mb:{style:Le},ml:{style:Le},mx:{style:Le},my:{style:Le},margin:{style:Le},marginTop:{style:Le},marginRight:{style:Le},marginBottom:{style:Le},marginLeft:{style:Le},marginX:{style:Le},marginY:{style:Le},marginInline:{style:Le},marginInlineStart:{style:Le},marginInlineEnd:{style:Le},marginBlock:{style:Le},marginBlockStart:{style:Le},marginBlockEnd:{style:Le},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wn},rowGap:{style:qn},columnGap:{style:Zn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:lt},maxWidth:{style:vi},minWidth:{transform:lt},height:{transform:lt},maxHeight:{transform:lt},minHeight:{transform:lt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $f(...e){const n=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),t=new Set(n);return e.every(r=>t.size===Object.keys(r).length)}function Lf(e,n){return typeof e=="function"?e(n):e}function jf(){function e(t,r,o,i){const a={[t]:r,theme:o},s=i[t];if(!s)return{[t]:r};const{cssProperty:c=t,themeKey:l,transform:u,style:d}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[t]:r};const f=Bn(o,l)||{};return d?d(a):Yt(a,r,g=>{let p=Yn(f,u,g);return g===p&&typeof g=="string"&&(p=Yn(f,u,`${t}${g==="default"?"":ar(g)}`,g)),c===!1?p:{[c]:p}})}function n(t){const{sx:r,theme:o={},nested:i}=t||{};if(!r)return null;const a=o.unstable_sxConfig??Kn;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=Qd(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(m=>{const g=Lf(l[m],o);if(g!=null)if(typeof g=="object")if(a[m])f=Kr(f,e(m,g,o,a));else{const p=Yt({theme:o},g,y=>({[m]:y}));$f(p,g)?f[m]=n({sx:g,theme:o,nested:!0}):f=Kr(f,p)}else f=Kr(f,e(m,g,o,a))}),!i&&o.modularCssLayers?{"@layer sx":ds(o,ps(d,f))}:ds(o,ps(d,f))}return Array.isArray(r)?r.map(s):s(r)}return n}const kr=jf();kr.filterProps=["sx"];function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},yi.apply(null,arguments)}function zf(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}function Bf(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),e.nonce!==void 0&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var Yf=function(){function e(t){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(r){r.forEach(this._insertTag)},n.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Bf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=zf(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},n.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Je="-ms-",Gn="-moz-",ye="-webkit-",gs="comm",bi="rule",_i="decl",Ff="@import",vs="@keyframes",Vf="@layer",Uf=Math.abs,Qn=String.fromCharCode,Hf=Object.assign;function Wf(e,n){return Ge(e,0)^45?(((n<<2^Ge(e,0))<<2^Ge(e,1))<<2^Ge(e,2))<<2^Ge(e,3):0}function ys(e){return e.trim()}function Zf(e,n){return(e=n.exec(e))?e[0]:e}function be(e,n,t){return e.replace(n,t)}function wi(e,n){return e.indexOf(n)}function Ge(e,n){return e.charCodeAt(n)|0}function Jr(e,n,t){return e.slice(n,t)}function Ot(e){return e.length}function Si(e){return e.length}function Jn(e,n){return n.push(e),e}function qf(e,n){return e.map(n).join("")}var Xn=1,Dr=1,bs=0,nt=0,He=0,Cr="";function eo(e,n,t,r,o,i,a){return{value:e,root:n,parent:t,type:r,props:o,children:i,line:Xn,column:Dr,length:a,return:""}}function Xr(e,n){return Hf(eo("",null,null,"",null,null,0),e,{length:-e.length},n)}function Kf(){return He}function Gf(){return He=nt>0?Ge(Cr,--nt):0,Dr--,He===10&&(Dr=1,Xn--),He}function ut(){return He=nt<bs?Ge(Cr,nt++):0,Dr++,He===10&&(Dr=1,Xn++),He}function At(){return Ge(Cr,nt)}function to(){return nt}function en(e,n){return Jr(Cr,e,n)}function tn(e){switch(e){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 _s(e){return Xn=Dr=1,bs=Ot(Cr=e),nt=0,[]}function ws(e){return Cr="",e}function ro(e){return ys(en(nt-1,xi(e===91?e+2:e===40?e+1:e)))}function Qf(e){for(;(He=At())&&He<33;)ut();return tn(e)>2||tn(He)>3?"":" "}function Jf(e,n){for(;--n&&ut()&&!(He<48||He>102||He>57&&He<65||He>70&&He<97););return en(e,to()+(n<6&&At()==32&&ut()==32))}function xi(e){for(;ut();)switch(He){case e:return nt;case 34:case 39:e!==34&&e!==39&&xi(He);break;case 40:e===41&&xi(e);break;case 92:ut();break}return nt}function Xf(e,n){for(;ut()&&e+He!==57;)if(e+He===84&&At()===47)break;return"/*"+en(n,nt-1)+"*"+Qn(e===47?e:ut())}function ep(e){for(;!tn(At());)ut();return en(e,nt)}function tp(e){return ws(no("",null,null,null,[""],e=_s(e),0,[0],e))}function no(e,n,t,r,o,i,a,s,c){for(var l=0,u=0,d=a,f=0,m=0,g=0,p=1,y=1,k=1,S=0,E="",C=o,x=i,O=r,N=E;y;)switch(g=S,S=ut()){case 40:if(g!=108&&Ge(N,d-1)==58){wi(N+=be(ro(S),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:N+=ro(S);break;case 9:case 10:case 13:case 32:N+=Qf(g);break;case 92:N+=Jf(to()-1,7);continue;case 47:switch(At()){case 42:case 47:Jn(rp(Xf(ut(),to()),n,t),c);break;default:N+="/"}break;case 123*p:s[l++]=Ot(N)*k;case 125*p:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+u:k==-1&&(N=be(N,/\f/g,"")),m>0&&Ot(N)-d&&Jn(m>32?xs(N+";",r,t,d-1):xs(be(N," ","")+";",r,t,d-2),c);break;case 59:N+=";";default:if(Jn(O=Ss(N,n,t,l,u,o,s,E,C=[],x=[],d),i),S===123)if(u===0)no(N,n,O,O,C,i,d,s,x);else switch(f===99&&Ge(N,3)===110?100:f){case 100:case 108:case 109:case 115:no(e,O,O,r&&Jn(Ss(e,O,O,0,0,o,s,E,o,C=[],d),x),o,x,d,s,r?C:x);break;default:no(N,O,O,O,[""],x,0,s,x)}}l=u=m=0,p=k=1,E=N="",d=a;break;case 58:d=1+Ot(N),m=g;default:if(p<1){if(S==123)--p;else if(S==125&&p++==0&&Gf()==125)continue}switch(N+=Qn(S),S*p){case 38:k=u>0?1:(N+="\f",-1);break;case 44:s[l++]=(Ot(N)-1)*k,k=1;break;case 64:At()===45&&(N+=ro(ut())),f=At(),u=d=Ot(E=N+=ep(to())),S++;break;case 45:g===45&&Ot(N)==2&&(p=0)}}return i}function Ss(e,n,t,r,o,i,a,s,c,l,u){for(var d=o-1,f=o===0?i:[""],m=Si(f),g=0,p=0,y=0;g<r;++g)for(var k=0,S=Jr(e,d+1,d=Uf(p=a[g])),E=e;k<m;++k)(E=ys(p>0?f[k]+" "+S:be(S,/&\f/g,f[k])))&&(c[y++]=E);return eo(e,n,t,o===0?bi:s,c,l,u)}function rp(e,n,t){return eo(e,n,t,gs,Qn(Kf()),Jr(e,2,-2),0)}function xs(e,n,t,r){return eo(e,n,t,_i,Jr(e,0,r),Jr(e,r+1,-1),r)}function Er(e,n){for(var t="",r=Si(e),o=0;o<r;o++)t+=n(e[o],o,e,n)||"";return t}function np(e,n,t,r){switch(e.type){case Vf:if(e.children.length)break;case Ff:case _i:return e.return=e.return||e.value;case gs:return"";case vs:return e.return=e.value+"{"+Er(e.children,r)+"}";case bi:e.value=e.props.join(",")}return Ot(t=Er(e.children,r))?e.return=e.value+"{"+t+"}":""}function op(e){var n=Si(e);return function(t,r,o,i){for(var a="",s=0;s<n;s++)a+=e[s](t,r,o,i)||"";return a}}function ip(e){return function(n){n.root||(n=n.return)&&e(n)}}function ks(e){var n=Object.create(null);return function(t){return n[t]===void 0&&(n[t]=e(t)),n[t]}}var ap=function(n,t,r){for(var o=0,i=0;o=i,i=At(),o===38&&i===12&&(t[r]=1),!tn(i);)ut();return en(n,nt)},sp=function(n,t){var r=-1,o=44;do switch(tn(o)){case 0:o===38&&At()===12&&(t[r]=1),n[r]+=ap(nt-1,t,r);break;case 2:n[r]+=ro(o);break;case 4:if(o===44){n[++r]=At()===58?"&\f":"",t[r]=n[r].length;break}default:n[r]+=Qn(o)}while(o=ut());return n},cp=function(n,t){return ws(sp(_s(n),t))},Ds=new WeakMap,lp=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var t=n.value,r=n.parent,o=n.column===r.column&&n.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(n.props.length===1&&t.charCodeAt(0)!==58&&!Ds.get(r))&&!o){Ds.set(n,!0);for(var i=[],a=cp(t,i),s=r.props,c=0,l=0;c<a.length;c++)for(var u=0;u<s.length;u++,l++)n.props[l]=i[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},up=function(n){if(n.type==="decl"){var t=n.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(n.return="",n.value="")}};function Cs(e,n){switch(Wf(e,n)){case 5103:return ye+"print-"+e+e;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 ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ye+e+Gn+e+Je+e+e;case 6828:case 4268:return ye+e+Je+e+e;case 6165:return ye+e+Je+"flex-"+e+e;case 5187:return ye+e+be(e,/(\w+).+(:[^]+)/,ye+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return ye+e+Je+"flex-item-"+be(e,/flex-|-self/,"")+e;case 4675:return ye+e+Je+"flex-line-pack"+be(e,/align-content|flex-|-self/,"")+e;case 5548:return ye+e+Je+be(e,"shrink","negative")+e;case 5292:return ye+e+Je+be(e,"basis","preferred-size")+e;case 6060:return ye+"box-"+be(e,"-grow","")+ye+e+Je+be(e,"grow","positive")+e;case 4554:return ye+be(e,/([^-])(transform)/g,"$1"+ye+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,ye+"$1"),/(image-set)/,ye+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,ye+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,ye+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ye+e+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,ye+"$1$2")+e;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(Ot(e)-1-n>6)switch(Ge(e,n+1)){case 109:if(Ge(e,n+4)!==45)break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+ye+"$2-$3$1"+Gn+(Ge(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~wi(e,"stretch")?Cs(be(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Ge(e,n+1)!==115)break;case 6444:switch(Ge(e,Ot(e)-3-(~wi(e,"!important")&&10))){case 107:return be(e,":",":"+ye)+e;case 101:return be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ye+(Ge(e,14)===45?"inline-":"")+"box$3$1"+ye+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ge(e,n+11)){case 114:return ye+e+Je+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ye+e+Je+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ye+e+Je+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ye+e+Je+e+e}return e}var dp=function(n,t,r,o){if(n.length>-1&&!n.return)switch(n.type){case _i:n.return=Cs(n.value,n.length);break;case vs:return Er([Xr(n,{value:be(n.value,"@","@"+ye)})],o);case bi:if(n.length)return qf(n.props,function(i){switch(Zf(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Er([Xr(n,{props:[be(i,/:(read-\w+)/,":"+Gn+"$1")]})],o);case"::placeholder":return Er([Xr(n,{props:[be(i,/:(plac\w+)/,":"+ye+"input-$1")]}),Xr(n,{props:[be(i,/:(plac\w+)/,":"+Gn+"$1")]}),Xr(n,{props:[be(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},fp=[dp],pp=function(n){var t=n.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=n.stylisPlugins||fp,i={},a,s=[];a=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),k=1;k<y.length;k++)i[y[k]]=!0;s.push(p)});var c,l=[lp,up];{var u,d=[np,ip(function(p){u.insert(p)})],f=op(l.concat(o,d)),m=function(y){return Er(tp(y),f)};c=function(y,k,S,E){u=S,m(y?y+"{"+k.styles+"}":k.styles),E&&(g.inserted[k.name]=!0)}}var g={key:t,sheet:new Yf({key:t,container:a,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(s),g},hp=!0;function mp(e,n,t){var r="";return t.split(" ").forEach(function(o){e[o]!==void 0?n.push(e[o]+";"):o&&(r+=o+" ")}),r}var Es=function(n,t,r){var o=n.key+"-"+t.name;(r===!1||hp===!1)&&n.registered[o]===void 0&&(n.registered[o]=t.styles)},gp=function(n,t,r){Es(n,t,r);var o=n.key+"-"+t.name;if(n.inserted[t.name]===void 0){var i=t;do n.insert(t===i?"."+o:"",i,n.sheet,!0),i=i.next;while(i!==void 0)}};function vp(e){for(var n=0,t,r=0,o=e.length;o>=4;++r,o-=4)t=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(t&65535)*1540483477+((t>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(e.charCodeAt(r+2)&255)<<16;case 2:n^=(e.charCodeAt(r+1)&255)<<8;case 1:n^=e.charCodeAt(r)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var yp={animationIterationCount:1,aspectRatio: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,scale: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},bp=/[A-Z]|^ms/g,_p=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ts=function(n){return n.charCodeAt(1)===45},Os=function(n){return n!=null&&typeof n!="boolean"},ki=ks(function(e){return Ts(e)?e:e.replace(bp,"-$&").toLowerCase()}),As=function(n,t){switch(n){case"animation":case"animationName":if(typeof t=="string")return t.replace(_p,function(r,o,i){return Mt={name:o,styles:i,next:Mt},o})}return yp[n]!==1&&!Ts(n)&&typeof t=="number"&&t!==0?t+"px":t};function rn(e,n,t){if(t==null)return"";var r=t;if(r.__emotion_styles!==void 0)return r;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return Mt={name:o.name,styles:o.styles,next:Mt},o.name;var i=t;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Mt={name:a.name,styles:a.styles,next:Mt},a=a.next;var s=i.styles+";";return s}return wp(e,n,t)}case"function":{if(e!==void 0){var c=Mt,l=t(e);return Mt=c,rn(e,n,l)}break}}var u=t;if(n==null)return u;var d=n[u];return d!==void 0?d:u}function wp(e,n,t){var r="";if(Array.isArray(t))for(var o=0;o<t.length;o++)r+=rn(e,n,t[o])+";";else for(var i in t){var a=t[i];if(typeof a!="object"){var s=a;n!=null&&n[s]!==void 0?r+=i+"{"+n[s]+"}":Os(s)&&(r+=ki(i)+":"+As(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(n==null||n[a[0]]===void 0))for(var c=0;c<a.length;c++)Os(a[c])&&(r+=ki(i)+":"+As(i,a[c])+";");else{var l=rn(e,n,a);switch(i){case"animation":case"animationName":{r+=ki(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var Ms=/label:\s*([^\s;{]+)\s*(;|$)/g,Mt;function Ps(e,n,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Mt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=rn(t,n,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=rn(t,n,e[s]),r){var c=i;o+=c[s]}Ms.lastIndex=0;for(var l="",u;(u=Ms.exec(o))!==null;)l+="-"+u[1];var d=vp(o)+l;return{name:d,styles:o,next:Mt}}var Sp=function(n){return n()},xp=ne.useInsertionEffect?ne.useInsertionEffect:!1,kp=xp||Sp,Is=ne.createContext(typeof HTMLElement<"u"?pp({key:"css"}):null);Is.Provider;var Dp=function(n){return b.forwardRef(function(t,r){var o=b.useContext(Is);return n(t,o,r)})},Cp=ne.createContext({}),Ep=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,Tp=ks(function(e){return Ep.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Op=Tp,Ap=function(n){return n!=="theme"},Ns=function(n){return typeof n=="string"&&n.charCodeAt(0)>96?Op:Ap},Rs=function(n,t,r){var o;if(t){var i=t.shouldForwardProp;o=n.__emotion_forwardProp&&i?function(a){return n.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=n.__emotion_forwardProp),o},Mp=function(n){var t=n.cache,r=n.serialized,o=n.isStringTag;return Es(t,r,o),kp(function(){return gp(t,r,o)}),null},Pp=function e(n,t){var r=n.__emotion_real===n,o=r&&n.__emotion_base||n,i,a;t!==void 0&&(i=t.label,a=t.target);var s=Rs(n,t,r),c=s||Ns(o),l=!c("as");return function(){var u=arguments,d=r&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var m=u.length,g=1;g<m;g++)d.push(u[g],f[g])}var p=Dp(function(y,k,S){var E=l&&y.as||o,C="",x=[],O=y;if(y.theme==null){O={};for(var N in y)O[N]=y[N];O.theme=ne.useContext(Cp)}typeof y.className=="string"?C=mp(k.registered,x,y.className):y.className!=null&&(C=y.className+" ");var q=Ps(d.concat(x),k.registered,O);C+=k.key+"-"+q.name,a!==void 0&&(C+=" "+a);var V=l&&s===void 0?Ns(E):c,j={};for(var z in y)l&&z==="as"||V(z)&&(j[z]=y[z]);return j.className=C,S&&(j.ref=S),ne.createElement(ne.Fragment,null,ne.createElement(Mp,{cache:k,serialized:q,isStringTag:typeof E=="string"}),ne.createElement(E,j))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=n.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(y,k){var S=e(y,yi({},t,k,{shouldForwardProp:Rs(p,k,!0)}));return S.apply(void 0,d)},p}},Ip=["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"],Di=Pp.bind(null);Ip.forEach(function(e){Di[e]=Di(e)});/**
|
|
62
|
+
* @mui/styled-engine v7.3.1
|
|
63
|
+
*
|
|
64
|
+
* @license MIT
|
|
65
|
+
* This source code is licensed under the MIT license found in the
|
|
66
|
+
* LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/function Np(e,n){const t=Di(e,n);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
68
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...r)}:t}function Rp(e,n){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=n(e.__emotion_styles))}const $s=[];function sr(e){return $s[0]=e,Ps($s)}const $p=e=>{const n=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return n.sort((t,r)=>t.val-r.val),n.reduce((t,r)=>({...t,[r.key]:r.val}),{})};function Lp(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:r=5,...o}=e,i=$p(n),a=Object.keys(i);function s(f){return`@media (min-width:${typeof n[f]=="number"?n[f]:f}${t})`}function c(f){return`@media (max-width:${(typeof n[f]=="number"?n[f]:f)-r/100}${t})`}function l(f,m){const g=a.indexOf(m);return`@media (min-width:${typeof n[f]=="number"?n[f]:f}${t}) and (max-width:${(g!==-1&&typeof n[a[g]]=="number"?n[a[g]]:m)-r/100}${t})`}function u(f){return a.indexOf(f)+1<a.length?l(f,a[a.indexOf(f)+1]):s(f)}function d(f){const m=a.indexOf(f);return m===0?s(a[1]):m===a.length-1?c(a[m]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:c,between:l,only:u,not:d,unit:t,...o}}const jp={borderRadius:4};function Ls(e=8,n=gi({spacing:e})){if(e.mui)return e;const t=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=n(i);return typeof a=="number"?`${a}px`:a}).join(" "));return t.mui=!0,t}function zp(e,n){const t=this;if(t.vars){if(!t.colorSchemes?.[e]||typeof t.getColorSchemeSelector!="function")return{};let r=t.getColorSchemeSelector(e);return r==="&"?n:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:n})}return t.palette.mode===e?n:{}}function js(e={},...n){const{breakpoints:t={},palette:r={},spacing:o,shape:i={},...a}=e,s=Lp(t),c=Ls(o);let l=ct({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...jp,...i}},a);return l=Kd(l),l.applyStyles=zp,l=n.reduce((u,d)=>ct(u,d),l),l.unstable_sxConfig={...Kn,...a?.unstable_sxConfig},l.unstable_sx=function(d){return kr({sx:d,theme:this})},l}const Bp={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ci(e,n,t="Mui"){const r=Bp[n];return r?`${t}-${r}`:`${Nd.generate(e)}-${n}`}function Yp(e,n,t="Mui"){const r={};return n.forEach(o=>{r[o]=Ci(e,o,t)}),r}function zs(e,n=""){return e.displayName||e.name||n}function Bs(e,n,t){const r=zs(n);return e.displayName||(r!==""?`${t}(${r})`:t)}function Fp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return zs(e,"Component");if(typeof e=="object")switch(e.$$typeof){case jn.ForwardRef:return Bs(e,e.render,"ForwardRef");case jn.Memo:return Bs(e,e.type,"memo");default:return}}}function Ys(e){const{variants:n,...t}=e,r={variants:n,style:sr(t),isProcessed:!0};return r.style===t||n&&n.forEach(o=>{typeof o.style!="function"&&(o.style=sr(o.style))}),r}const Vp=js();function Ei(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function cr(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Up(e){return e?(n,t)=>t[e]:null}function Hp(e,n,t){e.theme=Kp(e.theme)?t:e.theme[n]||e.theme}function oo(e,n,t){const r=typeof n=="function"?n(e):n;if(Array.isArray(r))return r.flatMap(o=>oo(e,o,t));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=t?cr(r.style,t):r.style;else{const{variants:i,...a}=r;o=t?cr(sr(a),t):a}return Fs(e,r.variants,[o],t)}return r?.isProcessed?t?cr(sr(r.style),t):r.style:t?cr(sr(r),t):r}function Fs(e,n,t=[],r=void 0){let o;e:for(let i=0;i<n.length;i+=1){const a=n[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},t.push(r?cr(sr(a.style(o)),r):a.style(o))):t.push(r?cr(sr(a.style),r):a.style)}return t}function Wp(e={}){const{themeId:n,defaultTheme:t=Vp,rootShouldForwardProp:r=Ei,slotShouldForwardProp:o=Ei}=e;function i(s){Hp(s,n,t)}return(s,c={})=>{Rp(s,O=>O.filter(N=>N!==kr));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:m=Up(Vs(u)),...g}=c,p=l&&l.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,k=f||!1;let S=Ei;u==="Root"||u==="root"?S=r:u?S=o:Gp(s)&&(S=void 0);const E=Np(s,{shouldForwardProp:S,label:qp(l,u),...g}),C=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(q){return oo(q,O,q.theme.modularCssLayers?p:void 0)};if(Bt(O)){const N=Ys(O);return function(V){return N.variants?oo(V,N,V.theme.modularCssLayers?p:void 0):V.theme.modularCssLayers?cr(N.style,p):N.style}}return O},x=(...O)=>{const N=[],q=O.map(C),V=[];if(N.push(i),l&&m&&V.push(function(P){const Y=P.theme.components?.[l]?.styleOverrides;if(!Y)return null;const B={};for(const Q in Y)B[Q]=oo(P,Y[Q],P.theme.modularCssLayers?"theme":void 0);return m(P,B)}),l&&!y&&V.push(function(P){const Y=P.theme?.components?.[l]?.variants;return Y?Fs(P,Y,[],P.theme.modularCssLayers?"theme":void 0):null}),k||V.push(kr),Array.isArray(q[0])){const h=q.shift(),P=new Array(N.length).fill(""),A=new Array(V.length).fill("");let Y;Y=[...P,...h,...A],Y.raw=[...P,...h.raw,...A],N.unshift(Y)}const j=[...N,...q,...V],z=E(...j);return s.muiName&&(z.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(z.displayName=Zp(l,u,s)),z};return E.withConfig&&(x.withConfig=E.withConfig),x}}function Zp(e,n,t){return e?`${e}${ar(n||"")}`:`Styled(${Fp(t)})`}function qp(e,n){let t;return process.env.NODE_ENV!=="production"&&e&&(t=`${e}-${Vs(n||"Root")}`),t}function Kp(e){for(const n in e)return!1;return!0}function Gp(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Vs(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ti(e,n,t=!1){const r={...n};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],s=n[i];if(!s)r[i]=a||{};else if(!a)r[i]=s;else{r[i]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const l=c;r[i][l]=Ti(a[l],s[l],t)}}}else i==="className"&&t&&n.className?r.className=Ze(e?.className,n?.className):i==="style"&&t&&n.style?r.style={...e?.style,...n?.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Qp(e,n=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,t))}function Oi(e,n=0,t=1){return process.env.NODE_ENV!=="production"&&(e<n||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${n}, ${t}].`),Qp(e,n,t)}function Jp(e){e=e.slice(1);const n=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(n);return t&&t[0].length===1&&(t=t.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),t?`rgb${t.length===4?"a":""}(${t.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gt(e){if(e.type)return e;if(e.charAt(0)==="#")return Gt(Jp(e));const n=e.indexOf("("),t=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(t))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
69
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:qt(9,e));let r=e.substring(n+1,e.length-1),o;if(t==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
70
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:qt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:t,values:r,colorSpace:o}}const Xp=e=>{const n=Gt(e);return n.values.slice(0,3).map((t,r)=>n.type.includes("hsl")&&r!==0?`${t}%`:t).join(" ")},nn=(e,n)=>{try{return Xp(e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}};function io(e){const{type:n,colorSpace:t}=e;let{values:r}=e;return n.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):n.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),n.includes("color")?r=`${t} ${r.join(" ")}`:r=`${r.join(", ")}`,`${n}(${r})`}function Us(e){e=Gt(e);const{values:n}=e,t=n[0],r=n[1]/100,o=n[2]/100,i=r*Math.min(o,1-o),a=(l,u=(l+t/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(n[3])),io({type:s,values:c})}function Ai(e){e=Gt(e);let n=e.type==="hsl"||e.type==="hsla"?Gt(Us(e)).values:e.values;return n=n.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function Hs(e,n){const t=Ai(e),r=Ai(n);return(Math.max(t,r)+.05)/(Math.min(t,r)+.05)}function Ws(e,n){return e=Gt(e),n=Oi(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,io(e)}function lr(e,n,t){try{return Ws(e,n)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function ao(e,n){if(e=Gt(e),n=Oi(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]*=1-n;return io(e)}function xe(e,n,t){try{return ao(e,n)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function so(e,n){if(e=Gt(e),n=Oi(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*n;else if(e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*n;return io(e)}function ke(e,n,t){try{return so(e,n)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function eh(e,n=.15){return Ai(e)>.5?ao(e,n):so(e,n)}function co(e,n,t){try{return eh(e,n)}catch{return e}}const th=ne.createContext(void 0);process.env.NODE_ENV!=="production"&&(ve.node,ve.object);function rh(e){const{theme:n,name:t,props:r}=e;if(!n||!n.components||!n.components[t])return r;const o=n.components[t];return o.defaultProps?Ti(o.defaultProps,r,n.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ti(o,r,n.components.mergeClassNameAndStyle):r}function nh({props:e,name:n}){const t=ne.useContext(th);return rh({props:e,name:n,theme:{components:t}})}const Zs={theme:void 0};function oh(e){let n,t;return function(o){let i=n;return(i===void 0||o.theme!==t)&&(Zs.theme=o.theme,i=Ys(e(Zs)),n=i,t=o.theme),i}}function ih(e=""){function n(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${n(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${n(...o)})`}const qs=(e,n,t,r=[])=>{let o=e;n.forEach((i,a)=>{a===n.length-1?Array.isArray(o)?o[Number(i)]=t:o&&typeof o=="object"&&(o[i]=t):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},ah=(e,n,t)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([s,c])=>{(!t||t&&!t([...i,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,s],Array.isArray(c)?[...a,s]:a):n([...i,s],c,a))})}r(e)},sh=(e,n)=>typeof n=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?n:`${n}px`:n;function Mi(e,n){const{prefix:t,shouldSkipGeneratingVar:r}=n||{},o={},i={},a={};return ah(e,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(s,c))){const u=`--${t?`${t}-`:""}${s.join("-")}`,d=sh(s,c);Object.assign(o,{[u]:d}),qs(i,s,`var(${u})`,l),qs(a,s,`var(${u}, ${d})`,l)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function ch(e,n={}){const{getSelector:t=k,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=n,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=Mi(l,n);let m=f;const g={},{[c]:p,...y}=a;if(Object.entries(y||{}).forEach(([C,x])=>{const{vars:O,css:N,varsWithDefaults:q}=Mi(x,n);m=ct(m,q),g[C]={css:N,vars:O}}),p){const{css:C,vars:x,varsWithDefaults:O}=Mi(p,n);m=ct(m,O),g[c]={css:C,vars:x}}function k(C,x){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),C){if(O==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${a[C]?.palette?.mode||C})`]:{":root":x}};if(O)return e.defaultColorScheme===C?`:root, ${O.replace("%s",String(C))}`:O.replace("%s",String(C))}return":root"}return{vars:m,generateThemeVars:()=>{let C={...u};return Object.entries(g).forEach(([,{vars:x}])=>{C=ct(C,x)}),C},generateStyleSheets:()=>{const C=[],x=e.defaultColorScheme||"light";function O(V,j){Object.keys(j).length&&C.push(typeof V=="string"?{[V]:{...j}}:V)}O(t(void 0,{...d}),d);const{[x]:N,...q}=g;if(N){const{css:V}=N,j=a[x]?.palette?.mode,z=!r&&j?{colorScheme:j,...V}:{...V};O(t(x,{...z}),z)}return Object.entries(q).forEach(([V,{css:j}])=>{const z=a[V]?.palette?.mode,h=!r&&z?{colorScheme:z,...j}:{...j};O(t(V,{...h}),h)}),i&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function lh(e){return function(t){return e==="media"?(process.env.NODE_ENV!=="production"&&t!=="light"&&t!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const on={black:"#000",white:"#fff"},uh={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Tr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Or={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},an={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ar={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Mr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Pr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ks(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:on.white,default:on.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Gs=Ks();function Qs(){return{text:{primary:on.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:on.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Pi=Qs();function Js(e,n,t,r){const o=r.light||r,i=r.dark||r*1.5;e[n]||(e.hasOwnProperty(t)?e[n]=e[t]:n==="light"?e.light=so(e.main,o):n==="dark"&&(e.dark=ao(e.main,i)))}function Xs(e,n,t,r,o){const i=o.light||o,a=o.dark||o*1.5;n[t]||(n.hasOwnProperty(r)?n[t]=n[r]:t==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(i*100).toFixed(0)}%)`:t==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(a*100).toFixed(0)}%)`))}function dh(e="light"){return e==="dark"?{main:Ar[200],light:Ar[50],dark:Ar[400]}:{main:Ar[700],light:Ar[400],dark:Ar[800]}}function fh(e="light"){return e==="dark"?{main:Tr[200],light:Tr[50],dark:Tr[400]}:{main:Tr[500],light:Tr[300],dark:Tr[700]}}function ph(e="light"){return e==="dark"?{main:Or[500],light:Or[300],dark:Or[700]}:{main:Or[700],light:Or[400],dark:Or[800]}}function hh(e="light"){return e==="dark"?{main:Mr[400],light:Mr[300],dark:Mr[700]}:{main:Mr[700],light:Mr[500],dark:Mr[900]}}function mh(e="light"){return e==="dark"?{main:Pr[400],light:Pr[300],dark:Pr[700]}:{main:Pr[800],light:Pr[500],dark:Pr[900]}}function gh(e="light"){return e==="dark"?{main:an[400],light:an[300],dark:an[700]}:{main:"#ed6c02",light:an[500],dark:an[900]}}function vh(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ii(e){const{mode:n="light",contrastThreshold:t=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||dh(n),s=e.secondary||fh(n),c=e.error||ph(n),l=e.info||hh(n),u=e.success||mh(n),d=e.warning||gh(n);function f(y){if(o)return vh(y);const k=Hs(y,Pi.text.primary)>=t?Pi.text.primary:Gs.text.primary;if(process.env.NODE_ENV!=="production"){const S=Hs(y,k);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${k} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
71
|
+
`))}return k}const m=({color:y,name:k,mainShade:S=500,lightShade:E=300,darkShade:C=700})=>{if(y={...y},!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${k?` (${k})`:""} provided to augmentColor(color) is invalid.
|
|
72
|
+
The color object needs to have a \`main\` property or a \`${S}\` property.`:qt(11,k?` (${k})`:"",S));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${k?` (${k})`:""} provided to augmentColor(color) is invalid.
|
|
73
|
+
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
74
|
+
|
|
75
|
+
Did you intend to use one of the following approaches?
|
|
76
|
+
|
|
77
|
+
import { green } from "@mui/material/colors";
|
|
78
|
+
|
|
79
|
+
const theme1 = createTheme({ palette: {
|
|
80
|
+
primary: green,
|
|
81
|
+
} });
|
|
82
|
+
|
|
83
|
+
const theme2 = createTheme({ palette: {
|
|
84
|
+
primary: { main: green[500] },
|
|
85
|
+
} });`:qt(12,k?` (${k})`:"",JSON.stringify(y.main)));return o?(Xs(o,y,"light",E,r),Xs(o,y,"dark",C,r)):(Js(y,"light",E,r),Js(y,"dark",C,r)),y.contrastText||(y.contrastText=f(y.main)),y};let g;return n==="light"?g=Ks():n==="dark"&&(g=Qs()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${n}\` is not supported.`)),ct({common:{...on},mode:n,primary:m({color:a,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:u,name:"success"}),grey:uh,contrastThreshold:t,getContrastText:f,augmentColor:m,tonalOffset:r,...g},i)}function yh(e){const n={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(n[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),n}function bh(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function _h(e){return Math.round(e*1e5)/1e5}const ec={textTransform:"uppercase"},tc='"Roboto", "Helvetica", "Arial", sans-serif';function wh(e,n){const{fontFamily:t=tc,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof n=="function"?n(e):n;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=r/14,m=u||(y=>`${y/c*f}rem`),g=(y,k,S,E,C)=>({fontFamily:t,fontWeight:y,fontSize:m(k),lineHeight:S,...t===tc?{letterSpacing:`${_h(E/k)}em`}:{},...C,...l}),p={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,ec),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,ec),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ct({htmlFontSize:c,pxToRem:m,fontFamily:t,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...p},d,{clone:!1})}const Sh=.2,xh=.14,kh=.12;function Me(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Sh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${kh})`].join(",")}const Dh=["none",Me(0,2,1,-1,0,1,1,0,0,1,3,0),Me(0,3,1,-2,0,2,2,0,0,1,5,0),Me(0,3,3,-2,0,3,4,0,0,1,8,0),Me(0,2,4,-1,0,4,5,0,0,1,10,0),Me(0,3,5,-1,0,5,8,0,0,1,14,0),Me(0,3,5,-1,0,6,10,0,0,1,18,0),Me(0,4,5,-2,0,7,10,1,0,2,16,1),Me(0,5,5,-3,0,8,10,1,0,3,14,2),Me(0,5,6,-3,0,9,12,1,0,3,16,2),Me(0,6,6,-3,0,10,14,1,0,4,18,3),Me(0,6,7,-4,0,11,15,1,0,4,20,3),Me(0,7,8,-4,0,12,17,2,0,5,22,4),Me(0,7,8,-4,0,13,19,2,0,5,24,4),Me(0,7,9,-4,0,14,21,2,0,5,26,4),Me(0,8,9,-5,0,15,22,2,0,6,28,5),Me(0,8,10,-5,0,16,24,2,0,6,30,5),Me(0,8,11,-5,0,17,26,2,0,6,32,5),Me(0,9,11,-5,0,18,28,2,0,7,34,6),Me(0,9,12,-6,0,19,29,2,0,7,36,6),Me(0,10,13,-6,0,20,31,3,0,8,38,7),Me(0,10,13,-6,0,21,33,3,0,8,40,7),Me(0,10,14,-6,0,22,35,3,0,8,42,7),Me(0,11,14,-7,0,23,36,3,0,9,44,8),Me(0,11,15,-7,0,24,38,3,0,9,46,8)],Ch={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Eh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rc(e){return`${Math.round(e)}ms`}function Th(e){if(!e)return 0;const n=e/36;return Math.min(Math.round((4+15*n**.25+n/5)*10),3e3)}function Oh(e){const n={...Ch,...e.easing},t={...Eh,...e.duration};return{getAutoHeightDuration:Th,create:(o=["all"],i={})=>{const{duration:a=t.standard,easing:s=n.easeInOut,delay:c=0,...l}=i;if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!Number.isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
86
|
+
`)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:rc(a)} ${s} ${typeof c=="string"?c:rc(c)}`).join(",")},...e,easing:n,duration:t}}const Ah={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Mh(e){return Bt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function nc(e={}){const n={...e};function t(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,s]=o[i];!Mh(s)||a.startsWith("unstable_")?delete r[a]:Bt(s)&&(r[a]={...s},t(r[a]))}}return t(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
87
|
+
|
|
88
|
+
const theme = ${JSON.stringify(n,null,2)};
|
|
89
|
+
|
|
90
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
91
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
92
|
+
|
|
93
|
+
export default theme;`}function oc(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ph=e=>{if(!Number.isNaN(+e))return+e;const n=e.match(/\d*\.?\d+/g);if(!n)return 0;let t=0;for(let r=0;r<n.length;r+=1)t+=+n[r];return t};function Ih(e){Object.assign(e,{alpha(n,t){const r=this||e;return r.colorSpace?`oklch(from ${n} l c h / ${typeof t=="string"?`calc(${t})`:t})`:r.vars?`rgba(${n.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof t=="string"?`calc(${t})`:t})`:Ws(n,Ph(t))},lighten(n,t){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${n}, #fff ${oc(t)})`:so(n,t)},darken(n,t){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${n}, #000 ${oc(t)})`:ao(n,t)}})}function Ni(e={},...n){const{breakpoints:t,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":qt(20));const d=Ii({...i,colorSpace:l}),f=js(e);let m=ct(f,{mixins:bh(f.breakpoints,r),palette:d,shadows:Dh.slice(),typography:wh(d,s),transitions:Oh(a),zIndex:{...Ah}});if(m=ct(m,u),m=n.reduce((g,p)=>ct(g,p),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(y,k)=>{let S;for(S in y){const E=y[S];if(g.includes(S)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const C=Ci("",S);console.error([`MUI: The \`${k}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
94
|
+
`))}y[S]={}}}};Object.keys(m.components).forEach(y=>{const k=m.components[y].styleOverrides;k&&y.startsWith("Mui")&&p(k,y)})}return m.unstable_sxConfig={...Kn,...u?.unstable_sxConfig},m.unstable_sx=function(p){return kr({sx:p,theme:this})},m.toRuntimeSource=nc,Ih(m),m}function Nh(e){let n;return e<1?n=5.11916*e**2:n=4.5*Math.log(e+1)+2,Math.round(n*10)/1e3}const Rh=[...Array(25)].map((e,n)=>{if(n===0)return"none";const t=Nh(n);return`linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`});function ic(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ac(e){return e==="dark"?Rh:[]}function $h(e){const{palette:n={mode:"light"},opacity:t,overlays:r,colorSpace:o,...i}=e,a=Ii({...n,colorSpace:o});return{palette:a,opacity:{...ic(a.mode),...t},overlays:r||ac(a.mode),...i}}function Lh(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const jh=e=>[...[...Array(25)].map((n,t)=>`--${e?`${e}-`:""}overlays-${t}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],zh=e=>(n,t)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===n){if(n==="dark"){const a={};return jh(e.cssVarPrefix).forEach(s=>{a[s]=t[s],delete t[s]}),i==="media"?{[r]:t,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",n)]:a,[`${r}, ${i.replace("%s",n)}`]:t}:{[r]:{...t,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(n))}`}else if(n){if(i==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[r]:t}};if(i)return i.replace("%s",String(n))}return r};function Bh(e,n){n.forEach(t=>{e[t]||(e[t]={})})}function I(e,n,t){!e[n]&&t&&(e[n]=t)}function sn(e){return typeof e!="string"||!e.startsWith("hsl")?e:Us(e)}function Ft(e,n){`${n}Channel`in e||(e[`${n}Channel`]=nn(sn(e[n]),`MUI: Can't create \`palette.${n}Channel\` because \`palette.${n}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
95
|
+
To suppress this warning, you need to explicitly provide the \`palette.${n}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Yh(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Pt=e=>{try{return e()}catch{}},Fh=(e="mui")=>ih(e);function Ri(e,n,t,r,o){if(!t)return;t=t===!0?{}:t;const i=o==="dark"?"dark":"light";if(!r){n[o]=$h({...t,palette:{mode:i,...t?.palette},colorSpace:e});return}const{palette:a,...s}=Ni({...r,palette:{mode:i,...t?.palette},colorSpace:e});return n[o]={...t,palette:a,opacity:{...ic(i),...t?.opacity},overlays:t?.overlays||ac(i)},s}function Vh(e={},...n){const{colorSchemes:t={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=Lh,colorSchemeSelector:c=t.light&&t.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(t)[0],f=r||(t.light&&d!=="light"?"light":d),m=Fh(i),{[f]:g,light:p,dark:y,...k}=t,S={...k};let E=g;if((f==="dark"&&!("dark"in t)||f==="light"&&!("light"in t))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:qt(21,f));let C;a&&(C="oklch");const x=Ri(C,S,E,u,f);p&&!S.light&&Ri(C,S,p,void 0,"light"),y&&!S.dark&&Ri(C,S,y,void 0,"dark");let O={defaultColorScheme:f,...x,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:m,colorSchemes:S,font:{...yh(x.typography),...x.font},spacing:Yh(u.spacing)};Object.keys(O.colorSchemes).forEach(z=>{const h=O.colorSchemes[z].palette,P=Y=>{const B=Y.split("-"),Q=B[1],ee=B[2];return m(Y,h[Q][ee])};h.mode==="light"&&(I(h.common,"background","#fff"),I(h.common,"onBackground","#000")),h.mode==="dark"&&(I(h.common,"background","#000"),I(h.common,"onBackground","#fff"));function A(Y,B,Q){if(C){let ee;return Y===lr&&(ee=`transparent ${((1-Q)*100).toFixed(0)}%`),Y===xe&&(ee=`#000 ${(Q*100).toFixed(0)}%`),Y===ke&&(ee=`#fff ${(Q*100).toFixed(0)}%`),`color-mix(in ${C}, ${B}, ${ee})`}return Y(B,Q)}if(Bh(h,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),h.mode==="light"){I(h.Alert,"errorColor",A(xe,h.error.light,.6)),I(h.Alert,"infoColor",A(xe,h.info.light,.6)),I(h.Alert,"successColor",A(xe,h.success.light,.6)),I(h.Alert,"warningColor",A(xe,h.warning.light,.6)),I(h.Alert,"errorFilledBg",P("palette-error-main")),I(h.Alert,"infoFilledBg",P("palette-info-main")),I(h.Alert,"successFilledBg",P("palette-success-main")),I(h.Alert,"warningFilledBg",P("palette-warning-main")),I(h.Alert,"errorFilledColor",Pt(()=>h.getContrastText(h.error.main))),I(h.Alert,"infoFilledColor",Pt(()=>h.getContrastText(h.info.main))),I(h.Alert,"successFilledColor",Pt(()=>h.getContrastText(h.success.main))),I(h.Alert,"warningFilledColor",Pt(()=>h.getContrastText(h.warning.main))),I(h.Alert,"errorStandardBg",A(ke,h.error.light,.9)),I(h.Alert,"infoStandardBg",A(ke,h.info.light,.9)),I(h.Alert,"successStandardBg",A(ke,h.success.light,.9)),I(h.Alert,"warningStandardBg",A(ke,h.warning.light,.9)),I(h.Alert,"errorIconColor",P("palette-error-main")),I(h.Alert,"infoIconColor",P("palette-info-main")),I(h.Alert,"successIconColor",P("palette-success-main")),I(h.Alert,"warningIconColor",P("palette-warning-main")),I(h.AppBar,"defaultBg",P("palette-grey-100")),I(h.Avatar,"defaultBg",P("palette-grey-400")),I(h.Button,"inheritContainedBg",P("palette-grey-300")),I(h.Button,"inheritContainedHoverBg",P("palette-grey-A100")),I(h.Chip,"defaultBorder",P("palette-grey-400")),I(h.Chip,"defaultAvatarColor",P("palette-grey-700")),I(h.Chip,"defaultIconColor",P("palette-grey-700")),I(h.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),I(h.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),I(h.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),I(h.LinearProgress,"primaryBg",A(ke,h.primary.main,.62)),I(h.LinearProgress,"secondaryBg",A(ke,h.secondary.main,.62)),I(h.LinearProgress,"errorBg",A(ke,h.error.main,.62)),I(h.LinearProgress,"infoBg",A(ke,h.info.main,.62)),I(h.LinearProgress,"successBg",A(ke,h.success.main,.62)),I(h.LinearProgress,"warningBg",A(ke,h.warning.main,.62)),I(h.Skeleton,"bg",C?A(lr,h.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),I(h.Slider,"primaryTrack",A(ke,h.primary.main,.62)),I(h.Slider,"secondaryTrack",A(ke,h.secondary.main,.62)),I(h.Slider,"errorTrack",A(ke,h.error.main,.62)),I(h.Slider,"infoTrack",A(ke,h.info.main,.62)),I(h.Slider,"successTrack",A(ke,h.success.main,.62)),I(h.Slider,"warningTrack",A(ke,h.warning.main,.62));const Y=C?A(xe,h.background.default,.6825):co(h.background.default,.8);I(h.SnackbarContent,"bg",Y),I(h.SnackbarContent,"color",Pt(()=>C?Pi.text.primary:h.getContrastText(Y))),I(h.SpeedDialAction,"fabHoverBg",co(h.background.paper,.15)),I(h.StepConnector,"border",P("palette-grey-400")),I(h.StepContent,"border",P("palette-grey-400")),I(h.Switch,"defaultColor",P("palette-common-white")),I(h.Switch,"defaultDisabledColor",P("palette-grey-100")),I(h.Switch,"primaryDisabledColor",A(ke,h.primary.main,.62)),I(h.Switch,"secondaryDisabledColor",A(ke,h.secondary.main,.62)),I(h.Switch,"errorDisabledColor",A(ke,h.error.main,.62)),I(h.Switch,"infoDisabledColor",A(ke,h.info.main,.62)),I(h.Switch,"successDisabledColor",A(ke,h.success.main,.62)),I(h.Switch,"warningDisabledColor",A(ke,h.warning.main,.62)),I(h.TableCell,"border",A(ke,A(lr,h.divider,1),.88)),I(h.Tooltip,"bg",A(lr,h.grey[700],.92))}if(h.mode==="dark"){I(h.Alert,"errorColor",A(ke,h.error.light,.6)),I(h.Alert,"infoColor",A(ke,h.info.light,.6)),I(h.Alert,"successColor",A(ke,h.success.light,.6)),I(h.Alert,"warningColor",A(ke,h.warning.light,.6)),I(h.Alert,"errorFilledBg",P("palette-error-dark")),I(h.Alert,"infoFilledBg",P("palette-info-dark")),I(h.Alert,"successFilledBg",P("palette-success-dark")),I(h.Alert,"warningFilledBg",P("palette-warning-dark")),I(h.Alert,"errorFilledColor",Pt(()=>h.getContrastText(h.error.dark))),I(h.Alert,"infoFilledColor",Pt(()=>h.getContrastText(h.info.dark))),I(h.Alert,"successFilledColor",Pt(()=>h.getContrastText(h.success.dark))),I(h.Alert,"warningFilledColor",Pt(()=>h.getContrastText(h.warning.dark))),I(h.Alert,"errorStandardBg",A(xe,h.error.light,.9)),I(h.Alert,"infoStandardBg",A(xe,h.info.light,.9)),I(h.Alert,"successStandardBg",A(xe,h.success.light,.9)),I(h.Alert,"warningStandardBg",A(xe,h.warning.light,.9)),I(h.Alert,"errorIconColor",P("palette-error-main")),I(h.Alert,"infoIconColor",P("palette-info-main")),I(h.Alert,"successIconColor",P("palette-success-main")),I(h.Alert,"warningIconColor",P("palette-warning-main")),I(h.AppBar,"defaultBg",P("palette-grey-900")),I(h.AppBar,"darkBg",P("palette-background-paper")),I(h.AppBar,"darkColor",P("palette-text-primary")),I(h.Avatar,"defaultBg",P("palette-grey-600")),I(h.Button,"inheritContainedBg",P("palette-grey-800")),I(h.Button,"inheritContainedHoverBg",P("palette-grey-700")),I(h.Chip,"defaultBorder",P("palette-grey-700")),I(h.Chip,"defaultAvatarColor",P("palette-grey-300")),I(h.Chip,"defaultIconColor",P("palette-grey-300")),I(h.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),I(h.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),I(h.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),I(h.LinearProgress,"primaryBg",A(xe,h.primary.main,.5)),I(h.LinearProgress,"secondaryBg",A(xe,h.secondary.main,.5)),I(h.LinearProgress,"errorBg",A(xe,h.error.main,.5)),I(h.LinearProgress,"infoBg",A(xe,h.info.main,.5)),I(h.LinearProgress,"successBg",A(xe,h.success.main,.5)),I(h.LinearProgress,"warningBg",A(xe,h.warning.main,.5)),I(h.Skeleton,"bg",C?A(lr,h.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),I(h.Slider,"primaryTrack",A(xe,h.primary.main,.5)),I(h.Slider,"secondaryTrack",A(xe,h.secondary.main,.5)),I(h.Slider,"errorTrack",A(xe,h.error.main,.5)),I(h.Slider,"infoTrack",A(xe,h.info.main,.5)),I(h.Slider,"successTrack",A(xe,h.success.main,.5)),I(h.Slider,"warningTrack",A(xe,h.warning.main,.5));const Y=C?A(ke,h.background.default,.985):co(h.background.default,.98);I(h.SnackbarContent,"bg",Y),I(h.SnackbarContent,"color",Pt(()=>C?Gs.text.primary:h.getContrastText(Y))),I(h.SpeedDialAction,"fabHoverBg",co(h.background.paper,.15)),I(h.StepConnector,"border",P("palette-grey-600")),I(h.StepContent,"border",P("palette-grey-600")),I(h.Switch,"defaultColor",P("palette-grey-300")),I(h.Switch,"defaultDisabledColor",P("palette-grey-600")),I(h.Switch,"primaryDisabledColor",A(xe,h.primary.main,.55)),I(h.Switch,"secondaryDisabledColor",A(xe,h.secondary.main,.55)),I(h.Switch,"errorDisabledColor",A(xe,h.error.main,.55)),I(h.Switch,"infoDisabledColor",A(xe,h.info.main,.55)),I(h.Switch,"successDisabledColor",A(xe,h.success.main,.55)),I(h.Switch,"warningDisabledColor",A(xe,h.warning.main,.55)),I(h.TableCell,"border",A(xe,A(lr,h.divider,1),.68)),I(h.Tooltip,"bg",A(lr,h.grey[700],.92))}Ft(h.background,"default"),Ft(h.background,"paper"),Ft(h.common,"background"),Ft(h.common,"onBackground"),Ft(h,"divider"),Object.keys(h).forEach(Y=>{const B=h[Y];Y!=="tonalOffset"&&B&&typeof B=="object"&&(B.main&&I(h[Y],"mainChannel",nn(sn(B.main))),B.light&&I(h[Y],"lightChannel",nn(sn(B.light))),B.dark&&I(h[Y],"darkChannel",nn(sn(B.dark))),B.contrastText&&I(h[Y],"contrastTextChannel",nn(sn(B.contrastText))),Y==="text"&&(Ft(h[Y],"primary"),Ft(h[Y],"secondary")),Y==="action"&&(B.active&&Ft(h[Y],"active"),B.selected&&Ft(h[Y],"selected")))})}),O=n.reduce((z,h)=>ct(z,h),O);const N={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:zh(O),enableContrastVars:a},{vars:q,generateThemeVars:V,generateStyleSheets:j}=ch(O,N);return O.vars=q,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([z,h])=>{O[z]=h}),O.generateThemeVars=V,O.generateStyleSheets=j,O.generateSpacing=function(){return Ls(u.spacing,gi(this))},O.getColorSchemeSelector=lh(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...Kn,...u?.unstable_sxConfig},O.unstable_sx=function(h){return kr({sx:h,theme:this})},O.toRuntimeSource=nc,O}function sc(e,n,t){e.colorSchemes&&t&&(e.colorSchemes[n]={...t!==!0&&t,palette:Ii({...t===!0?{}:t.palette,mode:n})})}function Uh(e={},...n){const{palette:t,cssVariables:r=!1,colorSchemes:o=t?void 0:{light:!0},defaultColorScheme:i=t?.mode,...a}=e,s=i||"light",c=o?.[s],l={...o,...t?{[s]:{...typeof c!="boolean"&&c,palette:t}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ni(e,...n);let u=t;"palette"in e||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Ni({...e,palette:u},...n);return d.defaultColorScheme=s,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},sc(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},sc(d,"light",l.light)),d}return!t&&!("light"in l)&&s==="light"&&(l.light=!0),Vh({...a,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...n)}const Hh=Uh(),Wh="$$material";function Zh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qh=Wp({themeId:Wh,defaultTheme:Hh,rootShouldForwardProp:e=>Zh(e)&&e!=="classes"}),Kh=oh;process.env.NODE_ENV!=="production"&&(ve.node,ve.object.isRequired);function Gh(e){return nh(e)}function Qh(e){return Ci("MuiSvgIcon",e)}Yp("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jh=e=>{const{color:n,fontSize:t,classes:r}=e,o={root:["root",n!=="inherit"&&`color${ar(n)}`,`fontSize${ar(t)}`]};return Vd(o,Qh,r)},Xh=qh("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.color!=="inherit"&&n[`color${ar(t.color)}`],n[`fontSize${ar(t.fontSize)}`]]}})(Kh(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:n=>!n.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n},style:{color:(e.vars??e).palette?.[n]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),lo=ne.forwardRef(function(n,t){const r=Gh({props:n,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...m}=r,g=ne.isValidElement(o)&&o.type==="svg",p={...r,color:a,component:s,fontSize:c,instanceFontSize:n.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},y={};u||(y.viewBox=f);const k=Jh(p);return _.jsxs(Xh,{as:s,className:Ze(k.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:t,...y,...m,...g&&o.props,ownerState:p,children:[g?o.props.children:o,d?_.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(lo.propTypes={children:ve.node,classes:ve.object,className:ve.string,color:ve.oneOfType([ve.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ve.string]),component:ve.elementType,fontSize:ve.oneOfType([ve.oneOf(["inherit","large","medium","small"]),ve.string]),htmlColor:ve.string,inheritViewBox:ve.bool,shapeRendering:ve.string,sx:ve.oneOfType([ve.arrayOf(ve.oneOfType([ve.func,ve.object,ve.bool])),ve.func,ve.object]),titleAccess:ve.string,viewBox:ve.string}),lo.muiName="SvgIcon";function ur(e,n){function t(r,o){return _.jsx(lo,{"data-testid":process.env.NODE_ENV!=="production"?`${n}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${n}Icon`),t.muiName=lo.muiName,ne.memo(ne.forwardRef(t))}const em=ur(_.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),tm=({header:e,sidebar:n,mainContent:t})=>{const[r,o]=b.useState(!1),i=()=>{o(!r)};return _.jsxs("div",{className:Zt.dashboardContainer,children:[_.jsxs("header",{className:Zt.header,children:[_.jsx(U.IconButton,{onClick:i,className:Zt.menuButton,"aria-label":"open sidebar",children:_.jsx(em,{})}),_.jsx("div",{className:Zt.headerContent,children:e})]}),_.jsx("aside",{className:`${Zt.sidebar} ${r?Zt.sidebarOpen:""}`,children:n}),_.jsx("main",{className:Zt.mainContent,children:t}),r&&_.jsx("div",{className:Zt.overlay,onClick:i})]})},Qt={headerContainer:"_headerContainer_tzjmo_1",navAndDate:"_navAndDate_tzjmo_19",navButton:"_navButton_tzjmo_31",datePickerInput:"_datePickerInput_tzjmo_63",datePickerButton:"_datePickerButton_tzjmo_93",addEventButton:"_addEventButton_tzjmo_137",spacer:"_spacer_tzjmo_175"};function uo(){return typeof window<"u"}function Ir(e){return cc(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function It(e){var n;return(n=(cc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function cc(e){return uo()?e instanceof Node||e instanceof dt(e).Node:!1}function Xe(e){return uo()?e instanceof Element||e instanceof dt(e).Element:!1}function Nt(e){return uo()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function lc(e){return!uo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}const rm=new Set(["inline","contents"]);function cn(e){const{overflow:n,overflowX:t,overflowY:r,display:o}=gt(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+t)&&!rm.has(o)}const nm=new Set(["table","td","th"]);function om(e){return nm.has(Ir(e))}const im=[":popover-open",":modal"];function fo(e){return im.some(n=>{try{return e.matches(n)}catch{return!1}})}const am=["transform","translate","scale","rotate","perspective"],sm=["transform","translate","scale","rotate","perspective","filter"],cm=["paint","layout","strict","content"];function $i(e){const n=Li(),t=Xe(e)?gt(e):e;return am.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!n&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!n&&(t.filter?t.filter!=="none":!1)||sm.some(r=>(t.willChange||"").includes(r))||cm.some(r=>(t.contain||"").includes(r))}function lm(e){let n=Jt(e);for(;Nt(n)&&!Nr(n);){if($i(n))return n;if(fo(n))return null;n=Jt(n)}return null}function Li(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const um=new Set(["html","body","#document"]);function Nr(e){return um.has(Ir(e))}function gt(e){return dt(e).getComputedStyle(e)}function po(e){return Xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jt(e){if(Ir(e)==="html")return e;const n=e.assignedSlot||e.parentNode||lc(e)&&e.host||It(e);return lc(n)?n.host:n}function uc(e){const n=Jt(e);return Nr(n)?e.ownerDocument?e.ownerDocument.body:e.body:Nt(n)&&cn(n)?n:uc(n)}function ln(e,n,t){var r;n===void 0&&(n=[]),t===void 0&&(t=!0);const o=uc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=dt(o);if(i){const s=ji(a);return n.concat(a,a.visualViewport||[],cn(o)?o:[],s&&t?ln(s):[])}return n.concat(o,ln(o,[],t))}function ji(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Rr=Math.min,dr=Math.max,ho=Math.round,mo=Math.floor,Rt=e=>({x:e,y:e}),dm={left:"right",right:"left",bottom:"top",top:"bottom"},fm={start:"end",end:"start"};function pm(e,n,t){return dr(e,Rr(n,t))}function go(e,n){return typeof e=="function"?e(n):e}function $r(e){return e.split("-")[0]}function un(e){return e.split("-")[1]}function hm(e){return e==="x"?"y":"x"}function zi(e){return e==="y"?"height":"width"}const mm=new Set(["top","bottom"]);function fr(e){return mm.has($r(e))?"y":"x"}function Bi(e){return hm(fr(e))}function gm(e,n,t){t===void 0&&(t=!1);const r=un(e),o=Bi(e),i=zi(o);let a=o==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=vo(a)),[a,vo(a)]}function vm(e){const n=vo(e);return[Yi(e),n,Yi(n)]}function Yi(e){return e.replace(/start|end/g,n=>fm[n])}const dc=["left","right"],fc=["right","left"],ym=["top","bottom"],bm=["bottom","top"];function _m(e,n,t){switch(e){case"top":case"bottom":return t?n?fc:dc:n?dc:fc;case"left":case"right":return n?ym:bm;default:return[]}}function wm(e,n,t,r){const o=un(e);let i=_m($r(e),t==="start",r);return o&&(i=i.map(a=>a+"-"+o),n&&(i=i.concat(i.map(Yi)))),i}function vo(e){return e.replace(/left|right|bottom|top/g,n=>dm[n])}function Sm(e){return{top:0,right:0,bottom:0,left:0,...e}}function pc(e){return typeof e!="number"?Sm(e):{top:e,right:e,bottom:e,left:e}}function yo(e){const{x:n,y:t,width:r,height:o}=e;return{width:r,height:o,top:t,left:n,right:n+r,bottom:t+o,x:n,y:t}}var xm=typeof document<"u",km=function(){},bo=xm?b.useLayoutEffect:km;const Dm={...ne}.useInsertionEffect||(e=>e());function Cm(e){const n=ne.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Dm(()=>{n.current=e}),ne.useCallback(function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.current==null?void 0:n.current(...r)},[])}function hc(e,n,t){let{reference:r,floating:o}=e;const i=fr(n),a=Bi(n),s=zi(a),c=$r(n),l=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let m;switch(c){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(un(n)){case"start":m[a]-=f*(t&&l?-1:1);break;case"end":m[a]+=f*(t&&l?-1:1);break}return m}const Em=async(e,n,t)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=t,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(n));let l=await a.getElementRects({reference:e,floating:n,strategy:o}),{x:u,y:d}=hc(l,r,c),f=r,m={},g=0;for(let p=0;p<s.length;p++){const{name:y,fn:k}=s[p],{x:S,y:E,data:C,reset:x}=await k({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:l,platform:a,elements:{reference:e,floating:n}});u=S??u,d=E??d,m={...m,[y]:{...m[y],...C}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await a.getElementRects({reference:e,floating:n,strategy:o}):x.rects),{x:u,y:d}=hc(l,f,c)),p=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}};async function Tm(e,n){var t;n===void 0&&(n={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=go(n,e),g=pc(m),y=s[f?d==="floating"?"reference":"floating":d],k=yo(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(y)))==null||t?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),S=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),C=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},x=yo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:S,offsetParent:E,strategy:c}):S);return{top:(k.top-x.top+g.top)/C.y,bottom:(x.bottom-k.bottom+g.bottom)/C.y,left:(k.left-x.left+g.left)/C.x,right:(x.right-k.right+g.right)/C.x}}const Om=e=>({name:"arrow",options:e,async fn(n){const{x:t,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=n,{element:l,padding:u=0}=go(e,n)||{};if(l==null)return{};const d=pc(u),f={x:t,y:r},m=Bi(o),g=zi(m),p=await a.getDimensions(l),y=m==="y",k=y?"top":"left",S=y?"bottom":"right",E=y?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[m]-f[m]-i.floating[g],x=f[m]-i.reference[m],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let N=O?O[E]:0;(!N||!await(a.isElement==null?void 0:a.isElement(O)))&&(N=s.floating[E]||i.floating[g]);const q=C/2-x/2,V=N/2-p[g]/2-1,j=Rr(d[k],V),z=Rr(d[S],V),h=j,P=N-p[g]-z,A=N/2-p[g]/2+q,Y=pm(h,A,P),B=!c.arrow&&un(o)!=null&&A!==Y&&i.reference[g]/2-(A<h?j:z)-p[g]/2<0,Q=B?A<h?A-h:A-P:0;return{[m]:f[m]+Q,data:{[m]:Y,centerOffset:A-Y-Q,...B&&{alignmentOffset:Q}},reset:B}}}),Am=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var t,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=n,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...y}=go(e,n);if((t=i.arrow)!=null&&t.alignmentOffset)return{};const k=$r(o),S=fr(s),E=$r(s)===s,C=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=f||(E||!p?[vo(s)]:vm(s)),O=g!=="none";!f&&O&&x.push(...wm(s,p,g,C));const N=[s,...x],q=await Tm(n,y),V=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&V.push(q[k]),d){const A=gm(o,a,C);V.push(q[A[0]],q[A[1]])}if(j=[...j,{placement:o,overflows:V}],!V.every(A=>A<=0)){var z,h;const A=(((z=i.flip)==null?void 0:z.index)||0)+1,Y=N[A];if(Y&&(!(d==="alignment"?S!==fr(Y):!1)||j.every(ee=>fr(ee.placement)===S?ee.overflows[0]>0:!0)))return{data:{index:A,overflows:j},reset:{placement:Y}};let B=(h=j.filter(Q=>Q.overflows[0]<=0).sort((Q,ee)=>Q.overflows[1]-ee.overflows[1])[0])==null?void 0:h.placement;if(!B)switch(m){case"bestFit":{var P;const Q=(P=j.filter(ee=>{if(O){const he=fr(ee.placement);return he===S||he==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(he=>he>0).reduce((he,D)=>he+D,0)]).sort((ee,he)=>ee[1]-he[1])[0])==null?void 0:P[0];Q&&(B=Q);break}case"initialPlacement":B=s;break}if(o!==B)return{reset:{placement:B}}}return{}}}},Mm=new Set(["left","top"]);async function Pm(e,n){const{placement:t,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=$r(t),s=un(t),c=fr(t)==="y",l=Mm.has(a)?-1:1,u=i&&c?-1:1,d=go(n,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),c?{x:m*u,y:f*l}:{x:f*l,y:m*u}}const Im=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var t,r;const{x:o,y:i,placement:a,middlewareData:s}=n,c=await Pm(n,e);return a===((t=s.offset)==null?void 0:t.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}};function mc(e){const n=gt(e);let t=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const o=Nt(e),i=o?e.offsetWidth:t,a=o?e.offsetHeight:r,s=ho(t)!==i||ho(r)!==a;return s&&(t=i,r=a),{width:t,height:r,$:s}}function Fi(e){return Xe(e)?e:e.contextElement}function Lr(e){const n=Fi(e);if(!Nt(n))return Rt(1);const t=n.getBoundingClientRect(),{width:r,height:o,$:i}=mc(n);let a=(i?ho(t.width):t.width)/r,s=(i?ho(t.height):t.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Nm=Rt(0);function gc(e){const n=dt(e);return!Li()||!n.visualViewport?Nm:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Rm(e,n,t){return n===void 0&&(n=!1),!t||n&&t!==dt(e)?!1:n}function pr(e,n,t,r){n===void 0&&(n=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=Fi(e);let a=Rt(1);n&&(r?Xe(r)&&(a=Lr(r)):a=Lr(e));const s=Rm(i,t,r)?gc(i):Rt(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=dt(i),m=r&&Xe(r)?dt(r):r;let g=f,p=ji(g);for(;p&&r&&m!==g;){const y=Lr(p),k=p.getBoundingClientRect(),S=gt(p),E=k.left+(p.clientLeft+parseFloat(S.paddingLeft))*y.x,C=k.top+(p.clientTop+parseFloat(S.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=E,l+=C,g=dt(p),p=ji(g)}}return yo({width:u,height:d,x:c,y:l})}function Vi(e,n){const t=po(e).scrollLeft;return n?n.left+t:pr(It(e)).left+t}function vc(e,n,t){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),o=r.left+n.scrollLeft-(t?0:Vi(e,r)),i=r.top+n.scrollTop;return{x:o,y:i}}function $m(e){let{elements:n,rect:t,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=It(r),s=n?fo(n.floating):!1;if(r===a||s&&i)return t;let c={scrollLeft:0,scrollTop:0},l=Rt(1);const u=Rt(0),d=Nt(r);if((d||!d&&!i)&&((Ir(r)!=="body"||cn(a))&&(c=po(r)),Nt(r))){const m=pr(r);l=Lr(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const f=a&&!d&&!i?vc(a,c,!0):Rt(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:t.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Lm(e){return Array.from(e.getClientRects())}function jm(e){const n=It(e),t=po(e),r=e.ownerDocument.body,o=dr(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),i=dr(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let a=-t.scrollLeft+Vi(e);const s=-t.scrollTop;return gt(r).direction==="rtl"&&(a+=dr(n.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function zm(e,n){const t=dt(e),r=It(e),o=t.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const l=Li();(!l||l&&n==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}const Bm=new Set(["absolute","fixed"]);function Ym(e,n){const t=pr(e,!0,n==="fixed"),r=t.top+e.clientTop,o=t.left+e.clientLeft,i=Nt(e)?Lr(e):Rt(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:a,height:s,x:c,y:l}}function yc(e,n,t){let r;if(n==="viewport")r=zm(e,t);else if(n==="document")r=jm(It(e));else if(Xe(n))r=Ym(n,t);else{const o=gc(e);r={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return yo(r)}function bc(e,n){const t=Jt(e);return t===n||!Xe(t)||Nr(t)?!1:gt(t).position==="fixed"||bc(t,n)}function Fm(e,n){const t=n.get(e);if(t)return t;let r=ln(e,[],!1).filter(s=>Xe(s)&&Ir(s)!=="body"),o=null;const i=gt(e).position==="fixed";let a=i?Jt(e):e;for(;Xe(a)&&!Nr(a);){const s=gt(a),c=$i(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&Bm.has(o.position)||cn(a)&&!c&&bc(e,a))?r=r.filter(u=>u!==a):o=s,a=Jt(a)}return n.set(e,r),r}function Vm(e){let{element:n,boundary:t,rootBoundary:r,strategy:o}=e;const a=[...t==="clippingAncestors"?fo(n)?[]:Fm(n,this._c):[].concat(t),r],s=a[0],c=a.reduce((l,u)=>{const d=yc(n,u,o);return l.top=dr(d.top,l.top),l.right=Rr(d.right,l.right),l.bottom=Rr(d.bottom,l.bottom),l.left=dr(d.left,l.left),l},yc(n,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Um(e){const{width:n,height:t}=mc(e);return{width:n,height:t}}function Hm(e,n,t){const r=Nt(n),o=It(n),i=t==="fixed",a=pr(e,!0,i,n);let s={scrollLeft:0,scrollTop:0};const c=Rt(0);function l(){c.x=Vi(o)}if(r||!r&&!i)if((Ir(n)!=="body"||cn(o))&&(s=po(n)),r){const m=pr(n,!0,i,n);c.x=m.x+n.clientLeft,c.y=m.y+n.clientTop}else o&&l();i&&!r&&o&&l();const u=o&&!r&&!i?vc(o,s):Rt(0),d=a.left+s.scrollLeft-c.x-u.x,f=a.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function Ui(e){return gt(e).position==="static"}function _c(e,n){if(!Nt(e)||gt(e).position==="fixed")return null;if(n)return n(e);let t=e.offsetParent;return It(e)===t&&(t=t.ownerDocument.body),t}function wc(e,n){const t=dt(e);if(fo(e))return t;if(!Nt(e)){let o=Jt(e);for(;o&&!Nr(o);){if(Xe(o)&&!Ui(o))return o;o=Jt(o)}return t}let r=_c(e,n);for(;r&&om(r)&&Ui(r);)r=_c(r,n);return r&&Nr(r)&&Ui(r)&&!$i(r)?t:r||lm(e)||t}const Wm=async function(e){const n=this.getOffsetParent||wc,t=this.getDimensions,r=await t(e.floating);return{reference:Hm(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Zm(e){return gt(e).direction==="rtl"}const qm={convertOffsetParentRelativeRectToViewportRelativeRect:$m,getDocumentElement:It,getClippingRect:Vm,getOffsetParent:wc,getElementRects:Wm,getClientRects:Lm,getDimensions:Um,getScale:Lr,isElement:Xe,isRTL:Zm};function Sc(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Km(e,n){let t=null,r;const o=It(e);function i(){var s;clearTimeout(r),(s=t)==null||s.disconnect(),t=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=l;if(s||n(),!f||!m)return;const g=mo(d),p=mo(o.clientWidth-(u+f)),y=mo(o.clientHeight-(d+m)),k=mo(u),E={rootMargin:-g+"px "+-p+"px "+-y+"px "+-k+"px",threshold:dr(0,Rr(1,c))||1};let C=!0;function x(O){const N=O[0].intersectionRatio;if(N!==c){if(!C)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!Sc(l,e.getBoundingClientRect())&&a(),C=!1}try{t=new IntersectionObserver(x,{...E,root:o.ownerDocument})}catch{t=new IntersectionObserver(x,E)}t.observe(e)}return a(!0),i}function Gm(e,n,t,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Fi(e),u=o||i?[...l?ln(l):[],...ln(n)]:[];u.forEach(k=>{o&&k.addEventListener("scroll",t,{passive:!0}),i&&k.addEventListener("resize",t)});const d=l&&s?Km(l,t):null;let f=-1,m=null;a&&(m=new ResizeObserver(k=>{let[S]=k;S&&S.target===l&&m&&(m.unobserve(n),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(n)})),t()}),l&&!c&&m.observe(l),m.observe(n));let g,p=c?pr(e):null;c&&y();function y(){const k=pr(e);p&&!Sc(p,k)&&t(),p=k,g=requestAnimationFrame(y)}return t(),()=>{var k;u.forEach(S=>{o&&S.removeEventListener("scroll",t),i&&S.removeEventListener("resize",t)}),d?.(),(k=m)==null||k.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const Qm=Im,Jm=Am,xc=Om,Xm=(e,n,t)=>{const r=new Map,o={platform:qm,...t},i={...o.platform,_c:r};return Em(e,n,{...o,platform:i})};var eg=typeof document<"u",tg=function(){},_o=eg?b.useLayoutEffect:tg;function wo(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let t,r,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==n.length)return!1;for(r=t;r--!==0;)if(!wo(e[r],n[r]))return!1;return!0}if(o=Object.keys(e),t=o.length,t!==Object.keys(n).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(n,o[r]))return!1;for(r=t;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!wo(e[i],n[i]))return!1}return!0}return e!==e&&n!==n}function kc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dc(e,n){const t=kc(e);return Math.round(n*t)/t}function Hi(e){const n=ne.useRef(e);return _o(()=>{n.current=e}),n}function rg(e){e===void 0&&(e={});const{placement:n="bottom",strategy:t="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=ne.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[f,m]=ne.useState(r);wo(f,r)||m(r);const[g,p]=ne.useState(null),[y,k]=ne.useState(null),S=ne.useCallback(ee=>{ee!==O.current&&(O.current=ee,p(ee))},[]),E=ne.useCallback(ee=>{ee!==N.current&&(N.current=ee,k(ee))},[]),C=i||g,x=a||y,O=ne.useRef(null),N=ne.useRef(null),q=ne.useRef(u),V=c!=null,j=Hi(c),z=Hi(o),h=Hi(l),P=ne.useCallback(()=>{if(!O.current||!N.current)return;const ee={placement:n,strategy:t,middleware:f};z.current&&(ee.platform=z.current),Xm(O.current,N.current,ee).then(he=>{const D={...he,isPositioned:h.current!==!1};A.current&&!wo(q.current,D)&&(q.current=D,Od.flushSync(()=>{d(D)}))})},[f,n,t,z,h]);_o(()=>{l===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,d(ee=>({...ee,isPositioned:!1})))},[l]);const A=ne.useRef(!1);_o(()=>(A.current=!0,()=>{A.current=!1}),[]),_o(()=>{if(C&&(O.current=C),x&&(N.current=x),C&&x){if(j.current)return j.current(C,x,P);P()}},[C,x,P,j,V]);const Y=ne.useMemo(()=>({reference:O,floating:N,setReference:S,setFloating:E}),[S,E]),B=ne.useMemo(()=>({reference:C,floating:x}),[C,x]),Q=ne.useMemo(()=>{const ee={position:t,left:0,top:0};if(!B.floating)return ee;const he=Dc(B.floating,u.x),D=Dc(B.floating,u.y);return s?{...ee,transform:"translate("+he+"px, "+D+"px)",...kc(B.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:he,top:D}},[t,s,B.floating,u.x,u.y]);return ne.useMemo(()=>({...u,update:P,refs:Y,elements:B,floatingStyles:Q}),[u,P,Y,B,Q])}const ng=e=>{function n(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:r,padding:o}=typeof e=="function"?e(t):e;return r&&n(r)?r.current!=null?xc({element:r.current,padding:o}).fn(t):{}:r?xc({element:r,padding:o}).fn(t):{}}}},og=(e,n)=>({...Qm(e),options:[e,n]}),ig=(e,n)=>({...Jm(e),options:[e,n]}),ag=(e,n)=>({...ng(e),options:[e,n]}),sg={...ne};let Cc=!1,cg=0;const Ec=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cg++;function lg(){const[e,n]=ne.useState(()=>Cc?Ec():void 0);return bo(()=>{e==null&&n(Ec())},[]),ne.useEffect(()=>{Cc=!0},[]),e}const Tc=sg.useId||lg;let dn;process.env.NODE_ENV!=="production"&&(dn=new Set);function ug(){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];const o="Floating UI: "+t.join(" ");if(!((e=dn)!=null&&e.has(o))){var i;(i=dn)==null||i.add(o),console.warn(o)}}function dg(){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];const o="Floating UI: "+t.join(" ");if(!((e=dn)!=null&&e.has(o))){var i;(i=dn)==null||i.add(o),console.error(o)}}const fg=ne.forwardRef(function(n,t){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:m,style:{transform:g,...p}={},...y}=n;process.env.NODE_ENV!=="production"&&(t||ug("The `ref` prop is required for `FloatingArrow`."));const k=Tc(),[S,E]=ne.useState(!1);if(bo(()=>{if(!o)return;gt(o).direction==="rtl"&&E(!0)},[o]),!o)return null;const[C,x]=r.split("-"),O=C==="top"||C==="bottom";let N=d;(O&&a!=null&&a.x||!O&&a!=null&&a.y)&&(N=null);const q=u*2,V=q/2,j=s/2*(l/-8+1),z=c/2*l/4,h=!!m,P=N&&x==="end"?"bottom":"top";let A=N&&x==="end"?"right":"left";N&&S&&(A=x==="end"?"left":"right");const Y=i?.x!=null?N||i.x:"",B=i?.y!=null?N||i.y:"",Q=m||"M0,0"+(" H"+s)+(" L"+(s-j)+","+(c-z))+(" Q"+s/2+","+c+" "+j+","+(c-z))+" Z",ee={top:h?"rotate(180deg)":"",left:h?"rotate(90deg)":"rotate(-90deg)",bottom:h?"":"rotate(180deg)",right:h?"rotate(-90deg)":"rotate(90deg)"}[C];return _.jsxs("svg",{...y,"aria-hidden":!0,ref:t,width:h?s:s+q,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[A]:Y,[P]:B,[C]:O||h?"100%":"calc(100% - "+q/2+"px)",transform:[ee,g].filter(he=>!!he).join(" "),...p},children:[q>0&&_.jsx("path",{clipPath:"url(#"+k+")",fill:"none",stroke:f,strokeWidth:q+(m?0:1),d:Q}),_.jsx("path",{stroke:q&&!m?y.fill:"none",d:Q}),_.jsx("clipPath",{id:k,children:_.jsx("rect",{x:-V,y:V*(h?-1:1),width:s+q,height:s})})]})});function pg(){const e=new Map;return{emit(n,t){var r;(r=e.get(n))==null||r.forEach(o=>o(t))},on(n,t){e.has(n)||e.set(n,new Set),e.get(n).add(t)},off(n,t){var r;(r=e.get(n))==null||r.delete(t)}}}const hg=ne.createContext(null),mg=ne.createContext(null),gg=()=>{var e;return((e=ne.useContext(hg))==null?void 0:e.id)||null},vg=()=>ne.useContext(mg);function yg(e){const{open:n=!1,onOpenChange:t,elements:r}=e,o=Tc(),i=ne.useRef({}),[a]=ne.useState(()=>pg()),s=gg()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!Xe(m)&&dg("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=ne.useState(r.reference),u=Cm((m,g,p)=>{i.current.openEvent=m?g:void 0,a.emit("openchange",{open:m,event:g,reason:p,nested:s}),t?.(m,g,p)}),d=ne.useMemo(()=>({setPositionReference:l}),[]),f=ne.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return ne.useMemo(()=>({dataRef:i,open:n,onOpenChange:u,elements:f,events:a,floatingId:o,refs:d}),[n,u,f,a,o,d])}function bg(e){e===void 0&&(e={});const{nodeId:n}=e,t=yg({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||t,o=r.elements,[i,a]=ne.useState(null),[s,c]=ne.useState(null),u=o?.domReference||i,d=ne.useRef(null),f=vg();bo(()=>{u&&(d.current=u)},[u]);const m=rg({...e,elements:{...o,...s&&{reference:s}}}),g=ne.useCallback(E=>{const C=Xe(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;c(C),m.refs.setReference(C)},[m.refs]),p=ne.useCallback(E=>{(Xe(E)||E===null)&&(d.current=E,a(E)),(Xe(m.refs.reference.current)||m.refs.reference.current===null||E!==null&&!Xe(E))&&m.refs.setReference(E)},[m.refs]),y=ne.useMemo(()=>({...m.refs,setReference:p,setPositionReference:g,domReference:d}),[m.refs,p,g]),k=ne.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),S=ne.useMemo(()=>({...m,...r,refs:y,elements:k,nodeId:n}),[m,y,k,n,r]);return bo(()=>{r.dataRef.current.floatingContext=S;const E=f?.nodesRef.current.find(C=>C.id===n);E&&(E.context=S)}),ne.useMemo(()=>({...m,context:S,refs:y,elements:k}),[m,y,k,S])}/*!
|
|
96
|
+
react-datepicker v8.4.0
|
|
97
|
+
https://github.com/Hacker0x01/react-datepicker
|
|
98
|
+
Released under the MIT License.
|
|
99
|
+
*/var Wi=function(n,t){return Wi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},Wi(n,t)};function Ke(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Wi(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var me=function(){return me=Object.assign||function(t){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},me.apply(this,arguments)};function $t(e,n,t){if(t||arguments.length===2)for(var r=0,o=n.length,i;r<o;r++)(i||!(r in n))&&(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;var _g=function(e){var n=e.showTimeSelectOnly,t=n===void 0?!1:n,r=e.showTime,o=r===void 0?!1:r,i=e.className,a=e.children,s=t?"Choose Time":"Choose Date".concat(o?" and Time":"");return b.createElement("div",{className:i,role:"dialog","aria-label":s,"aria-modal":"true"},a)},wg=function(e,n){var t=b.useRef(null),r=b.useRef(e);r.current=e;var o=b.useCallback(function(i){var a,s=i.composed&&i.composedPath&&i.composedPath().find(function(c){return c instanceof Node})||i.target;t.current&&!t.current.contains(s)&&(n&&s instanceof HTMLElement&&s.classList.contains(n)||(a=r.current)===null||a===void 0||a.call(r,i))},[n]);return b.useEffect(function(){return document.addEventListener("mousedown",o),function(){document.removeEventListener("mousedown",o)}},[o]),t},So=function(e){var n=e.children,t=e.onClickOutside,r=e.className,o=e.containerRef,i=e.style,a=e.ignoreClass,s=wg(t,a);return b.createElement("div",{className:r,style:i,ref:function(c){s.current=c,o&&(o.current=c)}},n)},G;(function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"})(G||(G={}));function Oc(){var e=typeof window<"u"?window:globalThis;return e}var fn=12;function Se(e){if(e==null)return new Date;var n=typeof e=="string"?v.parseISO(e):v.toDate(e);return xo(n)?n:new Date}function Zi(e,n,t,r,o){o===void 0&&(o=Se());for(var i=jr(t)||jr(Ki()),a=Array.isArray(n)?n:[n],s=0,c=a;s<c.length;s++){var l=c[s],u=v.parse(e,l,o,{locale:i,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(xo(u)&&(!r||e===Pe(u,l,t)))return u}return null}function xo(e,n){return v.isValid(e)&&!v.isBefore(e,new Date("1/1/1800"))}function Pe(e,n,t){if(t==="en")return v.format(e,n,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=t?jr(t):void 0;return t&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(t,'"].')),r=r||jr(Ki()),v.format(e,n,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function vt(e,n){var t=n.dateFormat,r=n.locale,o=Array.isArray(t)&&t.length>0?t[0]:t;return e&&Pe(e,o,r)||""}var Ac=" - ";function Sg(e,n,t){if(!e)return"";var r=vt(e,t),o=n?vt(n,t):"";return"".concat(r).concat(Ac).concat(o)}function xg(e,n){if(!e?.length)return"";var t=e[0]?vt(e[0],n):"";if(e.length===1)return t;if(e.length===2&&e[1]){var r=vt(e[1],n);return"".concat(t,", ").concat(r)}var o=e.length-1;return"".concat(t," (+").concat(o,")")}function qi(e,n){var t=n.hour,r=t===void 0?0:t,o=n.minute,i=o===void 0?0:o,a=n.second,s=a===void 0?0:a;return v.setHours(v.setMinutes(v.setSeconds(e,s),i),r)}function kg(e){return v.getISOWeek(e)}function Dg(e,n){return Pe(e,"ddd",n)}function ko(e){return v.startOfDay(e)}function Xt(e,n,t){var r=jr(n||Ki());return v.startOfWeek(e,{locale:r,weekStartsOn:t})}function Vt(e){return v.startOfMonth(e)}function pn(e){return v.startOfYear(e)}function Mc(e){return v.startOfQuarter(e)}function Pc(){return v.startOfDay(Se())}function Ic(e){return v.endOfDay(e)}function Cg(e){return v.endOfWeek(e)}function Eg(e){return v.endOfMonth(e)}function Lt(e,n){return e&&n?v.isSameYear(e,n):!e&&!n}function tt(e,n){return e&&n?v.isSameMonth(e,n):!e&&!n}function Do(e,n){return e&&n?v.isSameQuarter(e,n):!e&&!n}function ge(e,n){return e&&n?v.isSameDay(e,n):!e&&!n}function hr(e,n){return e&&n?v.isEqual(e,n):!e&&!n}function hn(e,n,t){var r,o=v.startOfDay(n),i=v.endOfDay(t);try{r=v.isWithinInterval(e,{start:o,end:i})}catch{r=!1}return r}function Ki(){var e=Oc();return e.__localeId__}function jr(e){if(typeof e=="string"){var n=Oc();return n.__localeData__?n.__localeData__[e]:void 0}else return e}function Tg(e,n,t){return n(Pe(e,"EEEE",t))}function Og(e,n){return Pe(e,"EEEEEE",n)}function Ag(e,n){return Pe(e,"EEE",n)}function Gi(e,n){return Pe(v.setMonth(Se(),e),"LLLL",n)}function Nc(e,n){return Pe(v.setMonth(Se(),e),"LLL",n)}function Mg(e,n){return Pe(v.setQuarter(Se(),e),"QQQ",n)}function yt(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.excludeDateIntervals,s=t.includeDates,c=t.includeDateIntervals,l=t.filterDate;return mn(e,{minDate:r,maxDate:o})||i&&i.some(function(u){return u instanceof Date?ge(e,u):ge(e,u.date)})||a&&a.some(function(u){var d=u.start,f=u.end;return v.isWithinInterval(e,{start:d,end:f})})||s&&!s.some(function(u){return ge(e,u)})||c&&!c.some(function(u){var d=u.start,f=u.end;return v.isWithinInterval(e,{start:d,end:f})})||l&&!l(Se(e))||!1}function Qi(e,n){var t=n===void 0?{}:n,r=t.excludeDates,o=t.excludeDateIntervals;return o&&o.length>0?o.some(function(i){var a=i.start,s=i.end;return v.isWithinInterval(e,{start:a,end:s})}):r&&r.some(function(i){var a;return i instanceof Date?ge(e,i):ge(e,(a=i.date)!==null&&a!==void 0?a:new Date)})||!1}function Rc(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate;return mn(e,{minDate:r?v.startOfMonth(r):void 0,maxDate:o?v.endOfMonth(o):void 0})||i?.some(function(c){return tt(e,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return tt(e,c)})||s&&!s(Se(e))||!1}function Co(e,n,t,r){var o=v.getYear(e),i=v.getMonth(e),a=v.getYear(n),s=v.getMonth(n),c=v.getYear(r);return o===a&&o===c?i<=t&&t<=s:o<a?c===o&&i<=t||c===a&&s>=t||c<a&&c>o:!1}function Pg(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates;return mn(e,{minDate:r,maxDate:o})||i&&i.some(function(s){return tt(s instanceof Date?s:s.date,e)})||a&&!a.some(function(s){return tt(s,e)})||!1}function Eo(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate;return mn(e,{minDate:r,maxDate:o})||i?.some(function(c){return Do(e,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return Do(e,c)})||s&&!s(Se(e))||!1}function To(e,n,t){if(!n||!t||!v.isValid(n)||!v.isValid(t))return!1;var r=v.getYear(n),o=v.getYear(t);return r<=e&&o>=e}function Oo(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate,c=new Date(e,0,1);return mn(c,{minDate:r?v.startOfYear(r):void 0,maxDate:o?v.endOfYear(o):void 0})||i?.some(function(l){return Lt(c,l instanceof Date?l:l.date)})||a&&!a.some(function(l){return Lt(c,l)})||s&&!s(Se(c))||!1}function Ao(e,n,t,r){var o=v.getYear(e),i=v.getQuarter(e),a=v.getYear(n),s=v.getQuarter(n),c=v.getYear(r);return o===a&&o===c?i<=t&&t<=s:o<a?c===o&&i<=t||c===a&&s>=t||c<a&&c>o:!1}function mn(e,n){var t,r=n===void 0?{}:n,o=r.minDate,i=r.maxDate;return(t=o&&v.differenceInCalendarDays(e,o)<0||i&&v.differenceInCalendarDays(e,i)>0)!==null&&t!==void 0?t:!1}function $c(e,n){return n.some(function(t){return v.getHours(t)===v.getHours(e)&&v.getMinutes(t)===v.getMinutes(e)&&v.getSeconds(t)===v.getSeconds(e)})}function Lc(e,n){var t=n===void 0?{}:n,r=t.excludeTimes,o=t.includeTimes,i=t.filterTime;return r&&$c(e,r)||o&&!$c(e,o)||i&&!i(e)||!1}function jc(e,n){var t=n.minTime,r=n.maxTime;if(!t||!r)throw new Error("Both minTime and maxTime props required");var o=Se();o=v.setHours(o,v.getHours(e)),o=v.setMinutes(o,v.getMinutes(e)),o=v.setSeconds(o,v.getSeconds(e));var i=Se();i=v.setHours(i,v.getHours(t)),i=v.setMinutes(i,v.getMinutes(t)),i=v.setSeconds(i,v.getSeconds(t));var a=Se();a=v.setHours(a,v.getHours(r)),a=v.setMinutes(a,v.getMinutes(r)),a=v.setSeconds(a,v.getSeconds(r));var s;try{s=!v.isWithinInterval(o,{start:i,end:a})}catch{s=!1}return s}function zc(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.includeDates,i=v.subMonths(e,1);return r&&v.differenceInCalendarMonths(r,i)>0||o&&o.every(function(a){return v.differenceInCalendarMonths(a,i)>0})||!1}function Bc(e,n){var t=n===void 0?{}:n,r=t.maxDate,o=t.includeDates,i=v.addMonths(e,1);return r&&v.differenceInCalendarMonths(i,r)>0||o&&o.every(function(a){return v.differenceInCalendarMonths(i,a)>0})||!1}function Ig(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.includeDates,i=v.startOfYear(e),a=v.subQuarters(i,1);return r&&v.differenceInCalendarQuarters(r,a)>0||o&&o.every(function(s){return v.differenceInCalendarQuarters(s,a)>0})||!1}function Ng(e,n){var t=n===void 0?{}:n,r=t.maxDate,o=t.includeDates,i=v.endOfYear(e),a=v.addQuarters(i,1);return r&&v.differenceInCalendarQuarters(a,r)>0||o&&o.every(function(s){return v.differenceInCalendarQuarters(a,s)>0})||!1}function Yc(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.includeDates,i=v.subYears(e,1);return r&&v.differenceInCalendarYears(r,i)>0||o&&o.every(function(a){return v.differenceInCalendarYears(a,i)>0})||!1}function Rg(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.yearItemNumber,i=o===void 0?fn:o,a=pn(v.subYears(e,i)),s=er(a,i).endPeriod,c=r&&v.getYear(r);return c&&c>s||!1}function Fc(e,n){var t=n===void 0?{}:n,r=t.maxDate,o=t.includeDates,i=v.addYears(e,1);return r&&v.differenceInCalendarYears(i,r)>0||o&&o.every(function(a){return v.differenceInCalendarYears(i,a)>0})||!1}function $g(e,n){var t=n===void 0?{}:n,r=t.maxDate,o=t.yearItemNumber,i=o===void 0?fn:o,a=v.addYears(e,i),s=er(a,i).startPeriod,c=r&&v.getYear(r);return c&&c<s||!1}function Vc(e){var n=e.minDate,t=e.includeDates;if(t&&n){var r=t.filter(function(o){return v.differenceInCalendarDays(o,n)>=0});return v.min(r)}else return t?v.min(t):n}function Uc(e){var n=e.maxDate,t=e.includeDates;if(t&&n){var r=t.filter(function(o){return v.differenceInCalendarDays(o,n)<=0});return v.max(r)}else return t?v.max(t):n}function Hc(e,n){var t;e===void 0&&(e=[]),n===void 0&&(n="react-datepicker__day--highlighted");for(var r=new Map,o=0,i=e.length;o<i;o++){var a=e[o];if(v.isDate(a)){var s=Pe(a,"MM.dd.yyyy"),c=r.get(s)||[];c.includes(n)||(c.push(n),r.set(s,c))}else if(typeof a=="object"){var l=Object.keys(a),u=(t=l[0])!==null&&t!==void 0?t:"",d=a[u];if(typeof u=="string"&&Array.isArray(d))for(var f=0,m=d.length;f<m;f++){var g=d[f];if(g){var s=Pe(g,"MM.dd.yyyy"),c=r.get(s)||[];c.includes(u)||(c.push(u),r.set(s,c))}}}}return r}function Lg(e,n){return e.length!==n.length?!1:e.every(function(t,r){return t===n[r]})}function jg(e,n){e===void 0&&(e=[]),n===void 0&&(n="react-datepicker__day--holidays");var t=new Map;return e.forEach(function(r){var o=r.date,i=r.holidayName;if(v.isDate(o)){var a=Pe(o,"MM.dd.yyyy"),s=t.get(a)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===n&&Lg(s.holidayNames,[i]))){s.className=n;var c=s.holidayNames;s.holidayNames=c?$t($t([],c,!0),[i],!1):[i],t.set(a,s)}}}),t}function zg(e,n,t,r,o){for(var i=o.length,a=[],s=0;s<i;s++){var c=e,l=o[s];l&&(c=v.addHours(c,v.getHours(l)),c=v.addMinutes(c,v.getMinutes(l)),c=v.addSeconds(c,v.getSeconds(l)));var u=v.addMinutes(e,(t+1)*r);v.isAfter(c,n)&&v.isBefore(c,u)&&l!=null&&a.push(l)}return a}function Wc(e){return e<10?"0".concat(e):"".concat(e)}function er(e,n){n===void 0&&(n=fn);var t=Math.ceil(v.getYear(e)/n)*n,r=t-(n-1);return{startPeriod:r,endPeriod:t}}function Bg(e){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+t-+n)/36e5)}function Zc(e){var n=e.getSeconds(),t=e.getMilliseconds();return v.toDate(e.getTime()-n*1e3-t)}function Yg(e,n){return Zc(e).getTime()===Zc(n).getTime()}function qc(e){if(!v.isDate(e))throw new Error("Invalid date");var n=new Date(e);return n.setHours(0,0,0,0),n}function Kc(e,n){if(!v.isDate(e)||!v.isDate(n))throw new Error("Invalid date received");var t=qc(e),r=qc(n);return v.isBefore(t,r)}function Gc(e){return e.key===G.Space}var Fg=function(e){Ke(n,e);function n(t){var r=e.call(this,t)||this;return r.inputRef=b.createRef(),r.onTimeChange=function(o){var i,a;r.setState({time:o});var s=r.props.date,c=s instanceof Date&&!isNaN(+s),l=c?s:new Date;if(o?.includes(":")){var u=o.split(":"),d=u[0],f=u[1];l.setHours(Number(d)),l.setMinutes(Number(f))}(a=(i=r.props).onChange)===null||a===void 0||a.call(i,l)},r.renderTimeInput=function(){var o=r.state.time,i=r.props,a=i.date,s=i.timeString,c=i.customTimeInput;return c?b.cloneElement(c,{date:a,value:o,onChange:r.onTimeChange}):b.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var l;(l=r.inputRef.current)===null||l===void 0||l.focus()},required:!0,value:o,onChange:function(l){r.onTimeChange(l.target.value||s)}})},r.state={time:r.props.timeString},r}return n.getDerivedStateFromProps=function(t,r){return t.timeString!==r.time?{time:t.timeString}:null},n.prototype.render=function(){return b.createElement("div",{className:"react-datepicker__input-time-container"},b.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),b.createElement("div",{className:"react-datepicker-time__input-container"},b.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},n}(b.Component),Vg=function(e){Ke(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.dayEl=b.createRef(),t.handleClick=function(r){!t.isDisabled()&&t.props.onClick&&t.props.onClick(r)},t.handleMouseEnter=function(r){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(r)},t.handleOnKeyDown=function(r){var o,i,a=r.key;a===G.Space&&(r.preventDefault(),r.key=G.Enter),(i=(o=t.props).handleOnKeyDown)===null||i===void 0||i.call(o,r)},t.isSameDay=function(r){return ge(t.props.day,r)},t.isKeyboardSelected=function(){var r;if(t.props.disabledKeyboardNavigation)return!1;var o=t.props.selectsMultiple?(r=t.props.selectedDates)===null||r===void 0?void 0:r.some(function(a){return t.isSameDayOrWeek(a)}):t.isSameDayOrWeek(t.props.selected),i=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!o&&t.isSameDayOrWeek(t.props.preSelection)&&!i},t.isDisabled=function(r){return r===void 0&&(r=t.props.day),yt(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(){return Qi(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return ge(t.props.day,Xt(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(r){return t.props.showWeekPicker&&ge(r,Xt(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(r){return t.isSameDay(r)||t.isSameWeek(r)},t.getHighLightedClass=function(){var r=t.props,o=r.day,i=r.highlightDates;if(!i)return!1;var a=Pe(o,"MM.dd.yyyy");return i.get(a)},t.getHolidaysClass=function(){var r,o=t.props,i=o.day,a=o.holidays;if(!a)return[void 0];var s=Pe(i,"MM.dd.yyyy");return a.has(s)?[(r=a.get(s))===null||r===void 0?void 0:r.className]:[void 0]},t.isInRange=function(){var r=t.props,o=r.day,i=r.startDate,a=r.endDate;return!i||!a?!1:hn(o,i,a)},t.isInSelectingRange=function(){var r,o=t.props,i=o.day,a=o.selectsStart,s=o.selectsEnd,c=o.selectsRange,l=o.selectsDisabledDaysInRange,u=o.startDate,d=o.endDate,f=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;return!(a||s||c)||!f||!l&&t.isDisabled()?!1:a&&d&&(v.isBefore(f,d)||hr(f,d))?hn(i,f,d):s&&u&&(v.isAfter(f,u)||hr(f,u))||c&&u&&!d&&(v.isAfter(f,u)||hr(f,u))?hn(i,u,f):!1},t.isSelectingRangeStart=function(){var r;if(!t.isInSelectingRange())return!1;var o=t.props,i=o.day,a=o.startDate,s=o.selectsStart,c=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;return s?ge(i,c):ge(i,a)},t.isSelectingRangeEnd=function(){var r;if(!t.isInSelectingRange())return!1;var o=t.props,i=o.day,a=o.endDate,s=o.selectsEnd,c=o.selectsRange,l=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;return s||c?ge(i,l):ge(i,a)},t.isRangeStart=function(){var r=t.props,o=r.day,i=r.startDate,a=r.endDate;return!i||!a?!1:ge(i,o)},t.isRangeEnd=function(){var r=t.props,o=r.day,i=r.startDate,a=r.endDate;return!i||!a?!1:ge(a,o)},t.isWeekend=function(){var r=v.getDay(t.props.day);return r===0||r===6},t.isAfterMonth=function(){return t.props.month!==void 0&&(t.props.month+1)%12===v.getMonth(t.props.day)},t.isBeforeMonth=function(){return t.props.month!==void 0&&(v.getMonth(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(Se())},t.isSelected=function(){var r;return t.props.selectsMultiple?(r=t.props.selectedDates)===null||r===void 0?void 0:r.some(function(o){return t.isSameDayOrWeek(o)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(r){var o=t.props.dayClassName?t.props.dayClassName(r):void 0;return Ze("react-datepicker__day",o,"react-datepicker__day--"+Dg(t.props.day),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var r=t.props,o=r.day,i=r.ariaLabelPrefixWhenEnabled,a=i===void 0?"Choose":i,s=r.ariaLabelPrefixWhenDisabled,c=s===void 0?"Not available":s,l=t.isDisabled()||t.isExcluded()?c:a;return"".concat(l," ").concat(Pe(o,"PPPP",t.props.locale))},t.getTitle=function(){var r=t.props,o=r.day,i=r.holidays,a=i===void 0?new Map:i,s=r.excludeDates,c=Pe(o,"MM.dd.yyyy"),l=[];return a.has(c)&&l.push.apply(l,a.get(c).holidayNames),t.isExcluded()&&l.push(s?.filter(function(u){return u instanceof Date?ge(u,o):ge(u?.date,o)}).map(function(u){if(!(u instanceof Date))return u?.message})),l.join(", ")},t.getTabIndex=function(){var r=t.props.selected,o=t.props.preSelection,i=!(t.props.showWeekPicker&&(t.props.showWeekNumber||!t.isStartOfWeek()))&&(t.isKeyboardSelected()||t.isSameDay(r)&&ge(o,r))?0:-1;return i},t.handleFocusDay=function(){var r;t.shouldFocusDay()&&((r=t.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(v.getDate(t.props.day),t.props.day):v.getDate(t.props.day)},t.render=function(){return b.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"option",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&b.createElement("span",{className:"overlay"},t.getTitle()))},t}return n.prototype.componentDidMount=function(){this.handleFocusDay()},n.prototype.componentDidUpdate=function(){this.handleFocusDay()},n.prototype.shouldFocusDay=function(){var t=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(t=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(t=!1),this.isDayActiveElement()&&(t=!0),this.isDuplicateDay()&&(t=!1)),t},n.prototype.isDayActiveElement=function(){var t,r,o;return((r=(t=this.props.containerRef)===null||t===void 0?void 0:t.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((o=document.activeElement)===null||o===void 0?void 0:o.classList.contains("react-datepicker__day"))},n.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},n}(b.Component),Ug=function(e){Ke(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.weekNumberEl=b.createRef(),t.handleClick=function(r){t.props.onClick&&t.props.onClick(r)},t.handleOnKeyDown=function(r){var o,i,a=r.key;a===G.Space&&(r.preventDefault(),r.key=G.Enter),(i=(o=t.props).handleOnKeyDown)===null||i===void 0||i.call(o,r)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!ge(t.props.date,t.props.selected)&&ge(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||ge(t.props.date,t.props.selected)&&ge(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(r){var o=!1;t.getTabIndex()===0&&!r?.isInputFocused&&ge(t.props.date,t.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(o=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(o=!0)),o&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return Object.defineProperty(n,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},n.prototype.componentDidUpdate=function(t){this.handleFocusWeekNumber(t)},n.prototype.render=function(){var t=this.props,r=t.weekNumber,o=t.isWeekDisabled,i=t.ariaLabelPrefix,a=i===void 0?n.defaultProps.ariaLabelPrefix:i,s=t.onClick,c={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!s&&!o,"react-datepicker__week-number--selected":!!s&&ge(this.props.date,this.props.selected)};return b.createElement("div",{ref:this.weekNumberEl,className:Ze(c),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},r)},n}(b.Component),Hg=function(e){Ke(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.isDisabled=function(r){return yt(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(r,o){t.props.onDayClick&&t.props.onDayClick(r,o)},t.handleDayMouseEnter=function(r){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(r)},t.handleWeekClick=function(r,o,i){for(var a,s,c,l=new Date(r),u=0;u<7;u++){var d=new Date(r);d.setDate(d.getDate()+u);var f=!t.isDisabled(d);if(f){l=d;break}}typeof t.props.onWeekSelect=="function"&&t.props.onWeekSelect(l,o,i),t.props.showWeekPicker&&t.handleDayClick(l,i),((a=t.props.shouldCloseOnSelect)!==null&&a!==void 0?a:n.defaultProps.shouldCloseOnSelect)&&((c=(s=t.props).setOpen)===null||c===void 0||c.call(s,!1))},t.formatWeekNumber=function(r){return t.props.formatWeekNumber?t.props.formatWeekNumber(r):kg(r)},t.isWeekDisabled=function(){for(var r=t.startOfWeek(),o=v.addDays(r,6),i=new Date(r);i<=o;){if(!t.isDisabled(i))return!1;i=v.addDays(i,1)}return!0},t.renderDays=function(){var r=t.startOfWeek(),o=[],i=t.formatWeekNumber(r);if(t.props.showWeekNumber){var a=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,r,i):void 0;o.push(b.createElement(Ug,me({key:"W"},n.defaultProps,t.props,{weekNumber:i,isWeekDisabled:t.isWeekDisabled(),date:r,onClick:a})))}return o.concat([0,1,2,3,4,5,6].map(function(s){var c=v.addDays(r,s);return b.createElement(Vg,me({},n.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:c.valueOf(),day:c,onClick:t.handleDayClick.bind(t,c),onMouseEnter:t.handleDayMouseEnter.bind(t,c)}))}))},t.startOfWeek=function(){return Xt(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!ge(t.startOfWeek(),t.props.selected)&&ge(t.startOfWeek(),t.props.preSelection)},t}return Object.defineProperty(n,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),n.prototype.render=function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":ge(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return b.createElement("div",{className:Ze(t)},this.renderDays())},n}(b.Component),gn,Wg=6,zr={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},Ji=(gn={},gn[zr.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},gn[zr.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},gn[zr.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},gn),Mo=1;function Qc(e,n){return e?zr.FOUR_COLUMNS:n?zr.TWO_COLUMNS:zr.THREE_COLUMNS}var Zg=function(e){Ke(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.MONTH_REFS=$t([],Array(12),!0).map(function(){return b.createRef()}),t.QUARTER_REFS=$t([],Array(4),!0).map(function(){return b.createRef()}),t.isDisabled=function(r){return yt(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(r){return Qi(r,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(r,o){var i,a;(a=(i=t.props).onDayClick)===null||a===void 0||a.call(i,r,o,t.props.orderInDisplay)},t.handleDayMouseEnter=function(r){var o,i;(i=(o=t.props).onDayMouseEnter)===null||i===void 0||i.call(o,r)},t.handleMouseLeave=function(){var r,o;(o=(r=t.props).onMouseLeave)===null||o===void 0||o.call(r)},t.isRangeStartMonth=function(r){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:tt(v.setMonth(i,r),a)},t.isRangeStartQuarter=function(r){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:Do(v.setQuarter(i,r),a)},t.isRangeEndMonth=function(r){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:tt(v.setMonth(i,r),s)},t.isRangeEndQuarter=function(r){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:Do(v.setQuarter(i,r),s)},t.isInSelectingRangeMonth=function(r){var o,i=t.props,a=i.day,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange,u=i.startDate,d=i.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?Co(f,d,r,a):c&&u||l&&u&&!d?Co(u,f,r,a):!1},t.isSelectingMonthRangeStart=function(r){var o;if(!t.isInSelectingRangeMonth(r))return!1;var i=t.props,a=i.day,s=i.startDate,c=i.selectsStart,l=v.setMonth(a,r),u=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c?tt(l,u):tt(l,s)},t.isSelectingMonthRangeEnd=function(r){var o;if(!t.isInSelectingRangeMonth(r))return!1;var i=t.props,a=i.day,s=i.endDate,c=i.selectsEnd,l=i.selectsRange,u=v.setMonth(a,r),d=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c||l?tt(u,d):tt(u,s)},t.isInSelectingRangeQuarter=function(r){var o,i=t.props,a=i.day,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange,u=i.startDate,d=i.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?Ao(f,d,r,a):c&&u||l&&u&&!d?Ao(u,f,r,a):!1},t.isWeekInMonth=function(r){var o=t.props.day,i=v.addDays(r,6);return tt(r,o)||tt(i,o)},t.isCurrentMonth=function(r,o){return v.getYear(r)===v.getYear(Se())&&o===v.getMonth(Se())},t.isCurrentQuarter=function(r,o){return v.getYear(r)===v.getYear(Se())&&o===v.getQuarter(Se())},t.isSelectedMonth=function(r,o,i){return v.getMonth(i)===o&&v.getYear(r)===v.getYear(i)},t.isSelectMonthInList=function(r,o,i){return i.some(function(a){return t.isSelectedMonth(r,o,a)})},t.isSelectedQuarter=function(r,o,i){return v.getQuarter(r)===o&&v.getYear(r)===v.getYear(i)},t.isMonthSelected=function(){var r=t.props,o=r.day,i=r.selected,a=r.selectedDates,s=r.selectsMultiple,c=v.getMonth(o);return s?a?.some(function(l){return t.isSelectedMonth(o,c,l)}):!!i&&t.isSelectedMonth(o,c,i)},t.renderWeeks=function(){for(var r=[],o=t.props.fixedHeight,i=0,a=!1,s=Xt(Vt(t.props.day),t.props.locale,t.props.calendarStartDay),c=function(g){return t.props.showWeekPicker?Xt(g,t.props.locale,t.props.calendarStartDay):t.props.preSelection},l=function(g){return t.props.showWeekPicker?Xt(g,t.props.locale,t.props.calendarStartDay):t.props.selected},u=t.props.selected?l(t.props.selected):void 0,d=t.props.preSelection?c(t.props.preSelection):void 0;r.push(b.createElement(Hg,me({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:i,day:s,month:v.getMonth(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:u,preSelection:d,showWeekNumber:t.props.showWeekNumbers}))),!a;){i++,s=v.addWeeks(s,1);var f=o&&i>=Wg,m=!o&&!t.isWeekInMonth(s);if(f||m)if(t.props.peekNextMonth)a=!0;else break}return r},t.onMonthClick=function(r,o){var i=t.isMonthDisabledForLabelDate(o),a=i.isDisabled,s=i.labelDate;a||t.handleDayClick(Vt(s),r)},t.onMonthMouseEnter=function(r){var o=t.isMonthDisabledForLabelDate(r),i=o.isDisabled,a=o.labelDate;i||t.handleDayMouseEnter(Vt(a))},t.handleMonthNavigation=function(r,o){var i,a,s,c;(a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,o),(c=(s=t.MONTH_REFS[r])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus()},t.handleKeyboardNavigation=function(r,o,i){var a,s=t.props,c=s.selected,l=s.preSelection,u=s.setPreSelection,d=s.minDate,f=s.maxDate,m=s.showFourColumnMonthYearPicker,g=s.showTwoColumnMonthYearPicker;if(l){var p=Qc(m,g),y=t.getVerticalOffset(p),k=(a=Ji[p])===null||a===void 0?void 0:a.grid,S=function(N,q,V){var j,z,h=q,P=V;switch(N){case G.ArrowRight:h=v.addMonths(q,Mo),P=V===11?0:V+Mo;break;case G.ArrowLeft:h=v.subMonths(q,Mo),P=V===0?11:V-Mo;break;case G.ArrowUp:h=v.subMonths(q,y),P=!((j=k?.[0])===null||j===void 0)&&j.includes(V)?V+12-y:V-y;break;case G.ArrowDown:h=v.addMonths(q,y),P=!((z=k?.[k.length-1])===null||z===void 0)&&z.includes(V)?V-12+y:V+y;break}return{newCalculatedDate:h,newCalculatedMonth:P}},E=function(N,q,V){for(var j=40,z=N,h=!1,P=0,A=S(z,q,V),Y=A.newCalculatedDate,B=A.newCalculatedMonth;!h;){if(P>=j){Y=q,B=V;break}if(d&&Y<d){z=G.ArrowRight;var Q=S(z,Y,B);Y=Q.newCalculatedDate,B=Q.newCalculatedMonth}if(f&&Y>f){z=G.ArrowLeft;var Q=S(z,Y,B);Y=Q.newCalculatedDate,B=Q.newCalculatedMonth}if(Pg(Y,t.props)){var Q=S(z,Y,B);Y=Q.newCalculatedDate,B=Q.newCalculatedMonth}else h=!0;P++}return{newCalculatedDate:Y,newCalculatedMonth:B}};if(o===G.Enter){t.isMonthDisabled(i)||(t.onMonthClick(r,i),u?.(c));return}var C=E(o,l,i),x=C.newCalculatedDate,O=C.newCalculatedMonth;switch(o){case G.ArrowRight:case G.ArrowLeft:case G.ArrowUp:case G.ArrowDown:t.handleMonthNavigation(O,x);break}}},t.getVerticalOffset=function(r){var o,i;return(i=(o=Ji[r])===null||o===void 0?void 0:o.verticalNavigationOffset)!==null&&i!==void 0?i:0},t.onMonthKeyDown=function(r,o){var i=t.props,a=i.disabledKeyboardNavigation,s=i.handleOnMonthKeyDown,c=r.key;c!==G.Tab&&r.preventDefault(),a||t.handleKeyboardNavigation(r,c,o),s&&s(r)},t.onQuarterClick=function(r,o){var i=v.setQuarter(t.props.day,o);Eo(i,t.props)||t.handleDayClick(Mc(i),r)},t.onQuarterMouseEnter=function(r){var o=v.setQuarter(t.props.day,r);Eo(o,t.props)||t.handleDayMouseEnter(Mc(o))},t.handleQuarterNavigation=function(r,o){var i,a,s,c;t.isDisabled(o)||t.isExcluded(o)||((a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,o),(c=(s=t.QUARTER_REFS[r-1])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus())},t.onQuarterKeyDown=function(r,o){var i,a,s=r.key;if(!t.props.disabledKeyboardNavigation)switch(s){case G.Enter:t.onQuarterClick(r,o),(a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,t.props.selected);break;case G.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===4?1:o+1,v.addQuarters(t.props.preSelection,1));break;case G.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===1?4:o-1,v.subQuarters(t.props.preSelection,1));break}},t.isMonthDisabledForLabelDate=function(r){var o,i=t.props,a=i.day,s=i.minDate,c=i.maxDate,l=i.excludeDates,u=i.includeDates,d=v.setMonth(a,r);return{isDisabled:(o=(s||c||l||u)&&Rc(d,t.props))!==null&&o!==void 0?o:!1,labelDate:d}},t.isMonthDisabled=function(r){var o=t.isMonthDisabledForLabelDate(r).isDisabled;return o},t.getMonthClassNames=function(r){var o=t.props,i=o.day,a=o.startDate,s=o.endDate,c=o.preSelection,l=o.monthClassName,u=l?l(v.setMonth(i,r)):void 0,d=t.getSelection();return Ze("react-datepicker__month-text","react-datepicker__month-".concat(r),u,{"react-datepicker__month-text--disabled":t.isMonthDisabled(r),"react-datepicker__month-text--selected":d?t.isSelectMonthInList(i,r,d):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&c&&t.isSelectedMonth(i,r,c)&&!t.isMonthSelected()&&!t.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":a&&s?Co(a,s,r,i):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(r),"react-datepicker__month-text--range-end":t.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":t.isCurrentMonth(i,r)})},t.getTabIndex=function(r){if(t.props.preSelection==null)return"-1";var o=v.getMonth(t.props.preSelection),i=t.isMonthDisabledForLabelDate(o).isDisabled,a=r===o&&!(i||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getQuarterTabIndex=function(r){if(t.props.preSelection==null)return"-1";var o=v.getQuarter(t.props.preSelection),i=Eo(t.props.day,t.props),a=r===o&&!(i||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getAriaLabel=function(r){var o=t.props,i=o.chooseDayAriaLabelPrefix,a=i===void 0?"Choose":i,s=o.disabledDayAriaLabelPrefix,c=s===void 0?"Not available":s,l=o.day,u=o.locale,d=v.setMonth(l,r),f=t.isDisabled(d)||t.isExcluded(d)?c:a;return"".concat(f," ").concat(Pe(d,"MMMM yyyy",u))},t.getQuarterClassNames=function(r){var o=t.props,i=o.day,a=o.startDate,s=o.endDate,c=o.selected,l=o.minDate,u=o.maxDate,d=o.excludeDates,f=o.includeDates,m=o.filterDate,g=o.preSelection,p=o.disabledKeyboardNavigation,y=(l||u||d||f||m)&&Eo(v.setQuarter(i,r),t.props);return Ze("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":y,"react-datepicker__quarter-text--selected":c?t.isSelectedQuarter(i,r,c):void 0,"react-datepicker__quarter-text--keyboard-selected":!p&&g&&t.isSelectedQuarter(i,r,g)&&!y,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":a&&s?Ao(a,s,r,i):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(r),"react-datepicker__quarter-text--today":t.isCurrentQuarter(i,r)})},t.getMonthContent=function(r){var o=t.props,i=o.showFullMonthYearPicker,a=o.renderMonthContent,s=o.locale,c=o.day,l=Nc(r,s),u=Gi(r,s);return a?a(r,l,u,c):i?u:l},t.getQuarterContent=function(r){var o,i=t.props,a=i.renderQuarterContent,s=i.locale,c=Mg(r,s);return(o=a?.(r,c))!==null&&o!==void 0?o:c},t.renderMonths=function(){var r,o=t.props,i=o.showTwoColumnMonthYearPicker,a=o.showFourColumnMonthYearPicker,s=o.day,c=o.selected,l=(r=Ji[Qc(a,i)])===null||r===void 0?void 0:r.grid;return l?.map(function(u,d){return b.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(f,m){return b.createElement("div",{ref:t.MONTH_REFS[f],key:m,onClick:function(g){t.onMonthClick(g,f)},onKeyDown:function(g){Gc(g)&&(g.preventDefault(),g.key=G.Enter),t.onMonthKeyDown(g,f)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(f)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(f)}:void 0,tabIndex:Number(t.getTabIndex(f)),className:t.getMonthClassNames(f),"aria-disabled":t.isMonthDisabled(f),role:"option","aria-label":t.getAriaLabel(f),"aria-current":t.isCurrentMonth(s,f)?"date":void 0,"aria-selected":c?t.isSelectedMonth(s,f,c):void 0},t.getMonthContent(f))}))})},t.renderQuarters=function(){var r=t.props,o=r.day,i=r.selected,a=[1,2,3,4];return b.createElement("div",{className:"react-datepicker__quarter-wrapper"},a.map(function(s,c){return b.createElement("div",{key:c,ref:t.QUARTER_REFS[c],role:"option",onClick:function(l){t.onQuarterClick(l,s)},onKeyDown:function(l){t.onQuarterKeyDown(l,s)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(s)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(s)}:void 0,className:t.getQuarterClassNames(s),"aria-selected":i?t.isSelectedQuarter(o,s,i):void 0,tabIndex:Number(t.getQuarterTabIndex(s)),"aria-current":t.isCurrentQuarter(o,s)?"date":void 0},t.getQuarterContent(s))}))},t.getClassNames=function(){var r=t.props,o=r.selectingDate,i=r.selectsStart,a=r.selectsEnd,s=r.showMonthYearPicker,c=r.showQuarterYearPicker,l=r.showWeekPicker;return Ze("react-datepicker__month",{"react-datepicker__month--selecting-range":o&&(i||a)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":c},{"react-datepicker__weekPicker":l})},t}return n.prototype.getSelection=function(){var t=this.props,r=t.selected,o=t.selectedDates,i=t.selectsMultiple;if(i)return o;if(r)return[r]},n.prototype.render=function(){var t=this.props,r=t.showMonthYearPicker,o=t.showQuarterYearPicker,i=t.day,a=t.ariaLabelPrefix,s=a===void 0?"Month ":a,c=s?s.trim()+" ":"";return b.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Pe(i,"MMMM, yyyy",this.props.locale)),role:"listbox"},r?this.renderMonths():o?this.renderQuarters():this.renderWeeks())},n}(b.Component),qg=function(e){Ke(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.isSelectedMonth=function(r){return t.props.month===r},t.renderOptions=function(){return t.props.monthNames.map(function(r,o){return b.createElement("div",{className:t.isSelectedMonth(o)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:t.onChange.bind(t,o),"aria-selected":t.isSelectedMonth(o)?"true":void 0},t.isSelectedMonth(o)?b.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",r)})},t.onChange=function(r){return t.props.onChange(r)},t.handleClickOutside=function(){return t.props.onCancel()},t}return n.prototype.render=function(){return b.createElement(So,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},n}(b.Component),Kg=function(e){Ke(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(r){return r.map(function(o,i){return b.createElement("option",{key:o,value:i},o)})},t.renderSelectMode=function(r){return b.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(o){return t.onChange(parseInt(o.target.value))}},t.renderSelectOptions(r))},t.renderReadView=function(r,o){return b.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},b.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),b.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},o[t.props.month]))},t.renderDropdown=function(r){return b.createElement(qg,me({key:"dropdown"},t.props,{monthNames:r,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(r){var o=t.state.dropdownVisible,i=[t.renderReadView(!o,r)];return o&&i.unshift(t.renderDropdown(r)),i},t.onChange=function(r){t.toggleDropdown(),r!==t.props.month&&t.props.onChange(r)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return n.prototype.render=function(){var t=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(i){return Nc(i,t.props.locale)}:function(i){return Gi(i,t.props.locale)}),o;switch(this.props.dropdownMode){case"scroll":o=this.renderScrollMode(r);break;case"select":o=this.renderSelectMode(r);break}return b.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},o)},n}(b.Component);function Gg(e,n){for(var t=[],r=Vt(e),o=Vt(n);!v.isAfter(r,o);)t.push(Se(r)),r=v.addMonths(r,1);return t}var Qg=function(e){Ke(n,e);function n(t){var r=e.call(this,t)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(o){var i=v.getTime(o),a=Lt(r.props.date,o)&&tt(r.props.date,o);return b.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:i,onClick:r.onChange.bind(r,i),"aria-selected":a?"true":void 0},a?b.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Pe(o,r.props.dateFormat,r.props.locale))})},r.onChange=function(o){return r.props.onChange(o)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:Gg(r.props.minDate,r.props.maxDate)},r}return n.prototype.render=function(){var t=Ze({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return b.createElement(So,{className:t,onClickOutside:this.handleClickOutside},this.renderOptions())},n}(b.Component),Jg=function(e){Ke(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var r=Vt(t.props.minDate),o=Vt(t.props.maxDate),i=[];!v.isAfter(r,o);){var a=v.getTime(r);i.push(b.createElement("option",{key:a,value:a},Pe(r,t.props.dateFormat,t.props.locale))),r=v.addMonths(r,1)}return i},t.onSelectChange=function(r){t.onChange(parseInt(r.target.value))},t.renderSelectMode=function(){return b.createElement("select",{value:v.getTime(Vt(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(r){var o=Pe(t.props.date,t.props.dateFormat,t.props.locale);return b.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},b.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),b.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},o))},t.renderDropdown=function(){return b.createElement(Qg,me({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var r=t.state.dropdownVisible,o=[t.renderReadView(!r)];return r&&o.unshift(t.renderDropdown()),o},t.onChange=function(r){t.toggleDropdown();var o=Se(r);Lt(t.props.date,o)&&tt(t.props.date,o)||t.props.onChange(o)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return n.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return b.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)},n}(b.Component),Xg=function(e){Ke(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={height:null},t.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,o,i;t.list&&(t.list.scrollTop=(i=t.centerLi&&n.calcCenterPosition(t.props.monthRef?t.props.monthRef.clientHeight-((o=(r=t.header)===null||r===void 0?void 0:r.clientHeight)!==null&&o!==void 0?o:0):t.list.clientHeight,t.centerLi))!==null&&i!==void 0?i:0)})},t.handleClick=function(r){var o,i;(t.props.minTime||t.props.maxTime)&&jc(r,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&Lc(r,t.props)||(i=(o=t.props).onChange)===null||i===void 0||i.call(o,r)},t.isSelectedTime=function(r){return t.props.selected&&Yg(t.props.selected,r)},t.isDisabledTime=function(r){return(t.props.minTime||t.props.maxTime)&&jc(r,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&Lc(r,t.props)},t.liClasses=function(r){var o,i=["react-datepicker__time-list-item",t.props.timeClassName?t.props.timeClassName(r):void 0];return t.isSelectedTime(r)&&i.push("react-datepicker__time-list-item--selected"),t.isDisabledTime(r)&&i.push("react-datepicker__time-list-item--disabled"),t.props.injectTimes&&(v.getHours(r)*3600+v.getMinutes(r)*60+v.getSeconds(r))%(((o=t.props.intervals)!==null&&o!==void 0?o:n.defaultProps.intervals)*60)!==0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},t.handleOnKeyDown=function(r,o){var i,a;r.key===G.Space&&(r.preventDefault(),r.key=G.Enter),(r.key===G.ArrowUp||r.key===G.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===G.ArrowDown||r.key===G.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===G.Enter&&t.handleClick(o),(a=(i=t.props).handleOnKeyDown)===null||a===void 0||a.call(i,r)},t.renderTimes=function(){for(var r,o=[],i=typeof t.props.format=="string"?t.props.format:"p",a=(r=t.props.intervals)!==null&&r!==void 0?r:n.defaultProps.intervals,s=t.props.selected||t.props.openToDate||Se(),c=ko(s),l=t.props.injectTimes&&t.props.injectTimes.sort(function(y,k){return y.getTime()-k.getTime()}),u=60*Bg(s),d=u/a,f=0;f<d;f++){var m=v.addMinutes(c,f*a);if(o.push(m),l){var g=zg(c,m,f,a,l);o=o.concat(g)}}var p=o.reduce(function(y,k){return k.getTime()<=s.getTime()?k:y},o[0]);return o.map(function(y){return b.createElement("li",{key:y.valueOf(),onClick:t.handleClick.bind(t,y),className:t.liClasses(y),ref:function(k){y===p&&(t.centerLi=k)},onKeyDown:function(k){t.handleOnKeyDown(k,y)},tabIndex:y===p?0:-1,role:"option","aria-selected":t.isSelectedTime(y)?"true":void 0,"aria-disabled":t.isDisabledTime(y)?"true":void 0},Pe(y,i,t.props.locale))})},t.renderTimeCaption=function(){return t.props.showTimeCaption===!1?b.createElement(b.Fragment,null):b.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(t.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(r){t.header=r}},b.createElement("div",{className:"react-datepicker-time__header"},t.props.timeCaption))},t}return Object.defineProperty(n,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},n.prototype.componentWillUnmount=function(){var t;(t=this.resizeObserver)===null||t===void 0||t.disconnect()},n.prototype.observeDatePickerHeightChanges=function(){var t=this,r=this.props.monthRef;this.updateContainerHeight(),r&&(this.resizeObserver=new ResizeObserver(function(){t.updateContainerHeight()}),this.resizeObserver.observe(r))},n.prototype.updateContainerHeight=function(){this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},n.prototype.render=function(){var t=this,r,o=this.state.height;return b.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:n.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),b.createElement("div",{className:"react-datepicker__time"},b.createElement("div",{className:"react-datepicker__time-box"},b.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){t.list=i},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},n.calcCenterPosition=function(t,r){return r.offsetTop-(t/2-r.clientHeight/2)},n}(b.Component),Jc=3,ev=function(e){Ke(n,e);function n(t){var r=e.call(this,t)||this;return r.YEAR_REFS=$t([],Array(r.props.yearItemNumber),!0).map(function(){return b.createRef()}),r.isDisabled=function(o){return yt(o,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(o){return Qi(o,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var o;return(o=r.props.selectingDate)!==null&&o!==void 0?o:r.props.preSelection},r.updateFocusOnPaginate=function(o){var i=function(){var a,s;(s=(a=r.YEAR_REFS[o])===null||a===void 0?void 0:a.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(i)},r.handleYearClick=function(o,i){r.props.onDayClick&&r.props.onDayClick(o,i)},r.handleYearNavigation=function(o,i){var a,s,c,l,u=r.props,d=u.date,f=u.yearItemNumber;if(!(d===void 0||f===void 0)){var m=er(d,f).startPeriod;r.isDisabled(i)||r.isExcluded(i)||((s=(a=r.props).setPreSelection)===null||s===void 0||s.call(a,i),o-m<0?r.updateFocusOnPaginate(f-(m-o)):o-m>=f?r.updateFocusOnPaginate(Math.abs(f-(o-m))):(l=(c=r.YEAR_REFS[o-m])===null||c===void 0?void 0:c.current)===null||l===void 0||l.focus())}},r.isSameDay=function(o,i){return ge(o,i)},r.isCurrentYear=function(o){return o===v.getYear(Se())},r.isRangeStart=function(o){return r.props.startDate&&r.props.endDate&&Lt(v.setYear(Se(),o),r.props.startDate)},r.isRangeEnd=function(o){return r.props.startDate&&r.props.endDate&&Lt(v.setYear(Se(),o),r.props.endDate)},r.isInRange=function(o){return To(o,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(o){var i=r.props,a=i.selectsStart,s=i.selectsEnd,c=i.selectsRange,l=i.startDate,u=i.endDate;return!(a||s||c)||!r.selectingDate()?!1:a&&u?To(o,r.selectingDate(),u):s&&l||c&&l&&!u?To(o,l,r.selectingDate()):!1},r.isSelectingRangeStart=function(o){var i;if(!r.isInSelectingRange(o))return!1;var a=r.props,s=a.startDate,c=a.selectsStart,l=v.setYear(Se(),o);return c?Lt(l,(i=r.selectingDate())!==null&&i!==void 0?i:null):Lt(l,s??null)},r.isSelectingRangeEnd=function(o){var i;if(!r.isInSelectingRange(o))return!1;var a=r.props,s=a.endDate,c=a.selectsEnd,l=a.selectsRange,u=v.setYear(Se(),o);return c||l?Lt(u,(i=r.selectingDate())!==null&&i!==void 0?i:null):Lt(u,s??null)},r.isKeyboardSelected=function(o){if(!(r.props.date===void 0||r.props.selected==null||r.props.preSelection==null)){var i=r.props,a=i.minDate,s=i.maxDate,c=i.excludeDates,l=i.includeDates,u=i.filterDate,d=pn(v.setYear(r.props.date,o)),f=(a||s||c||l||u)&&Oo(o,r.props);return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!ge(d,pn(r.props.selected))&&ge(d,pn(r.props.preSelection))&&!f}},r.isSelectedYear=function(o){var i=r.props,a=i.selectsMultiple,s=i.selected,c=i.selectedDates;return a?c?.some(function(l){return o===v.getYear(l)}):!!s&&o===v.getYear(s)},r.onYearClick=function(o,i){var a=r.props.date;a!==void 0&&r.handleYearClick(pn(v.setYear(a,i)),o)},r.onYearKeyDown=function(o,i){var a,s,c=o.key,l=r.props,u=l.date,d=l.yearItemNumber,f=l.handleOnKeyDown;if(c!==G.Tab&&o.preventDefault(),!r.props.disabledKeyboardNavigation)switch(c){case G.Enter:if(r.props.selected==null)break;r.onYearClick(o,i),(s=(a=r.props).setPreSelection)===null||s===void 0||s.call(a,r.props.selected);break;case G.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(i+1,v.addYears(r.props.preSelection,1));break;case G.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(i-1,v.subYears(r.props.preSelection,1));break;case G.ArrowUp:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var m=er(u,d).startPeriod,g=Jc,p=i-g;if(p<m){var y=d%g;i>=m&&i<m+y?g=y:g+=y,p=i-g}r.handleYearNavigation(p,v.subYears(r.props.preSelection,g));break}case G.ArrowDown:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var k=er(u,d).endPeriod,g=Jc,p=i+g;if(p>k){var y=d%g;i<=k&&i>k-y?g=y:g+=y,p=i+g}r.handleYearNavigation(p,v.addYears(r.props.preSelection,g));break}}f&&f(o)},r.getYearClassNames=function(o){var i=r.props,a=i.date,s=i.minDate,c=i.maxDate,l=i.excludeDates,u=i.includeDates,d=i.filterDate,f=i.yearClassName;return Ze("react-datepicker__year-text","react-datepicker__year-".concat(o),a?f?.(v.setYear(a,o)):void 0,{"react-datepicker__year-text--selected":r.isSelectedYear(o),"react-datepicker__year-text--disabled":(s||c||l||u||d)&&Oo(o,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(o),"react-datepicker__year-text--range-start":r.isRangeStart(o),"react-datepicker__year-text--range-end":r.isRangeEnd(o),"react-datepicker__year-text--in-range":r.isInRange(o),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(o),"react-datepicker__year-text--today":r.isCurrentYear(o)})},r.getYearTabIndex=function(o){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var i=v.getYear(r.props.preSelection),a=Oo(o,r.props);return o===i&&!a?"0":"-1"},r.getYearContent=function(o){return r.props.renderYearContent?r.props.renderYearContent(o):o},r}return n.prototype.render=function(){var t=this,r=[],o=this.props,i=o.date,a=o.yearItemNumber,s=o.onYearMouseEnter,c=o.onYearMouseLeave;if(i===void 0)return null;for(var l=er(i,a),u=l.startPeriod,d=l.endPeriod,f=function(p){r.push(b.createElement("div",{ref:m.YEAR_REFS[p-u],onClick:function(y){t.onYearClick(y,p)},onKeyDown:function(y){Gc(y)&&(y.preventDefault(),y.key=G.Enter),t.onYearKeyDown(y,p)},tabIndex:Number(m.getYearTabIndex(p)),className:m.getYearClassNames(p),onMouseEnter:m.props.usePointerEvent?void 0:function(y){return s(y,p)},onPointerEnter:m.props.usePointerEvent?function(y){return s(y,p)}:void 0,onMouseLeave:m.props.usePointerEvent?void 0:function(y){return c(y,p)},onPointerLeave:m.props.usePointerEvent?function(y){return c(y,p)}:void 0,key:p,"aria-current":m.isCurrentYear(p)?"date":void 0},m.getYearContent(p)))},m=this,g=u;g<=d;g++)f(g);return b.createElement("div",{className:"react-datepicker__year"},b.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},n}(b.Component);function tv(e,n,t,r){for(var o=[],i=0;i<2*n+1;i++){var a=e+n-i,s=!0;t&&(s=v.getYear(t)<=a),r&&s&&(s=v.getYear(r)>=a),s&&o.push(a)}return o}var rv=function(e){Ke(n,e);function n(t){var r=e.call(this,t)||this;r.renderOptions=function(){var s=r.props.year,c=r.state.yearsList.map(function(d){return b.createElement("div",{className:s===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:r.onChange.bind(r,d),"aria-selected":s===d?"true":void 0},s===d?b.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),l=r.props.minDate?v.getYear(r.props.minDate):null,u=r.props.maxDate?v.getYear(r.props.maxDate):null;return(!u||!r.state.yearsList.find(function(d){return d===u}))&&c.unshift(b.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},b.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!l||!r.state.yearsList.find(function(d){return d===l}))&&c.push(b.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},b.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c},r.onChange=function(s){r.props.onChange(s)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(s){var c=r.state.yearsList.map(function(l){return l+s});r.setState({yearsList:c})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var o=t.yearDropdownItemNumber,i=t.scrollableYearDropdown,a=o||(i?10:5);return r.state={yearsList:tv(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=b.createRef(),r}return n.prototype.componentDidMount=function(){var t=this.dropdownRef.current;if(t){var r=t.children?Array.from(t.children):null,o=r?r.find(function(i){return i.ariaSelected}):null;t.scrollTop=o&&o instanceof HTMLElement?o.offsetTop+(o.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}},n.prototype.render=function(){var t=Ze({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return b.createElement(So,{className:t,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},n}(b.Component),nv=function(e){Ke(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var r=t.props.minDate?v.getYear(t.props.minDate):1900,o=t.props.maxDate?v.getYear(t.props.maxDate):2100,i=[],a=r;a<=o;a++)i.push(b.createElement("option",{key:a,value:a},a));return i},t.onSelectChange=function(r){t.onChange(parseInt(r.target.value))},t.renderSelectMode=function(){return b.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(r){return b.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(o){return t.toggleDropdown(o)}},b.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),b.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return b.createElement(rv,me({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var r=t.state.dropdownVisible,o=[t.renderReadView(!r)];return r&&o.unshift(t.renderDropdown()),o},t.onChange=function(r){t.toggleDropdown(),r!==t.props.year&&t.props.onChange(r)},t.toggleDropdown=function(r){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,r)})},t.handleYearChange=function(r,o){var i;(i=t.onSelect)===null||i===void 0||i.call(t,r,o),t.setOpen()},t.onSelect=function(r,o){var i,a;(a=(i=t.props).onSelect)===null||a===void 0||a.call(i,r,o)},t.setOpen=function(){var r,o;(o=(r=t.props).setOpen)===null||o===void 0||o.call(r,!0)},t}return n.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return b.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)},n}(b.Component),ov=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],iv=function(e){var n=(e.className||"").split(/\s+/);return ov.some(function(t){return n.indexOf(t)>=0})},av=function(e){Ke(n,e);function n(t){var r=e.call(this,t)||this;return r.monthContainer=void 0,r.handleClickOutside=function(o){r.props.onClickOutside(o)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(o){var i,a;iv(o.target)&&((a=(i=r.props).onDropdownFocus)===null||a===void 0||a.call(i,o))},r.getDateInView=function(){var o=r.props,i=o.preSelection,a=o.selected,s=o.openToDate,c=Vc(r.props),l=Uc(r.props),u=Se(),d=s||a||i;return d||(c&&v.isBefore(u,c)?c:l&&v.isAfter(u,l)?l:u)},r.increaseMonth=function(){r.setState(function(o){var i=o.date;return{date:v.addMonths(i,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(o){var i=o.date;return{date:v.subMonths(i,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(o,i,a){r.props.onSelect(o,i,a),r.props.setPreSelection&&r.props.setPreSelection(o)},r.handleDayMouseEnter=function(o){r.setState({selectingDate:o}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(o)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(o,i){r.setState({selectingDate:v.setYear(Se(),i)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(o,i)},r.handleYearMouseLeave=function(o,i){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(o,i)},r.handleYearChange=function(o){var i,a,s,c;(a=(i=r.props).onYearChange)===null||a===void 0||a.call(i,o),r.setState({isRenderAriaLiveMessage:!0}),r.props.adjustDateOnChange&&(r.props.onSelect(o),(c=(s=r.props).setOpen)===null||c===void 0||c.call(s,!0)),r.props.setPreSelection&&r.props.setPreSelection(o)},r.getEnabledPreSelectionDateForMonth=function(o){if(!yt(o,r.props))return o;for(var i=Vt(o),a=Eg(o),s=v.differenceInDays(a,i),c=null,l=0;l<=s;l++){var u=v.addDays(i,l);if(!yt(u,r.props)){c=u;break}}return c},r.handleMonthChange=function(o){var i,a,s,c=(i=r.getEnabledPreSelectionDateForMonth(o))!==null&&i!==void 0?i:o;r.handleCustomMonthChange(c),r.props.adjustDateOnChange&&(r.props.onSelect(c),(s=(a=r.props).setOpen)===null||s===void 0||s.call(a,!0)),r.props.setPreSelection&&r.props.setPreSelection(c)},r.handleCustomMonthChange=function(o){var i,a;(a=(i=r.props).onMonthChange)===null||a===void 0||a.call(i,o),r.setState({isRenderAriaLiveMessage:!0})},r.handleMonthYearChange=function(o){r.handleYearChange(o),r.handleMonthChange(o)},r.changeYear=function(o){r.setState(function(i){var a=i.date;return{date:v.setYear(a,Number(o))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(o){r.setState(function(i){var a=i.date;return{date:v.setMonth(a,Number(o))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(o){r.setState(function(i){var a=i.date;return{date:v.setYear(v.setMonth(a,v.getMonth(o)),v.getYear(o))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(o){o===void 0&&(o=r.state.date);var i=Xt(o,r.props.locale,r.props.calendarStartDay),a=[];return r.props.showWeekNumbers&&a.push(b.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var c=v.addDays(i,s),l=r.formatWeekday(c,r.props.locale),u=r.props.weekDayClassName?r.props.weekDayClassName(c):void 0;return b.createElement("div",{key:s,"aria-label":Pe(c,"EEEE",r.props.locale),className:Ze("react-datepicker__day-name",u)},l)}))},r.formatWeekday=function(o,i){return r.props.formatWeekDay?Tg(o,r.props.formatWeekDay,i):r.props.useWeekdaysShort?Ag(o,i):Og(o,i)},r.decreaseYear=function(){r.setState(function(o){var i,a=o.date;return{date:v.subYears(a,r.props.showYearPicker?(i=r.props.yearItemNumber)!==null&&i!==void 0?i:n.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var o,i,a;if(!r.props.renderCustomHeader){var s=(o=r.props.monthsShown)!==null&&o!==void 0?o:n.defaultProps.monthsShown,c=r.props.showPreviousMonths?s-1:0,l=(i=r.props.monthSelectedIn)!==null&&i!==void 0?i:c,u=v.subMonths(r.state.date,l),d;switch(!0){case r.props.showMonthYearPicker:d=Yc(r.state.date,r.props);break;case r.props.showYearPicker:d=Rg(r.state.date,r.props);break;case r.props.showQuarterYearPicker:d=Ig(r.state.date,r.props);break;default:d=zc(u,r.props);break}if(!(!((a=r.props.forceShowMonthNavigation)!==null&&a!==void 0?a:n.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&d||r.props.showTimeSelectOnly)){var f=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],m=["react-datepicker__navigation","react-datepicker__navigation--previous"],g=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(g=r.decreaseYear),d&&r.props.showDisabledMonthNavigation&&(m.push("react-datepicker__navigation--previous--disabled"),g=void 0);var p=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,y=r.props,k=y.previousMonthButtonLabel,S=k===void 0?n.defaultProps.previousMonthButtonLabel:k,E=y.previousYearButtonLabel,C=E===void 0?n.defaultProps.previousYearButtonLabel:E,x=r.props,O=x.previousMonthAriaLabel,N=O===void 0?typeof S=="string"?S:"Previous Month":O,q=x.previousYearAriaLabel,V=q===void 0?typeof C=="string"?C:"Previous Year":q;return b.createElement("button",{type:"button",className:m.join(" "),onClick:g,onKeyDown:r.props.handleOnKeyDown,"aria-label":p?V:N},b.createElement("span",{className:f.join(" ")},p?C:S))}}},r.increaseYear=function(){r.setState(function(o){var i,a=o.date;return{date:v.addYears(a,r.props.showYearPicker?(i=r.props.yearItemNumber)!==null&&i!==void 0?i:n.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var o;if(!r.props.renderCustomHeader){var i;switch(!0){case r.props.showMonthYearPicker:i=Fc(r.state.date,r.props);break;case r.props.showYearPicker:i=$g(r.state.date,r.props);break;case r.props.showQuarterYearPicker:i=Ng(r.state.date,r.props);break;default:i=Bc(r.state.date,r.props);break}if(!(!((o=r.props.forceShowMonthNavigation)!==null&&o!==void 0?o:n.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&i||r.props.showTimeSelectOnly)){var a=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var c=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(c=r.increaseYear),i&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),c=void 0);var l=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.nextMonthButtonLabel,f=d===void 0?n.defaultProps.nextMonthButtonLabel:d,m=u.nextYearButtonLabel,g=m===void 0?n.defaultProps.nextYearButtonLabel:m,p=r.props,y=p.nextMonthAriaLabel,k=y===void 0?typeof f=="string"?f:"Next Month":y,S=p.nextYearAriaLabel,E=S===void 0?typeof g=="string"?g:"Next Year":S;return b.createElement("button",{type:"button",className:a.join(" "),onClick:c,onKeyDown:r.props.handleOnKeyDown,"aria-label":l?E:k},b.createElement("span",{className:s.join(" ")},l?g:f))}}},r.renderCurrentMonth=function(o){o===void 0&&(o=r.state.date);var i=["react-datepicker__current-month"];return r.props.showYearDropdown&&i.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&i.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&i.push("react-datepicker__current-month--hasMonthYearDropdown"),b.createElement("h2",{className:i.join(" ")},Pe(o,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(o){if(o===void 0&&(o=!1),!(!r.props.showYearDropdown||o))return b.createElement(nv,me({},n.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:v.getYear(r.state.date)}))},r.renderMonthDropdown=function(o){if(o===void 0&&(o=!1),!(!r.props.showMonthDropdown||o))return b.createElement(Kg,me({},n.defaultProps,r.props,{month:v.getMonth(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(o){if(o===void 0&&(o=!1),!(!r.props.showMonthYearDropdown||o))return b.createElement(Jg,me({},n.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(o){r.props.onSelect(Pc(),o),r.props.setPreSelection&&r.props.setPreSelection(Pc())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return b.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDefaultHeader=function(o){var i=o.monthDate,a=o.i;return b.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(i),b.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(a!==0),r.renderMonthYearDropdown(a!==0),r.renderYearDropdown(a!==0)),b.createElement("div",{className:"react-datepicker__day-names"},r.header(i)))},r.renderCustomHeader=function(o){var i,a,s=o.monthDate,c=o.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var l=zc(r.state.date,r.props),u=Bc(r.state.date,r.props),d=Yc(r.state.date,r.props),f=Fc(r.state.date,r.props),m=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return b.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(a=(i=r.props).renderCustomHeader)===null||a===void 0?void 0:a.call(i,me(me({},r.state),{customHeaderCount:c,monthDate:s,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:l,nextMonthButtonDisabled:u,prevYearButtonDisabled:d,nextYearButtonDisabled:f})),m&&b.createElement("div",{className:"react-datepicker__day-names"},r.header(s)))},r.renderYearHeader=function(o){var i=o.monthDate,a=r.props,s=a.showYearPicker,c=a.yearItemNumber,l=c===void 0?n.defaultProps.yearItemNumber:c,u=er(i,l),d=u.startPeriod,f=u.endPeriod;return b.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(d," - ").concat(f):v.getYear(i))},r.renderHeader=function(o){var i=o.monthDate,a=o.i,s=a===void 0?0:a,c={monthDate:i,i:s};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(c);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(c);default:return r.renderDefaultHeader(c)}},r.renderMonths=function(){var o,i;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var a=[],s=(o=r.props.monthsShown)!==null&&o!==void 0?o:n.defaultProps.monthsShown,c=r.props.showPreviousMonths?s-1:0,l=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?v.addYears(r.state.date,c):v.subMonths(r.state.date,c),u=(i=r.props.monthSelectedIn)!==null&&i!==void 0?i:c,d=0;d<s;++d){var f=d-u+c,m=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?v.addYears(l,f):v.addMonths(l,f),g="month-".concat(d),p=d<s-1,y=d>0;a.push(b.createElement("div",{key:g,ref:function(k){r.monthContainer=k??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:m,i:d}),b.createElement(Zg,me({},n.defaultProps,r.props,{containerRef:r.containerRef,ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:m,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:d,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:y}))))}return a}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return b.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),b.createElement(ev,me({},n.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return b.createElement(Xg,me({},n.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var o=r.props.selected?new Date(r.props.selected):void 0,i=o&&xo(o)&&!!r.props.selected,a=i?"".concat(Wc(o.getHours()),":").concat(Wc(o.getMinutes())):"";if(r.props.showTimeInput)return b.createElement(Fg,me({},n.defaultProps,r.props,{date:o,timeString:a,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var o,i=er(r.state.date,(o=r.props.yearItemNumber)!==null&&o!==void 0?o:n.defaultProps.yearItemNumber),a=i.startPeriod,s=i.endPeriod,c;return r.props.showYearPicker?c="".concat(a," - ").concat(s):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?c=v.getYear(r.state.date):c="".concat(Gi(v.getMonth(r.state.date),r.props.locale)," ").concat(v.getYear(r.state.date)),b.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&c)},r.renderChildren=function(){if(r.props.children)return b.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=b.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(n,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:fn}},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){t.setState({monthContainer:t.monthContainer})}())},n.prototype.componentDidUpdate=function(t){var r=this;if(this.props.preSelection&&(!ge(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var o=!tt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!ge(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})},n.prototype.render=function(){var t=this.props.container||_g;return b.createElement(So,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},b.createElement("div",{style:{display:"contents"},ref:this.containerRef},b.createElement(t,{className:Ze("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},n}(b.Component),sv=function(e){var n=e.icon,t=e.className,r=t===void 0?"":t,o=e.onClick,i="react-datepicker__calendar-icon";if(typeof n=="string")return b.createElement("i",{className:"".concat(i," ").concat(n," ").concat(r),"aria-hidden":"true",onClick:o});if(b.isValidElement(n)){var a=n;return b.cloneElement(a,{className:"".concat(a.props.className||""," ").concat(i," ").concat(r),onClick:function(s){typeof a.props.onClick=="function"&&a.props.onClick(s),typeof o=="function"&&o(s)}})}return b.createElement("svg",{className:"".concat(i," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},b.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Xc=function(e){Ke(n,e);function n(t){var r=e.call(this,t)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return n.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},n.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},n.prototype.render=function(){return Fa.createPortal(this.props.children,this.el)},n}(b.Component),cv="[tabindex], a, button, input, select, textarea",lv=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&e.tabIndex!==-1},el=function(e){Ke(n,e);function n(t){var r=e.call(this,t)||this;return r.getTabChildren=function(){var o;return Array.prototype.slice.call((o=r.tabLoopRef.current)===null||o===void 0?void 0:o.querySelectorAll(cv),1,-1).filter(lv)},r.handleFocusStart=function(){var o=r.getTabChildren();o&&o.length>1&&o[o.length-1].focus()},r.handleFocusEnd=function(){var o=r.getTabChildren();o&&o.length>1&&o[0].focus()},r.tabLoopRef=b.createRef(),r}return n.prototype.render=function(){var t;return((t=this.props.enableTabLoop)!==null&&t!==void 0?t:n.defaultProps.enableTabLoop)?b.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},b.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,b.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},n.defaultProps={enableTabLoop:!0},n}(b.Component);function uv(e){var n=function(t){var r,o=typeof t.hidePopper=="boolean"?t.hidePopper:!0,i=b.useRef(null),a=bg(me({open:!o,whileElementsMounted:Gm,placement:t.popperPlacement,middleware:$t([ig({padding:15}),og(10),ag({element:i})],(r=t.popperModifiers)!==null&&r!==void 0?r:[],!0)},t.popperProps)),s=me(me({},t),{hidePopper:o,popperProps:me(me({},a),{arrowRef:i})});return b.createElement(e,me({},s))};return n}var dv=function(e){Ke(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),n.prototype.render=function(){var t=this.props,r=t.className,o=t.wrapperClassName,i=t.hidePopper,a=i===void 0?n.defaultProps.hidePopper:i,s=t.popperComponent,c=t.targetComponent,l=t.enableTabLoop,u=t.popperOnKeyDown,d=t.portalId,f=t.portalHost,m=t.popperProps,g=t.showArrow,p=void 0;if(!a){var y=Ze("react-datepicker-popper",r);p=b.createElement(el,{enableTabLoop:l},b.createElement("div",{ref:m.refs.setFloating,style:m.floatingStyles,className:y,"data-placement":m.placement,onKeyDown:u},s,g&&b.createElement(fg,{ref:m.arrowRef,context:m.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(p=b.createElement(this.props.popperContainer,{},p)),d&&!a&&(p=b.createElement(Xc,{portalId:d,portalHost:f},p));var k=Ze("react-datepicker-wrapper",o);return b.createElement(b.Fragment,null,b.createElement("div",{ref:m.refs.setReference,className:k},c),p)},n}(b.Component),fv=uv(dv),tl="react-datepicker-ignore-onclickoutside";function pv(e,n){return e&&n?v.getMonth(e)!==v.getMonth(n)||v.getYear(e)!==v.getYear(n):e!==n}var Xi="Date input not valid.",hv=function(e){Ke(n,e);function n(t){var r=e.call(this,t)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Se()},r.modifyHolidays=function(){var o;return(o=r.props.holidays)===null||o===void 0?void 0:o.reduce(function(i,a){var s=new Date(a.date);return xo(s)?$t($t([],i,!0),[me(me({},a),{date:s})],!1):i},[])},r.calcInitialState=function(){var o,i=r.getPreSelection(),a=Vc(r.props),s=Uc(r.props),c=a&&v.isBefore(i,ko(a))?a:s&&v.isAfter(i,Ic(s))?s:i;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(o=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&o!==void 0?o:c,highlightDates:Hc(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(me(me({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(me(me({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){var o,i;(i=(o=r.input)===null||o===void 0?void 0:o.focus)===null||i===void 0||i.call(o,{preventScroll:!0})},r.setBlur=function(){var o,i;(i=(o=r.input)===null||o===void 0?void 0:o.blur)===null||i===void 0||i.call(o),r.cancelFocusInput()},r.deferBlur=function(){requestAnimationFrame(function(){r.setBlur()})},r.setOpen=function(o,i){i===void 0&&(i=!1),r.setState({open:o,preSelection:o&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:ea},function(){o||r.setState(function(a){return{focused:i?a.focused:!1}},function(){!i&&r.deferBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return v.isDate(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(o){var i,a,s=r.state.wasHidden,c=s?r.state.open:!0;s&&r.resetHiddenStatus(),r.state.preventFocus||((a=(i=r.props).onFocus)===null||a===void 0||a.call(i,o),c&&!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(o){var i,a;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((a=(i=r.props).onBlur)===null||a===void 0||a.call(i,o)),r.state.open&&r.props.open===!1&&r.setOpen(!1),r.setState({focused:!1})},r.handleCalendarClickOutside=function(o){var i,a;r.props.inline||r.setOpen(!1),(a=(i=r.props).onClickOutside)===null||a===void 0||a.call(i,o),r.props.withPortal&&o.preventDefault()},r.handleChange=function(){for(var o,i,a,s,c,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var d=l[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,l),!d||typeof d.isDefaultPrevented!="function"||d.isDefaultPrevented()))){r.setState({inputValue:d?.target instanceof HTMLInputElement?d.target.value:null,lastPreSelectChange:mv});var f=r.props,m=f.selectsRange,g=f.startDate,p=f.endDate,y=(o=r.props.dateFormat)!==null&&o!==void 0?o:n.defaultProps.dateFormat,k=(i=r.props.strictParsing)!==null&&i!==void 0?i:n.defaultProps.strictParsing,S=d?.target instanceof HTMLInputElement?d.target.value:"";if(m){var E=S.split(y.includes("-")?Ac:"-",2).map(function(z){return z.trim()}),C=E[0],x=E[1],O=Zi(C??"",y,r.props.locale,k),N=Zi(x??"",y,r.props.locale,k),q=g?.getTime()!==O?.getTime(),V=p?.getTime()!==N?.getTime();if(!q&&!V||O&&yt(O,r.props)||N&&yt(N,r.props))return;(s=(a=r.props).onChange)===null||s===void 0||s.call(a,[O,N],d)}else{var j=Zi(S,y,r.props.locale,k,(c=r.props.selected)!==null&&c!==void 0?c:void 0);(j||!S)&&r.setSelected(j,d,!0)}}},r.handleSelect=function(o,i,a){if(!r.props.readOnly){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(i),r.setSelected(o,i,!1,a),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(o);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var s=r.props,c=s.startDate,l=s.endDate;c&&!l&&(r.props.swapRange||!Kc(o,c))&&r.setOpen(!1)}}},r.setSelected=function(o,i,a,s){var c,l,u=o;if(r.props.showYearPicker){if(u!==null&&Oo(v.getYear(u),r.props))return}else if(r.props.showMonthYearPicker){if(u!==null&&Rc(u,r.props))return}else if(u!==null&&yt(u,r.props))return;var d=r.props,f=d.onChange,m=d.selectsRange,g=d.startDate,p=d.endDate,y=d.selectsMultiple,k=d.selectedDates,S=d.minTime,E=d.swapRange;if(!hr(r.props.selected,u)||r.props.allowSameDay||m||y)if(u!==null&&(r.props.selected&&(!a||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(u=qi(u,{hour:v.getHours(r.props.selected),minute:v.getMinutes(r.props.selected),second:v.getSeconds(r.props.selected)})),!a&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&S&&(u=qi(u,{hour:S.getHours(),minute:S.getMinutes(),second:S.getSeconds()})),r.props.inline||r.setState({preSelection:u}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:s})),m){var C=!g&&!p,x=g&&!p,O=g&&p;C?f?.([u,null],i):x&&(u===null?f?.([null,null],i):Kc(u,g)?f?.(E?[u,g]:[u,null],i):f?.([g,u],i)),O&&f?.([u,null],i)}else if(y){if(u!==null)if(!k?.length)f?.([u],i);else{var N=k.some(function(V){return ge(V,u)});if(N){var q=k.filter(function(V){return!ge(V,u)});f?.(q,i)}else f?.($t($t([],k,!0),[u],!1),i)}}else f?.(u,i);a||((l=(c=r.props).onSelect)===null||l===void 0||l.call(c,u,i),r.setState({inputValue:null}))},r.setPreSelection=function(o){if(!r.props.readOnly){var i=v.isDate(r.props.minDate),a=v.isDate(r.props.maxDate),s=!0;if(o){var c=ko(o);if(i&&a)s=hn(o,r.props.minDate,r.props.maxDate);else if(i){var l=ko(r.props.minDate);s=v.isAfter(o,l)||hr(c,l)}else if(a){var u=Ic(r.props.maxDate);s=v.isBefore(o,u)||hr(c,u)}}s&&r.setState({preSelection:o})}},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(o){var i,a;if(!(r.props.selectsRange||r.props.selectsMultiple)){var s=r.props.selected?r.props.selected:r.getPreSelection(),c=r.props.selected?o:qi(s,{hour:v.getHours(o),minute:v.getMinutes(o)});r.setState({preSelection:c}),(a=(i=r.props).onChange)===null||a===void 0||a.call(i,c),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var o,i;!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(i=(o=r.props).onInputClick)===null||i===void 0||i.call(o)},r.onInputKeyDown=function(o){var i,a,s,c,l,u;(a=(i=r.props).onKeyDown)===null||a===void 0||a.call(i,o);var d=o.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(d===G.ArrowDown||d===G.ArrowUp||d===G.Enter)&&((s=r.onInputClick)===null||s===void 0||s.call(r));return}if(r.state.open){if(d===G.ArrowDown||d===G.ArrowUp){o.preventDefault();var f=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',m=((c=r.calendar)===null||c===void 0?void 0:c.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(f);m instanceof HTMLElement&&m.focus({preventScroll:!0});return}var g=Se(r.state.preSelection);d===G.Enter?(o.preventDefault(),o.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===ea?(r.handleSelect(g,o),!r.props.shouldCloseOnSelect&&r.setPreSelection(g)):r.setOpen(!1)):d===G.Escape?(o.preventDefault(),o.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):d===G.Tab&&r.setOpen(!1),r.inputOk()||(u=(l=r.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:Xi})}},r.onPortalKeyDown=function(o){var i=o.key;i===G.Escape&&(o.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(o){var i,a,s,c,l,u,d=r.props,f=d.minDate,m=d.maxDate,g=d.disabledKeyboardNavigation,p=d.showWeekPicker,y=d.shouldCloseOnSelect,k=d.locale,S=d.calendarStartDay,E=d.adjustDateOnChange,C=d.inline;if((a=(i=r.props).onKeyDown)===null||a===void 0||a.call(i,o),!g){var x=o.key,O=o.shiftKey,N=Se(r.state.preSelection),q=function(Y,B){var Q=B;switch(Y){case G.ArrowRight:Q=p?v.addWeeks(B,1):v.addDays(B,1);break;case G.ArrowLeft:Q=p?v.subWeeks(B,1):v.subDays(B,1);break;case G.ArrowUp:Q=v.subWeeks(B,1);break;case G.ArrowDown:Q=v.addWeeks(B,1);break;case G.PageUp:Q=O?v.subYears(B,1):v.subMonths(B,1);break;case G.PageDown:Q=O?v.addYears(B,1):v.addMonths(B,1);break;case G.Home:Q=Xt(B,k,S);break;case G.End:Q=Cg(B);break}return Q},V=function(Y,B){for(var Q=40,ee=Y,he=!1,D=0,$=q(Y,B);!he;){if(D>=Q){$=B;break}f&&$<f&&(ee=G.ArrowRight,$=yt(f,r.props)?q(ee,$):f),m&&$>m&&(ee=G.ArrowLeft,$=yt(m,r.props)?q(ee,$):m),yt($,r.props)?((ee===G.PageUp||ee===G.Home)&&(ee=G.ArrowRight),(ee===G.PageDown||ee===G.End)&&(ee=G.ArrowLeft),$=q(ee,$)):he=!0,D++}return $};if(x===G.Enter){o.preventDefault(),r.handleSelect(N,o),!y&&r.setPreSelection(N);return}else if(x===G.Escape){o.preventDefault(),r.setOpen(!1),r.inputOk()||(c=(s=r.props).onInputError)===null||c===void 0||c.call(s,{code:1,msg:Xi});return}var j=null;switch(x){case G.ArrowLeft:case G.ArrowRight:case G.ArrowUp:case G.ArrowDown:case G.PageUp:case G.PageDown:case G.Home:case G.End:j=V(x,N);break}if(!j){(u=(l=r.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:Xi});return}if(o.preventDefault(),r.setState({lastPreSelectChange:ea}),E&&r.setSelected(j),r.setPreSelection(j),C){var z=v.getMonth(N),h=v.getMonth(j),P=v.getYear(N),A=v.getYear(j);z!==h||P!==A?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(o){var i=o.key;i===G.Escape&&(o.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1))},r.onClearClick=function(o){o&&o.preventDefault&&o.preventDefault(),r.sendFocusBackToInput();var i=r.props,a=i.selectsRange,s=i.onChange;s?.(a?[null,null]:null,o),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(o){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(o.target===document||o.target===document.documentElement||o.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(o)&&r.setOpen(!1)},r.renderCalendar=function(){var o,i;return!r.props.inline&&!r.isCalendarOpen()?null:b.createElement(av,me({showMonthYearDropdown:void 0,ref:function(a){r.calendar=a}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(o=r.props.dateFormatCalendar)!==null&&o!==void 0?o:n.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:jg(r.modifyHolidays()),outsideClickIgnoreClass:tl,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(i=r.props.dropdownMode)!==null&&i!==void 0?i:n.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var o=r.props,i=o.dateFormat,a=i===void 0?n.defaultProps.dateFormat:i,s=o.locale,c=r.props.showTimeInput||r.props.showTimeSelect,l=c?"PPPPp":"PPPP",u;return r.props.selectsRange?u="Selected start date: ".concat(vt(r.props.startDate,{dateFormat:l,locale:s}),". ").concat(r.props.endDate?"End date: "+vt(r.props.endDate,{dateFormat:l,locale:s}):""):r.props.showTimeSelectOnly?u="Selected time: ".concat(vt(r.props.selected,{dateFormat:a,locale:s})):r.props.showYearPicker?u="Selected year: ".concat(vt(r.props.selected,{dateFormat:"yyyy",locale:s})):r.props.showMonthYearPicker?u="Selected month: ".concat(vt(r.props.selected,{dateFormat:"MMMM yyyy",locale:s})):r.props.showQuarterYearPicker?u="Selected quarter: ".concat(vt(r.props.selected,{dateFormat:"yyyy, QQQ",locale:s})):u="Selected date: ".concat(vt(r.props.selected,{dateFormat:l,locale:s})),b.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},u)},r.renderDateInput=function(){var o,i,a,s=Ze(r.props.className,(o={},o[tl]=r.state.open,o)),c=r.props.customInput||b.createElement("input",{type:"text"}),l=r.props.customInputRef||"ref",u=r.props,d=u.dateFormat,f=d===void 0?n.defaultProps.dateFormat:d,m=u.locale,g=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:r.props.selectsRange?Sg(r.props.startDate,r.props.endDate,{dateFormat:f,locale:m}):r.props.selectsMultiple?xg((a=r.props.selectedDates)!==null&&a!==void 0?a:[],{dateFormat:f,locale:m}):vt(r.props.selected,{dateFormat:f,locale:m});return b.cloneElement(c,(i={},i[l]=function(p){r.input=p},i.value=g,i.onBlur=r.handleBlur,i.onChange=r.handleChange,i.onClick=r.onInputClick,i.onFocus=r.handleFocus,i.onKeyDown=r.onInputKeyDown,i.id=r.props.id,i.name=r.props.name,i.form=r.props.form,i.autoFocus=r.props.autoFocus,i.placeholder=r.props.placeholderText,i.disabled=r.props.disabled,i.autoComplete=r.props.autoComplete,i.className=Ze(c.props.className,s),i.title=r.props.title,i.readOnly=r.props.readOnly,i.required=r.props.required,i.tabIndex=r.props.tabIndex,i["aria-describedby"]=r.props.ariaDescribedBy,i["aria-invalid"]=r.props.ariaInvalid,i["aria-labelledby"]=r.props.ariaLabelledBy,i["aria-required"]=r.props.ariaRequired,i))},r.renderClearButton=function(){var o=r.props,i=o.isClearable,a=o.disabled,s=o.selected,c=o.startDate,l=o.endDate,u=o.clearButtonTitle,d=o.clearButtonClassName,f=d===void 0?"":d,m=o.ariaLabelClose,g=m===void 0?"Close":m,p=o.selectedDates,y=o.readOnly;return i&&!y&&(s!=null||c!=null||l!=null||p?.length)?b.createElement("button",{type:"button",className:Ze("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":g,onClick:r.onClearClick,title:u,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(n,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:fn,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},n.prototype.componentDidUpdate=function(t,r){var o,i,a,s;t.inline&&pv(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Hc(this.props.highlightDates)}),!r.focused&&!hr(t.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((i=(o=this.props).onCalendarOpen)===null||i===void 0||i.call(o)),r.open===!0&&this.state.open===!1&&((s=(a=this.props).onCalendarClose)===null||s===void 0||s.call(a)))},n.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},n.prototype.renderInputContainer=function(){var t=this.props,r=t.showIcon,o=t.icon,i=t.calendarIconClassname,a=t.calendarIconClassName,s=t.toggleCalendarOnIconClick,c=this.state.open;return i&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),b.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&b.createElement(sv,me({icon:o,className:Ze(a,!a&&i,c&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},n.prototype.render=function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var r=this.state.open?b.createElement(el,{enableTabLoop:this.props.enableTabLoop},b.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(r=b.createElement(Xc,me({portalId:this.props.portalId},this.props),r)),b.createElement("div",null,this.renderInputContainer(),r)}return b.createElement(fv,me({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:t,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},n}(b.Component),mv="input",ea="navigate";const gv=b.forwardRef(({value:e,onClick:n},t)=>_.jsxs("button",{className:Qt.datePickerButton,onClick:n,ref:t,children:[e,_.jsx("span",{className:"icon-chevron-down",style:{marginLeft:"8px",color:"#555"},children:" "})]})),vv=({currentDate:e,onPrevMonth:n,onNextMonth:t,onAddEvent:r,onDateChange:o})=>_.jsxs("div",{className:Qt.headerContainer,children:[_.jsxs("div",{className:Qt.navAndDate,children:[_.jsx("button",{className:Qt.navButton,onClick:n,children:_.jsx("span",{className:"icon-chevron-left"})}),_.jsx("button",{className:Qt.navButton,onClick:t,children:_.jsx("span",{className:" icon-chevron-right"})}),_.jsx(hv,{selected:e,onChange:i=>o(i),dateFormat:"MMMM yyyy",showMonthYearPicker:!0,className:Qt.datePickerInput,locale:"es",customInput:_.jsx(gv,{})})]}),_.jsx("div",{className:Qt.spacer}),_.jsxs("button",{className:Qt.addEventButton,onClick:r,children:[_.jsx("span",{className:"icon-agregar-ic-rounded"})," Agregar evento"]})]}),pe={sidebarContainer:"_sidebarContainer_bvt8d_1",leadsSection:"_leadsSection_bvt8d_13",leadCard:"_leadCard_bvt8d_27",leadIcon:"_leadIcon_bvt8d_65",leadDays:"_leadDays_bvt8d_75",leadCount:"_leadCount_bvt8d_85",eventsSection:"_eventsSection_bvt8d_99",sidebarTitle:"_sidebarTitle_bvt8d_119",eventGroup:"_eventGroup_bvt8d_133",eventGroupDate:"_eventGroupDate_bvt8d_141",eventItem:"_eventItem_bvt8d_153",eventDetails:"_eventDetails_bvt8d_181",eventTitle:"_eventTitle_bvt8d_191",eventTime:"_eventTime_bvt8d_201",calendarsSection:"_calendarsSection_bvt8d_223",collapsibleHeader:"_collapsibleHeader_bvt8d_231",headerTitle:"_headerTitle_bvt8d_259",calendarCount:"_calendarCount_bvt8d_273",chevronIcon:"_chevronIcon_bvt8d_291",collapsed:"_collapsed_bvt8d_299",collapsibleContent:"_collapsibleContent_bvt8d_307",hidden:"_hidden_bvt8d_323",calendarItem:"_calendarItem_bvt8d_333",circularCheckbox:"_circularCheckbox_bvt8d_367",checkedIcon:"_checkedIcon_bvt8d_385",uncheckedIcon:"_uncheckedIcon_bvt8d_393",calendarIcon:"_calendarIcon_bvt8d_401",googleIcon:"_googleIcon_bvt8d_409",syncButton:"_syncButton_bvt8d_417"};/**
|
|
100
|
+
* @license lucide-react v0.540.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const yv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,t,r)=>r?r.toUpperCase():t.toLowerCase()),rl=e=>{const n=bv(e);return n.charAt(0).toUpperCase()+n.slice(1)},nl=(...e)=>e.filter((n,t,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===t).join(" ").trim(),_v=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
|
105
|
+
* @license lucide-react v0.540.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/var wv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
110
|
+
* @license lucide-react v0.540.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const Sv=b.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},c)=>b.createElement("svg",{ref:c,...wv,width:n,height:n,stroke:e,strokeWidth:r?Number(t)*24/Number(n):t,className:nl("lucide",o),...!i&&!_v(s)&&{"aria-hidden":"true"},...s},[...a.map(([l,u])=>b.createElement(l,u)),...Array.isArray(i)?i:[i]]));/**
|
|
115
|
+
* @license lucide-react v0.540.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const vn=(e,n)=>{const t=b.forwardRef(({className:r,...o},i)=>b.createElement(Sv,{ref:i,iconNode:n,className:nl(`lucide-${yv(rl(e))}`,`lucide-${e}`,r),...o}));return t.displayName=rl(e),t};/**
|
|
120
|
+
* @license lucide-react v0.540.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const ol=vn("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
|
|
125
|
+
* @license lucide-react v0.540.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const xv=vn("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
130
|
+
* @license lucide-react v0.540.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const kv=vn("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
135
|
+
* @license lucide-react v0.540.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const Dv=vn("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
140
|
+
* @license lucide-react v0.540.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const Cv=vn("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),il=Symbol.for("constructDateFrom");function ta(e,n){return typeof e=="function"?e(n):e&&typeof e=="object"&&il in e?e[il](n):e instanceof Date?new e.constructor(n):new Date(n)}function tr(e,n){return ta(n||e,e)}function al(e,n,t){const[r,o]=[+tr(e.start,t?.in),+tr(e.end,t?.in)].sort((s,c)=>s-c),[i,a]=[+tr(n.start,t?.in),+tr(n.end,t?.in)].sort((s,c)=>s-c);return r<a&&i<o}function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Po(e)}var Ev=/^\s+/,Tv=/\s+$/;function ie(e,n){if(e=e||"",n=n||{},e instanceof ie)return e;if(!(this instanceof ie))return new ie(e,n);var t=Ov(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||t.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}ie.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),t,r,o,i,a,s;return t=n.r/255,r=n.g/255,o=n.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(n){return this._a=fl(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=cl(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=cl(this._r,this._g,this._b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+o+"%)":"hsva("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var n=sl(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=sl(this._r,this._g,this._b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+o+"%)":"hsla("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(n){return ll(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return Iv(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ie(this._r,255)*100)+"%",g:Math.round(Ie(this._g,255)*100)+"%",b:Math.round(Ie(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%)":"rgba("+Math.round(Ie(this._r,255)*100)+"%, "+Math.round(Ie(this._g,255)*100)+"%, "+Math.round(Ie(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Hv[ll(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var t="#"+ul(this._r,this._g,this._b,this._a),r=t,o=this._gradientType?"GradientType = 1, ":"";if(n){var i=ie(n);r="#"+ul(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+r+")"},toString:function(n){var t=!!n;n=n||this._format;var r=!1,o=this._a<1&&this._a>=0,i=!t&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return i?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(r=this.toRgbString()),n==="prgb"&&(r=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(r=this.toHexString()),n==="hex3"&&(r=this.toHexString(!0)),n==="hex4"&&(r=this.toHex8String(!0)),n==="hex8"&&(r=this.toHex8String()),n==="name"&&(r=this.toName()),n==="hsl"&&(r=this.toHslString()),n==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return ie(this.toString())},_applyModification:function(n,t){var r=n.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Lv,arguments)},brighten:function(){return this._applyModification(jv,arguments)},darken:function(){return this._applyModification(zv,arguments)},desaturate:function(){return this._applyModification(Nv,arguments)},saturate:function(){return this._applyModification(Rv,arguments)},greyscale:function(){return this._applyModification($v,arguments)},spin:function(){return this._applyModification(Bv,arguments)},_applyCombination:function(n,t){return n.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Vv,arguments)},complement:function(){return this._applyCombination(Yv,arguments)},monochromatic:function(){return this._applyCombination(Uv,arguments)},splitcomplement:function(){return this._applyCombination(Fv,arguments)},triad:function(){return this._applyCombination(dl,[3])},tetrad:function(){return this._applyCombination(dl,[4])}},ie.fromRatio=function(e,n){if(Po(e)=="object"){var t={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?t[r]=e[r]:t[r]=yn(e[r]));e=t}return ie(e,n)};function Ov(e){var n={r:0,g:0,b:0},t=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Kv(e)),Po(e)=="object"&&(Ut(e.r)&&Ut(e.g)&&Ut(e.b)?(n=Av(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ut(e.h)&&Ut(e.s)&&Ut(e.v)?(r=yn(e.s),o=yn(e.v),n=Pv(e.h,r,o),a=!0,s="hsv"):Ut(e.h)&&Ut(e.s)&&Ut(e.l)&&(r=yn(e.s),i=yn(e.l),n=Mv(e.h,r,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=fl(t),{ok:a,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}function Av(e,n,t){return{r:Ie(e,255)*255,g:Ie(n,255)*255,b:Ie(t,255)*255}}function sl(e,n,t){e=Ie(e,255),n=Ie(n,255),t=Ie(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),i,a,s=(r+o)/2;if(r==o)i=a=0;else{var c=r-o;switch(a=s>.5?c/(2-r-o):c/(r+o),r){case e:i=(n-t)/c+(n<t?6:0);break;case n:i=(t-e)/c+2;break;case t:i=(e-n)/c+4;break}i/=6}return{h:i,s:a,l:s}}function Mv(e,n,t){var r,o,i;e=Ie(e,360),n=Ie(n,100),t=Ie(t,100);function a(l,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(u-l)*6*d:d<1/2?u:d<2/3?l+(u-l)*(2/3-d)*6:l}if(n===0)r=o=i=t;else{var s=t<.5?t*(1+n):t+n-t*n,c=2*t-s;r=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function cl(e,n,t){e=Ie(e,255),n=Ie(n,255),t=Ie(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),i,a,s=r,c=r-o;if(a=r===0?0:c/r,r==o)i=0;else{switch(r){case e:i=(n-t)/c+(n<t?6:0);break;case n:i=(t-e)/c+2;break;case t:i=(e-n)/c+4;break}i/=6}return{h:i,s:a,v:s}}function Pv(e,n,t){e=Ie(e,360)*6,n=Ie(n,100),t=Ie(t,100);var r=Math.floor(e),o=e-r,i=t*(1-n),a=t*(1-o*n),s=t*(1-(1-o)*n),c=r%6,l=[t,a,i,i,s,t][c],u=[s,t,t,a,i,i][c],d=[i,i,s,t,t,a][c];return{r:l*255,g:u*255,b:d*255}}function ll(e,n,t,r){var o=[wt(Math.round(e).toString(16)),wt(Math.round(n).toString(16)),wt(Math.round(t).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Iv(e,n,t,r,o){var i=[wt(Math.round(e).toString(16)),wt(Math.round(n).toString(16)),wt(Math.round(t).toString(16)),wt(pl(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function ul(e,n,t,r){var o=[wt(pl(r)),wt(Math.round(e).toString(16)),wt(Math.round(n).toString(16)),wt(Math.round(t).toString(16))];return o.join("")}ie.equals=function(e,n){return!e||!n?!1:ie(e).toRgbString()==ie(n).toRgbString()},ie.random=function(){return ie.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Nv(e,n){n=n===0?0:n||10;var t=ie(e).toHsl();return t.s-=n/100,t.s=Io(t.s),ie(t)}function Rv(e,n){n=n===0?0:n||10;var t=ie(e).toHsl();return t.s+=n/100,t.s=Io(t.s),ie(t)}function $v(e){return ie(e).desaturate(100)}function Lv(e,n){n=n===0?0:n||10;var t=ie(e).toHsl();return t.l+=n/100,t.l=Io(t.l),ie(t)}function jv(e,n){n=n===0?0:n||10;var t=ie(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(n/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(n/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(n/100)))),ie(t)}function zv(e,n){n=n===0?0:n||10;var t=ie(e).toHsl();return t.l-=n/100,t.l=Io(t.l),ie(t)}function Bv(e,n){var t=ie(e).toHsl(),r=(t.h+n)%360;return t.h=r<0?360+r:r,ie(t)}function Yv(e){var n=ie(e).toHsl();return n.h=(n.h+180)%360,ie(n)}function dl(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var t=ie(e).toHsl(),r=[ie(e)],o=360/n,i=1;i<n;i++)r.push(ie({h:(t.h+i*o)%360,s:t.s,l:t.l}));return r}function Fv(e){var n=ie(e).toHsl(),t=n.h;return[ie(e),ie({h:(t+72)%360,s:n.s,l:n.l}),ie({h:(t+216)%360,s:n.s,l:n.l})]}function Vv(e,n,t){n=n||6,t=t||30;var r=ie(e).toHsl(),o=360/t,i=[ie(e)];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,i.push(ie(r));return i}function Uv(e,n){n=n||6;for(var t=ie(e).toHsv(),r=t.h,o=t.s,i=t.v,a=[],s=1/n;n--;)a.push(ie({h:r,s:o,v:i})),i=(i+s)%1;return a}ie.mix=function(e,n,t){t=t===0?0:t||50;var r=ie(e).toRgb(),o=ie(n).toRgb(),i=t/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return ie(a)},ie.readability=function(e,n){var t=ie(e),r=ie(n);return(Math.max(t.getLuminance(),r.getLuminance())+.05)/(Math.min(t.getLuminance(),r.getLuminance())+.05)},ie.isReadable=function(e,n,t){var r=ie.readability(e,n),o,i;switch(i=!1,o=Gv(t),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i},ie.mostReadable=function(e,n,t){var r=null,o=0,i,a,s,c;t=t||{},a=t.includeFallbackColors,s=t.level,c=t.size;for(var l=0;l<n.length;l++)i=ie.readability(e,n[l]),i>o&&(o=i,r=ie(n[l]));return ie.isReadable(e,r,{level:s,size:c})||!a?r:(t.includeFallbackColors=!1,ie.mostReadable(e,["#fff","#000"],t))};var ra=ie.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Hv=ie.hexNames=Wv(ra);function Wv(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function fl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ie(e,n){Zv(e)&&(e="100%");var t=qv(e);return e=Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function Io(e){return Math.min(1,Math.max(0,e))}function ft(e){return parseInt(e,16)}function Zv(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function qv(e){return typeof e=="string"&&e.indexOf("%")!=-1}function wt(e){return e.length==1?"0"+e:""+e}function yn(e){return e<=1&&(e=e*100+"%"),e}function pl(e){return Math.round(parseFloat(e)*255).toString(16)}function hl(e){return ft(e)/255}var St=function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",t="(?:"+n+")|(?:"+e+")",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",o="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ut(e){return!!St.CSS_UNIT.exec(e)}function Kv(e){e=e.replace(Ev,"").replace(Tv,"").toLowerCase();var n=!1;if(ra[e])e=ra[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=St.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=St.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=St.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=St.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=St.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=St.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=St.hex8.exec(e))?{r:ft(t[1]),g:ft(t[2]),b:ft(t[3]),a:hl(t[4]),format:n?"name":"hex8"}:(t=St.hex6.exec(e))?{r:ft(t[1]),g:ft(t[2]),b:ft(t[3]),format:n?"name":"hex"}:(t=St.hex4.exec(e))?{r:ft(t[1]+""+t[1]),g:ft(t[2]+""+t[2]),b:ft(t[3]+""+t[3]),a:hl(t[4]+""+t[4]),format:n?"name":"hex8"}:(t=St.hex3.exec(e))?{r:ft(t[1]+""+t[1]),g:ft(t[2]+""+t[2]),b:ft(t[3]+""+t[3]),format:n?"name":"hex"}:!1}function Gv(e){var n,t;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:n,size:t}}const Qv=({onEventClick:e,upcomingEvents:n,onSyncGoogle:t,onSyncOutlook:r,leads30Days:o,leads90Days:i})=>{const a=d=>{const f=new Date,m={start:v.startOfDay(f),end:v.endOfDay(f)},g={start:d.fechaInicio,end:d.fechaFin};return al(m,g)?"Hoy":v.isTomorrow(d.fechaInicio)?"Mañana":new Intl.DateTimeFormat("es-ES",{day:"numeric",month:"long"}).format(d.fechaInicio)},s={};n.forEach(d=>{const f=a(d);s[f]||(s[f]=[]),s[f].push(d)});const[c,l]=b.useState(!1),u=()=>{l(!c)};return _.jsxs("div",{className:pe.sidebarContainer,children:[_.jsxs("div",{className:pe.leadsSection,children:[_.jsxs("div",{className:pe.leadCard,children:[_.jsx("div",{className:pe.leadIcon,children:_.jsx("span",{className:"icon-reloj"})}),_.jsxs("div",{className:pe.leadText,children:[_.jsx("div",{className:pe.leadDays,children:"+30 días sin atender"}),_.jsxs("div",{className:pe.leadCount,children:[o," ",_.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]}),_.jsxs("div",{className:pe.leadCard,children:[_.jsx("div",{className:pe.leadIcon,children:_.jsx("span",{className:"icon-reloj"})}),_.jsxs("div",{className:pe.leadText,children:[_.jsx("div",{className:pe.leadDays,children:"+90 días sin atender"}),_.jsxs("div",{className:pe.leadCount,children:[i," ",_.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]})]}),_.jsxs("div",{className:pe.eventsSection,children:[_.jsx("h3",{className:pe.sidebarTitle,children:"Próximos eventos"}),Object.entries(s).map(([d,f])=>_.jsxs("div",{className:`${pe.eventGroup}`,children:[_.jsxs("div",{className:pe.eventGroupDate,children:[_.jsx("i",{className:"icon-calendario"})," ",d]}),f.map(m=>{const g=ie(m.color||"#ffcc00"),p=g.toString(),y=g.clone().darken(15).toString();return _.jsxs("div",{className:pe.eventItem,style:{backgroundColor:p,borderLeftColor:y},onClick:()=>e(m),children:[_.jsxs("div",{className:pe.eventDetails,children:[_.jsx("div",{className:pe.eventTitle,children:m.titulo}),_.jsx("div",{className:pe.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"numeric",minute:"numeric"}).format(m.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"numeric",minute:"numeric"}).format(m.fechaFin)}`})]}),m.link&&_.jsx("a",{onClick:k=>{k.stopPropagation()},href:m?.link,target:"_blank",style:{textDecoration:"none"},children:_.jsx("span",{className:"icon-cam"})})]},m.eventoID)})]},d))]}),_.jsxs("div",{className:pe.calendarsSection,hidden:!0,children:[_.jsxs("button",{onClick:u,className:pe.collapsibleHeader,children:[_.jsxs("div",{className:pe.headerTitle,children:[_.jsx("h3",{children:"Calendarios"}),_.jsx("span",{className:pe.calendarCount,children:"1"})]}),_.jsx(xv,{className:`${pe.chevronIcon} ${c?pe.collapsed:""}`})]}),_.jsxs("div",{className:`${pe.collapsibleContent} ${c?pe.hidden:""}`,children:[_.jsxs("div",{className:pe.calendarItem,children:[_.jsx("div",{className:pe.circularCheckbox,children:_.jsx(kv,{size:24,className:pe.checkedIcon})}),_.jsx(ol,{size:24,className:pe.calendarIcon}),_.jsx("span",{children:"Mi calendario"})]}),_.jsxs("div",{className:pe.calendarItem,onClick:r,children:[_.jsx("div",{className:pe.circularCheckbox,children:_.jsx(Dv,{size:24,className:pe.uncheckedIcon})}),_.jsx(Cv,{size:24,className:pe.calendarIcon}),_.jsx("span",{children:"Outlook"})]}),_.jsxs("div",{className:pe.syncButton,onClick:t,children:[_.jsx(ol,{size:24,className:pe.googleIcon}),_.jsx("span",{children:"Sincronizar Google Calendar"})]})]})]})]})},xt={dayCell:"_dayCell_dxucq_1",dayCellContainer:"_dayCellContainer_dxucq_21",dayNumber:"_dayNumber_dxucq_55",dayNumberToday:"_dayNumberToday_dxucq_67",notCurrentMonth:"_notCurrentMonth_dxucq_89",CurrentDay:"_CurrentDay_dxucq_127",eventsList:"_eventsList_dxucq_135",eventItem:"_eventItem_dxucq_153",eventTitle:"_eventTitle_dxucq_177",eventTime:"_eventTime_dxucq_201",seeMoreLink:"_seeMoreLink_dxucq_227"},ml=20,Jv=20,Xv=({dayNumber:e,date:n,events:t,isToday:r,isCurrentMonth:o,onDayClick:i,onEventClick:a,onSeeMoreClick:s})=>{const c=[xt.dayCell,o?"":xt.notCurrentMonth,xt.CurrentDay].join(" ").trim(),l=b.useRef(null),[u,d]=b.useState(t.length),f=()=>{i?.(n)};b.useLayoutEffect(()=>{const p=()=>{if(l.current){const y=l.current.clientHeight;let k=Math.floor(y/ml);if(k<t.length){const S=Math.floor((y-Jv)/ml);k=Math.max(0,S)}d(k)}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[t.length]);const m=t.slice(0,u==0?1:u),g=t.length-(u==0?1:u);return _.jsxs("div",{className:`${c} ${xt.dayCellContainer}`,onClick:f,children:[_.jsx("div",{className:r?xt.dayNumber:xt.dayNumberToday,children:e}),_.jsxs("div",{className:xt.eventsList,ref:l,children:[m.map(p=>_.jsxs("div",{className:xt.eventItem,style:{backgroundColor:p.color||"#007bff"},onClick:y=>{y.stopPropagation(),a?.(p)},children:[_.jsx("span",{className:xt.eventTitle,children:p.titulo}),_.jsx("span",{className:xt.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"numeric",minute:"numeric"}).format(p.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"numeric",minute:"numeric"}).format(p.fechaFin)}`})]},p.eventoID)),g>0&&_.jsxs("div",{className:xt.seeMoreLink,onClick:p=>{p.stopPropagation(),s(t,n)},children:[g," más..."]})]})]})},gl={weekDaysContainer:"_weekDaysContainer_1ep0w_1",weekDay:"_weekDay_1ep0w_1"},ey=()=>{const e=["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"];return _.jsx("div",{className:gl.weekDaysContainer,children:e.map(n=>_.jsx("div",{className:gl.weekDay,children:n},n))})},vl={calendarGridContainer:"_calendarGridContainer_koxsz_1",daysContainer:"_daysContainer_koxsz_23"};function ty(e,...n){const t=ta.bind(null,n.find(r=>typeof r=="object"));return n.map(t)}function ry(e,n){const[t,r]=ty(e,n.start,n.end);return{start:t,end:r}}function ny(e,n){const{start:t,end:r}=ry(n?.in,e);let o=+t>+r;const i=o?+t:+r,a=o?r:t;a.setHours(0,0,0,0);let s=1;const c=[];for(;+a<=i;)c.push(ta(t,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?c.reverse():c}function oy(e,n){const t=n?.weekStartsOn,r=tr(e,n?.in),o=r.getDay(),i=(o<t?-7:0)+6-(o-t);return r.setDate(r.getDate()+i),r.setHours(23,59,59,999),r}function iy(e,n,t){const r=+tr(e,t?.in),[o,i]=[+tr(n.start,t?.in),+tr(n.end,t?.in)].sort((a,s)=>a-s);return r>=o&&r<=i}const ay=({currentDate:e,events:n,onDayClick:t,onEventClick:r,onSeeMoreClick:o})=>{const i=v.startOfMonth(e),a=v.endOfMonth(e),s=v.startOfWeek(i,{weekStartsOn:1}),c=oy(a,{weekStartsOn:1}),l=ny({start:s,end:c}),u={};return n.forEach(d=>{const f=v.format(d.fechaInicio,"yyyy-MM-dd");u[f]||(u[f]=[]),u[f].push(d)}),_.jsxs("div",{className:vl.calendarGridContainer,children:[_.jsx(ey,{}),_.jsx("div",{className:vl.daysContainer,children:l.map(d=>{const f=n.filter(m=>iy(d,{start:v.startOfDay(m.fechaInicio),end:v.endOfDay(m.fechaFin)}));return _.jsx(Xv,{dayNumber:d.getDate(),date:d,events:f,isToday:v.isToday(d),isCurrentMonth:v.isSameMonth(d,e),onDayClick:t,onEventClick:r,onSeeMoreClick:o},d.toISOString())})})]})};function yl(e,n){return function(){return e.apply(n,arguments)}}const{toString:sy}=Object.prototype,{getPrototypeOf:na}=Object,{iterator:No,toStringTag:bl}=Symbol,Ro=(e=>n=>{const t=sy.call(n);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),kt=e=>(e=e.toLowerCase(),n=>Ro(n)===e),$o=e=>n=>typeof n===e,{isArray:Br}=Array,bn=$o("undefined");function _n(e){return e!==null&&!bn(e)&&e.constructor!==null&&!bn(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _l=kt("ArrayBuffer");function cy(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&_l(e.buffer),n}const ly=$o("string"),ot=$o("function"),wl=$o("number"),wn=e=>e!==null&&typeof e=="object",uy=e=>e===!0||e===!1,Lo=e=>{if(Ro(e)!=="object")return!1;const n=na(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(bl in e)&&!(No in e)},dy=e=>{if(!wn(e)||_n(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},fy=kt("Date"),py=kt("File"),hy=kt("Blob"),my=kt("FileList"),gy=e=>wn(e)&&ot(e.pipe),vy=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((n=Ro(e))==="formdata"||n==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},yy=kt("URLSearchParams"),[by,_y,wy,Sy]=["ReadableStream","Request","Response","Headers"].map(kt),xy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sn(e,n,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Br(e))for(r=0,o=e.length;r<o;r++)n.call(null,e[r],r,e);else{if(_n(e))return;const i=t?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],n.call(null,e[s],s,e)}}function Sl(e,n){if(_n(e))return null;n=n.toLowerCase();const t=Object.keys(e);let r=t.length,o;for(;r-- >0;)if(o=t[r],n===o.toLowerCase())return o;return null}const mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xl=e=>!bn(e)&&e!==mr;function oa(){const{caseless:e}=xl(this)&&this||{},n={},t=(r,o)=>{const i=e&&Sl(n,o)||o;Lo(n[i])&&Lo(r)?n[i]=oa(n[i],r):Lo(r)?n[i]=oa({},r):Br(r)?n[i]=r.slice():n[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Sn(arguments[r],t);return n}const ky=(e,n,t,{allOwnKeys:r}={})=>(Sn(n,(o,i)=>{t&&ot(o)?e[i]=yl(o,t):e[i]=o},{allOwnKeys:r}),e),Dy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Cy=(e,n,t,r)=>{e.prototype=Object.create(n.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),t&&Object.assign(e.prototype,t)},Ey=(e,n,t,r)=>{let o,i,a;const s={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,n))&&!s[a]&&(n[a]=e[a],s[a]=!0);e=t!==!1&&na(e)}while(e&&(!t||t(e,n))&&e!==Object.prototype);return n},Ty=(e,n,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=n.length;const r=e.indexOf(n,t);return r!==-1&&r===t},Oy=e=>{if(!e)return null;if(Br(e))return e;let n=e.length;if(!wl(n))return null;const t=new Array(n);for(;n-- >0;)t[n]=e[n];return t},Ay=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&na(Uint8Array)),My=(e,n)=>{const r=(e&&e[No]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;n.call(e,i[0],i[1])}},Py=(e,n)=>{let t;const r=[];for(;(t=e.exec(n))!==null;)r.push(t);return r},Iy=kt("HTMLFormElement"),Ny=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,o){return r.toUpperCase()+o}),kl=(({hasOwnProperty:e})=>(n,t)=>e.call(n,t))(Object.prototype),Ry=kt("RegExp"),Dl=(e,n)=>{const t=Object.getOwnPropertyDescriptors(e),r={};Sn(t,(o,i)=>{let a;(a=n(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},$y=e=>{Dl(e,(n,t)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=e[t];if(ot(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Ly=(e,n)=>{const t={},r=o=>{o.forEach(i=>{t[i]=!0})};return Br(e)?r(e):r(String(e).split(n)),t},jy=()=>{},zy=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function By(e){return!!(e&&ot(e.append)&&e[bl]==="FormData"&&e[No])}const Yy=e=>{const n=new Array(10),t=(r,o)=>{if(wn(r)){if(n.indexOf(r)>=0)return;if(_n(r))return r;if(!("toJSON"in r)){n[o]=r;const i=Br(r)?[]:{};return Sn(r,(a,s)=>{const c=t(a,o+1);!bn(c)&&(i[s]=c)}),n[o]=void 0,i}}return r};return t(e,0)},Fy=kt("AsyncFunction"),Vy=e=>e&&(wn(e)||ot(e))&&ot(e.then)&&ot(e.catch),Cl=((e,n)=>e?setImmediate:n?((t,r)=>(mr.addEventListener("message",({source:o,data:i})=>{o===mr&&i===t&&r.length&&r.shift()()},!1),o=>{r.push(o),mr.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",ot(mr.postMessage)),Uy=typeof queueMicrotask<"u"?queueMicrotask.bind(mr):typeof process<"u"&&process.nextTick||Cl,M={isArray:Br,isArrayBuffer:_l,isBuffer:_n,isFormData:vy,isArrayBufferView:cy,isString:ly,isNumber:wl,isBoolean:uy,isObject:wn,isPlainObject:Lo,isEmptyObject:dy,isReadableStream:by,isRequest:_y,isResponse:wy,isHeaders:Sy,isUndefined:bn,isDate:fy,isFile:py,isBlob:hy,isRegExp:Ry,isFunction:ot,isStream:gy,isURLSearchParams:yy,isTypedArray:Ay,isFileList:my,forEach:Sn,merge:oa,extend:ky,trim:xy,stripBOM:Dy,inherits:Cy,toFlatObject:Ey,kindOf:Ro,kindOfTest:kt,endsWith:Ty,toArray:Oy,forEachEntry:My,matchAll:Py,isHTMLForm:Iy,hasOwnProperty:kl,hasOwnProp:kl,reduceDescriptors:Dl,freezeMethods:$y,toObjectSet:Ly,toCamelCase:Ny,noop:jy,toFiniteNumber:zy,findKey:Sl,global:mr,isContextDefined:xl,isSpecCompliantForm:By,toJSONObject:Yy,isAsyncFn:Fy,isThenable:Vy,setImmediate:Cl,asap:Uy,isIterable:e=>e!=null&&ot(e[No])};function fe(e,n,t,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),t&&(this.config=t),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}M.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}});const El=fe.prototype,Tl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Tl[e]={value:e}}),Object.defineProperties(fe,Tl),Object.defineProperty(El,"isAxiosError",{value:!0}),fe.from=(e,n,t,r,o,i)=>{const a=Object.create(El);return M.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),fe.call(a,e.message,n,t,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Hy=null;function ia(e){return M.isPlainObject(e)||M.isArray(e)}function Ol(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function Al(e,n,t){return e?e.concat(n).map(function(o,i){return o=Ol(o),!t&&i?"["+o+"]":o}).join(t?".":""):n}function Wy(e){return M.isArray(e)&&!e.some(ia)}const Zy=M.toFlatObject(M,{},null,function(n){return/^is[A-Z]/.test(n)});function jo(e,n,t){if(!M.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,t=M.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!M.isUndefined(y[p])});const r=t.metaTokens,o=t.visitor||u,i=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(n);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(M.isDate(g))return g.toISOString();if(M.isBoolean(g))return g.toString();if(!c&&M.isBlob(g))throw new fe("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(g)||M.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,y){let k=g;if(g&&!y&&typeof g=="object"){if(M.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(M.isArray(g)&&Wy(g)||(M.isFileList(g)||M.endsWith(p,"[]"))&&(k=M.toArray(g)))return p=Ol(p),k.forEach(function(E,C){!(M.isUndefined(E)||E===null)&&n.append(a===!0?Al([p],C,i):a===null?p:p+"[]",l(E))}),!1}return ia(g)?!0:(n.append(Al(y,p,i),l(g)),!1)}const d=[],f=Object.assign(Zy,{defaultVisitor:u,convertValue:l,isVisitable:ia});function m(g,p){if(!M.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),M.forEach(g,function(k,S){(!(M.isUndefined(k)||k===null)&&o.call(n,k,M.isString(S)?S.trim():S,p,f))===!0&&m(k,p?p.concat(S):[S])}),d.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return m(e),n}function Ml(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function aa(e,n){this._pairs=[],e&&jo(e,this,n)}const Pl=aa.prototype;Pl.append=function(n,t){this._pairs.push([n,t])},Pl.toString=function(n){const t=n?function(r){return n.call(this,r,Ml)}:Ml;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function qy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Il(e,n,t){if(!n)return e;const r=t&&t.encode||qy;M.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let i;if(o?i=o(n,t):i=M.isURLSearchParams(n)?n.toString():new aa(n,t).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Nl{constructor(){this.handlers=[]}use(n,t,r){return this.handlers.push({fulfilled:n,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){M.forEach(this.handlers,function(r){r!==null&&n(r)})}}const Rl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ky={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:aa,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},sa=typeof window<"u"&&typeof document<"u",ca=typeof navigator=="object"&&navigator||void 0,Gy=sa&&(!ca||["ReactNative","NativeScript","NS"].indexOf(ca.product)<0),Qy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jy=sa&&window.location.href||"http://localhost",et={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sa,hasStandardBrowserEnv:Gy,hasStandardBrowserWebWorkerEnv:Qy,navigator:ca,origin:Jy},Symbol.toStringTag,{value:"Module"})),...Ky};function Xy(e,n){return jo(e,new et.classes.URLSearchParams,{visitor:function(t,r,o,i){return et.isNode&&M.isBuffer(t)?(this.append(r,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...n})}function eb(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function tb(e){const n={},t=Object.keys(e);let r;const o=t.length;let i;for(r=0;r<o;r++)i=t[r],n[i]=e[i];return n}function $l(e){function n(t,r,o,i){let a=t[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=t.length;return a=!a&&M.isArray(o)?o.length:a,c?(M.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!M.isObject(o[a]))&&(o[a]=[]),n(t,r,o[a],i)&&M.isArray(o[a])&&(o[a]=tb(o[a])),!s)}if(M.isFormData(e)&&M.isFunction(e.entries)){const t={};return M.forEachEntry(e,(r,o)=>{n(eb(r),o,t,0)}),t}return null}function rb(e,n,t){if(M.isString(e))try{return(n||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(e)}const xn={transitional:Rl,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=M.isObject(n);if(i&&M.isHTMLForm(n)&&(n=new FormData(n)),M.isFormData(n))return o?JSON.stringify($l(n)):n;if(M.isArrayBuffer(n)||M.isBuffer(n)||M.isStream(n)||M.isFile(n)||M.isBlob(n)||M.isReadableStream(n))return n;if(M.isArrayBufferView(n))return n.buffer;if(M.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xy(n,this.formSerializer).toString();if((s=M.isFileList(n))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return jo(s?{"files[]":n}:n,c&&new c,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),rb(n)):n}],transformResponse:[function(n){const t=this.transitional||xn.transitional,r=t&&t.forcedJSONParsing,o=this.responseType==="json";if(M.isResponse(n)||M.isReadableStream(n))return n;if(n&&M.isString(n)&&(r&&!this.responseType||o)){const a=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(s){if(a)throw s.name==="SyntaxError"?fe.from(s,fe.ERR_BAD_RESPONSE,this,null,this.response):s}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{xn.headers[e]={}});const nb=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ob=e=>{const n={};let t,r,o;return e&&e.split(`
|
|
145
|
+
`).forEach(function(a){o=a.indexOf(":"),t=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!t||n[t]&&nb[t])&&(t==="set-cookie"?n[t]?n[t].push(r):n[t]=[r]:n[t]=n[t]?n[t]+", "+r:r)}),n},Ll=Symbol("internals");function kn(e){return e&&String(e).trim().toLowerCase()}function zo(e){return e===!1||e==null?e:M.isArray(e)?e.map(zo):String(e)}function ib(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(e);)n[r[1]]=r[2];return n}const ab=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function la(e,n,t,r,o){if(M.isFunction(r))return r.call(this,n,t);if(o&&(n=t),!!M.isString(n)){if(M.isString(r))return n.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(n)}}function sb(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,t,r)=>t.toUpperCase()+r)}function cb(e,n){const t=M.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+t,{value:function(o,i,a){return this[r].call(this,n,o,i,a)},configurable:!0})})}let it=class{constructor(n){n&&this.set(n)}set(n,t,r){const o=this;function i(s,c,l){const u=kn(c);if(!u)throw new Error("header name must be a non-empty string");const d=M.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||c]=zo(s))}const a=(s,c)=>M.forEach(s,(l,u)=>i(l,u,c));if(M.isPlainObject(n)||n instanceof this.constructor)a(n,t);else if(M.isString(n)&&(n=n.trim())&&!ab(n))a(ob(n),t);else if(M.isObject(n)&&M.isIterable(n)){let s={},c,l;for(const u of n){if(!M.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(c=s[l])?M.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(s,t)}else n!=null&&i(t,n,r);return this}get(n,t){if(n=kn(n),n){const r=M.findKey(this,n);if(r){const o=this[r];if(!t)return o;if(t===!0)return ib(o);if(M.isFunction(t))return t.call(this,o,r);if(M.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,t){if(n=kn(n),n){const r=M.findKey(this,n);return!!(r&&this[r]!==void 0&&(!t||la(this,this[r],r,t)))}return!1}delete(n,t){const r=this;let o=!1;function i(a){if(a=kn(a),a){const s=M.findKey(r,a);s&&(!t||la(r,r[s],s,t))&&(delete r[s],o=!0)}}return M.isArray(n)?n.forEach(i):i(n),o}clear(n){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const i=t[r];(!n||la(this,this[i],i,n,!0))&&(delete this[i],o=!0)}return o}normalize(n){const t=this,r={};return M.forEach(this,(o,i)=>{const a=M.findKey(r,i);if(a){t[a]=zo(o),delete t[i];return}const s=n?sb(i):String(i).trim();s!==i&&delete t[i],t[s]=zo(o),r[s]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const t=Object.create(null);return M.forEach(this,(r,o)=>{r!=null&&r!==!1&&(t[o]=n&&M.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,t])=>n+": "+t).join(`
|
|
146
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const r=new this(n);return t.forEach(o=>r.set(o)),r}static accessor(n){const r=(this[Ll]=this[Ll]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=kn(a);r[s]||(cb(o,a),r[s]=!0)}return M.isArray(n)?n.forEach(i):i(n),this}};it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),M.reduceDescriptors(it.prototype,({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(r){this[t]=r}}}),M.freezeMethods(it);function ua(e,n){const t=this||xn,r=n||t,o=it.from(r.headers);let i=r.data;return M.forEach(e,function(s){i=s.call(t,i,o.normalize(),n?n.status:void 0)}),o.normalize(),i}function jl(e){return!!(e&&e.__CANCEL__)}function Yr(e,n,t){fe.call(this,e??"canceled",fe.ERR_CANCELED,n,t),this.name="CanceledError"}M.inherits(Yr,fe,{__CANCEL__:!0});function zl(e,n,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?e(t):n(new fe("Request failed with status code "+t.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function lb(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function ub(e,n){e=e||10;const t=new Array(e),r=new Array(e);let o=0,i=0,a;return n=n!==void 0?n:1e3,function(c){const l=Date.now(),u=r[i];a||(a=l),t[o]=c,r[o]=l;let d=i,f=0;for(;d!==o;)f+=t[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<n)return;const m=u&&l-u;return m?Math.round(f*1e3/m):void 0}}function db(e,n){let t=0,r=1e3/n,o,i;const a=(l,u=Date.now())=>{t=u,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-t;d>=r?a(l,u):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},r-d)))},()=>o&&a(o)]}const Bo=(e,n,t=3)=>{let r=0;const o=ub(50,250);return db(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,c=a-r,l=o(c),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[n?"download":"upload"]:!0};e(d)},t)},Bl=(e,n)=>{const t=e!=null;return[r=>n[0]({lengthComputable:t,total:e,loaded:r}),n[1]]},Yl=e=>(...n)=>M.asap(()=>e(...n)),fb=et.hasStandardBrowserEnv?((e,n)=>t=>(t=new URL(t,et.origin),e.protocol===t.protocol&&e.host===t.host&&(n||e.port===t.port)))(new URL(et.origin),et.navigator&&/(msie|trident)/i.test(et.navigator.userAgent)):()=>!0,pb=et.hasStandardBrowserEnv?{write(e,n,t,r,o,i){const a=[e+"="+encodeURIComponent(n)];M.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),M.isString(r)&&a.push("path="+r),M.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mb(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Fl(e,n,t){let r=!hb(n);return e&&(r||t==!1)?mb(e,n):n}const Vl=e=>e instanceof it?{...e}:e;function gr(e,n){n=n||{};const t={};function r(l,u,d,f){return M.isPlainObject(l)&&M.isPlainObject(u)?M.merge.call({caseless:f},l,u):M.isPlainObject(u)?M.merge({},u):M.isArray(u)?u.slice():u}function o(l,u,d,f){if(M.isUndefined(u)){if(!M.isUndefined(l))return r(void 0,l,d,f)}else return r(l,u,d,f)}function i(l,u){if(!M.isUndefined(u))return r(void 0,u)}function a(l,u){if(M.isUndefined(u)){if(!M.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function s(l,u,d){if(d in n)return r(l,u);if(d in e)return r(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u,d)=>o(Vl(l),Vl(u),d,!0)};return M.forEach(Object.keys({...e,...n}),function(u){const d=c[u]||o,f=d(e[u],n[u],u);M.isUndefined(f)&&d!==s||(t[u]=f)}),t}const Ul=e=>{const n=gr({},e);let{data:t,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=n;n.headers=a=it.from(a),n.url=Il(Fl(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(M.isFormData(t)){if(et.hasStandardBrowserEnv||et.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...u].join("; "))}}if(et.hasStandardBrowserEnv&&(r&&M.isFunction(r)&&(r=r(n)),r||r!==!1&&fb(n.url))){const l=o&&i&&pb.read(i);l&&a.set(o,l)}return n},gb=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,r){const o=Ul(e);let i=o.data;const a=it.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,u,d,f,m,g;function p(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function k(){if(!y)return;const E=it.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:E,config:e,request:y};zl(function(N){t(N),p()},function(N){r(N),p()},x),y=null}"onloadend"in y?y.onloadend=k:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(k)},y.onabort=function(){y&&(r(new fe("Request aborted",fe.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||Rl;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new fe(C,x.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&M.forEach(a.toJSON(),function(C,x){y.setRequestHeader(x,C)}),M.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),l&&([f,g]=Bo(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([d,m]=Bo(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=E=>{y&&(r(!E||E.type?new Yr(null,e,y):E),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const S=lb(o.url);if(S&&et.protocols.indexOf(S)===-1){r(new fe("Unsupported protocol "+S+":",fe.ERR_BAD_REQUEST,e));return}y.send(i||null)})},vb=(e,n)=>{const{length:t}=e=e?e.filter(Boolean):[];if(n||t){let r=new AbortController,o;const i=function(l){if(!o){o=!0,s();const u=l instanceof Error?l:this.reason;r.abort(u instanceof fe?u:new Yr(u instanceof Error?u.message:u))}};let a=n&&setTimeout(()=>{a=null,i(new fe(`timeout ${n} of ms exceeded`,fe.ETIMEDOUT))},n);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>M.asap(s),c}},yb=function*(e,n){let t=e.byteLength;if(t<n){yield e;return}let r=0,o;for(;r<t;)o=r+n,yield e.slice(r,o),r=o},bb=async function*(e,n){for await(const t of _b(e))yield*yb(t,n)},_b=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:t,value:r}=await n.read();if(t)break;yield r}}finally{await n.cancel()}},Hl=(e,n,t,r)=>{const o=bb(e,n);let i=0,a,s=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){s(),c.close();return}let d=u.byteLength;if(t){let f=i+=d;t(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),o.return()}},{highWaterMark:2})},Yo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wl=Yo&&typeof ReadableStream=="function",wb=Yo&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Zl=(e,...n)=>{try{return!!e(...n)}catch{return!1}},Sb=Wl&&Zl(()=>{let e=!1;const n=new Request(et.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),ql=64*1024,da=Wl&&Zl(()=>M.isReadableStream(new Response("").body)),Fo={stream:da&&(e=>e.body)};Yo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Fo[n]&&(Fo[n]=M.isFunction(e[n])?t=>t[n]():(t,r)=>{throw new fe(`Response type '${n}' is not supported`,fe.ERR_NOT_SUPPORT,r)})})})(new Response);const xb=async e=>{if(e==null)return 0;if(M.isBlob(e))return e.size;if(M.isSpecCompliantForm(e))return(await new Request(et.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(M.isArrayBufferView(e)||M.isArrayBuffer(e))return e.byteLength;if(M.isURLSearchParams(e)&&(e=e+""),M.isString(e))return(await wb(e)).byteLength},kb=async(e,n)=>{const t=M.toFiniteNumber(e.getContentLength());return t??xb(n)},fa={http:Hy,xhr:gb,fetch:Yo&&(async e=>{let{url:n,method:t,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Ul(e);l=l?(l+"").toLowerCase():"text";let m=vb([o,i&&i.toAbortSignal()],a),g;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let y;try{if(c&&Sb&&t!=="get"&&t!=="head"&&(y=await kb(u,r))!==0){let x=new Request(n,{method:"POST",body:r,duplex:"half"}),O;if(M.isFormData(r)&&(O=x.headers.get("content-type"))&&u.setContentType(O),x.body){const[N,q]=Bl(y,Bo(Yl(c)));r=Hl(x.body,ql,N,q)}}M.isString(d)||(d=d?"include":"omit");const k="credentials"in Request.prototype;g=new Request(n,{...f,signal:m,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:k?d:void 0});let S=await fetch(g,f);const E=da&&(l==="stream"||l==="response");if(da&&(s||E&&p)){const x={};["status","statusText","headers"].forEach(V=>{x[V]=S[V]});const O=M.toFiniteNumber(S.headers.get("content-length")),[N,q]=s&&Bl(O,Bo(Yl(s),!0))||[];S=new Response(Hl(S.body,ql,N,()=>{q&&q(),p&&p()}),x)}l=l||"text";let C=await Fo[M.findKey(Fo,l)||"text"](S,e);return!E&&p&&p(),await new Promise((x,O)=>{zl(x,O,{data:C,headers:it.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:g})})}catch(k){throw p&&p(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,e,g),{cause:k.cause||k}):fe.from(k,k&&k.code,e,g)}})};M.forEach(fa,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Kl=e=>`- ${e}`,Db=e=>M.isFunction(e)||e===null||e===!1,Gl={getAdapter:e=>{e=M.isArray(e)?e:[e];const{length:n}=e;let t,r;const o={};for(let i=0;i<n;i++){t=e[i];let a;if(r=t,!Db(t)&&(r=fa[(a=String(t)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
|
|
147
|
+
`+i.map(Kl).join(`
|
|
148
|
+
`):" "+Kl(i[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:fa};function pa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yr(null,e)}function Ql(e){return pa(e),e.headers=it.from(e.headers),e.data=ua.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gl.getAdapter(e.adapter||xn.adapter)(e).then(function(r){return pa(e),r.data=ua.call(e,e.transformResponse,r),r.headers=it.from(r.headers),r},function(r){return jl(r)||(pa(e),r&&r.response&&(r.response.data=ua.call(e,e.transformResponse,r.response),r.response.headers=it.from(r.response.headers))),Promise.reject(r)})}const Jl="1.11.0",Vo={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{Vo[e]=function(r){return typeof r===e||"a"+(n<1?"n ":" ")+e}});const Xl={};Vo.transitional=function(n,t,r){function o(i,a){return"[Axios v"+Jl+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(n===!1)throw new fe(o(a," has been removed"+(t?" in "+t:"")),fe.ERR_DEPRECATED);return t&&!Xl[a]&&(Xl[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(i,a,s):!0}},Vo.spelling=function(n){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${n}`),!0)};function Cb(e,n,t){if(typeof e!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=n[i];if(a){const s=e[i],c=s===void 0||a(s,i,e);if(c!==!0)throw new fe("option "+i+" must be "+c,fe.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new fe("Unknown option "+i,fe.ERR_BAD_OPTION)}}const Uo={assertOptions:Cb,validators:Vo},jt=Uo.validators;let vr=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Nl,response:new Nl}}async request(n,t){try{return await this._request(n,t)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
149
|
+
`+i):r.stack=i}catch{}}throw r}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=gr(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:i}=t;r!==void 0&&Uo.assertOptions(r,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),o!=null&&(M.isFunction(o)?t.paramsSerializer={serialize:o}:Uo.assertOptions(o,{encode:jt.function,serialize:jt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Uo.assertOptions(t,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&M.merge(i.common,i[t.method]);i&&M.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),t.headers=it.concat(a,i);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const g=[Ql.bind(this),void 0];for(g.unshift(...s),g.push(...l),f=g.length,u=Promise.resolve(t);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let m=t;for(d=0;d<f;){const g=s[d++],p=s[d++];try{m=g(m)}catch(y){p.call(this,y);break}}try{u=Ql.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(n){n=gr(this.defaults,n);const t=Fl(n.baseURL,n.url,n.allowAbsoluteUrls);return Il(t,n.params,n.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(n){vr.prototype[n]=function(t,r){return this.request(gr(r||{},{method:n,url:t,data:(r||{}).data}))}}),M.forEach(["post","put","patch"],function(n){function t(r){return function(i,a,s){return this.request(gr(s||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}vr.prototype[n]=t(),vr.prototype[n+"Form"]=t(!0)});let Eb=class Td{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},n(function(i,a,s){r.reason||(r.reason=new Yr(i,a,s),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const t=this._listeners.indexOf(n);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const n=new AbortController,t=r=>{n.abort(r)};return this.subscribe(t),n.signal.unsubscribe=()=>this.unsubscribe(t),n.signal}static source(){let n;return{token:new Td(function(o){n=o}),cancel:n}}};function Tb(e){return function(t){return e.apply(null,t)}}function Ob(e){return M.isObject(e)&&e.isAxiosError===!0}const ha={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ha).forEach(([e,n])=>{ha[n]=e});function eu(e){const n=new vr(e),t=yl(vr.prototype.request,n);return M.extend(t,vr.prototype,n,{allOwnKeys:!0}),M.extend(t,n,null,{allOwnKeys:!0}),t.create=function(o){return eu(gr(e,o))},t}const Ye=eu(xn);Ye.Axios=vr,Ye.CanceledError=Yr,Ye.CancelToken=Eb,Ye.isCancel=jl,Ye.VERSION=Jl,Ye.toFormData=jo,Ye.AxiosError=fe,Ye.Cancel=Ye.CanceledError,Ye.all=function(n){return Promise.all(n)},Ye.spread=Tb,Ye.isAxiosError=Ob,Ye.mergeConfig=gr,Ye.AxiosHeaders=it,Ye.formToJSON=e=>$l(M.isHTMLForm(e)?new FormData(e):e),Ye.getAdapter=Gl.getAdapter,Ye.HttpStatusCode=ha,Ye.default=Ye;const{Axios:Bk,AxiosError:Yk,CanceledError:Fk,isCancel:Vk,CancelToken:Uk,VERSION:Hk,all:Wk,Cancel:Zk,isAxiosError:qk,spread:Kk,toFormData:Gk,AxiosHeaders:Qk,HttpStatusCode:Jk,formToJSON:Xk,getAdapter:eD,mergeConfig:tD}=Ye,rr=Ye.create({baseURL:"https://www.api.qa.crm.softbox.mx/api/",headers:{"Content-Type":"application/json"}});rr.interceptors.request.use(e=>{const n=sessionStorage.getItem("token");return n&&(e.headers.Authorization=`Bearer ${n}`),e},e=>Promise.reject(e));class Ab{url="/Calendario/v1";async getEventsByUser(n){try{return(await rr.get(`${this.url}/local/ListarEventosXUsuario/${n}`)).data.map(r=>({...r,fechaInicio:new Date(v.format(r.fechaInicio,"yyyy-MM-dd HH:mm:ss.SSS")),fechaFin:new Date(v.format(r.fechaFin,"yyyy-MM-dd HH:mm:ss.SSS"))}))}catch(t){return console.error("Error events:",t),[]}}async createEvent(n){try{const t=sessionStorage.getItem("usrID"),r=await rr.post(`${this.url}/local/InsertarEvento/${t}`,n);return console.log(r),{...r.data,fechaInicio:new Date(r.data.fechaInicio),fechaFin:new Date(r.data.fechaFin)}}catch(t){throw console.log("Error creating event:",t),t}}async updateEvent(n){try{const t=await rr.post(`${this.url}/local/ActualizarEvento/${n.eventoID}`,n);return{eventoID:t.data.eventoID,titulo:t.data.titulo,descripcion:t.data.descripcion,fechaInicio:new Date(t.data.fechaInicio),fechaFin:new Date(t.data.fechaFin),todoElDia:t.data.todoElDia,color:t.data.color,repetir:t.data.repetir}}catch(t){throw console.log("Error updating event:",t),t}}async getEventById(n){try{return(await rr.get(`${this.url}/local/ObtenerEvento/${n}`)).data}catch(t){throw console.error(`Error fetching event with ID ${n}:`,t),t}}async deleteEvent(n){try{await rr.post(`${this.url}/local/EliminarEvento/${n}`)}catch(t){throw console.log(`Error ID ${n}:`,t),t}}async getClients(){try{const n={masNombreBD:sessionStorage.getItem("BD"),usrID:sessionStorage.getItem("usrID"),disID:sessionStorage.getItem("disID"),nombreCliente:""};return(await rr.post(`${this.url}/ConsultaClientesXUsuariologgeado`,n)).data.data.map(r=>({clienteID:r.clienteID,solID:r.solID,marca:r?.marca,modelo:r?.modelo,nombreCliente:r?.nombreCliente}))}catch(n){return console.error("Error clientes:",n),[]}}async login(){try{const n={usrMail:"kaath1261@gmail.com",usrpass:"kathy1261",masID:"10"},t=await rr.post("Autenticacion/v1/Login2",n);return sessionStorage.setItem("disID",t?.data?.data[0]?.disID),sessionStorage.setItem("masID",t?.data?.data[0]?.masID),sessionStorage.setItem("masNombre",t?.data?.data[0]?.masNombre),sessionStorage.setItem("BD",t?.data?.data[0]?.masNombreBD),sessionStorage.setItem("token",t?.data?.data[0]?.token),sessionStorage.setItem("usrID",t?.data?.data[0]?.usrID),t.data}catch(n){throw console.error("Error login:",n),n}}}const tu=ur([_.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),_.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var Dn=e=>e.type==="checkbox",yr=e=>e instanceof Date,rt=e=>e==null;const ru=e=>typeof e=="object";var Fe=e=>!rt(e)&&!Array.isArray(e)&&ru(e)&&!yr(e),nu=e=>Fe(e)&&e.target?Dn(e.target)?e.target.checked:e.target.value:e,Mb=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ou=(e,n)=>e.has(Mb(n)),Pb=e=>{const n=e.constructor&&e.constructor.prototype;return Fe(n)&&n.hasOwnProperty("isPrototypeOf")},ma=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function qe(e){let n;const t=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(ma&&(e instanceof Blob||r))&&(t||Fe(e)))if(n=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Pb(e))n=e;else for(const o in e)e.hasOwnProperty(o)&&(n[o]=qe(e[o]));else return e;return n}var Ho=e=>/^\w*$/.test(e),Ve=e=>e===void 0,ga=e=>Array.isArray(e)?e.filter(Boolean):[],va=e=>ga(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Z=(e,n,t)=>{if(!n||!Fe(e))return t;const r=(Ho(n)?[n]:va(n)).reduce((o,i)=>rt(o)?o:o[i],e);return Ve(r)||r===e?Ve(e[n])?t:e[n]:r},pt=e=>typeof e=="boolean",De=(e,n,t)=>{let r=-1;const o=Ho(n)?[n]:va(n),i=o.length,a=i-1;for(;++r<i;){const s=o[r];let c=t;if(r!==a){const l=e[s];c=Fe(l)||Array.isArray(l)?l:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}};const Wo={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Dt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ht={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},iu=b.createContext(null);iu.displayName="HookFormContext";const ya=()=>b.useContext(iu);var au=(e,n,t,r=!0)=>{const o={defaultValues:n._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return n._proxyFormState[a]!==Dt.all&&(n._proxyFormState[a]=!r||Dt.all),t&&(t[a]=!0),e[a]}});return o};const ba=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Ib(e){const n=ya(),{control:t=n.control,disabled:r,name:o,exact:i}=e||{},[a,s]=b.useState(t._formState),c=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ba(()=>t._subscribe({name:o,formState:c.current,exact:i,callback:l=>{!r&&s({...t._formState,...l})}}),[o,r,i]),b.useEffect(()=>{c.current.isValid&&t._setValid(!0)},[t]),b.useMemo(()=>au(a,t,c.current,!1),[a,t])}var zt=e=>typeof e=="string",su=(e,n,t,r,o)=>zt(e)?(r&&n.watch.add(e),Z(t,e,o)):Array.isArray(e)?e.map(i=>(r&&n.watch.add(i),Z(t,i))):(r&&(n.watchAll=!0),t),_a=e=>rt(e)||!ru(e);function Wt(e,n,t=new WeakSet){if(_a(e)||_a(n))return e===n;if(yr(e)&&yr(n))return e.getTime()===n.getTime();const r=Object.keys(e),o=Object.keys(n);if(r.length!==o.length)return!1;if(t.has(e)||t.has(n))return!0;t.add(e),t.add(n);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=n[i];if(yr(a)&&yr(s)||Fe(a)&&Fe(s)||Array.isArray(a)&&Array.isArray(s)?!Wt(a,s,t):a!==s)return!1}}return!0}function Nb(e){const n=ya(),{control:t=n.control,name:r,defaultValue:o,disabled:i,exact:a,compute:s}=e||{},c=b.useRef(o),l=b.useRef(s),u=b.useRef(void 0);l.current=s;const d=b.useMemo(()=>t._getWatch(r,c.current),[t,r]),[f,m]=b.useState(l.current?l.current(d):d);return ba(()=>t._subscribe({name:r,formState:{values:!0},exact:a,callback:g=>{if(!i){const p=su(r,t._names,g.values||t._formValues,!1,c.current);if(l.current){const y=l.current(p);Wt(y,u.current)||(m(y),u.current=y)}else m(p)}}}),[t,i,r,a]),b.useEffect(()=>t._removeUnmounted()),f}function Rb(e){const n=ya(),{name:t,disabled:r,control:o=n.control,shouldUnregister:i,defaultValue:a}=e,s=ou(o._names.array,t),c=b.useMemo(()=>Z(o._formValues,t,Z(o._defaultValues,t,a)),[o,t,a]),l=Nb({control:o,name:t,defaultValue:c,exact:!0}),u=Ib({control:o,name:t,exact:!0}),d=b.useRef(e),f=b.useRef(o.register(t,{...e.rules,value:l,...pt(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const m=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Z(u.errors,t)},isDirty:{enumerable:!0,get:()=>!!Z(u.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!Z(u.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!Z(u.validatingFields,t)},error:{enumerable:!0,get:()=>Z(u.errors,t)}}),[u,t]),g=b.useCallback(S=>f.current.onChange({target:{value:nu(S),name:t},type:Wo.CHANGE}),[t]),p=b.useCallback(()=>f.current.onBlur({target:{value:Z(o._formValues,t),name:t},type:Wo.BLUR}),[t,o._formValues]),y=b.useCallback(S=>{const E=Z(o._fields,t);E&&S&&(E._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:C=>S.setCustomValidity(C),reportValidity:()=>S.reportValidity()})},[o._fields,t]),k=b.useMemo(()=>({name:t,value:l,...pt(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:g,onBlur:p,ref:y}),[t,r,u.disabled,g,p,y,l]);return b.useEffect(()=>{const S=o._options.shouldUnregister||i;o.register(t,{...d.current.rules,...pt(d.current.disabled)?{disabled:d.current.disabled}:{}});const E=(C,x)=>{const O=Z(o._fields,C);O&&O._f&&(O._f.mount=x)};if(E(t,!0),S){const C=qe(Z(o._options.defaultValues,t));De(o._defaultValues,t,C),Ve(Z(o._formValues,t))&&De(o._formValues,t,C)}return!s&&o.register(t),()=>{(s?S&&!o._state.action:S)?o.unregister(t):E(t,!1)}},[t,o,s,i]),b.useEffect(()=>{o._setDisabledField({disabled:r,name:t})},[r,t,o]),b.useMemo(()=>({field:k,formState:u,fieldState:m}),[k,u,m])}const Ct=e=>e.render(Rb(e));var wa=(e,n,t,r,o)=>n?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[r]:o||!0}}:{},Cn=e=>Array.isArray(e)?e:[e],cu=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},at=e=>Fe(e)&&!Object.keys(e).length,Sa=e=>e.type==="file",Et=e=>typeof e=="function",Zo=e=>{if(!ma)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},lu=e=>e.type==="select-multiple",xa=e=>e.type==="radio",$b=e=>xa(e)||Dn(e),ka=e=>Zo(e)&&e.isConnected;function Lb(e,n){const t=n.slice(0,-1).length;let r=0;for(;r<t;)e=Ve(e)?r++:e[n[r++]];return e}function jb(e){for(const n in e)if(e.hasOwnProperty(n)&&!Ve(e[n]))return!1;return!0}function We(e,n){const t=Array.isArray(n)?n:Ho(n)?[n]:va(n),r=t.length===1?e:Lb(e,t),o=t.length-1,i=t[o];return r&&delete r[i],o!==0&&(Fe(r)&&at(r)||Array.isArray(r)&&jb(r))&&We(e,t.slice(0,-1)),e}var uu=e=>{for(const n in e)if(Et(e[n]))return!0;return!1};function qo(e,n={}){const t=Array.isArray(e);if(Fe(e)||t)for(const r in e)Array.isArray(e[r])||Fe(e[r])&&!uu(e[r])?(n[r]=Array.isArray(e[r])?[]:{},qo(e[r],n[r])):rt(e[r])||(n[r]=!0);return n}function du(e,n,t){const r=Array.isArray(e);if(Fe(e)||r)for(const o in e)Array.isArray(e[o])||Fe(e[o])&&!uu(e[o])?Ve(n)||_a(t[o])?t[o]=Array.isArray(e[o])?qo(e[o],[]):{...qo(e[o])}:du(e[o],rt(n)?{}:n[o],t[o]):t[o]=!Wt(e[o],n[o]);return t}var En=(e,n)=>du(e,n,qo(n));const fu={value:!1,isValid:!1},pu={value:!0,isValid:!0};var hu=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ve(e[0].attributes.value)?Ve(e[0].value)||e[0].value===""?pu:{value:e[0].value,isValid:!0}:pu:fu}return fu},mu=(e,{valueAsNumber:n,valueAsDate:t,setValueAs:r})=>Ve(e)?e:n?e===""?NaN:e&&+e:t&&zt(e)?new Date(e):r?r(e):e;const gu={isValid:!1,value:null};var vu=e=>Array.isArray(e)?e.reduce((n,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:n,gu):gu;function yu(e){const n=e.ref;return Sa(n)?n.files:xa(n)?vu(e.refs).value:lu(n)?[...n.selectedOptions].map(({value:t})=>t):Dn(n)?hu(e.refs).value:mu(Ve(n.value)?e.ref.value:n.value,e)}var zb=(e,n,t,r)=>{const o={};for(const i of e){const a=Z(n,i);a&&De(o,i,a._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:r}},Ko=e=>e instanceof RegExp,Tn=e=>Ve(e)?e:Ko(e)?e.source:Fe(e)?Ko(e.value)?e.value.source:e.value:e,bu=e=>({isOnSubmit:!e||e===Dt.onSubmit,isOnBlur:e===Dt.onBlur,isOnChange:e===Dt.onChange,isOnAll:e===Dt.all,isOnTouch:e===Dt.onTouched});const _u="AsyncFunction";var Bb=e=>!!e&&!!e.validate&&!!(Et(e.validate)&&e.validate.constructor.name===_u||Fe(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===_u)),Yb=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),wu=(e,n,t)=>!t&&(n.watchAll||n.watch.has(e)||[...n.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const On=(e,n,t,r)=>{for(const o of t||Object.keys(e)){const i=Z(e,o);if(i){const{_f:a,...s}=i;if(a){if(a.refs&&a.refs[0]&&n(a.refs[0],o)&&!r)return!0;if(a.ref&&n(a.ref,a.name)&&!r)return!0;if(On(s,n))break}else if(Fe(s)&&On(s,n))break}}};function Su(e,n,t){const r=Z(e,t);if(r||Ho(t))return{error:r,name:t};const o=t.split(".");for(;o.length;){const i=o.join("."),a=Z(n,i),s=Z(e,i);if(a&&!Array.isArray(a)&&t!==i)return{name:t};if(s&&s.type)return{name:i,error:s};if(s&&s.root&&s.root.type)return{name:`${i}.root`,error:s.root};o.pop()}return{name:t}}var Fb=(e,n,t,r)=>{t(e);const{name:o,...i}=e;return at(i)||Object.keys(i).length>=Object.keys(n).length||Object.keys(i).find(a=>n[a]===(!r||Dt.all))},Vb=(e,n,t)=>!e||!n||e===n||Cn(e).some(r=>r&&(t?r===n:r.startsWith(n)||n.startsWith(r))),Ub=(e,n,t,r,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(n||e):(t?r.isOnBlur:o.isOnBlur)?!e:(t?r.isOnChange:o.isOnChange)?e:!0,Hb=(e,n)=>!ga(Z(e,n)).length&&We(e,n),Wb=(e,n,t)=>{const r=Cn(Z(e,t));return De(r,"root",n[t]),De(e,t,r),e},Go=e=>zt(e);function xu(e,n,t="validate"){if(Go(e)||Array.isArray(e)&&e.every(Go)||pt(e)&&!e)return{type:t,message:Go(e)?e:"",ref:n}}var Fr=e=>Fe(e)&&!Ko(e)?e:{value:e,message:""},ku=async(e,n,t,r,o,i)=>{const{ref:a,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:m,validate:g,name:p,valueAsNumber:y,mount:k}=e._f,S=Z(t,p);if(!k||n.has(p))return{};const E=s?s[0]:a,C=h=>{o&&E.reportValidity&&(E.setCustomValidity(pt(h)?"":h||""),E.reportValidity())},x={},O=xa(a),N=Dn(a),q=O||N,V=(y||Sa(a))&&Ve(a.value)&&Ve(S)||Zo(a)&&a.value===""||S===""||Array.isArray(S)&&!S.length,j=wa.bind(null,p,r,x),z=(h,P,A,Y=Ht.maxLength,B=Ht.minLength)=>{const Q=h?P:A;x[p]={type:h?Y:B,message:Q,ref:a,...j(h?Y:B,Q)}};if(i?!Array.isArray(S)||!S.length:c&&(!q&&(V||rt(S))||pt(S)&&!S||N&&!hu(s).isValid||O&&!vu(s).isValid)){const{value:h,message:P}=Go(c)?{value:!!c,message:c}:Fr(c);if(h&&(x[p]={type:Ht.required,message:P,ref:E,...j(Ht.required,P)},!r))return C(P),x}if(!V&&(!rt(d)||!rt(f))){let h,P;const A=Fr(f),Y=Fr(d);if(!rt(S)&&!isNaN(S)){const B=a.valueAsNumber||S&&+S;rt(A.value)||(h=B>A.value),rt(Y.value)||(P=B<Y.value)}else{const B=a.valueAsDate||new Date(S),Q=D=>new Date(new Date().toDateString()+" "+D),ee=a.type=="time",he=a.type=="week";zt(A.value)&&S&&(h=ee?Q(S)>Q(A.value):he?S>A.value:B>new Date(A.value)),zt(Y.value)&&S&&(P=ee?Q(S)<Q(Y.value):he?S<Y.value:B<new Date(Y.value))}if((h||P)&&(z(!!h,A.message,Y.message,Ht.max,Ht.min),!r))return C(x[p].message),x}if((l||u)&&!V&&(zt(S)||i&&Array.isArray(S))){const h=Fr(l),P=Fr(u),A=!rt(h.value)&&S.length>+h.value,Y=!rt(P.value)&&S.length<+P.value;if((A||Y)&&(z(A,h.message,P.message),!r))return C(x[p].message),x}if(m&&!V&&zt(S)){const{value:h,message:P}=Fr(m);if(Ko(h)&&!S.match(h)&&(x[p]={type:Ht.pattern,message:P,ref:a,...j(Ht.pattern,P)},!r))return C(P),x}if(g){if(Et(g)){const h=await g(S,t),P=xu(h,E);if(P&&(x[p]={...P,...j(Ht.validate,P.message)},!r))return C(P.message),x}else if(Fe(g)){let h={};for(const P in g){if(!at(h)&&!r)break;const A=xu(await g[P](S,t),E,P);A&&(h={...A,...j(P,A.message)},C(A.message),r&&(x[p]=h))}if(!at(h)&&(x[p]={ref:E,...h},!r))return x}}return C(!0),x};const Zb={mode:Dt.onSubmit,reValidateMode:Dt.onChange,shouldFocusError:!0};function qb(e={}){let n={...Zb,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:Et(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},r={},o=Fe(n.defaultValues)||Fe(n.values)?qe(n.defaultValues||n.values)||{}:{},i=n.shouldUnregister?{}:qe(o),a={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const f={array:cu(),state:cu()},m=n.criteriaMode===Dt.all,g=w=>T=>{clearTimeout(l),l=setTimeout(w,T)},p=async w=>{if(!n.disabled&&(u.isValid||d.isValid||w)){const T=n.resolver?at((await N()).errors):await V(r,!0);T!==t.isValid&&f.state.next({isValid:T})}},y=(w,T)=>{!n.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((w||Array.from(s.mount)).forEach(R=>{R&&(T?De(t.validatingFields,R,T):We(t.validatingFields,R))}),f.state.next({validatingFields:t.validatingFields,isValidating:!at(t.validatingFields)}))},k=(w,T=[],R,J,K=!0,H=!0)=>{if(J&&R&&!n.disabled){if(a.action=!0,H&&Array.isArray(Z(r,w))){const le=R(Z(r,w),J.argA,J.argB);K&&De(r,w,le)}if(H&&Array.isArray(Z(t.errors,w))){const le=R(Z(t.errors,w),J.argA,J.argB);K&&De(t.errors,w,le),Hb(t.errors,w)}if((u.touchedFields||d.touchedFields)&&H&&Array.isArray(Z(t.touchedFields,w))){const le=R(Z(t.touchedFields,w),J.argA,J.argB);K&&De(t.touchedFields,w,le)}(u.dirtyFields||d.dirtyFields)&&(t.dirtyFields=En(o,i)),f.state.next({name:w,isDirty:z(w,T),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else De(i,w,T)},S=(w,T)=>{De(t.errors,w,T),f.state.next({errors:t.errors})},E=w=>{t.errors=w,f.state.next({errors:t.errors,isValid:!1})},C=(w,T,R,J)=>{const K=Z(r,w);if(K){const H=Z(i,w,Ve(R)?Z(o,w):R);Ve(H)||J&&J.defaultChecked||T?De(i,w,T?H:yu(K._f)):A(w,H),a.mount&&p()}},x=(w,T,R,J,K)=>{let H=!1,le=!1;const Ce={name:w};if(!n.disabled){if(!R||J){(u.isDirty||d.isDirty)&&(le=t.isDirty,t.isDirty=Ce.isDirty=z(),H=le!==Ce.isDirty);const Ae=Wt(Z(o,w),T);le=!!Z(t.dirtyFields,w),Ae?We(t.dirtyFields,w):De(t.dirtyFields,w,!0),Ce.dirtyFields=t.dirtyFields,H=H||(u.dirtyFields||d.dirtyFields)&&le!==!Ae}if(R){const Ae=Z(t.touchedFields,w);Ae||(De(t.touchedFields,w,R),Ce.touchedFields=t.touchedFields,H=H||(u.touchedFields||d.touchedFields)&&Ae!==R)}H&&K&&f.state.next(Ce)}return H?Ce:{}},O=(w,T,R,J)=>{const K=Z(t.errors,w),H=(u.isValid||d.isValid)&&pt(T)&&t.isValid!==T;if(n.delayError&&R?(c=g(()=>S(w,R)),c(n.delayError)):(clearTimeout(l),c=null,R?De(t.errors,w,R):We(t.errors,w)),(R?!Wt(K,R):K)||!at(J)||H){const le={...J,...H&&pt(T)?{isValid:T}:{},errors:t.errors,name:w};t={...t,...le},f.state.next(le)}},N=async w=>{y(w,!0);const T=await n.resolver(i,n.context,zb(w||s.mount,r,n.criteriaMode,n.shouldUseNativeValidation));return y(w),T},q=async w=>{const{errors:T}=await N(w);if(w)for(const R of w){const J=Z(T,R);J?De(t.errors,R,J):We(t.errors,R)}else t.errors=T;return T},V=async(w,T,R={valid:!0})=>{for(const J in w){const K=w[J];if(K){const{_f:H,...le}=K;if(H){const Ce=s.array.has(H.name),Ae=K._f&&Bb(K._f);Ae&&u.validatingFields&&y([J],!0);const bt=await ku(K,s.disabled,i,m,n.shouldUseNativeValidation&&!T,Ce);if(Ae&&u.validatingFields&&y([J]),bt[H.name]&&(R.valid=!1,T))break;!T&&(Z(bt,H.name)?Ce?Wb(t.errors,bt,H.name):De(t.errors,H.name,bt[H.name]):We(t.errors,H.name))}!at(le)&&await V(le,T,R)}}return R.valid},j=()=>{for(const w of s.unMount){const T=Z(r,w);T&&(T._f.refs?T._f.refs.every(R=>!ka(R)):!ka(T._f.ref))&&ae(w)}s.unMount=new Set},z=(w,T)=>!n.disabled&&(w&&T&&De(i,w,T),!Wt(D(),o)),h=(w,T,R)=>su(w,s,{...a.mount?i:Ve(T)?o:zt(w)?{[w]:T}:T},R,T),P=w=>ga(Z(a.mount?i:o,w,n.shouldUnregister?Z(o,w,[]):[])),A=(w,T,R={})=>{const J=Z(r,w);let K=T;if(J){const H=J._f;H&&(!H.disabled&&De(i,w,mu(T,H)),K=Zo(H.ref)&&rt(T)?"":T,lu(H.ref)?[...H.ref.options].forEach(le=>le.selected=K.includes(le.value)):H.refs?Dn(H.ref)?H.refs.forEach(le=>{(!le.defaultChecked||!le.disabled)&&(Array.isArray(K)?le.checked=!!K.find(Ce=>Ce===le.value):le.checked=K===le.value||!!K)}):H.refs.forEach(le=>le.checked=le.value===K):Sa(H.ref)?H.ref.value="":(H.ref.value=K,H.ref.type||f.state.next({name:w,values:qe(i)})))}(R.shouldDirty||R.shouldTouch)&&x(w,K,R.shouldTouch,R.shouldDirty,!0),R.shouldValidate&&he(w)},Y=(w,T,R)=>{for(const J in T){if(!T.hasOwnProperty(J))return;const K=T[J],H=w+"."+J,le=Z(r,H);(s.array.has(w)||Fe(K)||le&&!le._f)&&!yr(K)?Y(H,K,R):A(H,K,R)}},B=(w,T,R={})=>{const J=Z(r,w),K=s.array.has(w),H=qe(T);De(i,w,H),K?(f.array.next({name:w,values:qe(i)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&R.shouldDirty&&f.state.next({name:w,dirtyFields:En(o,i),isDirty:z(w,H)})):J&&!J._f&&!rt(H)?Y(w,H,R):A(w,H,R),wu(w,s)&&f.state.next({...t,name:w}),f.state.next({name:a.mount?w:void 0,values:qe(i)})},Q=async w=>{a.mount=!0;const T=w.target;let R=T.name,J=!0;const K=Z(r,R),H=Ae=>{J=Number.isNaN(Ae)||yr(Ae)&&isNaN(Ae.getTime())||Wt(Ae,Z(i,R,Ae))},le=bu(n.mode),Ce=bu(n.reValidateMode);if(K){let Ae,bt;const si=T.type?yu(K._f):nu(w),ir=w.type===Wo.BLUR||w.type===Wo.FOCUS_OUT,mx=!Yb(K._f)&&!n.resolver&&!Z(t.errors,R)&&!K._f.deps||Ub(ir,Z(t.touchedFields,R),t.isSubmitted,Ce,le),Ba=wu(R,s,ir);De(i,R,si),ir?(!T||!T.readOnly)&&(K._f.onBlur&&K._f.onBlur(w),c&&c(0)):K._f.onChange&&K._f.onChange(w);const Ya=x(R,si,ir),gx=!at(Ya)||Ba;if(!ir&&f.state.next({name:R,type:w.type,values:qe(i)}),mx)return(u.isValid||d.isValid)&&(n.mode==="onBlur"?ir&&p():ir||p()),gx&&f.state.next({name:R,...Ba?{}:Ya});if(!ir&&Ba&&f.state.next({...t}),n.resolver){const{errors:Cd}=await N([R]);if(H(si),J){const vx=Su(t.errors,r,R),Ed=Su(Cd,r,vx.name||R);Ae=Ed.error,R=Ed.name,bt=at(Cd)}}else y([R],!0),Ae=(await ku(K,s.disabled,i,m,n.shouldUseNativeValidation))[R],y([R]),H(si),J&&(Ae?bt=!1:(u.isValid||d.isValid)&&(bt=await V(r,!0)));J&&(K._f.deps&&he(K._f.deps),O(R,bt,Ae,Ya))}},ee=(w,T)=>{if(Z(t.errors,T)&&w.focus)return w.focus(),1},he=async(w,T={})=>{let R,J;const K=Cn(w);if(n.resolver){const H=await q(Ve(w)?w:K);R=at(H),J=w?!K.some(le=>Z(H,le)):R}else w?(J=(await Promise.all(K.map(async H=>{const le=Z(r,H);return await V(le&&le._f?{[H]:le}:le)}))).every(Boolean),!(!J&&!t.isValid)&&p()):J=R=await V(r);return f.state.next({...!zt(w)||(u.isValid||d.isValid)&&R!==t.isValid?{}:{name:w},...n.resolver||!w?{isValid:R}:{},errors:t.errors}),T.shouldFocus&&!J&&On(r,ee,w?K:s.mount),J},D=w=>{const T={...a.mount?i:o};return Ve(w)?T:zt(w)?Z(T,w):w.map(R=>Z(T,R))},$=(w,T)=>({invalid:!!Z((T||t).errors,w),isDirty:!!Z((T||t).dirtyFields,w),error:Z((T||t).errors,w),isValidating:!!Z(t.validatingFields,w),isTouched:!!Z((T||t).touchedFields,w)}),te=w=>{w&&Cn(w).forEach(T=>We(t.errors,T)),f.state.next({errors:w?t.errors:{}})},oe=(w,T,R)=>{const J=(Z(r,w,{_f:{}})._f||{}).ref,K=Z(t.errors,w)||{},{ref:H,message:le,type:Ce,...Ae}=K;De(t.errors,w,{...Ae,...T,ref:J}),f.state.next({name:w,errors:t.errors,isValid:!1}),R&&R.shouldFocus&&J&&J.focus&&J.focus()},F=(w,T)=>Et(w)?f.state.subscribe({next:R=>"values"in R&&w(h(void 0,T),R)}):h(w,T,!0),X=w=>f.state.subscribe({next:T=>{Vb(w.name,T.name,w.exact)&&Fb(T,w.formState||u,hx,w.reRenderRoot)&&w.callback({values:{...i},...t,...T,defaultValues:o})}}).unsubscribe,ce=w=>(a.mount=!0,d={...d,...w.formState},X({...w,formState:d})),ae=(w,T={})=>{for(const R of w?Cn(w):s.mount)s.mount.delete(R),s.array.delete(R),T.keepValue||(We(r,R),We(i,R)),!T.keepError&&We(t.errors,R),!T.keepDirty&&We(t.dirtyFields,R),!T.keepTouched&&We(t.touchedFields,R),!T.keepIsValidating&&We(t.validatingFields,R),!n.shouldUnregister&&!T.keepDefaultValue&&We(o,R);f.state.next({values:qe(i)}),f.state.next({...t,...T.keepDirty?{isDirty:z()}:{}}),!T.keepIsValid&&p()},re=({disabled:w,name:T})=>{(pt(w)&&a.mount||w||s.disabled.has(T))&&(w?s.disabled.add(T):s.disabled.delete(T))},ue=(w,T={})=>{let R=Z(r,w);const J=pt(T.disabled)||pt(n.disabled);return De(r,w,{...R||{},_f:{...R&&R._f?R._f:{ref:{name:w}},name:w,mount:!0,...T}}),s.mount.add(w),R?re({disabled:pt(T.disabled)?T.disabled:n.disabled,name:w}):C(w,!0,T.value),{...J?{disabled:T.disabled||n.disabled}:{},...n.progressive?{required:!!T.required,min:Tn(T.min),max:Tn(T.max),minLength:Tn(T.minLength),maxLength:Tn(T.maxLength),pattern:Tn(T.pattern)}:{},name:w,onChange:Q,onBlur:Q,ref:K=>{if(K){ue(w,T),R=Z(r,w);const H=Ve(K.value)&&K.querySelectorAll&&K.querySelectorAll("input,select,textarea")[0]||K,le=$b(H),Ce=R._f.refs||[];if(le?Ce.find(Ae=>Ae===H):H===R._f.ref)return;De(r,w,{_f:{...R._f,...le?{refs:[...Ce.filter(ka),H,...Array.isArray(Z(o,w))?[{}]:[]],ref:{type:H.type,name:w}}:{ref:H}}}),C(w,!1,void 0,H)}else R=Z(r,w,{}),R._f&&(R._f.mount=!1),(n.shouldUnregister||T.shouldUnregister)&&!(ou(s.array,w)&&a.action)&&s.unMount.add(w)}}},de=()=>n.shouldFocusError&&On(r,ee,s.mount),$e=w=>{pt(w)&&(f.state.next({disabled:w}),On(r,(T,R)=>{const J=Z(r,R);J&&(T.disabled=J._f.disabled||w,Array.isArray(J._f.refs)&&J._f.refs.forEach(K=>{K.disabled=J._f.disabled||w}))},0,!1))},W=(w,T)=>async R=>{let J;R&&(R.preventDefault&&R.preventDefault(),R.persist&&R.persist());let K=qe(i);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:H,values:le}=await N();t.errors=H,K=qe(le)}else await V(r);if(s.disabled.size)for(const H of s.disabled)We(K,H);if(We(t.errors,"root"),at(t.errors)){f.state.next({errors:{}});try{await w(K,R)}catch(H){J=H}}else T&&await T({...t.errors},R),de(),setTimeout(de);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:at(t.errors)&&!J,submitCount:t.submitCount+1,errors:t.errors}),J)throw J},Qe=(w,T={})=>{Z(r,w)&&(Ve(T.defaultValue)?B(w,qe(Z(o,w))):(B(w,T.defaultValue),De(o,w,qe(T.defaultValue))),T.keepTouched||We(t.touchedFields,w),T.keepDirty||(We(t.dirtyFields,w),t.isDirty=T.defaultValue?z(w,qe(Z(o,w))):z()),T.keepError||(We(t.errors,w),u.isValid&&p()),f.state.next({...t}))},Sr=(w,T={})=>{const R=w?qe(w):o,J=qe(R),K=at(w),H=K?o:J;if(T.keepDefaultValues||(o=R),!T.keepValues){if(T.keepDirtyValues){const le=new Set([...s.mount,...Object.keys(En(o,i))]);for(const Ce of Array.from(le))Z(t.dirtyFields,Ce)?De(H,Ce,Z(i,Ce)):B(Ce,Z(H,Ce))}else{if(ma&&Ve(w))for(const le of s.mount){const Ce=Z(r,le);if(Ce&&Ce._f){const Ae=Array.isArray(Ce._f.refs)?Ce._f.refs[0]:Ce._f.ref;if(Zo(Ae)){const bt=Ae.closest("form");if(bt){bt.reset();break}}}}if(T.keepFieldsRef)for(const le of s.mount)B(le,Z(H,le));else r={}}i=n.shouldUnregister?T.keepDefaultValues?qe(o):{}:qe(H),f.array.next({values:{...H}}),f.state.next({values:{...H}})}s={mount:T.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!T.keepIsValid||!!T.keepDirtyValues,a.watch=!!n.shouldUnregister,f.state.next({submitCount:T.keepSubmitCount?t.submitCount:0,isDirty:K?!1:T.keepDirty?t.isDirty:!!(T.keepDefaultValues&&!Wt(w,o)),isSubmitted:T.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:K?{}:T.keepDirtyValues?T.keepDefaultValues&&i?En(o,i):t.dirtyFields:T.keepDefaultValues&&w?En(o,w):T.keepDirty?t.dirtyFields:{},touchedFields:T.keepTouched?t.touchedFields:{},errors:T.keepErrors?t.errors:{},isSubmitSuccessful:T.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},In=(w,T)=>Sr(Et(w)?w(i):w,T),px=(w,T={})=>{const R=Z(r,w),J=R&&R._f;if(J){const K=J.refs?J.refs[0]:J.ref;K.focus&&(K.focus(),T.shouldSelect&&Et(K.select)&&K.select())}},hx=w=>{t={...t,...w}},Dd={control:{register:ue,unregister:ae,getFieldState:$,handleSubmit:W,setError:oe,_subscribe:X,_runSchema:N,_focusError:de,_getWatch:h,_getDirty:z,_setValid:p,_setFieldArray:k,_setDisabledField:re,_setErrors:E,_getFieldArray:P,_reset:Sr,_resetDefaultValues:()=>Et(n.defaultValues)&&n.defaultValues().then(w=>{In(w,n.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:j,_disableForm:$e,_subjects:f,_proxyFormState:u,get _fields(){return r},get _formValues(){return i},get _state(){return a},set _state(w){a=w},get _defaultValues(){return o},get _names(){return s},set _names(w){s=w},get _formState(){return t},get _options(){return n},set _options(w){n={...n,...w}}},subscribe:ce,trigger:he,register:ue,handleSubmit:W,watch:F,setValue:B,getValues:D,reset:In,resetField:Qe,clearErrors:te,unregister:ae,setError:oe,setFocus:px,getFieldState:$};return{...Dd,formControl:Dd}}function Kb(e={}){const n=b.useRef(void 0),t=b.useRef(void 0),[r,o]=b.useState({isDirty:!1,isValidating:!1,isLoading:Et(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Et(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:r},e.defaultValues&&!Et(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...s}=qb(e);n.current={...s,formState:r}}const i=n.current.control;return i._options=e,ba(()=>{const a=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),i._formState.isReady=!0,a},[i]),b.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),b.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),b.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),b.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),b.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==r.isDirty&&i._subjects.state.next({isDirty:a})}},[i,r.isDirty]),b.useEffect(()=>{e.values&&!Wt(e.values,t.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),t.current=e.values,o(a=>({...a}))):i._resetDefaultValues()},[i,e.values]),b.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),n.current.formState=au(r,i),n.current}const Du=(e,n,t)=>{if(e&&"reportValidity"in e){const r=Z(t,n);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Da=(e,n)=>{for(const t in n.fields){const r=n.fields[t];r&&r.ref&&"reportValidity"in r.ref?Du(r.ref,t,e):r&&r.refs&&r.refs.forEach(o=>Du(o,t,e))}},Cu=(e,n)=>{n.shouldUseNativeValidation&&Da(e,n);const t={};for(const r in e){const o=Z(n.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(Gb(n.names||Object.keys(e),r)){const a=Object.assign({},Z(t,r));De(a,"root",i),De(t,r,a)}else De(t,r,i)}return t},Gb=(e,n)=>{const t=Eu(n);return e.some(r=>Eu(r).match(`^${t}\\.\\d+`))};function Eu(e){return e.replace(/\]|\[/g,"")}function L(e,n,t){function r(s,c){var l;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(l=s._zod).traits??(l.traits=new Set),s._zod.traits.add(e),n(s,c);for(const u in a.prototype)u in s||Object.defineProperty(s,u,{value:a.prototype[u].bind(s)});s._zod.constr=a,s._zod.def=c}const o=t?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(s){var c;const l=t?.Parent?new i:this;r(l,s),(c=l._zod).deferred??(c.deferred=[]);for(const u of l._zod.deferred)u();return l}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>t?.Parent&&s instanceof t.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class Vr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Tu extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const Ou={};function br(e){return Ou}function Qb(e){const n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>n.indexOf(+r)===-1).map(([r,o])=>o)}function Ca(e,n){return typeof n=="bigint"?n.toString():n}function Ea(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Ta(e){return e==null}function Oa(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function Jb(e,n){const t=(e.toString().split(".")[1]||"").length,r=n.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const c=r.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}const i=t>o?t:o,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(n.toFixed(i).replace(".",""));return a%s/10**i}const Au=Symbol("evaluating");function Oe(e,n,t){let r;Object.defineProperty(e,n,{get(){if(r!==Au)return r===void 0&&(r=Au,r=t()),r},set(o){Object.defineProperty(e,n,{value:o})},configurable:!0})}function Xb(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function nr(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Ur(...e){const n={};for(const t of e){const r=Object.getOwnPropertyDescriptors(t);Object.assign(n,r)}return Object.defineProperties({},n)}function Mu(e){return JSON.stringify(e)}const Pu="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Qo(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const e0=Ea(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function An(e){if(Qo(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(Qo(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Iu(e){return An(e)?{...e}:e}const t0=new Set(["string","number","symbol"]);function Hr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function or(e,n,t){const r=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(r._zod.parent=e),r}function se(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function r0(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const n0={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function o0(e,n){const t=e._zod.def,r=Ur(e._zod.def,{get shape(){const o={};for(const i in n){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(o[i]=t.shape[i])}return nr(this,"shape",o),o},checks:[]});return or(e,r)}function i0(e,n){const t=e._zod.def,r=Ur(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in n){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);n[i]&&delete o[i]}return nr(this,"shape",o),o},checks:[]});return or(e,r)}function a0(e,n){if(!An(n))throw new Error("Invalid input to extend: expected a plain object");const t=e._zod.def.checks;if(t&&t.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Ur(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n};return nr(this,"shape",i),i},checks:[]});return or(e,o)}function s0(e,n){if(!An(n))throw new Error("Invalid input to safeExtend: expected a plain object");const t={...e._zod.def,get shape(){const r={...e._zod.def.shape,...n};return nr(this,"shape",r),r},checks:e._zod.def.checks};return or(e,t)}function c0(e,n){const t=Ur(e._zod.def,{get shape(){const r={...e._zod.def.shape,...n._zod.def.shape};return nr(this,"shape",r),r},get catchall(){return n._zod.def.catchall},checks:[]});return or(e,t)}function l0(e,n,t){const r=Ur(n._zod.def,{get shape(){const o=n._zod.def.shape,i={...o};if(t)for(const a in t){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a])}else for(const a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return nr(this,"shape",i),i},checks:[]});return or(n,r)}function u0(e,n,t){const r=Ur(n._zod.def,{get shape(){const o=n._zod.def.shape,i={...o};if(t)for(const a in t){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return nr(this,"shape",i),i},checks:[]});return or(n,r)}function Wr(e,n=0){if(e.aborted===!0)return!0;for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Nu(e,n){return n.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function Jo(e){return typeof e=="string"?e:e?.message}function _r(e,n,t){const r={...e,path:e.path??[]};if(!e.message){const o=Jo(e.inst?._zod.def?.error?.(e))??Jo(n?.error?.(e))??Jo(t.customError?.(e))??Jo(t.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,n?.reportInput||delete r.input,r}function Aa(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Mn(...e){const[n,t,r]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:r}:{...n}}const Ru=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Ca,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ma=L("$ZodError",Ru),Xo=L("$ZodError",Ru,{Parent:Error});function d0(e,n=t=>t.message){const t={},r=[];for(const o of e.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(n(o))):r.push(n(o));return{formErrors:r,fieldErrors:t}}function f0(e,n){const t=n||function(i){return i.message},r={_errors:[]},o=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s}));else if(a.code==="invalid_key")o({issues:a.issues});else if(a.code==="invalid_element")o({issues:a.issues});else if(a.path.length===0)r._errors.push(t(a));else{let s=r,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return o(e),r}const $u=e=>(n,t,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},a=n._zod.run({value:t,issues:[]},i);if(a instanceof Promise)throw new Vr;if(a.issues.length){const s=new(o?.Err??e)(a.issues.map(c=>_r(c,i,br())));throw Pu(s,o?.callee),s}return a.value},p0=$u(Xo),Lu=e=>async(n,t,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(o?.Err??e)(a.issues.map(c=>_r(c,i,br())));throw Pu(s,o?.callee),s}return a.value},h0=Lu(Xo),ju=e=>(n,t,r)=>{const o=r?{...r,async:!1}:{async:!1},i=n._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new Vr;return i.issues.length?{success:!1,error:new(e??Ma)(i.issues.map(a=>_r(a,o,br())))}:{success:!0,data:i.value}},m0=ju(Xo),zu=e=>async(n,t,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=n._zod.run({value:t,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>_r(a,o,br())))}:{success:!0,data:i.value}},g0=zu(Xo),v0=/^[cC][^\s-]{8,}$/,y0=/^[0-9a-z]+$/,b0=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_0=/^[0-9a-vA-V]{20}$/,w0=/^[A-Za-z0-9]{27}$/,S0=/^[a-zA-Z0-9_-]{21}$/,x0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,k0=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Bu=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,D0=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,C0="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function E0(){return new RegExp(C0,"u")}const T0=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,O0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,A0=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,M0=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,P0=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Yu=/^[A-Za-z0-9_-]*$/,I0=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,N0=/^\+(?:[0-9]){6,14}[0-9]$/,Fu="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",R0=new RegExp(`^${Fu}$`);function Vu(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function $0(e){return new RegExp(`^${Vu(e)}$`)}function L0(e){const n=Vu({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${n}(?:${t.join("|")})`;return new RegExp(`^${Fu}T(?:${r})$`)}const j0=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},z0=/^\d+$/,B0=/^-?\d+(?:\.\d+)?/i,Y0=/true|false/i,F0=/^[^A-Z]*$/,V0=/^[^a-z]*$/,st=L("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),Uu={number:"number",bigint:"bigint",object:"date"},Hu=L("$ZodCheckLessThan",(e,n)=>{st.init(e,n);const t=Uu[typeof n.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(n.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<i&&(n.inclusive?o.maximum=n.value:o.exclusiveMaximum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value<=n.value:r.value<n.value)||r.issues.push({origin:t,code:"too_big",maximum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Wu=L("$ZodCheckGreaterThan",(e,n)=>{st.init(e,n);const t=Uu[typeof n.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(n.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>i&&(n.inclusive?o.minimum=n.value:o.exclusiveMinimum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value>=n.value:r.value>n.value)||r.issues.push({origin:t,code:"too_small",minimum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),U0=L("$ZodCheckMultipleOf",(e,n)=>{st.init(e,n),e._zod.onattach.push(t=>{var r;(r=t._zod.bag).multipleOf??(r.multipleOf=n.value)}),e._zod.check=t=>{if(typeof t.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%n.value===BigInt(0):Jb(t.value,n.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:n.value,input:t.value,inst:e,continue:!n.abort})}}),H0=L("$ZodCheckNumberFormat",(e,n)=>{st.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),r=t?"int":"number",[o,i]=n0[n.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=n.format,s.minimum=o,s.maximum=i,t&&(s.pattern=z0)}),e._zod.check=a=>{const s=a.value;if(t){if(!Number.isInteger(s)){a.issues.push({expected:r,format:n.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!n.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!n.abort});return}}s<o&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!n.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inst:e})}}),W0=L("$ZodCheckMaxLength",(e,n)=>{var t;st.init(e,n),(t=e._zod.def).when??(t.when=r=>{const o=r.value;return!Ta(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<o&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=n.maximum)return;const a=Aa(o);r.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:o,inst:e,continue:!n.abort})}}),Z0=L("$ZodCheckMinLength",(e,n)=>{var t;st.init(e,n),(t=e._zod.def).when??(t.when=r=>{const o=r.value;return!Ta(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>o&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=n.minimum)return;const a=Aa(o);r.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:o,inst:e,continue:!n.abort})}}),q0=L("$ZodCheckLengthEquals",(e,n)=>{var t;st.init(e,n),(t=e._zod.def).when??(t.when=r=>{const o=r.value;return!Ta(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=n.length,o.maximum=n.length,o.length=n.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===n.length)return;const a=Aa(o),s=i>n.length;r.issues.push({origin:a,...s?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),ei=L("$ZodCheckStringFormat",(e,n)=>{var t,r;st.init(e,n),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=n.format,n.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(n.pattern))}),n.pattern?(t=e._zod).check??(t.check=o=>{n.pattern.lastIndex=0,!n.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:n.format,input:o.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(r=e._zod).check??(r.check=()=>{})}),K0=L("$ZodCheckRegex",(e,n)=>{ei.init(e,n),e._zod.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),G0=L("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=F0),ei.init(e,n)}),Q0=L("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=V0),ei.init(e,n)}),J0=L("$ZodCheckIncludes",(e,n)=>{st.init(e,n);const t=Hr(n.includes),r=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(n.includes,n.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:o.value,inst:e,continue:!n.abort})}}),X0=L("$ZodCheckStartsWith",(e,n)=>{st.init(e,n);const t=new RegExp(`^${Hr(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=r=>{r.value.startsWith(n.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:r.value,inst:e,continue:!n.abort})}}),e_=L("$ZodCheckEndsWith",(e,n)=>{st.init(e,n);const t=new RegExp(`.*${Hr(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=r=>{r.value.endsWith(n.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:r.value,inst:e,continue:!n.abort})}}),t_=L("$ZodCheckOverwrite",(e,n)=>{st.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}});class r_{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const r=n.split(`
|
|
150
|
+
`).filter(a=>a),o=Math.min(...r.map(a=>a.length-a.trimStart().length)),i=r.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const n=Function,t=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new n(...t,o.join(`
|
|
151
|
+
`))}}const n_={major:4,minor:1,patch:0},ze=L("$ZodType",(e,n)=>{var t;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=n_;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const i of o._zod.onattach)i(e);if(r.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,s,c)=>{let l=Wr(a),u;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(l)continue;const f=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&c?.async===!1)throw new Vr;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(l||(l=Wr(a,f)))});else{if(a.issues.length===f)continue;l||(l=Wr(a,f))}}return u?u.then(()=>a):a},i=(a,s,c)=>{if(Wr(a))return a.aborted=!0,a;const l=o(s,r,c);if(l instanceof Promise){if(c.async===!1)throw new Vr;return l.then(u=>e._zod.parse(u,c))}return e._zod.parse(l,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const l=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(u=>i(u,a,s)):i(l,a,s)}const c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new Vr;return c.then(l=>o(l,r,s))}return o(c,r,s)}}e["~standard"]={validate:o=>{try{const i=m0(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return g0(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Pa=L("$ZodString",(e,n)=>{ze.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??j0(e._zod.bag),e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=String(t.value)}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t}}),Ne=L("$ZodStringFormat",(e,n)=>{ei.init(e,n),Pa.init(e,n)}),o_=L("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=k0),Ne.init(e,n)}),i_=L("$ZodUUID",(e,n)=>{if(n.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(r===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Bu(r))}else n.pattern??(n.pattern=Bu());Ne.init(e,n)}),a_=L("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=D0),Ne.init(e,n)}),s_=L("$ZodURL",(e,n)=>{Ne.init(e,n),e._zod.check=t=>{try{const r=t.value.trim(),o=new URL(r);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(o.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:I0.source,input:t.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:t.value,inst:e,continue:!n.abort})),n.normalize?t.value=o.href:t.value=r;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!n.abort})}}}),c_=L("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=E0()),Ne.init(e,n)}),l_=L("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=S0),Ne.init(e,n)}),u_=L("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=v0),Ne.init(e,n)}),d_=L("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=y0),Ne.init(e,n)}),f_=L("$ZodULID",(e,n)=>{n.pattern??(n.pattern=b0),Ne.init(e,n)}),p_=L("$ZodXID",(e,n)=>{n.pattern??(n.pattern=_0),Ne.init(e,n)}),h_=L("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=w0),Ne.init(e,n)}),m_=L("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=L0(n)),Ne.init(e,n)}),g_=L("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=R0),Ne.init(e,n)}),v_=L("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=$0(n)),Ne.init(e,n)}),y_=L("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=x0),Ne.init(e,n)}),b_=L("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=T0),Ne.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format="ipv4"})}),__=L("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=O0),Ne.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format="ipv6"}),e._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!n.abort})}}}),w_=L("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=A0),Ne.init(e,n)}),S_=L("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=M0),Ne.init(e,n),e._zod.check=t=>{const[r,o]=t.value.split("/");try{if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${r}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!n.abort})}}});function Zu(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const x_=L("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=P0),Ne.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{Zu(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!n.abort})}});function k_(e){if(!Yu.test(e))return!1;const n=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),t=n.padEnd(Math.ceil(n.length/4)*4,"=");return Zu(t)}const D_=L("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=Yu),Ne.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{k_(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!n.abort})}}),C_=L("$ZodE164",(e,n)=>{n.pattern??(n.pattern=N0),Ne.init(e,n)});function E_(e,n=null){try{const t=e.split(".");if(t.length!==3)return!1;const[r]=t;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||n&&(!("alg"in o)||o.alg!==n))}catch{return!1}}const T_=L("$ZodJWT",(e,n)=>{Ne.init(e,n),e._zod.check=t=>{E_(t.value,n.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!n.abort})}}),qu=L("$ZodNumber",(e,n)=>{ze.init(e,n),e._zod.pattern=e._zod.bag.pattern??B0,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=Number(t.value)}catch{}const o=t.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return t;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),t}}),O_=L("$ZodNumber",(e,n)=>{H0.init(e,n),qu.init(e,n)}),A_=L("$ZodBoolean",(e,n)=>{ze.init(e,n),e._zod.pattern=Y0,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=!!t.value}catch{}const o=t.value;return typeof o=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),t}}),M_=L("$ZodUnknown",(e,n)=>{ze.init(e,n),e._zod.parse=t=>t}),P_=L("$ZodNever",(e,n)=>{ze.init(e,n),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function Ku(e,n,t){e.issues.length&&n.issues.push(...Nu(t,e.issues)),n.value[t]=e.value}const I_=L("$ZodArray",(e,n)=>{ze.init(e,n),e._zod.parse=(t,r)=>{const o=t.value;if(!Array.isArray(o))return t.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),t;t.value=Array(o.length);const i=[];for(let a=0;a<o.length;a++){const s=o[a],c=n.element._zod.run({value:s,issues:[]},r);c instanceof Promise?i.push(c.then(l=>Ku(l,t,a))):Ku(c,t,a)}return i.length?Promise.all(i).then(()=>t):t}});function ti(e,n,t,r){e.issues.length&&n.issues.push(...Nu(t,e.issues)),e.value===void 0?t in r&&(n.value[t]=void 0):n.value[t]=e.value}function Gu(e){const n=Object.keys(e.shape);for(const r of n)if(!e.shape[r]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const t=r0(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(t)}}function Qu(e,n,t,r,o,i){const a=[],s=o.keySet,c=o.catchall._zod,l=c.def.type;for(const u of Object.keys(n)){if(s.has(u))continue;if(l==="never"){a.push(u);continue}const d=c.run({value:n[u],issues:[]},r);d instanceof Promise?e.push(d.then(f=>ti(f,t,u,n))):ti(d,t,u,n)}return a.length&&t.issues.push({code:"unrecognized_keys",keys:a,input:n,inst:i}),e.length?Promise.all(e).then(()=>t):t}const N_=L("$ZodObject",(e,n)=>{ze.init(e,n);const t=Ea(()=>Gu(n));Oe(e._zod,"propValues",()=>{const a=n.shape,s={};for(const c in a){const l=a[c]._zod;if(l.values){s[c]??(s[c]=new Set);for(const u of l.values)s[c].add(u)}}return s});const r=Qo,o=n.catchall;let i;e._zod.parse=(a,s)=>{i??(i=t.value);const c=a.value;if(!r(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const l=[],u=i.shape;for(const d of i.keys){const m=u[d]._zod.run({value:c[d],issues:[]},s);m instanceof Promise?l.push(m.then(g=>ti(g,a,d,c))):ti(m,a,d,c)}return o?Qu(l,c,a,s,t.value,e):l.length?Promise.all(l).then(()=>a):a}}),R_=L("$ZodObjectJIT",(e,n)=>{N_.init(e,n);const t=e._zod.parse,r=Ea(()=>Gu(n)),o=f=>{const m=new r_(["shape","payload","ctx"]),g=r.value,p=E=>{const C=Mu(E);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};m.write("const input = payload.value;");const y=Object.create(null);let k=0;for(const E of g.keys)y[E]=`key_${k++}`;m.write("const newResult = {}");for(const E of g.keys){const C=y[E],x=Mu(E);m.write(`const ${C} = ${p(E)};`),m.write(`
|
|
152
|
+
if (${C}.issues.length) {
|
|
153
|
+
payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
|
|
154
|
+
...iss,
|
|
155
|
+
path: iss.path ? [${x}, ...iss.path] : [${x}]
|
|
156
|
+
})));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (${C}.value === undefined) {
|
|
160
|
+
if (${x} in input) {
|
|
161
|
+
newResult[${x}] = undefined;
|
|
162
|
+
}
|
|
163
|
+
} else {
|
|
164
|
+
newResult[${x}] = ${C}.value;
|
|
165
|
+
}
|
|
166
|
+
`)}m.write("payload.value = newResult;"),m.write("return payload;");const S=m.compile();return(E,C)=>S(f,E,C)};let i;const a=Qo,s=!Ou.jitless,l=s&&e0.value,u=n.catchall;let d;e._zod.parse=(f,m)=>{d??(d=r.value);const g=f.value;return a(g)?s&&l&&m?.async===!1&&m.jitless!==!0?(i||(i=o(n.shape)),f=i(f,m),u?Qu([],g,f,m,d,e):f):t(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function Ju(e,n,t,r){for(const i of e)if(i.issues.length===0)return n.value=i.value,n;const o=e.filter(i=>!Wr(i));return o.length===1?(n.value=o[0].value,o[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:t,errors:e.map(i=>i.issues.map(a=>_r(a,r,br())))}),n)}const $_=L("$ZodUnion",(e,n)=>{ze.init(e,n),Oe(e._zod,"optin",()=>n.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Oe(e._zod,"optout",()=>n.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Oe(e._zod,"values",()=>{if(n.options.every(o=>o._zod.values))return new Set(n.options.flatMap(o=>Array.from(o._zod.values)))}),Oe(e._zod,"pattern",()=>{if(n.options.every(o=>o._zod.pattern)){const o=n.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Oa(i.source)).join("|")})$`)}});const t=n.options.length===1,r=n.options[0]._zod.run;e._zod.parse=(o,i)=>{if(t)return r(o,i);let a=!1;const s=[];for(const c of n.options){const l=c._zod.run({value:o.value,issues:[]},i);if(l instanceof Promise)s.push(l),a=!0;else{if(l.issues.length===0)return l;s.push(l)}}return a?Promise.all(s).then(c=>Ju(c,o,e,i)):Ju(s,o,e,i)}}),L_=L("$ZodIntersection",(e,n)=>{ze.init(e,n),e._zod.parse=(t,r)=>{const o=t.value,i=n.left._zod.run({value:o,issues:[]},r),a=n.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>Xu(t,c,l)):Xu(t,i,a)}});function Ia(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(An(e)&&An(n)){const t=Object.keys(n),r=Object.keys(e).filter(i=>t.indexOf(i)!==-1),o={...e,...n};for(const i of r){const a=Ia(e[i],n[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let r=0;r<e.length;r++){const o=e[r],i=n[r],a=Ia(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function Xu(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),Wr(e))return e;const r=Ia(n.value,t.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const j_=L("$ZodEnum",(e,n)=>{ze.init(e,n);const t=Qb(n.entries),r=new Set(t);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.filter(o=>t0.has(typeof o)).map(o=>typeof o=="string"?Hr(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return r.has(a)||o.issues.push({code:"invalid_value",values:t,input:a,inst:e}),o}}),z_=L("$ZodLiteral",(e,n)=>{if(ze.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?Hr(t):t?Hr(t.toString()):String(t)).join("|")})$`),e._zod.parse=(t,r)=>{const o=t.value;return e._zod.values.has(o)||t.issues.push({code:"invalid_value",values:n.values,input:o,inst:e}),t}}),B_=L("$ZodTransform",(e,n)=>{ze.init(e,n),e._zod.parse=(t,r)=>{if(r.direction==="backward")throw new Tu(e.constructor.name);const o=n.transform(t.value,t);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(t.value=a,t));if(o instanceof Promise)throw new Vr;return t.value=o,t}});function ed(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const Y_=L("$ZodOptional",(e,n)=>{ze.init(e,n),e._zod.optin="optional",e._zod.optout="optional",Oe(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),Oe(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${Oa(t.source)})?$`):void 0}),e._zod.parse=(t,r)=>{if(n.innerType._zod.optin==="optional"){const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(i=>ed(i,t.value)):ed(o,t.value)}return t.value===void 0?t:n.innerType._zod.run(t,r)}}),F_=L("$ZodNullable",(e,n)=>{ze.init(e,n),Oe(e._zod,"optin",()=>n.innerType._zod.optin),Oe(e._zod,"optout",()=>n.innerType._zod.optout),Oe(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${Oa(t.source)}|null)$`):void 0}),Oe(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(t,r)=>t.value===null?t:n.innerType._zod.run(t,r)}),V_=L("$ZodDefault",(e,n)=>{ze.init(e,n),e._zod.optin="optional",Oe(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{if(r.direction==="backward")return n.innerType._zod.run(t,r);if(t.value===void 0)return t.value=n.defaultValue,t;const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(i=>td(i,n)):td(o,n)}});function td(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const U_=L("$ZodPrefault",(e,n)=>{ze.init(e,n),e._zod.optin="optional",Oe(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>(r.direction==="backward"||t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,r))}),H_=L("$ZodNonOptional",(e,n)=>{ze.init(e,n),Oe(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(r=>r!==void 0)):void 0}),e._zod.parse=(t,r)=>{const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(i=>rd(i,e)):rd(o,e)}});function rd(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const W_=L("$ZodCatch",(e,n)=>{ze.init(e,n),Oe(e._zod,"optin",()=>n.innerType._zod.optin),Oe(e._zod,"optout",()=>n.innerType._zod.optout),Oe(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{if(r.direction==="backward")return n.innerType._zod.run(t,r);const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(i=>(t.value=i.value,i.issues.length&&(t.value=n.catchValue({...t,error:{issues:i.issues.map(a=>_r(a,r,br()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=n.catchValue({...t,error:{issues:o.issues.map(i=>_r(i,r,br()))},input:t.value}),t.issues=[]),t)}}),Z_=L("$ZodPipe",(e,n)=>{ze.init(e,n),Oe(e._zod,"values",()=>n.in._zod.values),Oe(e._zod,"optin",()=>n.in._zod.optin),Oe(e._zod,"optout",()=>n.out._zod.optout),Oe(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,r)=>{if(r.direction==="backward"){const i=n.out._zod.run(t,r);return i instanceof Promise?i.then(a=>ri(a,n.in,r)):ri(i,n.in,r)}const o=n.in._zod.run(t,r);return o instanceof Promise?o.then(i=>ri(i,n.out,r)):ri(o,n.out,r)}});function ri(e,n,t){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},t)}const q_=L("$ZodReadonly",(e,n)=>{ze.init(e,n),Oe(e._zod,"propValues",()=>n.innerType._zod.propValues),Oe(e._zod,"values",()=>n.innerType._zod.values),Oe(e._zod,"optin",()=>n.innerType._zod.optin),Oe(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,r)=>{if(r.direction==="backward")return n.innerType._zod.run(t,r);const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(nd):nd(o)}});function nd(e){return e.value=Object.freeze(e.value),e}const K_=L("$ZodCustom",(e,n)=>{st.init(e,n),ze.init(e,n),e._zod.parse=(t,r)=>t,e._zod.check=t=>{const r=t.value,o=n.fn(r);if(o instanceof Promise)return o.then(i=>od(i,t,r,e));od(o,t,r,e)}});function od(e,n,t,r){if(!e){const o={code:"custom",input:t,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),n.issues.push(Mn(o))}}class G_{constructor(){this._map=new Map,this._idmap=new Map}add(n,...t){const r=t[0];if(this._map.set(n,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,n)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(n){const t=this._map.get(n);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(n),this}get(n){const t=n._zod.parent;if(t){const r={...this.get(t)??{}};delete r.id;const o={...r,...this._map.get(n)};return Object.keys(o).length?o:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function Q_(){return new G_}const ni=Q_();function J_(e,n){return new e({type:"string",...se(n)})}function X_(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...se(n)})}function id(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...se(n)})}function ew(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...se(n)})}function tw(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...se(n)})}function rw(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...se(n)})}function nw(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...se(n)})}function ow(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...se(n)})}function iw(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...se(n)})}function aw(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...se(n)})}function sw(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...se(n)})}function cw(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...se(n)})}function lw(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...se(n)})}function uw(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...se(n)})}function dw(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...se(n)})}function fw(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...se(n)})}function pw(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...se(n)})}function hw(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...se(n)})}function mw(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...se(n)})}function gw(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...se(n)})}function vw(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...se(n)})}function yw(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...se(n)})}function bw(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...se(n)})}function _w(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...se(n)})}function ww(e,n){return new e({type:"string",format:"date",check:"string_format",...se(n)})}function Sw(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...se(n)})}function xw(e,n){return new e({type:"string",format:"duration",check:"string_format",...se(n)})}function kw(e,n){return new e({type:"number",checks:[],...se(n)})}function Dw(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...se(n)})}function Cw(e,n){return new e({type:"boolean",...se(n)})}function Ew(e){return new e({type:"unknown"})}function Tw(e,n){return new e({type:"never",...se(n)})}function ad(e,n){return new Hu({check:"less_than",...se(n),value:e,inclusive:!1})}function Na(e,n){return new Hu({check:"less_than",...se(n),value:e,inclusive:!0})}function sd(e,n){return new Wu({check:"greater_than",...se(n),value:e,inclusive:!1})}function Ra(e,n){return new Wu({check:"greater_than",...se(n),value:e,inclusive:!0})}function cd(e,n){return new U0({check:"multiple_of",...se(n),value:e})}function ld(e,n){return new W0({check:"max_length",...se(n),maximum:e})}function oi(e,n){return new Z0({check:"min_length",...se(n),minimum:e})}function ud(e,n){return new q0({check:"length_equals",...se(n),length:e})}function Ow(e,n){return new K0({check:"string_format",format:"regex",...se(n),pattern:e})}function Aw(e){return new G0({check:"string_format",format:"lowercase",...se(e)})}function Mw(e){return new Q0({check:"string_format",format:"uppercase",...se(e)})}function Pw(e,n){return new J0({check:"string_format",format:"includes",...se(n),includes:e})}function Iw(e,n){return new X0({check:"string_format",format:"starts_with",...se(n),prefix:e})}function Nw(e,n){return new e_({check:"string_format",format:"ends_with",...se(n),suffix:e})}function Pn(e){return new t_({check:"overwrite",tx:e})}function Rw(e){return Pn(n=>n.normalize(e))}function $w(){return Pn(e=>e.trim())}function Lw(){return Pn(e=>e.toLowerCase())}function jw(){return Pn(e=>e.toUpperCase())}function zw(e,n,t){return new e({type:"array",element:n,...se(t)})}function Bw(e,n,t){return new e({type:"custom",check:"custom",fn:n,...se(t)})}function Yw(e){const n=Fw(t=>(t.addIssue=r=>{if(typeof r=="string")t.issues.push(Mn(r,t.value,n._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),t.issues.push(Mn(o))}},e(t.value,t)));return n}function Fw(e,n){const t=new st({check:"custom",...se(n)});return t._zod.check=e,t}function dd(e,n){try{var t=e()}catch(r){return n(r)}return t&&t.then?t.then(void 0,n):t}function Vw(e,n){for(var t={};e.length;){var r=e[0],o=r.code,i=r.message,a=r.path.join(".");if(!t[a])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];t[a]={message:s.message,type:s.code}}else t[a]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),n){var c=t[a].types,l=c&&c[r.code];t[a]=wa(a,n,t,o,l?[].concat(l,r.message):r.message)}e.shift()}return t}function Uw(e,n){for(var t={};e.length;){var r=e[0],o=r.code,i=r.message,a=r.path.join(".");if(!t[a])if(r.code==="invalid_union"&&r.errors.length>0){var s=r.errors[0][0];t[a]={message:s.message,type:s.code}}else t[a]={message:i,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(u){return u.forEach(function(d){return e.push(d)})}),n){var c=t[a].types,l=c&&c[r.code];t[a]=wa(a,n,t,o,l?[].concat(l,r.message):r.message)}e.shift()}return t}function Hw(e,n,t){if(t===void 0&&(t={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,o,i){try{return Promise.resolve(dd(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](r,n)).then(function(a){return i.shouldUseNativeValidation&&Da({},i),{errors:{},values:t.raw?Object.assign({},r):a}})},function(a){if(function(s){return Array.isArray(s?.issues)}(a))return{values:{},errors:Cu(Vw(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,o,i){try{return Promise.resolve(dd(function(){return Promise.resolve((t.mode==="sync"?p0:h0)(e,r,n)).then(function(a){return i.shouldUseNativeValidation&&Da({},i),{errors:{},values:t.raw?Object.assign({},r):a}})},function(a){if(function(s){return s instanceof Ma}(a))return{values:{},errors:Cu(Uw(a.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const Ww=L("ZodISODateTime",(e,n)=>{m_.init(e,n),Re.init(e,n)});function Zw(e){return _w(Ww,e)}const qw=L("ZodISODate",(e,n)=>{g_.init(e,n),Re.init(e,n)});function Kw(e){return ww(qw,e)}const Gw=L("ZodISOTime",(e,n)=>{v_.init(e,n),Re.init(e,n)});function Qw(e){return Sw(Gw,e)}const Jw=L("ZodISODuration",(e,n)=>{y_.init(e,n),Re.init(e,n)});function Xw(e){return xw(Jw,e)}const ii=L("ZodError",(e,n)=>{Ma.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>f0(e,t)},flatten:{value:t=>d0(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Ca,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Ca,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),eS=$u(ii),tS=Lu(ii),rS=ju(ii),nS=zu(ii),Ue=L("ZodType",(e,n)=>(ze.init(e,n),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...t)=>e.clone({...n,checks:[...n.checks??[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(t,r)=>or(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>eS(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>rS(e,t,r),e.parseAsync=async(t,r)=>tS(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>nS(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(XS(t,r)),e.superRefine=t=>e.check(ex(t)),e.overwrite=t=>e.check(Pn(t)),e.optional=()=>yd(e),e.nullable=()=>bd(e),e.nullish=()=>yd(bd(e)),e.nonoptional=t=>WS(e,t),e.array=()=>OS(e),e.or=t=>IS([e,t]),e.and=t=>RS(e,t),e.transform=t=>wd(e,BS(t)),e.default=t=>VS(e,t),e.prefault=t=>HS(e,t),e.catch=t=>qS(e,t),e.pipe=t=>wd(e,t),e.readonly=()=>QS(e),e.describe=t=>{const r=e.clone();return ni.add(r,{description:t}),r},Object.defineProperty(e,"description",{get(){return ni.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return ni.get(e);const r=e.clone();return ni.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),fd=L("_ZodString",(e,n)=>{Pa.init(e,n),Ue.init(e,n);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...r)=>e.check(Ow(...r)),e.includes=(...r)=>e.check(Pw(...r)),e.startsWith=(...r)=>e.check(Iw(...r)),e.endsWith=(...r)=>e.check(Nw(...r)),e.min=(...r)=>e.check(oi(...r)),e.max=(...r)=>e.check(ld(...r)),e.length=(...r)=>e.check(ud(...r)),e.nonempty=(...r)=>e.check(oi(1,...r)),e.lowercase=r=>e.check(Aw(r)),e.uppercase=r=>e.check(Mw(r)),e.trim=()=>e.check($w()),e.normalize=(...r)=>e.check(Rw(...r)),e.toLowerCase=()=>e.check(Lw()),e.toUpperCase=()=>e.check(jw())}),oS=L("ZodString",(e,n)=>{Pa.init(e,n),fd.init(e,n),e.email=t=>e.check(X_(iS,t)),e.url=t=>e.check(ow(aS,t)),e.jwt=t=>e.check(bw(wS,t)),e.emoji=t=>e.check(iw(sS,t)),e.guid=t=>e.check(id(pd,t)),e.uuid=t=>e.check(ew(ai,t)),e.uuidv4=t=>e.check(tw(ai,t)),e.uuidv6=t=>e.check(rw(ai,t)),e.uuidv7=t=>e.check(nw(ai,t)),e.nanoid=t=>e.check(aw(cS,t)),e.guid=t=>e.check(id(pd,t)),e.cuid=t=>e.check(sw(lS,t)),e.cuid2=t=>e.check(cw(uS,t)),e.ulid=t=>e.check(lw(dS,t)),e.base64=t=>e.check(gw(yS,t)),e.base64url=t=>e.check(vw(bS,t)),e.xid=t=>e.check(uw(fS,t)),e.ksuid=t=>e.check(dw(pS,t)),e.ipv4=t=>e.check(fw(hS,t)),e.ipv6=t=>e.check(pw(mS,t)),e.cidrv4=t=>e.check(hw(gS,t)),e.cidrv6=t=>e.check(mw(vS,t)),e.e164=t=>e.check(yw(_S,t)),e.datetime=t=>e.check(Zw(t)),e.date=t=>e.check(Kw(t)),e.time=t=>e.check(Qw(t)),e.duration=t=>e.check(Xw(t))});function Tt(e){return J_(oS,e)}const Re=L("ZodStringFormat",(e,n)=>{Ne.init(e,n),fd.init(e,n)}),iS=L("ZodEmail",(e,n)=>{a_.init(e,n),Re.init(e,n)}),pd=L("ZodGUID",(e,n)=>{o_.init(e,n),Re.init(e,n)}),ai=L("ZodUUID",(e,n)=>{i_.init(e,n),Re.init(e,n)}),aS=L("ZodURL",(e,n)=>{s_.init(e,n),Re.init(e,n)}),sS=L("ZodEmoji",(e,n)=>{c_.init(e,n),Re.init(e,n)}),cS=L("ZodNanoID",(e,n)=>{l_.init(e,n),Re.init(e,n)}),lS=L("ZodCUID",(e,n)=>{u_.init(e,n),Re.init(e,n)}),uS=L("ZodCUID2",(e,n)=>{d_.init(e,n),Re.init(e,n)}),dS=L("ZodULID",(e,n)=>{f_.init(e,n),Re.init(e,n)}),fS=L("ZodXID",(e,n)=>{p_.init(e,n),Re.init(e,n)}),pS=L("ZodKSUID",(e,n)=>{h_.init(e,n),Re.init(e,n)}),hS=L("ZodIPv4",(e,n)=>{b_.init(e,n),Re.init(e,n)}),mS=L("ZodIPv6",(e,n)=>{__.init(e,n),Re.init(e,n)}),gS=L("ZodCIDRv4",(e,n)=>{w_.init(e,n),Re.init(e,n)}),vS=L("ZodCIDRv6",(e,n)=>{S_.init(e,n),Re.init(e,n)}),yS=L("ZodBase64",(e,n)=>{x_.init(e,n),Re.init(e,n)}),bS=L("ZodBase64URL",(e,n)=>{D_.init(e,n),Re.init(e,n)}),_S=L("ZodE164",(e,n)=>{C_.init(e,n),Re.init(e,n)}),wS=L("ZodJWT",(e,n)=>{T_.init(e,n),Re.init(e,n)}),hd=L("ZodNumber",(e,n)=>{qu.init(e,n),Ue.init(e,n),e.gt=(r,o)=>e.check(sd(r,o)),e.gte=(r,o)=>e.check(Ra(r,o)),e.min=(r,o)=>e.check(Ra(r,o)),e.lt=(r,o)=>e.check(ad(r,o)),e.lte=(r,o)=>e.check(Na(r,o)),e.max=(r,o)=>e.check(Na(r,o)),e.int=r=>e.check(md(r)),e.safe=r=>e.check(md(r)),e.positive=r=>e.check(sd(0,r)),e.nonnegative=r=>e.check(Ra(0,r)),e.negative=r=>e.check(ad(0,r)),e.nonpositive=r=>e.check(Na(0,r)),e.multipleOf=(r,o)=>e.check(cd(r,o)),e.step=(r,o)=>e.check(cd(r,o)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function SS(e){return kw(hd,e)}const xS=L("ZodNumberFormat",(e,n)=>{O_.init(e,n),hd.init(e,n)});function md(e){return Dw(xS,e)}const kS=L("ZodBoolean",(e,n)=>{A_.init(e,n),Ue.init(e,n)});function $a(e){return Cw(kS,e)}const DS=L("ZodUnknown",(e,n)=>{M_.init(e,n),Ue.init(e,n)});function gd(){return Ew(DS)}const CS=L("ZodNever",(e,n)=>{P_.init(e,n),Ue.init(e,n)});function ES(e){return Tw(CS,e)}const TS=L("ZodArray",(e,n)=>{I_.init(e,n),Ue.init(e,n),e.element=n.element,e.min=(t,r)=>e.check(oi(t,r)),e.nonempty=t=>e.check(oi(1,t)),e.max=(t,r)=>e.check(ld(t,r)),e.length=(t,r)=>e.check(ud(t,r)),e.unwrap=()=>e.element});function OS(e,n){return zw(TS,e,n)}const AS=L("ZodObject",(e,n)=>{R_.init(e,n),Ue.init(e,n),Oe(e,"shape",()=>n.shape),e.keyof=()=>$S(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:gd()}),e.loose=()=>e.clone({...e._zod.def,catchall:gd()}),e.strict=()=>e.clone({...e._zod.def,catchall:ES()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>a0(e,t),e.safeExtend=t=>s0(e,t),e.merge=t=>c0(e,t),e.pick=t=>o0(e,t),e.omit=t=>i0(e,t),e.partial=(...t)=>l0(vd,e,t[0]),e.required=(...t)=>u0(_d,e,t[0])});function MS(e,n){const t={type:"object",get shape(){return nr(this,"shape",e?Xb(e):{}),this.shape},...se(n)};return new AS(t)}const PS=L("ZodUnion",(e,n)=>{$_.init(e,n),Ue.init(e,n),e.options=n.options});function IS(e,n){return new PS({type:"union",options:e,...se(n)})}const NS=L("ZodIntersection",(e,n)=>{L_.init(e,n),Ue.init(e,n)});function RS(e,n){return new NS({type:"intersection",left:e,right:n})}const La=L("ZodEnum",(e,n)=>{j_.init(e,n),Ue.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(r,o)=>{const i={};for(const a of r)if(t.has(a))i[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new La({...n,checks:[],...se(o),entries:i})},e.exclude=(r,o)=>{const i={...n.entries};for(const a of r)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new La({...n,checks:[],...se(o),entries:i})}});function $S(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new La({type:"enum",entries:t,...se(n)})}const LS=L("ZodLiteral",(e,n)=>{z_.init(e,n),Ue.init(e,n),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function jS(e,n){return new LS({type:"literal",values:Array.isArray(e)?e:[e],...se(n)})}const zS=L("ZodTransform",(e,n)=>{B_.init(e,n),Ue.init(e,n),e._zod.parse=(t,r)=>{if(r.direction==="backward")throw new Tu(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(Mn(i,t.value,n));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(Mn(a))}};const o=n.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)}});function BS(e){return new zS({type:"transform",transform:e})}const vd=L("ZodOptional",(e,n)=>{Y_.init(e,n),Ue.init(e,n),e.unwrap=()=>e._zod.def.innerType});function yd(e){return new vd({type:"optional",innerType:e})}const YS=L("ZodNullable",(e,n)=>{F_.init(e,n),Ue.init(e,n),e.unwrap=()=>e._zod.def.innerType});function bd(e){return new YS({type:"nullable",innerType:e})}const FS=L("ZodDefault",(e,n)=>{V_.init(e,n),Ue.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function VS(e,n){return new FS({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():Iu(n)}})}const US=L("ZodPrefault",(e,n)=>{U_.init(e,n),Ue.init(e,n),e.unwrap=()=>e._zod.def.innerType});function HS(e,n){return new US({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():Iu(n)}})}const _d=L("ZodNonOptional",(e,n)=>{H_.init(e,n),Ue.init(e,n),e.unwrap=()=>e._zod.def.innerType});function WS(e,n){return new _d({type:"nonoptional",innerType:e,...se(n)})}const ZS=L("ZodCatch",(e,n)=>{W_.init(e,n),Ue.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qS(e,n){return new ZS({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const KS=L("ZodPipe",(e,n)=>{Z_.init(e,n),Ue.init(e,n),e.in=n.in,e.out=n.out});function wd(e,n){return new KS({type:"pipe",in:e,out:n})}const GS=L("ZodReadonly",(e,n)=>{q_.init(e,n),Ue.init(e,n),e.unwrap=()=>e._zod.def.innerType});function QS(e){return new GS({type:"readonly",innerType:e})}const JS=L("ZodCustom",(e,n)=>{K_.init(e,n),Ue.init(e,n)});function XS(e,n={}){return Bw(JS,e,n)}function ex(e){return Yw(e)}const Sd=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,tx=MS({titulo:Tt().min(1,"El campo Título es requerido."),fechaInicio:Tt().min(1,"El campo fecha inicio es requerido."),horaInicio:Tt().min(1,"La hora de inicio es requerida.").regex(Sd,{message:"Formato inválido"}),horaFin:Tt().min(1,"La hora fin es requerida.").regex(Sd,{message:"Formato inválido"}),todoElDia:$a(),fechaFin:Tt().optional(),showEndDate:$a().optional(),horaInicio2:Tt().optional(),TodoElDia2:$a().optional(),client:Tt().optional(),repetir:Tt().optional(),link:Tt().url("Debe ser una URL válida ejemplo https://www.google.com.").or(jS("")).optional(),descripcion:Tt().optional(),color:Tt().optional(),solID:SS().optional().nullable()}).refine(e=>e.showEndDate?e.fechaFin&&e.fechaFin.length>0:!0,{message:"La fecha de fin es requerida.",path:["fechaFin"]}).refine(e=>e.fechaFin!==void 0?!!e.fechaFin&&!!e.horaInicio2:!0,{message:"La hora de fin son requeridas.",path:["horaInicio2"]}),xd=ur(_.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),ja=ur(_.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),rx={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:450},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:3},borderRadius:2,maxHeight:"90vh",overflowY:"auto"},za=["#dbe3fe","#fcebc7","#d9f1d2","#fdf5d1","#ebe3d7","#e1d6fb","#f7c7cc","#f9e7fb","#eaedf2","#d5d8dd"],kd=(()=>{const e=[];for(let n=0;n<24;n++)for(let t=0;t<60;t+=15){const r=n.toString().padStart(2,"0"),o=t.toString().padStart(2,"0");e.push(`${r}:${o}`)}return e})(),nx=({isVisible:e,onClose:n,onSave:t,onDelete:r,selectedDate:o,initialEvent:i,clients:a,clientSolicitudes:s})=>{const[c,l]=b.useState(!1),[u,d]=b.useState(!1),[f,m]=b.useState(null),g=v.format(new Date,"yyyy-MM-dd"),{control:p,handleSubmit:y,reset:k,formState:{errors:S},watch:E,setValue:C}=Kb({resolver:Hw(tx),defaultValues:{titulo:"",fechaInicio:v.format(new Date,"yyyy-MM-dd"),horaInicio:v.format(new Date,"HH:mm"),horaFin:v.format(v.addHours(new Date,1),"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:za[5],solID:null}}),x=E("fechaInicio"),O=E("fechaFin"),N=E("todoElDia");b.useEffect(()=>{if(x&&O){const j=new Date(x),z=new Date(O);(j===z||j>z)&&C("fechaFin",x)}},[x,O,C]),b.useEffect(()=>{C("showEndDate",c)},[c,C]),b.useEffect(()=>{if(i){const j=v.format(i.fechaInicio,"yyyy-MM-dd")===v.format(i.fechaFin,"yyyy-MM-dd");l(!j),C("titulo",i?.titulo),C("fechaInicio",v.format(i.fechaInicio,"yyyy-MM-dd")),C("fechaFin",v.format(i.fechaFin,"yyyy-MM-dd")),C("horaInicio",v.format(i.fechaInicio,"HH:mm")),C("horaFin",v.format(i.fechaFin,"HH:mm")),C("horaInicio2",v.format(i.fechaFin,"HH:mm")),C("descripcion",i.descripcion),C("link",i.link),C("repetir",i.repetir),C("color",i.color),C("todoElDia",i.todoElDia)}else{const j=o||new Date,z=new Date,h=new Date(j.getFullYear(),j.getMonth(),j.getDate(),z.getHours(),z.getMinutes()),P=v.addHours(h,1);k({titulo:"",fechaInicio:v.format(h,"yyyy-MM-dd"),horaInicio:v.format(h,"HH:mm"),fechaFin:v.format(P,"yyyy-MM-dd"),horaFin:v.format(P,"HH:mm"),horaInicio2:v.format(P,"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:za[5],solID:null}),l(!1)}},[i,e,o]);const q=y(j=>{t(j,i?.eventoID),n(),k(),l(!1)},j=>{console.log("Errores de validación:",j)});b.useEffect(()=>{N&&(C("horaInicio","00:00"),C("horaFin","23:59"))},[N,C,E]);const V=()=>{const j=E("fechaInicio");if(j){const z=new Date(`${j}T00:00:00`),h=v.addDays(z,1);C("fechaFin",v.format(h,"yyyy-MM-dd"))}l(!0)};return _.jsx(U.Modal,{open:e,onClose:n,children:_.jsxs(U.Box,{sx:rx,children:[_.jsx(U.IconButton,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:12},children:_.jsx(ja,{})}),_.jsx(U.Typography,{variant:"h6",mb:2,children:i?"Editar evento":"Agregar evento"}),_.jsxs(U.Grid,{container:!0,spacing:1,marginBottom:c?0:1,children:[_.jsx(U.Grid,{size:{xs:12,md:12},children:_.jsx(Ct,{name:"titulo",control:p,render:({field:j})=>_.jsx(U.TextField,{...j,label:"Título",fullWidth:!0,variant:"outlined",size:"small",error:!!S.titulo,helperText:S.titulo?.message,sx:{"& .MuiInputLabel-root, & .MuiInputLabel-shrink":{color:"black"}}})})}),_.jsx(U.Grid,{size:{xs:12,md:12},children:_.jsx(U.Divider,{})}),_.jsx(U.Grid,{size:{xs:12,md:4},children:_.jsx(Ct,{name:"fechaInicio",control:p,render:({field:j})=>_.jsx(U.TextField,{fullWidth:!0,...j,type:"date",placeholder:"Fecha de inicio",size:"small",InputLabelProps:{shrink:!0},error:!!S.fechaInicio,helperText:S.fechaInicio?.message})})}),c?_.jsxs(_.Fragment,{children:[_.jsx(U.Grid,{size:{xs:1,md:3},sx:{display:{xs:"none",sm:"block"}}}),_.jsx(U.Grid,{size:{xs:11,md:4},children:_.jsx(Ct,{name:"fechaFin",control:p,render:({field:j})=>_.jsx(U.TextField,{...j,type:"date",placeholder:"Fecha de fin",fullWidth:!!c,size:"small",InputLabelProps:{shrink:!0},inputProps:{min:x||g},error:!!S.fechaFin,helperText:S.fechaFin?.message})})}),!i&&_.jsx(U.Grid,{size:{xs:1,md:1},children:_.jsx(U.IconButton,{onClick:()=>l(!1),sx:{fontSize:18},children:_.jsx("i",{className:"icon-quitar"})})})]}):_.jsx(U.Grid,{size:{xs:12,md:7}})]}),c&&_.jsx(_.Fragment,{children:_.jsxs(U.Grid,{container:!0,spacing:0,sx:{margin:0,padding:0,width:"100%"},children:[_.jsx(U.Grid,{size:{xs:6,md:5}}),_.jsx(U.Grid,{size:{xs:12,md:6},sx:{margin:0,padding:0,width:"100%",display:{xs:"none",sm:"block"}},children:_.jsx(xd,{sx:{color:"#757575",margin:0,padding:0}})})]})}),_.jsxs(U.Grid,{container:!0,spacing:1,marginBottom:1,marginTop:1,children:[_.jsx(U.Grid,{size:{xs:12,md:4},children:_.jsx(Ct,{name:"horaInicio",control:p,render:({field:{onChange:j,value:z,...h}})=>_.jsx(U.Autocomplete,{freeSolo:!0,options:kd,value:z||"",onChange:(P,A)=>j(A||""),onInputChange:(P,A)=>j(A),renderInput:P=>_.jsx(U.TextField,{...P,...h,size:"small",error:!!S.horaInicio,helperText:S.horaInicio?.message,InputProps:{...P.InputProps,endAdornment:_.jsx(U.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:_.jsx(tu,{})})}}),disabled:E("todoElDia")})})}),_.jsx(U.Grid,{size:{xs:1,md:1},sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:!c&&_.jsx(xd,{sx:{color:"#757575"}})}),c&&_.jsx(U.Grid,{size:{xs:2,md:2}}),_.jsx(U.Grid,{size:{xs:12,md:4},children:_.jsx(Ct,{name:"horaFin",control:p,render:({field:{onChange:j,value:z,...h}})=>_.jsx(U.Autocomplete,{freeSolo:!0,options:kd,value:z||"",onChange:(P,A)=>j(A||""),onInputChange:(P,A)=>j(A),renderInput:P=>_.jsx(U.TextField,{...P,...h,size:"small",error:!!S.horaFin,helperText:S.horaFin?.message,InputProps:{...P.InputProps,endAdornment:_.jsx(U.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:_.jsx(tu,{})})}}),disabled:E("todoElDia")})})}),_.jsx(U.Grid,{size:{xs:12,md:3},hidden:c,children:_.jsx(Ct,{name:"todoElDia",control:p,render:({field:j})=>_.jsx(U.FormControlLabel,{control:_.jsx(U.Checkbox,{checked:j.value,onChange:z=>j.onChange(z.target.checked)}),label:_.jsx("label",{style:{fontSize:"0.7rem",fontWeight:"normal"},children:"Todo el día"})})})}),_.jsx(U.Grid,{size:{xs:12,md:12},children:!c&&_.jsx(_.Fragment,{children:_.jsxs(U.Button,{onClick:V,size:"small",sx:{textTransform:"none",fontSize:16},children:[_.jsx("i",{className:"icon-agregar-ic-rounded"})," Agregar fecha final"]})})}),_.jsx(U.Grid,{size:{xs:12,md:12},children:_.jsx(U.Divider,{})}),_.jsx(U.Grid,{size:{xs:12,md:12},children:!u&&_.jsxs(U.Button,{onClick:()=>d(!0),size:"small",sx:{textTransform:"none",fontSize:16},children:[_.jsx("i",{className:"icon-user-add"})," Vincular cliente"]})}),u&&_.jsxs(_.Fragment,{children:[_.jsx(U.Grid,{size:{xs:12,md:7},children:_.jsx(Ct,{name:"client",control:p,render:({field:j})=>_.jsx(U.Autocomplete,{...j,options:a,onChange:(z,h)=>{m(h),C("client",h||""),C("solID",void 0)},renderInput:z=>_.jsx(U.TextField,{...z,placeholder:"Buscar cliente...",variant:"outlined",size:"small",InputProps:{...z.InputProps,startAdornment:_.jsxs(_.Fragment,{children:[_.jsx("span",{className:"icon-user"}),z.InputProps.startAdornment]})}})})})}),_.jsx(U.Grid,{size:{xs:11,md:4},children:_.jsx(Ct,{name:"solID",control:p,render:({field:j})=>_.jsx(U.Autocomplete,{options:f?s.get(f)||[]:[],getOptionLabel:z=>z.toString(),value:j.value??null,onChange:(z,h)=>j.onChange(h),renderInput:z=>_.jsx(U.TextField,{...z,label:"#Registro",variant:"outlined",size:"small"}),disabled:!f})})}),_.jsx(U.Grid,{size:{xs:1,md:1},children:_.jsx(U.IconButton,{onClick:()=>d(!1),sx:{fontSize:18},children:_.jsx("i",{className:"icon-quitar"})})})]}),_.jsx(U.Grid,{size:{xs:12,md:12},children:_.jsx(U.Divider,{})}),_.jsx(U.Grid,{size:{xs:12,md:12},children:_.jsx(Ct,{name:"link",control:p,render:({field:j})=>_.jsx(U.TextField,{...j,placeholder:" Agregar enlace de reunión",fullWidth:!0,variant:"outlined",size:"small",error:!!S.link,helperText:S.link?.message,InputProps:{startAdornment:_.jsx("span",{className:"icon-link"})}})})}),_.jsx(U.Grid,{size:{xs:12,md:12},children:_.jsx(Ct,{name:"descripcion",control:p,render:({field:j})=>_.jsx(U.TextField,{...j,placeholder:" Agregar descripción aquí...",fullWidth:!0,multiline:!0,rows:3,variant:"outlined",size:"small",InputProps:{startAdornment:_.jsx("span",{className:"icon-parrafo-ic",style:{alignSelf:"flex-start"}})}})})}),_.jsx(U.Grid,{size:{xs:12,md:12},children:_.jsxs(U.Box,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap"},children:[_.jsx("span",{className:"icon-tag-ic",style:{fontSize:20},children:" "}),za.map(j=>_.jsx(Ct,{name:"color",control:p,render:({field:z})=>_.jsx(U.IconButton,{onClick:()=>z.onChange(j),sx:{width:24,height:24,borderRadius:"50%",bgcolor:j,border:z.value===j?"2px solid":"none",borderColor:z.value===j?"primary.main":"transparent"}})},j))]})})]}),_.jsxs(U.Box,{sx:{display:"flex",justifyContent:"flex-end",mt:3,gap:2},children:[i&&_.jsx(U.Button,{onClick:r,variant:"outlined",color:"error",children:"Eliminar"}),_.jsx(U.Button,{onClick:n,variant:"outlined",sx:{textTransform:"none"},children:"Cancelar"}),_.jsx(U.Button,{onClick:q,variant:"contained",sx:{textTransform:"none"},children:"Guardar"})]})]})})},ox=ur(_.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),ix={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4,borderRadius:2,textAlign:"center"},ax=({isOpen:e,onClose:n,onConfirm:t,title:r,message:o})=>_.jsx(U.Modal,{open:e,onClose:n,children:_.jsxs(U.Box,{sx:ix,children:[_.jsx(ox,{sx:{fontSize:60,color:"red"}}),_.jsx(U.Typography,{variant:"h6",component:"h2",sx:{mt:2},children:r}),_.jsx(U.Typography,{sx:{mt:2},children:o}),_.jsxs(U.Box,{sx:{mt:4,display:"flex",justifyContent:"center",gap:2},children:[_.jsx(U.Button,{variant:"outlined",onClick:n,sx:{textTransform:"none"},children:"Regresar"}),_.jsxs(U.Button,{variant:"contained",color:"error",onClick:t,sx:{textTransform:"none"},children:[_.jsx("span",{className:"icon-eliminar",children:" "})," Eliminar"]})]})]})}),sx={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:2,borderRadius:2},cx=({isOpen:e,onClose:n,events:t,date:r,onEventClick:o})=>{if(!r)return null;const i=a=>{o(a),n()};return _.jsx(U.Modal,{open:e,onClose:n,children:_.jsxs(U.Box,{sx,children:[_.jsxs(U.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[_.jsxs(U.Typography,{variant:"h6",component:"h2",children:["Eventos del ",r.toLocaleDateString("es-ES",{weekday:"long",day:"numeric",month:"long"})]}),_.jsx(U.IconButton,{onClick:n,children:_.jsx(ja,{})})]}),_.jsx(U.Divider,{}),_.jsx(U.List,{children:t.map(a=>_.jsx(U.ListItem,{disablePadding:!0,children:_.jsxs(U.ListItemButton,{onClick:()=>i(a),sx:{py:.5},children:[_.jsx(U.Box,{sx:{width:"10px",height:"10px",borderRadius:"50%",backgroundColor:a.color||"#ccc",mr:2}}),_.jsx(U.ListItemText,{primary:a.titulo,secondary:`${v.format(a.fechaInicio,"HH:mm")} - ${v.format(a.fechaFin,"HH:mm")}`,sx:{my:0}})]})},a.eventoID))})]})})},lx=ur(_.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),ux=ur(_.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),dx=b.forwardRef(({id:e,message:n,variant:t},r)=>{const{closeSnackbar:o}=ci.useSnackbar(),i={success:{color:"#fff",icon:_.jsx("span",{className:"icon-Check-ic",style:{borderRadius:"50%",backgroundColor:"#4caf50",color:"white",fontSize:"16px",padding:3}})},error:{color:"#f44336",icon:_.jsx(lx,{sx:{color:"#f44336"}})},info:{color:"#2196f3",icon:_.jsx(ux,{sx:{color:"#2196f3"}})},delete:{color:"#fff",icon:_.jsx("span",{className:"icon-eliminar",style:{borderRadius:"50%",backgroundColor:"#ffdfd4",color:"red",fontSize:"16px",padding:3}})}},a=i[t]||i.info;return _.jsx(ci.SnackbarContent,{ref:r,children:_.jsxs(U.Box,{sx:{backgroundColor:"white",color:"#333",padding:"8px 16px",borderRadius:"8px",boxShadow:"0 3px 10px rgba(0,0,0,0.2)",display:"flex",alignItems:"center",width:{xs:"90%",sm:"auto"},minWidth:"300px",borderLeft:`5px solid ${a.color}`},children:[_.jsx(U.Box,{sx:{mr:1.5},children:a.icon}),_.jsx(U.Typography,{variant:"body2",sx:{flexGrow:1},children:n}),_.jsx(U.IconButton,{size:"small",onClick:()=>o(e),children:_.jsx(ja,{fontSize:"small"})})]})})}),wr=new Ab,fx=()=>{const[e,n]=b.useState(new Date),[t,r]=b.useState([]),[o,i]=b.useState(!1),[a,s]=b.useState(null),[c,l]=b.useState(!1),[u,d]=b.useState(null),[f,m]=b.useState([]),[g,p]=b.useState(new Map),[y,k]=b.useState([]),[S]=b.useState(120),[E]=b.useState(179),{enqueueSnackbar:C}=ci.useSnackbar(),[x,O]=b.useState(!1),[N,q]=b.useState([]),[V,j]=b.useState(null),z=(F,X)=>{q(F),j(X),O(!0)};b.useEffect(()=>{(async()=>{try{await wr.login();const X=sessionStorage.getItem("usrID");if(X){const ce=parseInt(X,10),ae=await wr.getEventsByUser(ce);r(ae)}}catch{console.log("No se pudieron cargar los eventos. Revisa la consola para más detalles.")}finally{console.log("Eventos han sido cargados")}})()},[e]),b.useEffect(()=>{const F=new Date,X=v.startOfDay(F),ce=v.endOfDay(v.addDays(X,6)),ae={start:X,end:ce},re=t.filter(ue=>{const de={start:ue.fechaInicio,end:ue.fechaFin};return al(de,ae)}).sort((ue,de)=>ue.fechaInicio.getTime()-de.fechaInicio.getTime());k(re)},[t]),b.useEffect(()=>{(async()=>{try{const X=await wr.getClients(),ce=new Set,ae=new Map;X.forEach(re=>{ce.add(re.nombreCliente),ae.has(re.nombreCliente)||ae.set(re.nombreCliente,[]),ae.get(re.nombreCliente).push(re.solID)}),m(Array.from(ce)),p(ae)}catch(X){console.error("Failed to fetch clients",X)}})()},[]);const h=async F=>{try{const X=await wr.getEventById(F.eventoID);s(X),i(!0)}catch(X){console.error(X)}},P=()=>{i(!1),s(null)},A=async(F,X)=>{let ce,ae;F.todoElDia?(ce=new Date(`${F.fechaInicio}T${F.horaInicio}`),ae=new Date(`${F.fechaInicio}T${F.horaFin}`)):(ce=new Date(`${F.fechaInicio}T${F.horaInicio}`),ae=F.fechaFin&&F.horaInicio2?new Date(`${F.fechaFin}T${F.horaInicio2}`):new Date(ce.getTime()+3600*1e3));const re=v.format(ce,"yyyy-MM-dd HH:mm:ss.SSS"),ue=v.format(ae,"yyyy-MM-dd HH:mm:ss.SSS");if(X){const $e={...F,eventoID:X,fechaInicio:re,fechaFin:ue};try{const W=await wr.updateEvent($e);var de=t.map(Qe=>Qe.eventoID===W.eventoID?W:Qe);r(de),C("El evento se ha actualizado correctamente.",{variant:"success"}),P()}catch{C("Error al eliactualizar Evento",{variant:"error"})}}else{const $e={...F,fechaInicio:re,fechaFin:ue,todoElDia:F.todoElDia};try{console.log("newEventData",$e);const W=await wr.createEvent($e);console.log("createdEvent",W),r(Qe=>[...Qe,W]),C("El evento se ha creado con éxito",{variant:"success"}),P()}catch{C("Error al guardar Evento",{variant:"error"})}}},Y=()=>{n(F=>new Date(F.getFullYear(),F.getMonth()-1,1))},B=()=>{n(F=>new Date(F.getFullYear(),F.getMonth()+1,1))},Q=()=>{l(!0)},ee=()=>{d(new Date),i(!0)},he=()=>alert("Sincronizar con Google Calendar"),D=()=>alert("Sincronizar con Outlook Calendar"),$=F=>{F&&n(F)},te=F=>{d(F),i(!0),s(null)},oe=async()=>{if(a)try{await wr.deleteEvent(a.eventoID),r(t.filter(F=>F.eventoID!==a.eventoID)),C("El evento se ha eliminado de tu calendario",{content:(F,X)=>_.jsx(dx,{id:F,message:String(X),variant:"delete"})})}catch{C("Error al eliminar Evento",{variant:"error"})}finally{P(),l(!1)}};return _.jsxs("div",{className:"App",children:[_.jsx(tm,{header:_.jsx(vv,{currentDate:e,onPrevMonth:Y,onNextMonth:B,onAddEvent:ee,onDateChange:$}),sidebar:_.jsx(Qv,{onEventClick:h,upcomingEvents:y,onSyncGoogle:he,onSyncOutlook:D,leads30Days:S,leads90Days:E}),mainContent:_.jsx(ay,{onSeeMoreClick:z,currentDate:e,events:t,onDayClick:te,onEventClick:h})}),_.jsx(nx,{isVisible:o,onClose:P,onSave:A,onDelete:Q,selectedDate:u,initialEvent:a,clients:f,clientSolicitudes:g}),_.jsx(ax,{isOpen:c,onClose:()=>l(!1),onConfirm:oe,title:"Eliminar evento",message:"¿De verdad deseas eliminar este evento? Esta acción no se puede deshacer."}),_.jsx(cx,{isOpen:x,onClose:()=>O(!1),events:N,date:V,onEventClick:h})]})};_t.MyCalendar=fx,Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"})});
|